Author Topic: compile winelib app with codeblocks  (Read 4390 times)

tinku99

  • Guest
compile winelib app with codeblocks
« on: September 01, 2009, 12:58:21 am »
I read this topic for setting up the mingw cross compiler with codeblocks on linux.
I would like to do something similar with winelib / winegcc wrapper. 
Can I just replace -586-mingw- with wine in the following?
Code
 C compiler: i586-mingw32msvc-gcc
 C++ compiler: i586-mingw32msvc-g++
 Linker for dynamic libs: i586-mingw32msvc-g++
 Linker for static libs: i586-mingw32msvc-ar
There doesn't appear to be a wine-ar application. 
Also, can I just change the winelib and wineinclude paths?
do i need linker options?
Are there common differences in library headers that i should keep in mind?
I have a windows app cross compiling with mingw.  Would like to transition to a winelib app on my way to a native linux port.
Thanks.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: compile winelib app with codeblocks
« Reply #1 on: September 01, 2009, 08:10:16 am »
I never used winelib, but will give it a try.

What are the advantages of winelib compared to MinGW-cross compiler ?
Or is it just a matter of taste.

Dou you know if it works with wxWidgets cross-libs ( see http://wiki.codeblocks.org/index.php?title=Cross_Compiling_wxWidgets_Applications_on_Linux) ?

tinku99

  • Guest
Re: compile winelib app with codeblocks
« Reply #2 on: September 01, 2009, 07:43:19 pm »
I never used winelib, but will give it a try.
Thanks.
What are the advantages of winelib compared to MinGW-cross compiler ?
Or is it just a matter of taste. 
I am new to developing on linux, but the winelib people claim that you can link to both windows and linux libraries with winelib.   Also, libwine applications are supposed to be native linux apps (with some limitations and they still require wine... so i don't know what the difference is and maybe you are right...).
Dou you know if it works with wxWidgets cross-libs ( see http://wiki.codeblocks.org/index.php?title=Cross_Compiling_wxWidgets_Applications_on_Linux) ?
AutoHotkey does not use wxWidgets...
If you are interested: mingw cross compiling source.