User forums > Using Code::Blocks
wxWidgets Setup ... Wizard no longer working.
MortenMacFly:
Ok - so I extracted the project and inspected the project file:
It is mainly ok - the source files are there using relative path names - that is ok.
But: There is no wxWidgets PATH setup at all - the compiler/linker path options are empty. So this project cannot compile as you posted here...?!
With regards, Morten.
JSThePatriot:
How else am I to go about setting this up? I have it set in the global variables. I have it set in the compiler and linker settings. Do I have to set it for each individual project? That is insane. I should be able to say "Hey, wxWidgets is here. Use it when I specify in a project", just like I am doing with MinGW. I dont understand.
Edit01: I just tried setting up the proper variables in the project build options, and that didnt work either. Exact same error. =/
Edit02: I just tried completely removing my Code::Blocks in the off chance that I had set some bad setting. I removed my project, and recreated it from scratch as well. I am still having the exact same problems. The error is slightly different I do believe. How can I look at the project file and see whether or not the PATH is setup? In Code::Blocks it is showing up that I have it all setup in the global compiler settings, and also in the project options. I don't have it set on the target options because I specified to use only project options.
Edit03: I just opened the project file in SciTE, to see how things are setup there. Below is the copied text that shows I have the directories setup.
--- Quote --- <Compiler>
<Add option="-pipe" />
<Add option="-mthreads" />
<Add option="-D__GNUWIN32__" />
<Add option="-D__WXMSW__" />
<Add option="-DWXUSINGDLL" />
<Add option="-DwxUSE_UNICODE" />
<Add option="-Winvalid-pch" />
<Add option="-include wx_pch.h" />
<Add option="-DUSE_PCH" />
<Add option="-Wall" />
<Add directory="$(#WX)\include" />
<Add directory="$(#WX)\lib\gcc_dll\mswu" />
<Add directory="$(#WX)\contrib\include" />
</Compiler>
<Linker>
<Add library="libwxmsw26u.a" />
<Add library="comctl32" />
<Add library="gdi32" />
<Add library="ole32" />
<Add library="oleaut32" />
<Add library="uuid" />
<Add directory="$(#WX)\lib\gcc_dll" />
</Linker>
--- End quote ---
I really hope this helps some how. I would really like to get to learning this instead of setting it up! =/
JS
JSThePatriot:
Can anyone help me? I cannot seem to figure this out. It is quite annoying as I have had it working before haha.
If anyone has any more ideas, or any fresh ways to try what I believe I have already done please post it. I am at my wits end with making wxWidgets work with Code::Blocks. I am half tempted to go back to Dev's C++ to learn the framework of wxWidgets. I have a couple of projects that I would like to complete, but I cant just read about it. I have to create small projects to learn the framework.
Enough ranting. Thanks everyone for their support so far and in the future.
JS
MortenMacFly:
Ok - let's get back to the basics... some questions:
1.) Did you install (actually it's an extract only) wxWidgets 2.6.x?
2.) Did you compile wxWidgets to get the required libraries?
3.) Do you use a recent nightly?
4.) (If answer to 3. is "yes") - did you setup the global variable "wx" correctly - to what?
5.) Did you then just use the wizard to create a wxWidgets application (which wizard)?
With regards, Morten.
JSThePatriot:
--- Quote from: MortenMacFly on November 25, 2006, 04:25:40 pm ---1.) Did you install (actually it's an extract only) wxWidgets 2.6.x? Yes
2.) Did you compile wxWidgets to get the required libraries? Yes, I had wxWidgets working before one of my nightly build upgrades.
3.) Do you use a recent nightly? Yes, I just downloaded the NB for the 24th.
4.) (If answer to 3. is "yes") - did you setup the global variable "wx" correctly - to what? Yes, I set variable "wx" to "C:\wx"
5.) Did you then just use the wizard to create a wxWidgets application (which wizard)? I used the wizard in the bottom right corner which is for creating a wxWidgets project.
--- End quote ---
I greatly appreciate your response and willingness to help.
What I have found to be odd is that I have tried deleting the entire Code::Blocks directory that i am using, so as to reset all of my settings, and it seems that somehow it hasn't reset the settings. How do I completely get rid of all Code::Blocks settings on my computer. I think that maybe reseting everything may be the easiest way, even wxWidgets which took roughly 30 mins to compile.
Let me know how to reset Code::Blocks settings, and I will see if I can retry all the above steps to see if there is a setting off somewhere.
Thanks,
JS
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version