cross-compiling

compiling OpenSSH for iPhone?

I'm trying to (cross-)compile obfuscated-openssh for the iPhone, and I'm running into some problems. I'm using this to configure the build: ./configure --host=arm-apple-darwin CC=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin9-gcc-4.0.1 \ CFLAGS="-arch armv6 -pipe -std=c99 -I/Developer/Platforms/iPhoneOS.platf...

Cross-compiling on Windows in Eclipse for PPC 405 target

Does anybody out there know how to setup Eclipse with MinGW or Cygwin to build, develop and cross-compile code that is to be deployed on a machine with PPC 405 architecture ? Is it something as simple as setting the right flags for the compiler, or is there something more involved ? I'm developing on Windows for an embedded system runnin...

Compiling external C++ library (Octave) for iPhone (Fortran compiler missing?)

A friend of mine asked me if it would be possible to port the Octave project to the iPhone. I haven't compiled an external package for an iPhone project before, so I downloaded the source code, and then used some scripts found on a couple of different Web sites (one, two) to try and build the libraries. However, when I try either of thes...

Cross compiling unit tests with CppUnit or similar

Has anyone used a package like CppUnit to cross-compile C++ unit tests to run on an embedded platform? I'm using G++ on a Linux box to compile executables that must be run on a LynxOS board. I can't seem to get any of the common unit test packages to configure and build something that will create unit tests. I see a lot of unit test p...

using mingw to cross-compile an opengl app for windows

heya, i am running linux (ubuntu), I am having some trouble with this. i've tried downloading glut32.dll and sticking it in mingw's lib/ directory and also setting up the appropriate headers in include/, however - although the compile is fine - the linker has a serious problem looking up the symbols. how do i go about doing this? how ...

Cross-compile Autotools-based Libraries for Official iPhone SDK

Background I am writing a program that targets several different phones, including the iPhone. The program depends on several thirdparty libraries. I am having difficulty cross-compiling these thirdparty libraries for the iPhone and iPhone simulator. The libraries include the Apache Portable Runtime and GNUTLS, as well as their dependen...

Windows -> Solaris 5.X C++ cross compiler recomendation

I have neved did a cross platform development before but the process we currently employ such as doing the development on a Windows machine (as we are mostly a Windows shop) and then actually building the binaries on a Solaris box looks a bit convoluted to me. Can you recomend me a cross compiler so I can limit development tasks to a Wi...

Cross-compile Apache Portable Runtime to the iPhone

This is a followup to a previous question on cross-compiling for the iPhone: http://stackoverflow.com/questions/1602182/cross-compile-autotools-based-libraries-for-official-iphone-sdk Basically, I am trying to compile the Apache Portable Runtime (APR) version 1.3.8 (latest) for the iPhone. I am currently running into the following error...

Cross-compile libgcrypt for the iPhone? Linker error... can't seem to find "fwrite" and "strerror"?

I have successfully cross-compiled the Apache Portable Runtime (APR) for the iPhone, using a set of configure scripts that invoke the GNU Autotools "./configure" with the necessary cross-compilation options. I am now attempting to cross-compile GNUTLS which depends on libtasn1 and on libgcrypt, which in turn, depends on libgpg-error. Th...

cross-compiling autoconf-based tools with mingw on Mac OS X

I'd like to cross-compile some open-source libraries (libiconv, gettext, glib2) for windows using mingw on Mac OS X. I've installed mingw on Mac with MacPorts. But now I'm not sure what to give to the configure script so that it will work. The cross-compilation tutorials I've seen all talk about makefiles, but no one mentions what to ...

Is it possible to create binaries for other platform on Linux?

Is it possible to create binaries of other platform on Linux? Say I have a program that can be compiled using gcc to .o file but can we use it to output exe that can be run on windows ? ...

Compiling windows binaries from Ubuntu?

I am doing a cross-platform C (not ++) game with both linux (main) and windows (alternate) binaries. Until now I used devcpp to compile in windows, but I have trouble getting some libraries to work right, and I heard it is possible to compile a windows binary from withing Linux. However, I don't know where to get started. The game uses ...

Cross compiler exception handling - Can it be done safely?

I am doing some maintenance on a C++ windows dll library that is required to work with different VC++ compilers (as I don’t want to address different mangling schemes). I have already eliminated any use of the STL in the interface. I have insured that heap corruption will not occur from mixing different new/delete’s. The final item i...

How to cross compile from Mac OS X to Linux x86?

Hi, I'm running Mac OS X 10.5.8 and want to compile for target CentOS 5.3 with GCC 4.1.2. How could I: Compile GCC 4.1.2 toolchain and related tools? Use that tool to cross compile for target CentOS 5.3? Any help is greatly appreciated! ...

Cross-compile from (open)Solaris to Windows?

Is there any way I can cross-compile C/C++ code for Windows (XP, Vista, Win7), ideally in 64-bit as well as 32-bit (for Vista and Win7), from a Solaris or OpenSolaris setup? My codebase is already cross-platform, I would like to cross-compile it (generate windows DLLs and EXEs) from Solaris or Linux as part of an automated process. I w...

How to cross compile qt application for different platforms.

How can I cross-compile my application on Qt. As for each project I need two version 1). Which runs on computer on Qvfb & i386 Architecture 2). Which runs on device with Linux Framebuffer & ARM Architecture I have already compiled Qt for device as well as for Qvfb. I am able to run examples on both platforms, But How can I cross-co...

Add a custom compiler to XCode 3.2

I have a working gcc 4.3.3 toolchain for an ARM Cortex-m3 and would like to integrate it into XCode. Is there a way to set up XCode (3.2) to use this gcc toolchain instead of the built-in GCC 4.2? What I've tried so far: I've added a modified copy of the GCC 4.2.xcplugin and changed the name, version and executable path. It shows up in...

.NET Framework on Android

Is anyone aware of any projects out there to port a version of the .NET framework to the Android platform, kind of like Mono.Touch? ...

Cannot find /lib/libc.so.6

I'm cross-compiling an application, but linking blows up with an error that it "cannot find /lib/libc.so.6". The libc.so.6 that it should be using is the one that sits at /home/work/worldcom/filesys/lib/libc.so.6. What have I got wrong here? linking libobj.so arm-none-linux-gnueabi-g++ obj1.o obj2.o obj2.o -o libobj.so -L/home/work/wo...

Building toolchain with crosstool-ng on Mac OS X SL

Hi I am trying to build toolchain for Linux on Mac. I configure ct-ng as specified in docs/MacOS-X.txt(except that i use GNU soft from MacPorts and my partition is already case-sensitive). However when I try to build i get a lot of errors in shell files that looks like: [ERROR] called from '/Users/xxx/tmp/crosstool-ng-1.5.2/scr...