Hi Kees,
It isn't necessary to cross-compile gtk+ yourself when using Fedora. We're already providing packages for both gtk2 and gtk3. The package names for them are mingw32-gtk2, mingw64-gtk2, mingw32-gtk3 and mingw64-gtk3. You can install them with one of the various package managers which are available in Fedora.
The gtk-demo binary is also provided by these packages
For a basic introduction in the Fedora MinGW toolchain and how it can be used can be found at https://fedoraproject.org/wiki/MinGW/Tutorial
When you install one or the gtk+ packages I mentioned earlier and use the commands described in the tutorial you should be able to build your own application against the cross-compiled gtk+ stack.
If you've got any other questions about the Fedora MinGW cross-compiler stack feel free to let us know using this mailing list of join us on IRC: irc.freenode.net/#fedora-mingw
Groeten,
Erik van Pienbroek
kees de jong schreef op zo 23-09-2012 om 15:44 [+0000]:
Hello everybody, A couple of weeks ago I installed fedora because my Debian did not(yet?) support the mingw64-gtk+ library etc. I installed all the needed stuff for compiling gtk+ programs with the mingw64 crosscompiler, (I have written gtk+ programs for about 10 years, so I think I know what I am doing), but I missed the necessary information about environmentvariables etc. At last I found with some luck in my aliases the coms: mingw32-env and mingw64.env. After running one of those I tried to compile some of the programs of the mingw64-gtk+ demo directory. I did this both with the 32bits (i86) environment and library as well as with the 64bits idem, in both cases with and without the --static option for pkg-config. The compiler returned for the 32bits version the following error: undefined reference to WinMain@16, and for the 64bits version: undefined reference to WinMain. This happened with static- as well as dynamically linked compiling. I think I must have made some mistake somewhere, but there is, as far as I know, no documentation to put me right. Maybe there is someone in this forum who can give me a hint? Has someone succeeded in compiling the gtk+-demo-programs? Greetings, Kees de Jong _______________________________________________ mingw mailing list mingw@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/mingw