On Mon, 24 Sep 2012 12:00:13 +0000 [email protected] wrote:
> Send mingw mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > https://admin.fedoraproject.org/mailman/listinfo/mingw > or, via email, send a message with subject or body 'help' to > [email protected] > > You can reach the person managing the list at > [email protected] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of mingw digest..." > > > Today's Topics: > > 1. gtk+ compiling with mingw64 (kees de jong) > 2. Re: gtk+ compiling with mingw64 (Erik van Pienbroek) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sun, 23 Sep 2012 15:44:49 +0000 > From: kees de jong <[email protected]> > To: [email protected] > Subject: gtk+ compiling with mingw64 > Message-ID: <[email protected]> > Content-Type: text/plain; charset=US-ASCII > > 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 > > > ------------------------------ > > Message: 2 > Date: Sun, 23 Sep 2012 16:22:46 +0200 > From: Erik van Pienbroek <[email protected]> > To: [email protected] > Subject: Re: gtk+ compiling with mingw64 > Message-ID: > <[email protected]> > Content-Type: text/plain; charset="UTF-8" > > 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 > > [email protected] > > https://admin.fedoraproject.org/mailman/listinfo/mingw > > > > > ------------------------------ > > _______________________________________________ > mingw mailing list > [email protected] > https://admin.fedoraproject.org/mailman/listinfo/mingw > > End of mingw Digest, Vol 48, Issue 31 > ************************************* Hallo Erik, Thanks for your very prompt reaction on my question! The problem I had, came as I have found, from a very silly mistake I have made. I tried to compile c-progams from the demo directory in the gtk-package, but that will not do, because all of those programs are without the, for c nessecary main(....) function, so it is not possible to compile them into executables. In the mean time I succeeded in compiling one of my own programs and running it on win7. Sorry for the stupid question! But maybe You can tell me now of- and how it is possible to compile my progam statically with the gtk+-library ( I dont like putting all those ddl's on windows because that hinders easy portability) The things I tried (cc option -static and/or pkg-config option --static) both failed. Veel dank, Kees de Jong _______________________________________________ mingw mailing list [email protected] https://admin.fedoraproject.org/mailman/listinfo/mingw
