Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cross compile GTK+ application from Linux to Windows?

How can I cross compile my GTK+ app (written in C) from Linux to Windows? Could I just replace the "gcc" command with "mingw32"?

like image 775
Mohit Deshpande Avatar asked Nov 05 '22 06:11

Mohit Deshpande


1 Answers

Fedora has a great mingw32 cross-compiler toolchain which comes with lots of precompiled libraries, including GTK+ and gtkmm. For most applications you just need to install the cross-compiler and the cross-compiled GTK+ libraries: yum install mingw32-gcc mingw32-gtk2

Once everything needed is installed, compiling your application is just the matter of running "mingw32-configure" followed with "make".

More information at the project page https://fedoraproject.org/wiki/MinGW

like image 54
kalev Avatar answered Nov 09 '22 06:11

kalev