Re: [gtk-osx-users] Crossbuild on linux



Yes it is, I have been doing it for years now.

I'm on Fedora and thanks to a lot of clever guys here: http://build1.openftd.org/fedora-cross-darwinx/x86_64/
(Not fully up to date)

--
Med Venlig Hilsen / Kind Regards

Mikkel Kruse Johnsen
IT Ansvarlig, Medejer

Structura IT ApS
Kratbjerg 212
3480 Fredensborg

Telefon: +45 4816 1001
Telefax: +45 4824 5320
Direkte: +45 2128 7793
e-mail: mikkel structura-it dk
web: http://www.structura-it.dk
web: http://www.xmedicus.dk



-----Oprindelige besked-----
Fra: Gabriele Greco <gabrielegreco gmail com>
Til: gtk-osx-users-list gnome org
Emne: [gtk-osx-users] Crossbuild on linux
Dato: Fri, 25 May 2012 13:19:56 +0200

It's possible to crossbuild the native OSX GTK on linux?

I have a crosscompiler set up on my ubuntu linux box and I've built and test successfully SDL, ffmpeg and other projects.

I have SDKs 10.5 and 10.6 installed and I'm not interested in an universal binary....

The alternative I have is obviously to copy the the gtk/inst/(lib|include|bin|share) from my OSX machine to my linux box in the cross compiler sysroot path, and maybe modify pkg-config files to map on the destination paths.... I'd like the cleaner approach of being able to build on linux if possible...

I'm looking at .jhbuildrc as starting point... lot of changes to do since it assumes xcode presence and OSX standard paths :)

Anyway my GCC is this one:

gabry@nevada:~/projects/$ i686-apple-darwin10-gcc -v Using built-in specs. Target: i686-apple-darwin10 Configured with: ../gcc-5646.1-i686-apple-darwin10/configure --target=i686-apple-darwin10 --prefix=/usr --with-sysroot=/usr/lib/apple/SDKs/MacOSX10.5.sdk --with-slibdir=/usr/i686-apple-darwin10/lib --mandir=/usr/i686-apple-darwin10/share/man --infodir=/usr/i686-apple-darwin10/share/info --libexecdir=/usr/lib --disable-nls --with-gxx-include-dir=/usr/include/c++/4.2.1 --enable-languages=c,c++,objc,obj-c++ --enable-version-specific-runtime-libs --with-as=/usr/bin/i686-apple-darwin10-as --with-ld=/usr/bin/i686-apple-darwin10-ld : (reconfigured) ../gcc-5646.1-i686-apple-darwin10/configure --target=i686-apple-darwin10 --prefix=/usr --with-sysroot=/usr/lib/apple/SDKs/MacOSX10.5.sdk --with-slibdir=/usr/i686-apple-darwin10/lib --mandir=/usr/i686-apple-darwin10/share/man --infodir=/usr/i686-apple-darwin10/share/info --libexecdir=/usr/lib --disable-nls --with-gxx-include-dir=/usr/include/c++/4.2.1 --enable-languages=c,c++,objc,obj-c++ --enable-version-specific-runtime-libs --with-as=/usr/bin/i686-apple-darwin10-as --with-ld=/usr/bin/i686-apple-darwin10-ld Thread model: posix gcc version 4.2.1 (Apple Inc. build 5646) (dot 1)

Do you think it makes sense to do this (and spend quite a lot of time to fight with every package ./configure problems) or I'd better stick with my OSX native build and just port headers/libs to the linux box?

--
Bye,
 Gabry



_______________________________________________
Gtk-osx-users-list mailing list
Gtk-osx-users-list gnome org
https://mail.gnome.org/mailman/listinfo/gtk-osx-users-list

Attachment: smime.p7s
Description: S/MIME cryptographic signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]