portability

Portable shared objects?

Is it possible to use shared object files in a portable way like DLLs in Windows?? I'm wondering if there is a way I could provide a compiled library, ready to use, for Linux. As the same way you can compile a DLL in Windows and it can be used on any other Windows (ok, not ANY other, but on most of them it can). Is that possible in Lin...

Portable Windows Development Enviroment and USB Thumb Drives

I find myself wasting more and more time the last few years when I have to reinstall an OS and 20+ development tools and apps. I'm looking to do more work in virtual machines. Now that you are starting to see 32GB and 64GB thumb drives. I was wondering can you run a Virtual PC or VMWare image from a USB Thumb drive? Any issues with doin...

Winsock 2 portability

I'm about to develop some sockets related stuff in C++ and would like the software to be as portable between Windows and Linux as possible right from the start (making it portable later is tricky.) I've looked at different libraries, there is one for C++ from alhem.net and of course there is boost::asio. boost::asio looks very promising...

Is there a portable way to get the current username in Python?

Is there a portable way to get the current user's username in Python (i.e., works under both Linux and Windows, at least). It would work like os.getuid: >>> os.getuid() 42 >>> os.getusername() 'slartibartfast' I googled around and was surprised not to find a definitive answer (although perhaps I was just googling poorly). The pwd mo...

LSB AppChecker: GCC links against unused libraries

I'm checking the portability of a shared object (.so) with the LSB AppChecker. One of the problems it reports is that there is one external library (libm.so.6) that is not being used but is linked against anyways. How can I prevent GCC from linking to this unneeded library? EDIT: The output of the ldd command against my shared object i...

Porting to which gaming platforms?

I'm developing a pretty portable indie game engine and also a "demo" game to go with that. In the future I would however like to make a more comprehensive game to deploy on some different platforms. The details on the future game is less important, I'm more into the "how" than the "what" -- genre and content is irrelevant to me. So what...

How to deal with the most common classes missing on J2ME

I'm trying to code an application which runs un different java platforms like J2SE, J2ME, Android, etc. I already know that I'll have to rewrite most of the UI for each platform, but want to reuse the core logic. Keeping this core portable involves three drawbacks that I know of: Keeping to the old Java 1.4 syntax, not using any of th...

Are there any USB stick runnable, no-install, cross platform software frameworks (with GUI)?

Does anyone know of a good software development framework or similar that has the following properties? Cross platform: it should be runnable on XP, Vista, OSX and common versions of Linux (such as Ubuntu and Kubuntu). No installation: Be able to run the software from a USB stick without having to copy anything to the host machine. Hav...

Can I install Oracle on the portable xp which is installed on my WD 160gb USB Hard drive?

Hello Folks, Please help me. I want to install a address printing software. Instead of using Internal Hard Drive, I wanted to use USB Hard drive to give me flexibility and convinence to have the system portable. I want to know, if i can successfully install Portable XP on my USB Hard drive. If yes, can i install oracle on my hard drive...

How do you deal with Internet Explorer?

I am aware that there are probably other questions regarding this topic. I guess that every web developer goes through this with IE. My problem: I am developing a web-based application fully based on Javascript. I am a Mac user. I was really happy that everything worked great in Safari, Firefox and Opera. I then asked a friend with W...

Is there a portable Perl?

Is there a portable Perl along the lines of portable Python? Something I could use (while learning the stuff) from my thumb drive? Oh, and I'm talking about Window XP. ...

App.config dllmap entry portability

The dllmap configuration file entry is used in Mono to map requests for windows DLLs to Linux (.so) libraries. But it seems that if Microsoft's .NET framework tries to parse a configuration file with such an entry, an error occurs because it doesn't understand "dllmap". I think everything else in my distribution can be distributed unch...

Resources for cross-platform C/C++ development

What resources exist to aid in writing C/C++ code that works across multiple platforms and compilers? For example, I regularly find myself asking questions like: Which preprocessor macros are automatically defined in various compilers and environments? (e.g. __GCC__, WIN32, __WIN32__, __CYGWIN__) Which versions of compilers and standar...

Physics toolkit portability

Summary: Have you ever made an interface between two -- or better yet even more -- different physics toolkits? For a online game (or at least with network physics)? How did it turn out? Lessons learned? Is it better to rewrite large chunks of code elsewhere, or did the investment pay off? Bloat: I'm using ODE physics toolkit for my in...

Display problem in portable ubuntu system

i installed portable ubuntu on my xp system...after that i entered ip in that system with restat my ubuntu...but now it is giving error that ** (gnome-settings-daemon:3178): WARNING **: cannot open display: cannot open display: Run 'gnome-panel --help' to see a full list of available command line options. pls help me in this... thnx ...

What portability issues are associated with byte-level access to pointers in C?

Purpose I am writing a small library for a larger project which supplies malloc/realloc/free wrapper-functions as well as a function which can tell you whether or not its parameter (of type void *) corresponds to live (not yet freed) memory allocated and managed by the library's wrapper-functions. Let's refer to this function as isgood_...

making vim load omnicomplete from current working directory

Hi, I am trying to make vim portable by statically compiling it and then using my own vimrc and plugins and stuff that lives in my portable directory... I have recently used vi omnicomplete plugin that says to install it in ~/.vim/ directory... It works fine... but i want my portable vim to locate the omnicomplete plugin from the curr...

Choice of language for portable library

I want to write a library which will be dynamically linked from other programs running on modern operating systems like Windows, Linux and OS/X (i.e. it will be deployed as a .dll or .so module). What is the most appropriate language in that case? Should I stick with plain C? Or is C++ also ok? ...

Justification for using non-portable code.

How does one choose if someone justify their design tradeoffs in terms of optimised code, clarity of implementation, efficiency, and portability? A relevant example for the purpose of this question could be large file handling, where a "large file" is "quite a few GB" for a problem that would be simplified using random-access methods. ...

SQL portability gotchas

My company has me working on finishing a back end for Oracle for a Python ORM. I'm amazed at how much differently RDBMSes do things even for the simple stuff. I've learned a lot about the differences between Oracle and other RDBMSes. Just out of sheer curiosity, I'd like to learn more. What are some common "gotchas" in terms of portin...