User forums > Using Code::Blocks
file path with space is truncated
3rdshiftcoder:
Hi Jens-
I am up and running with the sample wxWidgets code.
If you are having trouble setting up wxwidets, I put together a few
steps I took to get my project working. Please read the disclaimer at the bottom of this post.
http://forums.codeblocks.org/index.php/board,20.0.html
I went to nightly builds and downloaded a very recent build of codeBlocks.
http://wiki.codeblocks.org/index.php?title=WxWindowsQuickRef
Read the QuickRef link and run the wizard for a new project.
Add a global variable (Settings ->Global variable) named wx which is the base of the wxWidgets install.
I used a "wxPack" http://wxpack.sourceforge.net/Main/Downloads install and my base directory looked like this:
C:\SourceCode\Libraries\wxWidgets2.8
I also downloaded from the mingw site :
http://sourceforge.net/projects/mingw/files/Automated%20MinGW%20Installer/MinGW%205.1.6/MinGW-5.1.6.exe/download
Add the setting to point to mingw dir in Settings ->Compiler ->Toolchain executable tab.
Here are my settings:
Project->Build Options->Search directories:
Under Compiler (search directories):
$(#wx)\include
Under Linker (search directories):
$(#wx)\lib\gcc_dll
I copied the 2 dll files per the nightly build instructions and put them
with codeblocks.exe in the same directory. I included the dir containing codeblocks.exe
in my win xp path variable (search how to set an environment variables in xp if you don't know).
I received a message it couldn't run my application and was looking for wxmsw28u_gcc.dll.
What I did to fix that was made an extra copy of wxmsw28u_gcc_cb.dll (one of the files from the
nightly build download) and just rename it to wxmsw28u_gcc.dll.
Now I have these 3 dll's in my codeblocks.exe directory.
1.) wxmsw28u_gcc.dll (copy of #2) and then rename)
#2) wxmsw28u_gcc_cb.dll (nightly build download)
3.) mingwm10.dll (nightly build download)
These steps worked for me but I am a beginner and there may be a better way.
I hope it is ok I posted the steps I followed with Jens and it helps another cb user.
If Jens or another more experienced user follows up and doesn't like the steps I took,
please disregard.
Thanks,
3rdshiftcoder
stahta01:
[quote author=3rdshiftcoder link=topic=11558.msg78717#msg78717
Under Linker (search directories):
$(#wx)\lib\gcc_dll
I received a message it couldn't run my application and was looking for wxmsw28u_gcc.dll.
What I did to fix that was made an extra copy of wxmsw28u_gcc_cb.dll (one of the files from the
nightly build download) and just rename it to wxmsw28u_gcc.dll.
[/quote]
The above is very WRONG; you are using wxPack to compile wxWidgets code.
You NEED to use the wxPack DLL; not the Code::Blocks DLL.
The folder $(#wx)\lib\gcc_dll should have the needed DLL it it; please copy it to a folder in the path or to the folder holding the exe of your wxWidgets project.
Using the wrong DLL will likely result in weird and hard to solve problem in run-time.
Tim S.
3rdshiftcoder:
Hi stahta01-
Oops! Sorry.
It was a very easy fix per your instructions to correct. I deleted the extra dll and put $(#wx)\lib\gcc_dll in the system path (edited my environment variable in win xp).
Thanks very much for catching that!
3rdshiftcoder
Navigation
[0] Message Index
[*] Previous page
Go to full version