User forums > Help
problems with the compiled wxwidgets and code blocks.
parrimin:
Uff, how can i compile wxWidgets as a Static Library.
I´ll explain what i did, for you to know what i did wrong.
-Unzipped codeblocks in d:\codeblocks.
-Unzipped wxWidgets in d:\wxWidgets.
-Unzipped MinGW in D:\MinGW.
-Unzipped mingwm10.dll & wxmsw28u_gcc_cb.dll in codeblocks folder.
-in cmd:
- SET PATH=D:\MinGW\bin;D:\MinGW\mingw32\bin
- in d:\wxWidgets\build\msw mingw32-make -f makefile.gcc MONOLITHIC=1 SHARED=1 UNICODE=1 BUILD=release clean
That manner i could select wxWidget project in codeblock but cant built. So:
- in d:\wxWidgets\build\msw
- mingw32-make -f makefile.gcc clean
- mingw32-make.exe -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0
After all that, i discovered i had to built with release target, and built correctly, but can´t execute. You said i have to copy the dll´s where the executable is, so i copied both in:
d:\myProject\bin\Release\
and... thats all.
If you could explain what am i doing wrong please...
and how to compile wxwidgets as a static library
Biplab:
--- Quote from: parrimin on May 02, 2007, 02:10:30 pm ---If you could explain what am i doing wrong please...
and how to compile wxwidgets as a static library
--- End quote ---
I don't see anything wrong in ur approach. But why the application fails is a mystery to me.
To build a static wx library, issue the following command.
--- Code: ---mingw32-make -f makefile.gcc MONOLITHIC=1 SHARED=0 UNICODE=0 BUILD=release
--- End code ---
stahta01:
FYI:
If building static, I recommend doing multilib (MONOLITHIC=0) build.
Tim S
--- Code: ---mingw32-make -f makefile.gcc MONOLITHIC=0 SHARED=0 UNICODE=0 BUILD=release
--- End code ---
parrimin:
Hey, it´s running!
I´ll explain what I did.
- in d:\wxWidgets\build\msw
- mingw32-make -f makefile.gcc clean
- mingw32-make.exe -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 clean
- mingw32-make.exe -f makefile.gcc SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1 clean
I don´t know what am i doing when cleaning, and it´s not running, so i cleaned 3 times :lol:
After that, i picked:
- mingw32-make -f makefile.gcc MONOLITHIC=0 SHARED=0 UNICODE=0 BUILD=release
I opened a new wxWidget project, with:
- Use WxWidgets DLL, unchecked,
- wxWidgets is built as a monolithic library, unchecked.
- Enable Unicode, checked.
And a template window project is created. I selecte release target, and it´s built & running OK.
After that I tried to compile the demos included, but... how can i do that. I mean, open a new project, but from existing source. I tried to open directly the files in demos/bombs directory, and it created like a projec t, but when building, it says: wx/setup.h: no such file or directory.
And if i go to build->select target, I can see 16 targets, not just release an debug...
Anybody can explain what´s happening, and how to compile a demo?
Thanks guys
Biplab:
If you want to compile the demos, then you need to follow same steps. Let's say you want to compile Minimal sample. Go to samples/minimal dir and issue the same command you've used to build wx. So if you've used-
--- Code: ---mingw32-make -f makefile.gcc MONOLITHIC=0 SHARED=0 UNICODE=0 BUILD=release
--- End code ---
to build wx, then issue the same command inside samples/minimal folder.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version