OS Windows 7, 64: Compiling wxWidgets

CodeLite installation/troubleshooting forum
CodeLiteFriend
CodeLite Curious
Posts: 2
Joined: Sun Aug 07, 2016 1:28 am
Genuine User: Yes
IDE Question: C++
Contact:

OS Windows 7, 64: Compiling wxWidgets

Post by CodeLiteFriend »

Hello,

I'm trying to compile (CodeLite version 9.2.0/tdm64-gcc-5.1.0-2) wxWidgets (wxMSW-3.0.2). After

Code: Select all

mingw32-make -f makefile.gcc setup_h
there should be an gcc_dll folder, as stated here

Code: Select all

Next, open the file: \path\to\wxwidgets\lib\gcc_dll\mswu\wx\setup.h and ensure that wxUSE_GRAPHICS_CONTEXT is set to 1:
But I find only an gcc_lib folder. I renamed that folder to gcc_dll. Compilation started, but linking wasn't successful. Is there a log file somewhere?

Many thanks and greetings
CodeLiteFriend
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: OS Windows 7, 64: Compiling wxWidgets

Post by eranif »

This because you are building static library and not DLL.
If you follow the instructions on our wiki page, it should work: http://codelite.org/Developers/BuildingWxWidgetsWin

Eran
Make sure you have read the HOW TO POST thread
CodeLiteFriend
CodeLite Curious
Posts: 2
Joined: Sun Aug 07, 2016 1:28 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: OS Windows 7, 64: Compiling wxWidgets

Post by CodeLiteFriend »

Hello Eran,

I'm confused, tried it exactly as described here:
eranif wrote:If you follow the instructions on our wiki page, it should work: http://codelite.org/Developers/BuildingWxWidgetsWin
Many thanks and greetings
CodeLiteFriend
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: OS Windows 7, 64: Compiling wxWidgets

Post by eranif »

Try this:

Code: Select all

mingw32-make -f makefile.gcc setup_h SHARED=1
If this does not help, and you don't need wxWidgets for building CodeLite, you can simply ignore this step and move on to building wxWidgets

Code: Select all

 mingw32-make -j8 -f Makefile.gcc SHARED=1 UNICODE=1 BUILD=release VENDOR=cl CXXFLAGS="-fno-keep-inline-dllexport -std=c++11" MONOLITHIC=1
Eran
Make sure you have read the HOW TO POST thread
Post Reply