Page 1 of 1

OS Windows 7, 64: Compiling wxWidgets

Posted: Sun Aug 07, 2016 1:39 am
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

Re: OS Windows 7, 64: Compiling wxWidgets

Posted: Sun Aug 07, 2016 9:50 am
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

Re: OS Windows 7, 64: Compiling wxWidgets

Posted: Mon Aug 08, 2016 2:08 am
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

Re: OS Windows 7, 64: Compiling wxWidgets

Posted: Mon Aug 08, 2016 9:28 am
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