Code::Blocks Forums
Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: DaRkZeAlOt on July 09, 2005, 01:52:42 pm
-
Hello,
I tried to compile CodeBlocks the first time, following the tutorial http://codeblocks.sourceforge.net/wiki/index.php/Compiling_wxWidgets_2.6.1_to_develop_Code::Blocks_%28MSW%29 wich seemed to work fine first.
Got myself the newest mingw32-make, build the object files and set up all directories. But after quite a while i got the following error message :
=================================
Compiling: src\resources\resources.rc
windres.exe: can't open bitmap file `wx/msw/colours.bmp': No such file or directory
Process terminated with status 1 (0 minutes, 0 seconds)
=================================
This is strange because the file IS there and the other compilation stuff worked out well. Any ideas ?
I also browsed around a bit through this forum but usualy this seems to disappear wehn using the actual make :shock: .
-
Look in the project compiler options -> directories -> Resource compiler and look if the directory excist there. if not add it. (without wx/msw)
-
Thx for that, it worked fine after adding the directory :) . Anyway i would be glad if you can help me also with the next problem that appeared :wink: :
===============================
Linking dynamic library: devel\share\CodeBlocks\plugins\debuggergdb.dll
.objs\2.6.0\plugins\debuggergdb\debuggergdb.o(.text+0x685e): In function `ZN11DebuggerGDB14CmdDisassembleEv':
F:/Programmierung/Apps/CodeBlocks/plugins/debuggergdb/debuggergdb.cpp:756: undefined reference to `DisassemblyDlg::DisassemblyDlg(wxWindow*, DebuggerGDB*)'
.objs\2.6.0\plugins\debuggergdb\debuggergdb.o(.text+0x6998): In function `ZN11DebuggerGDB12CmdBacktraceEv':
F:/Programmierung/Apps/CodeBlocks/plugins/debuggergdb/debuggergdb.cpp:764: undefined reference to `BacktraceDlg::BacktraceDlg(wxWindow*, DebuggerGDB*)'
.objs\2.6.0\plugins\debuggergdb\debuggergdb.o(.text+0x69f0):F:/Programmierung/Apps/CodeBlocks/plugins/debuggergdb/debuggergdb.cpp:765: undefined reference to `BacktraceDlg::Clear()'
.objs\2.6.0\plugins\debuggergdb\debuggergdb.o(.text+0x74d2): In function `ZN11DebuggerGDB11ParseOutputERK8wxString':
F:/Programmierung/Apps/CodeBlocks/plugins/debuggergdb/debuggergdb.cpp:903: undefined reference to `BacktraceDlg::AddFrame(StackFrame const&)'
.objs\2.6.0\plugins\debuggergdb\debuggergdb.o(.text+0x7864):F:/Programmierung/Apps/CodeBlocks/plugins/debuggergdb/debuggergdb.cpp:989: undefined reference to `DisassemblyDlg::Clear(StackFrame const&)'
.objs\2.6.0\plugins\debuggergdb\debuggergdb.o(.text+0x7aba):F:/Programmierung/Apps/CodeBlocks/plugins/debuggergdb/debuggergdb.cpp:1002: undefined reference to `DisassemblyDlg::AddAssemblerLine(wxString const&)'
===============================
Seems for me like i didn't include some libraries but under "project|Build options|Linker options" wxmsw26 is linked, anything to be added ?
-
No, it's just that the project file is not up-to-date.
Add plugins/debuggergdb/disassemblydlg.* and plugins/debuggergdb/backtracedlg.* to the project (in the debugger plugin target).
Yiannis.
-
Strange, i added aswell backtracedlg.cpp as disassemblydlg.h and checked them but i still getting exactly the same error message ...
-
Strange, i added aswell backtracedlg.cpp as disassemblydlg.h and checked them but i still getting exactly the same error message ...
Which target did you add them in?
Yiannis.
-
I wasn't realy sure what you meant (sorry, first time using CodeBlocks ^^) so best watch this screenshot :
(http://www.bremer-szene.de/html/projecttargets.jpg)
(you can't see backtracedlg.cpp here but it's added also)
-
I see no problems there...
Click "Compile->Select target...->plugin_DebuggerGDB" and then "Compile->Rebuild".
This should rebuild the debugger plugin from scratch. There should be no linking errors...
Don't forget to click on "Compile->Select target...->All" after you rebuild the debugger plugin!
Yiannis.