Jump to content
  • Advertisement
Sign in to follow this  
PGSCreativeDirector

WxWidgets and Code::Blocks Not Working ?

This topic is 2568 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello im quite a novice at C++ i know the differences between Struct and Arrays :D

but like for god sake i am about to spray Forknoid Sauce all over my computer Take a grand piano drop it on the top of my cpu box and THEN! :D smash my fingers into a wall breaking every corner of the flesh

BECAUSE! :D

Wxwidgets 2.8 doesnt seem to work with my codeblocks 10.5 :{

the only things i know how to do in Code::Blocks is link up libarys like opengl but i dont kno anything else and i really need a full proof tutorial to build my gui to use with opengl,SDL,Openal

and i hope its in meaningfull english not some crap tucked away :P

my error i keep getting is this

C:\wxWidgets-2.8.12\include\wx\platform.h|196|error: wx/setup.h: No such file or directory|

and also alot of define errors in red text like


C:\wxWidgets-2.8.12\include\wx\chkconf.h|119|error: #error "wxUSE_FILESYSTEM must be defined."|

if you need anything else please ask but please speak in english :D not nerd :P

i also had a thought can you tell me how you figured it out if so :)

Share this post


Link to post
Share on other sites
Advertisement
[font=arial, verdana, tahoma, sans-serif][size=2]I don't use Code::Blocks, but this usually happens when you haven't added the WxWidgets "wx/../" folder to the include directories of your project. In Visual Studio this is known as "Additional Include Directories".

By "wx/../" I mean one folder above the "wx" folder where all the .h files are[/font]

Share this post


Link to post
Share on other sites

[font="arial, verdana, tahoma, sans-serif"]I don't use Code::Blocks, but this usually happens when you haven't added the WxWidgets "wx/../" folder to the include directories of your project. In Visual Studio this is known as "Additional Include Directories".

By "wx/../" I mean one folder above the "wx" folder where all the .h files are[/font]


WOOT um how would i put those files into the include directory of a project? :D by just going to my project folder of Code::Blocks and Dropping all WX.h files into it? :D and that would defently work?? :)

Share this post


Link to post
Share on other sites
No!! :)
I mean there's a way to make Code::Blocks aware of the existence of those .h files by making a "link" to the wx folder. I'm downloading Code::Blocks now, I should have more info soon.

Share this post


Link to post
Share on other sites
Ok, if you right-click on your project icon in the "Workspace" tree view, then go to "Build Options"... then click on the "Search directories" tab...

if you add your WxWidgets' "wx" folder (or one above it in the hierarchy i think)... then it should work. Haven't tried it myself, but I think this sounds about right.

EDIT: any particular reason for not using Visual C++ Express? IMO working with these different options is more straight-forward in Visual C++ Express (then again, I've only used Code::Blocks for about 5 min.)

Share this post


Link to post
Share on other sites
i have used alot of IDE's and Devc++ was my first choice but then i found code::blocks and love it Visual Studio C++ is brillant tho i must say but the way they link up libaries is annoying for me imo

still doesn't work :( god sake i just want to create a gui!!!

edit: tried it on the main project search directories and added the path C:/wxwidgets 2.8 and still didnt work :( why o why must this Lib torment mee
too be honest if you can tell me how to get all my libaries working with visual studio c++ ill gladly switch forever infact :D

Share this post


Link to post
Share on other sites
Project -> Build Options
1. On the left, click your project name (above the Release, Debug options)
2. Click the search directories tab.
3. On the Compiler tab, click add and browse to your wxWidgets 'include' directory.
4. On the linker tab, click add and browse to your wxWidgets 'lib' directory.
5. Click the 'Linker Settings' tab.
6. Under 'Link Libraries', click add and browse to the wx libraries you wish to link to.
7. Click OK.

Share this post


Link to post
Share on other sites
What's annoying about the way Visual C++ links up libraries?

EDIT: did you try and add this folder to the search path? C:\wxWidgets-2.8.12\include (your own, but with \include at the end)

Share this post


Link to post
Share on other sites
Okay for some reason when i do those things it doesnt work? that dont make sense why it keeps saying this all the time

C:\wxWidgets-2.8.12\include\wx\platform.h|196|error: wx/setup.h: No such file or directory|


yet iv specifed the location ? maybe a bad install of wxwidgets?

edit ill show some screenshots :)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!