Fedora Linux Support Community & Resources Center
  #1  
Old 11th November 2010, 01:01 PM
tristen Offline
Registered User
 
Join Date: Aug 2010
Posts: 16
windows_xp_2003chrome
FC14 GTK+/Mingw32?

Heya

Or is there anyone else out there as crazy as/crazier than me who has been tempted enough to download the GTK+ source and build it from scratch using the mingw32 toolchains on FC14 (using mingw32-configure et. al)?

The reason I ask is because I'm finding more and more bugs in the FC14 mingw32 GTK+ packages that have been addressed and are available on the GTK+ for windows download page.

http://www.gtk.org/download-windows.html

Unfortunately I can't wait for the Fedora team to update their packages and I don't want to turn to the windows binaries because I'm very happy with cross-compiling on FC14.

Needless to say I absolutely refuse to use a windows box for development!

Cheers
Tristen
Reply With Quote
  #2  
Old 11th November 2010, 10:04 PM
hellork's Avatar
hellork Offline
Registered User
 
Join Date: Dec 2007
Posts: 244
linuxfedorafirefox
Re: FC14 GTK+/Mingw32?

Which package? The Windows mingw-gtk2 version is the same as fedora, 2.22
$ yum info mingw32-gtk2.noarch
...
Version : 2.22.0
...

If you want unstable, download from http://www.gtk.org/download.html and build it. You might want to run yum-builddep against the old src.rpm first, to get development packages before building from source. Saves time.
Reply With Quote
  #3  
Old 12th November 2010, 02:24 AM
tristen Offline
Registered User
 
Join Date: Aug 2010
Posts: 16
windows_xp_2003chrome
Re: FC14 GTK+/Mingw32?

@hellork: cheers, yeah it was a pango issue I was having which turned out to be thread-related, not version related (boh), but for the record:

i decided to just give it a shot just shortly after i posted. I downloaded the latest stable source code for GTK+ (2.22), GLib (2.26) and Pango (1.28) from the http://www.gtk.org/download-linux.html page (not from the windows page, because I'm cross-compiling).

I was able then to quite quickly and easily "mingw32-configure", "mingw32-make" and "mingw32-make install" each of them (I think I did GLib, then Pango, then GTK+)

Stoked!

SHAMELESS PLUG:

For those developers interested in cross-compiling and developing windows applications in a unix environment I would strongly recommend Fedora. I've also managed to compile a number of packages from source using the mingw32 toolchain without a problem. That's a nice bit of work that, cheers.

Tristen
Reply With Quote
  #4  
Old 12th November 2010, 02:29 AM
tristen Offline
Registered User
 
Join Date: Aug 2010
Posts: 16
windows_xp_2003chrome
Re: FC14 GTK+/Mingw32?

oh and also I forgot to mention: the Fedora Mingw32 versions of GTK+, GLib and Pango DO match the latest stable release (so my original concerns about the versions aren't valid)
Reply With Quote
  #5  
Old 12th November 2010, 03:23 PM
cheerio158's Avatar
cheerio158 Offline
Registered User
 
Join Date: Apr 2005
Location: Toronto, Ontario, Canada
Posts: 215
linuxchrome
Thumbs down Re: FC14 GTK+/Mingw32?

Hello,

I'm struggling with a similar issue with F14 mingw32.

I've been cross-compiling TORa since F11 with great success. However, with F14, the build works OK* but when I run it on XP or W7 i now get a The application was unable to start correctly ()xc0000005) error.

Googling, I see that they have been tinkering with QT too. http://s390.koji.fedoraproject.org/k...?buildID=37761

Frustrated.

* I had to include the new DLLs in my distribution package
__________________
Desktop Smolt profile
Laptop Smolt profile
EeePC Smolt profile
Reply With Quote
  #6  
Old 13th November 2010, 05:22 AM
tristen Offline
Registered User
 
Join Date: Aug 2010
Posts: 16
windows_xp_2003chrome
Re: FC14 GTK+/Mingw32?

i dunno about your software specifically, but generally:

i don't even try to make my executable work with anything that wasn't originally cross-compiled on the linux box.

when I cross-compile I copy all the dlls and binary stuff from the unix box to the windows box and have them all sitting in the same directory as the executable (doing this will make windows marginally more bloated I suppose but hey who cares about windows?

i can't of course be sure of whether you are or are not doing this, but regarding your comment "I had to include the new DLLs in my distribution package". Does this mean you downloaded some DLLs from somewhere rather than cross-compiling the DLLs yourself from source? If so, maybe try cross-compiling to obtain those DLLs the, er, hard way if you know what i mean?

cheers
tristen
Reply With Quote
  #7  
Old 13th November 2010, 02:57 PM
cheerio158's Avatar
cheerio158 Offline
Registered User
 
Join Date: Apr 2005
Location: Toronto, Ontario, Canada
Posts: 215
linuxchrome
Re: FC14 GTK+/Mingw32?

Thanks for your suggestion.

I tried your suggestion and copied all the mingw32 DLLs (400+MB) and still had the same error.

Apparently, in F14, a lot of functionality now resides in the new libstdc++-6.dll and this is where my program is crashing.

Originally, I iteratively ran the program, noted the missing DLL, copied it over into my program's Windows folder and repeated the process until I discovered the handful of required mingw32 DDLs needed by the program.

If you are interested in what I am doing, go here and see the README file. I submitted the process back to the TORa project after getting the cross-compile working on F11.
__________________
Desktop Smolt profile
Laptop Smolt profile
EeePC Smolt profile
Reply With Quote
  #8  
Old 15th November 2010, 12:56 AM
tristen Offline
Registered User
 
Join Date: Aug 2010
Posts: 16
windows_xp_2003chrome
Re: FC14 GTK+/Mingw32?

"Originally, I iteratively ran the program, noted the missing DLL, copied it over into my program's Windows folder and repeated the process until I discovered the handful of required mingw32 DDLs needed by the program."

lol yeah that's EXACTLY what I do too!

when i said "copy all the dlls" i meant "copy all the necessary dlls". sorry if that led you up the garden path!

for those who are wondering: thankfully windows gives a big fat alert message when it can't find a dll and that's basically when you know you have to copy it over. not an exact science perhaps but hey.

@cheerio158 that's about the strength of my knowledge on the matter!
Reply With Quote
Reply

Tags
fc14, gtk, or mingw32

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use mingw32-gtk2-static? muibase Programming & Packaging 0 2nd August 2010 09:25 AM
How to cross-compile on Fedora 12 with mingw32? MrUmunhum Using Fedora 2 16th May 2010 05:40 PM
cmake and mingw32 dulsi Programming & Packaging 0 6th July 2009 02:20 AM
gcc cross compiler for target i386-pc-mingw32 early-ehlinger Programming & Packaging 8 14th February 2008 09:10 PM


Current GMT-time: 03:07 (Sunday, 19-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat