Page 1 of 1

cross-compilation - How can I disable the gtk2 subsystem?

Posted: Wed Mar 09, 2016 10:17 pm
by holzhacker
I am developing a system in Linux (ubuntu with gnome3 - ubuntu gnome - https://ubuntugnome.org/) and remotely compiling also on windows, but use the GTK2 subsystem in ubuntu development station - ... use fossil (http: //www.fossil-scm.org) to synchronize the codes and then compile ... but the windows complains Subsystem GTK2.

How do I disable GTK2 to build on windows? - I believe it is the command line ... an example?

Thank you all ...

Re: cross-compilation - How can I disable the gtk2 subsystem

Posted: Fri Mar 11, 2016 8:53 pm
by kenmo
The best way is to create a Project (if you haven't already) with separate Targets configured for each OS:

- Windows target (default subsystem, .exe output executable, .ico icon)
- Linux target ("gtk2" subsystem, no ".exe", .png (?) icon)


There are also some "tricks" you can use to prevent the Linux target from building on Windows, and vice versa.