User forums > General (but related to Code::Blocks)

WxWidgets Setup Issue

<< < (2/3) > >>

Jenna:

--- Quote from: alen12345 on August 16, 2012, 01:37:13 pm ---I did not explain my issue properly. I compiled using the other options like for example MONOLITHIC=1 so I have the suitable libraries but codeblocks does not recognize them.

Like explained at this link: http://wiki.wxwidgets.org/WxWidgets_Build_Configurations



--- End quote ---

In your first post, you wrote, that you use wxWidgets with pre-compiled library.
So now it's not clear for me, what you really use.

Could you please explain exactly what you did, what has failed and which errors you get.

alen12345:
Pre-compiled did not work for me, so I decided to build my own libraries as suggested in the first reply. I use GCC 4.7.1 and the build was pretty easy with no problems following also the tutorial found here: http://wiki.wxwidgets.org/Compiling_wxWidgets_with_MinGW

Everything perfect, just needed to copy and paste a couple of dlls in the release folder when trying to run the app outside the IDE.

If I try to build the libraries differently, with other options such as dynamic but monolithic, or static multi-lib, codeblocks reports an error when trying to create the project, saying that it cannot find a correct configuration in the folder provided. For example if I build the libraries with MONOLITHIC=1 and then select monolithic in the wizard codeblocks reports the error that I have just tried to explain. The libraries always build correctly with the options I want, but when codeblocks is instructed to use a different specification from Dll and unicode, it cannot find the right configuration.

Link for other flags:

http://wiki.wxwidgets.org/WxWidgets_Build_Configurations


Commands to build the libraries;

make -f makefile.gcc MONOLITHIC=1 CXXFLAGS="-fno-keep-inline-dllexport" SHARED=1 UNICODE=1 BUILD=release

make -f makefile.gcc SHARED=0 UNICODE=1 BUILD=release

make -f makefile.gcc SHARED=1 UNICODE=1 BUILD=release

Only the last one works, unfortunately.

 Thank you for your interest.

stahta01:

--- Quote from: alen12345 on August 16, 2012, 03:19:34 pm ---Pre-compiled did not work for me, so I decided to build my own libraries as suggested in the first reply. I use GCC 4.7.1 and the build was pretty easy with no problems following also the tutorial found here: http://wiki.wxwidgets.org/Compiling_wxWidgets_with_MinGW

Everything perfect, just needed to copy and paste a couple of dlls in the release folder when trying to run the app outside the IDE.

If I try to build the libraries differently, with other options such as dynamic but monolithic, or static multi-lib, codeblocks reports an error when trying to create the project, saying that it cannot find a correct configuration in the folder provided. For example if I build the libraries with MONOLITHIC=1 and then select monolithic in the wizard codeblocks reports the error that I have just tried to explain. The libraries always build correctly with the options I want, but when codeblocks is instructed to use a different specification from Dll and unicode, it cannot find the right configuration.

Link for other flags:

http://wiki.wxwidgets.org/WxWidgets_Build_Configurations


Commands to build the libraries;

make -f makefile.gcc MONOLITHIC=1 CXXFLAGS="-fno-keep-inline-dllexport" SHARED=1 UNICODE=1 BUILD=release

make -f makefile.gcc SHARED=0 UNICODE=1 BUILD=release

make -f makefile.gcc SHARED=1 UNICODE=1 BUILD=release

Only the last one works, unfortunately.

 Thank you for your interest.

--- End quote ---

I DO NOT have success building both MONOLITHIC and MultiLib in the same wxWidgets folders.
If you wish to do both you should have two different wxWidgets folders.

Tim S.

alen12345:
I already knew that! Every time I test new configurations I delete the old libraries, and start from scratch. And the problem always persists.

I try those commands separately, just one of them per build!

stahta01:
Are you cleaning the folders correctly?


--- Code: ---make -f makefile.gcc MONOLITHIC=1 SHARED=1 UNICODE=1 BUILD=release clean

make -f makefile.gcc SHARED=0 UNICODE=1 BUILD=release  clean

make -f makefile.gcc SHARED=1 UNICODE=1 BUILD=release  clean

--- End code ---

Tim S.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version