User forums > Help

wxWidgets 2.6.2 Instructions

(1/2) > >>

rowck001:
Sory to post again - but can anybody who has successfully installed wxWidgets and used it with code::blocks let me know how they did it?

I used "nmake -f makefile.vc BUILD=release SHARED=0 MONOLITHIC=1 RUNTIME_LIBS=static" as the wxwidget command-line to compile.

Details of how (the command-line) they compiled WxWidgets into the static library version and details of the setup for code::blocks.

I have looked at the wiki post and all the wxwidget problems in the forums, but nothing I do will work given those instructions

I always get unresolved imports link messages - I have clean compiled WxWidgets many times and never any joy!

I guess I will have to stick with Win32 API as wxWidgets just doesnt seem to work!

mandrav:
If all you have is linking problems, check your compiler flags.
For example, you shouldn't be using WXUSINGDLL with a static wx lib...

kisoft:

--- Quote from: rowck001 on November 08, 2005, 02:11:34 pm ---...
I used "nmake -f makefile.vc BUILD=release SHARED=0 MONOLITHIC=1 RUNTIME_LIBS=static" as the wxwidget command-line to compile.

Details of how (the command-line) they compiled WxWidgets into the static library version and details of the setup for code::blocks.
...

--- End quote ---

I try now on my Win2k, wxWidgets 2.6.2, sorry, WinGW only, C::B CVS [08.11.2005].
My steps see below:

1. clean old compile (was dll for C::B):
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 clean

2. build static wxWidgets:
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=0 MONOLITHIC=1 BUILD=release UNICODE=0 VENDOR=my
SHARED=0 - main difference

3. copy $(WX_DIR)\lib\gcc_lib\* to $(WX_LIB)\lib\gcc_libNonUnicode\*
List of files:

--- Code: ---C:\Devel\wxWidgets-2.6.2\lib\gcc_libNonUnicode\libwxexpat.a
C:\Devel\wxWidgets-2.6.2\lib\gcc_libNonUnicode\libwxjpeg.a
C:\Devel\wxWidgets-2.6.2\lib\gcc_libNonUnicode\libwxmsw26.a
C:\Devel\wxWidgets-2.6.2\lib\gcc_libNonUnicode\libwxpng.a
C:\Devel\wxWidgets-2.6.2\lib\gcc_libNonUnicode\libwxregex.a
C:\Devel\wxWidgets-2.6.2\lib\gcc_libNonUnicode\libwxtiff.a
C:\Devel\wxWidgets-2.6.2\lib\gcc_libNonUnicode\libwxzlib.a
C:\Devel\wxWidgets-2.6.2\lib\gcc_libNonUnicode\msw
C:\Devel\wxWidgets-2.6.2\lib\gcc_libNonUnicode\msw\build.cfg
C:\Devel\wxWidgets-2.6.2\lib\gcc_libNonUnicode\msw\wx
C:\Devel\wxWidgets-2.6.2\lib\gcc_libNonUnicode\msw\wx\setup.h

--- End code ---
rem For your VC compiler "gcc_lib" change on "vc_lib"

4. start C::B and create new wxWidgets project "using static wxWidgets library"
   and "With header files"

5. change WX_DIR in CustomVariables on C:\Devel\wxWidgets-2.6.2

6. change WX_CFG in CustomVariables on NonUnicode
rem Use it only if your execute p.3

7. change wxmsw on wxmws26 in library list

8. ReBuild

9. Ctrl-F10 - Ok

It's correct on your system?

If not, let see build parameters for your application.

Good luck!

cyberkoa:
I am using gcc with static wxwidgets library last time , it works fine for me.

I have faced unresolve reference problem before but it solved by adding appropriate library in the Linker settings.


rowck001:
Thanks for the replies ... but what I really need is a list of compiler / linker and library flags that works!

I am using NOT using WXUSINGDLL with a static library version -= but what flag is used for a static library??.
Do I need a library such as rpcrt4.lib? - If so, it is not listed in the default wxwidgets project file. What linker flags are used for VC Toolkit 2003? All help seems to be minGW-centric.

Also I have read that codeblocks default wxwidgets project file is old and does not include up-to-date command parameters.
Where can I get an update?

Just about rerady for the old uninstall button for codeblocks and wxwidgets!

Navigation

[0] Message Index

[#] Next page

Go to full version