Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
help me please! I compile the codeblock but failed!
280Z28:
--- Quote from: boyeestudio on December 14, 2005, 08:36:59 am ---
--- Quote from: tiwag on December 14, 2005, 08:21:41 am ---there is a bug in the project file CodeBlocks-NewBuild.cbp
if so, do the following:
go to Project->Build options->"Directories"->"Linker"
edit the line
$(#WX.lib)\gcc_dll\msw
to
$(#WX.lib)\gcc_dll
or delete it completely, in this case you have to you go to the Tab "Custom variables"
and edit the variable WX_CFG to what you used during your wx-widgets build, standard is a empty string.
--- End quote ---
the wxWidgets I compiled with VC++ 6.0. I can't find the directory $(WX.lib)\gcc_dll but find $(WX.lib)\mswd subdirectory.
and it is nothing but a file .\wx\setup.h in it.
--- End quote ---
I'll make it easy for you:
1. Download MinGW-3.1.0-1 and install it to C:\MinGW (I'll use this path for reference later)
2. Download gcc-core-3.4.4-20050522-1.tar.gz and gcc-g++-3.4.4-20050522-1.tar.gz and extract them to C:\MinGW
3. Download binutils-2.16.91-20050827-1.tar.gz and extract it to C:\MinGW
4. Download infozip. Extract it and add the .exe files to C:\MinGW\bin
5. Add C:\MinGW\bin and C:\MinGW\mingw32\bin to your PATH. You might have to reboot for changes to take effect here.
6. Download wxMSW-2.6.2.zip and extract it to C:\Devel\
You should now have a folder C:\Devel\wxWidgets-2.6.2 with subfolders build and lib (and a lot of others).
7. Create a batch file called build.bat in C:\Devel\wxWidgets-2.6.2\build\msw
--- Code: ---mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 CFG=NonUnicode clean
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 CFG=NonUnicode
--- End code ---
8. Run that batch file and wait for the build to finish. It could take a while.
10. Download a recent copy of Code::Blocks from here so you can open the new build project files.
You can then open CodeBlocks-NewBuild.cbp and immediately build. :)
After building codeblocks, you will have a directory codeblocks\src\devel. Copy C:\Devel\wxWidgets-2.6.2\lib\gcc_dllNonUnicode\wxmsw26_gcc_custom.dll to that (the devel) directory.
Run codeblocks\src\update.bat
Your output files will be placed in codeblocks\src\output
280Z28:
--- Quote from: tiwag on December 14, 2005, 09:06:35 am ---
instead of
--- Quote from: 280Z28 on December 14, 2005, 09:00:04 am ---...
--- Code: ---mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 clean
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0
--- End code ---
...
--- End quote ---
PLEASE USE the following !!!
--- Code: ---mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 CFG=NonUnicode clean
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 CFG=NonUnicode
--- End code ---
btw - are you using an encrypted username ?
--- End quote ---
Now I see what the real problem is. The Wiki has the wrong build instructions (that's where I made my bat file from). Your change should fix it, I wish I had known about that option earlier. :)
What do you mean by an encrypted username?
280Z28:
--- Quote from: tiwag on December 14, 2005, 09:12:48 am ---
--- Quote from: 280Z28 on December 14, 2005, 09:10:09 am ---What do you mean by an encrypted username?
--- End quote ---
is there a special meaning behind 280Z28 ?
it is not easy to remember - at least not for me 8)
--- End quote ---
Edit: I moved this reply to "my" thread:
http://forums.codeblocks.org/index.php?topic=1630.msg11830#msg11830
Navigation
[0] Message Index
[*] Previous page
Go to full version