User forums > Using Code::Blocks
Compiling wxDFast, codeblocks dosen't work, regular old-fashioned method does.
Racecar56:
--- Quote from: stahta01 on June 01, 2009, 06:56:23 am ---I am windows user; so, I am just repeating what I read.
Try running the below on command line and see if results look right.
--- Code: ---wx-config --libs
wx-config --cflags
--- End code ---
Edit: The wxDFast.cbp does not work right under WinXP so it might not be good under Linux either
Tim S
--- End quote ---
Yes, it does work.
--- Quote from: jens on June 01, 2009, 09:11:45 am ---I just tested it and if you compile the release version the cbp-file works straightforward under linux.
The debug-version tries to use a wxWidgets debug version, what is not available in most cases.
You have to change line 22 of Makefile.gcc from
--- Code: ---WXCONFIG = $(WXWIDGETS_DIR)wx-config --debug=yes
--- End code ---
to
--- Code: ---WXCONFIG = $(WXWIDGETS_DIR)wx-config --debug=no
--- End code ---
or leave the --debug-parameter away.
You can also use the project-file as "real" cbp-file.
Just uncheck the This is a custom Makefile-checkbox in the "Project properties -> Project settings", fix the output paths in "Project properties -> Build targets" to meet different directories (or the debug-build overrides the release-build and vice-versa) and remove the "wxDFast.rc"-file (windows-resource-file) from the project.
And you most likely have to add USE_EXTERNAL_XRC to "Build options -> Compiler settings -> #defines" (not if you use Makefile.gcc).
EDIT:
if you fix the output path for the executable, you also have to copy the resources-subdir to the output-dir (probably in the post-build-step.
--- End quote ---
Thanks! : >
Racecar56:
||=== wxDFast, Release ===|
obj/Release/src/wxDFast.o||In function `mApplication::OnInit()':|
wxDFast.cpp:(.text+0x5797)||undefined reference to `InitXmlResource()'|
||=== Build finished: 1 errors, 0 warnings ===|
Jenna:
--- Quote from: Racecar56 on June 01, 2009, 09:34:55 pm ---||=== wxDFast, Release ===|
obj/Release/src/wxDFast.o||In function `mApplication::OnInit()':|
wxDFast.cpp:(.text+0x5797)||undefined reference to `InitXmlResource()'|
||=== Build finished: 1 errors, 0 warnings ===|
--- End quote ---
That's why I wrote:
--- Quote from: jens on June 01, 2009, 09:11:45 am ---And you most likely have to add USE_EXTERNAL_XRC to "Build options -> Compiler settings -> #defines" (not if you use Makefile.gcc).
--- End quote ---
Racecar56:
--- Quote from: jens on June 01, 2009, 09:39:27 pm ---
--- Quote from: Racecar56 on June 01, 2009, 09:34:55 pm ---||=== wxDFast, Release ===|
obj/Release/src/wxDFast.o||In function `mApplication::OnInit()':|
wxDFast.cpp:(.text+0x5797)||undefined reference to `InitXmlResource()'|
||=== Build finished: 1 errors, 0 warnings ===|
--- End quote ---
That's why I wrote:
--- Quote from: jens on June 01, 2009, 09:11:45 am ---And you most likely have to add USE_EXTERNAL_XRC to "Build options -> Compiler settings -> #defines" (not if you use Makefile.gcc).
--- End quote ---
--- End quote ---
It still does it.
EDIT: NVM.
Just had to recompile the whole thing, and it worked. At last.
</thread>
Jenna:
--- Quote from: Racecar56 on June 01, 2009, 10:41:22 pm ---It still does it.
--- End quote ---
Did you rebuild the project, not just build ?
Or at least save wxDFast.cpp with a new timestamp, to force the cobject-file to be rebuild (add and remove a space at the end of a line and save the file, or something similar) ?
Navigation
[0] Message Index
[*] Previous page
Go to full version