cross-platform

Any experience with Itzam Portable Embedded Database Engine?

Has anybody ever used or have useful comments on Itzam/core? I am attracted to it partly because I was impressed by the author's book C++ Components & Algorithms and as a possible backend for my search for a large non-SQL portable database engine. ...

How important is platform independence?

A lot of software frameworks, languages, platforms claim platform independence and boast it as a selling feature. However, I have failed to understand how could this such an important feature. For example, Java is said to be platform independent - but why should I care when I know that my webapp is going to run on only one platform? Is t...

cmake RUNTIME_OUTPUT_DIRECTORY on Windows

I'm using cmake for managing my cross-platform builds, and I have everything worked out except for this problem. I set RUNTIME_OUTPUT_DIRECTORY to a bin/ directory where I have data files stored. On Linux, this works fine. On Windows, the executables get placed in the Debug/Release subdirectory depending on the build type. Is there any w...

Platform-independent GUID generation in C++?

What is the best way to programmatically generate a GUID or UUID in C++ without relying on a platform-specific tool? I am trying to make unique identifiers for objects in a simulation, but can't rely on Microsoft's implementation as the project is cross-platform. Notes: Since this is for a simulator, I don't really need cryptographic...

Building a library across platforms without running all of the platforms

I have a small piece of code that works as a plugin for a larger graphics application. The development platform is Qt with c++ code. I've managed to build a .so, .dylib and .dll for linux, MacOS and Windows respectively, but to do so I had to have a machine running each operating system (in my case, running linux [ubuntu] gcc natively,...

Cross-platform way to get PIDs by process name in python

Several processes with the same name are running on host. What is the cross-platform way to get PIDs of that processes by name using python or jython? It's like pidof but in python (I don't have pidof anyway). I can't parse /proc because it might be unavailable (on HP-UX). I do not want to run os.popen('ps') and parse the output becaus...

Why are some programs written in C++ windows-only and others are not?

That's something I've been wondering for a while now. Take Notepad++ for instace. Wikipedia tells me it was written in C++ and it's Windows-only. Now take PHP. Wikipedia tells me this is also written in C++, but that runs on other OS too. But I see more languages then just C++ for PHP... how is this done? Do they make some new code in...

Crossplatform way to change screen resolution

Is there any crossplatform way (Windows, Linux, MacOSX) to change screen resolution? Neither Java nor .Net-Mono can do it. Only through native API invocation. It's very strange situation: there are clear (managed) methods to obtain screen resolution, but method for setting is absent. Is this feature very dangerous or complicated? Does a...

Why is building a cross-compiler harder than building a regular compiler?

Everything I've read seems to imply that building a cross-compiler is significantly harder than building a compiler that targets the platform it runs on. Is this true? If so, why? It seems like generating assembly code and system calls for an arbitrary platform shouldn't be any harder than generating such code and system calls for the...

What's the best library for manipulating JPEG metadata?

I'm after a library that can read and write JPEG image metadata. For example if I wanted to embed and read back a short description or story relating to the jpeg image, in the image file itself, what development library/s would you recommend? I'm not too fussed about what language (it's a new project), though I've tagged this question f...

Recommend some Bresenham's-like algorithm of sphere mapping in 2D?

I need the fastest sphere mapping algorithm. Something like Bresenham's line drawing one. Something like the implementation that I saw in Star Control 2 (rotating planets). Are there any already invented and/or implemented techniques for this? I really don't want to reinvent the bicycle. Please, help... Description of the problem. ...

What is your favorite cross-platform solution to access multiple different databases (MySQL, Oracle...) in C/C++?

I am writing a simple C++ application which might be installed on Linux or Windows, and which will connect to a database. I want my application to be compatible at least with Oracle and MySQL (or PostgreSQL). Which C or C++ library would you recommend to handle the database queries: I am open to any library, whether it's very thin (jus...

Are there cross-platform precompiled header frameworks/methods in C++?

I'm wondering what others have experienced implementing cross-platform (linux and windows) precompiled headers in C++. I'm thinking of what Visual Studio lets you do with stdafx.h files that can drastically improve compile times for large amounts of C++ code by precompiling the common headers used across the board (std/boost/etc headers)...

Platform-independent concurrent programming libraries for C++

Hi, I am familiar with concurrent programming in Java which provides a lot of tools for this. However, C++ concurrent programming isn't so easy to start using. What is the best way to start programming concurrently on C++? Are there any nice libraries which wrap concurrent programming primitives and provide you with more high-level con...

How can I create a portable perl when I can't install modules on the target host?

I need to run Perl applications I develop on cygwin Windows on HP unix / Solaris hosts. I am not a superuser on the unix machines and I can't touch the default Perl module location nor can I install modules to the default Perl module location. Also the unix installation lacks most basic modules and I can't change that. For example, I ha...

How do I cross-compile C code on Windows for a binary to also be run on Unix (Solaris/HPUX/Linux)?

I been looking into Cygwin/Mingw/lcc and I liked to be able to compile perl native C extensions on my windows(preferably under cygwin) and then run them on Solaris and HP unix without any further fuss, is this possible? This all stems from my original perl cross-platform question here. ...

What is the best way to find the users home directory in Java?

The difficulty is that it should be cross platform. Windows 2000, XP, Vista, OSX, Linux, other unix variants. I am looking for a snippet of code that can accomplish this for all platforms, and a way to detect the platform. Now, you should be aware of bug 4787931 that user.home does not work correctly, so please do not provide me of texb...

What's your favorite way of dealing with cross-platform development?

I'm currently working on cross-platform applications and was just curious as to how other people tackle problems such as: Endianess Floating point support (some systems emulate in software, VERY slow) I/O systems (i.e. display, sound, file access, networking, etc. ) And of course, the plethora of compiler differences Obviously this i...

Is there a cross-platform way of getting a list of running applications?

I need to get a list of applications that are currently running so that my C++ application and make them take focus. Has anybody done this? ...

Cross OS virtual drive functionality

Looking for online resources to implement a virtual drive functionality similar to ones implemented in products listed The solution should be cross OS (win, pc, linux) preferably using a well behaving framework. Currently the answer to this question is widely dispersed with no clear option on what to use: Current suggestions I've foun...