Author Topic: WxWidgets 2.8 and Code::Blocks 10.5 not working?? Please help  (Read 15663 times)

Offline noobscratcher

  • Multiple posting newcomer
  • *
  • Posts: 14
okay dudes im a novice in c++ but linking up libraries has always been a issue for me so i need some guidance iv been trying for like 3weeks to get WxWidgets 2.8+ to get Working With CODE::BLOCKS and for some reason it keeps coming up with errors like


Wx setup.h not found and stuff in that area also can not define certain bits of wx functions most likely due to wx setup.h

if someone could explain to me in full english terms how to get it too work i would love you for the rest of my life and tell people about this forum forever too! :D and if for some reason you cant talk in english terms please explain the meaning of the terms in english :)


and please dont link me to Wxwiki please lol been trying that for ages none of the tutorials work from my experience

also if possible could you explain to me how you worked out how to do it if so :) because i want to be able to fix these problems myself :D
« Last Edit: July 12, 2011, 10:55:03 am by noobscratcher »
The Door Closes to all noobs
but noobs arnt always dumb :)

Offline pebri86

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: WxWidgets 2.8 and Code::Blocks 10.5 not working?? Please help
« Reply #1 on: July 12, 2011, 12:41:27 pm »
are u make the project with the wizard?

Offline noobscratcher

  • Multiple posting newcomer
  • *
  • Posts: 14
Re: WxWidgets 2.8 and Code::Blocks 10.5 not working?? Please help
« Reply #2 on: July 12, 2011, 12:50:34 pm »
Yes i have tried the wizard! :D but alas it fails to execute the program it makes
« Last Edit: July 12, 2011, 01:01:09 pm by noobscratcher »
The Door Closes to all noobs
but noobs arnt always dumb :)

Offline pebri86

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: WxWidgets 2.8 and Code::Blocks 10.5 not working?? Please help
« Reply #3 on: July 12, 2011, 01:03:51 pm »
I just make a new wxwidgets project with File > New > Projects and choosing wxWidgets Project
and insert this include file:
Quote
#include <wx/setup.h>

it worked perfectly for me..

can u post a segment of your code?

Offline noobscratcher

  • Multiple posting newcomer
  • *
  • Posts: 14
Re: WxWidgets 2.8 and Code::Blocks 10.5 not working?? Please help
« Reply #4 on: July 12, 2011, 01:08:18 pm »
iv just used the standard gui code that came with the wxwidget project to see if it works fine and it doesnt execute it just posts errors

and im shore you already can see the code by just making a simply wxprject in code::blocks



C:\wxWidgets-2.8.12\include\wx\platform.h|196|error: wx/setup.h: No such file or directory|
The Door Closes to all noobs
but noobs arnt always dumb :)

Offline pebri86

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: WxWidgets 2.8 and Code::Blocks 10.5 not working?? Please help
« Reply #5 on: July 12, 2011, 01:19:16 pm »
I see.. i'm not sure if this working for you

just copy setup.h from ..\wxWidgets-2.8.12\lib\gcc_lib\mswu\wx to ..\wxWidgets-2.8.12\include\wx

i've the same problem while compile inno setup plugin.. and that solution worked for me..

Offline noobscratcher

  • Multiple posting newcomer
  • *
  • Posts: 14
Re: WxWidgets 2.8 and Code::Blocks 10.5 not working?? Please help
« Reply #6 on: July 12, 2011, 01:25:13 pm »
i dont even have that file in my wxwidgets lib folder maybe i have a bad install could you link me to your own wxwidgets download if possible?
The Door Closes to all noobs
but noobs arnt always dumb :)

Offline pebri86

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: WxWidgets 2.8 and Code::Blocks 10.5 not working?? Please help
« Reply #7 on: July 12, 2011, 01:34:53 pm »
are you build your own wxWidgets library from source?

i just download from http://www.wxwindows.org/downloads/

if you use windows take wxMSW or wxGTK if u use linux

build from that source and you will have your complete library of wxWidgets..

Offline noobscratcher

  • Multiple posting newcomer
  • *
  • Posts: 14
Re: WxWidgets 2.8 and Code::Blocks 10.5 not working?? Please help
« Reply #8 on: July 12, 2011, 01:35:54 pm »
Okay illl try that if it dont work ill be back terminator style :P
The Door Closes to all noobs
but noobs arnt always dumb :)

Offline pebri86

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: WxWidgets 2.8 and Code::Blocks 10.5 not working?? Please help
« Reply #9 on: July 12, 2011, 01:39:06 pm »
Okay illl try that if it dont work ill be back terminator style :P

how these terminator style work? :lol:

good luck...

Offline noobscratcher

  • Multiple posting newcomer
  • *
  • Posts: 14
Re: WxWidgets 2.8 and Code::Blocks 10.5 not working?? Please help
« Reply #10 on: July 12, 2011, 01:42:42 pm »
Terminator :D haha the qoute 'ill be back!'  


and um i got a screenshot of my Lib folder prehaps this could help you in figuring this all out



this is the knew downloaded lib folder ! :D
The Door Closes to all noobs
but noobs arnt always dumb :)

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: WxWidgets 2.8 and Code::Blocks 10.5 not working?? Please help
« Reply #11 on: July 12, 2011, 01:51:47 pm »
This wiki-article http://wiki.codeblocks.org/index.php?title=WxWindowsQuickRef should help to compile wxWidgets from source.
wxWidgets does not provide precompiled binaries for windows !

Offline noobscratcher

  • Multiple posting newcomer
  • *
  • Posts: 14
Re: WxWidgets 2.8 and Code::Blocks 10.5 not working?? Please help
« Reply #12 on: July 12, 2011, 01:53:02 pm »
it would be awesome if someone could take that tutorial and explain it all in detail for me so i know exactly why i have to do all that really effort intensive stuff! :D plus half of that dont make sense when it should be as simple as adding a few files to folder??? i think that tutorial is abit pathetic in that way not bashing it :) just saying

the meaning of it should be explained! :)

please o' please let there be someone out there who can explain the tutorial in detail and in english terms this is so important for me
« Last Edit: July 12, 2011, 02:07:21 pm by noobscratcher »
The Door Closes to all noobs
but noobs arnt always dumb :)

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: WxWidgets 2.8 and Code::Blocks 10.5 not working?? Please help
« Reply #13 on: July 12, 2011, 02:11:05 pm »
[...]
why i have to do all that really effort intensive stuff!
[...]
in english terms
[...]
As I wrote:
wxWidgets does not provide precompiled binaries for windows !
And the whole page is in english or do you talk about another wiki-page (except for the chinese version) ?

Offline noobscratcher

  • Multiple posting newcomer
  • *
  • Posts: 14
Re: WxWidgets 2.8 and Code::Blocks 10.5 not working?? Please help
« Reply #14 on: July 12, 2011, 02:13:58 pm »
ahhh right so i have to compile manually? OMG! you gotta be kidding

right any easyer to understand tutorial about this which is full proof? :)

all becuase they dont explain what it all means

for me to learn things it helps if i have the meaning of everything in my head sorry to make it so difficult
« Last Edit: July 12, 2011, 02:43:55 pm by noobscratcher »
The Door Closes to all noobs
but noobs arnt always dumb :)

Offline pebri86

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: WxWidgets 2.8 and Code::Blocks 10.5 not working?? Please help
« Reply #15 on: July 12, 2011, 02:20:45 pm »
it's look like you should build your library first...

This wiki-article http://wiki.codeblocks.org/index.php?title=WxWindowsQuickRef should help to compile wxWidgets from source.
wxWidgets does not provide precompiled binaries for windows !

that wiki describes very clearly or you can see install.txt how to build under ..\wxWidgets-2.8.11\docs\msw

but there's a prebuilt wxwidgets for windows called wxPack, visit http://wxpack.sourceforge.net/


Offline noobscratcher

  • Multiple posting newcomer
  • *
  • Posts: 14
Re: WxWidgets 2.8 and Code::Blocks 10.5 not working?? Please help
« Reply #16 on: July 12, 2011, 02:44:25 pm »
ahh ha and what does this do? :)

okay ill have alook at code::blocks one
The Door Closes to all noobs
but noobs arnt always dumb :)

Offline noobscratcher

  • Multiple posting newcomer
  • *
  • Posts: 14
Re: WxWidgets 2.8 and Code::Blocks 10.5 not working?? Please help
« Reply #17 on: July 12, 2011, 03:06:59 pm »
and what a suprise the tutorial is outdated :P ahhhhh i love the good old problems of c++ :P

now what do i do i did everything it said and i get the same thing

i cant not build or debug which is annoying

and i dont have a global variable on my wxwidgets projects its all C:/ locations

these images below shows the idea of my configuration and also the problems im having

« Last Edit: July 12, 2011, 03:11:52 pm by noobscratcher »
The Door Closes to all noobs
but noobs arnt always dumb :)

Offline pebri86

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: WxWidgets 2.8 and Code::Blocks 10.5 not working?? Please help
« Reply #18 on: July 12, 2011, 03:12:10 pm »
u should build wxwidgets library with debug version too if you wish to build your code with debug configuration...:)

Offline noobscratcher

  • Multiple posting newcomer
  • *
  • Posts: 14
Re: WxWidgets 2.8 and Code::Blocks 10.5 not working?? Please help
« Reply #19 on: July 12, 2011, 03:13:26 pm »
kk :) but i cant build anything haha :P errors everywhere

3weeks this problem has been a persistent Fork and Cup!

this is horrific at the very least  :(((
« Last Edit: July 12, 2011, 03:15:40 pm by noobscratcher »
The Door Closes to all noobs
but noobs arnt always dumb :)

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: WxWidgets 2.8 and Code::Blocks 10.5 not working?? Please help
« Reply #20 on: July 12, 2011, 03:15:09 pm »
Why do you think it's outdated ?
Because you are not able to work with it ?
Everything necessary is described there !

The tutorial works fine with wx2.8 and actual compilers (at least the part about compiling wxWidgets, I never used wxPack and will never do so).

Offline noobscratcher

  • Multiple posting newcomer
  • *
  • Posts: 14
Re: WxWidgets 2.8 and Code::Blocks 10.5 not working?? Please help
« Reply #21 on: July 12, 2011, 03:17:27 pm »
please teach me in english terms not nerd language :) because i cant understand half of what it says thats the problem with tutorials for programming half of it is in nerd and people who just want to create a GUI have to learn aload of extra crap just because its a balancing act of speak normal or speak nerd cant someone just come out and speak it in clear normal english terms infact when i make my program im gunna teach others how to get through these ridicoulous tutorials step by step explaining each meaning too them with your guidance ill be one step there! :)

and i followed the tutorial with wxpack,etc and it didnt work for some reason it keeps bringing up the same errors as always

i would love it also if someone could tell me the structure of installing wxwidgets into Code::Blocks or any IDE that actually allows me to do it without learning extra stuff that i dont really think is nessecary because the developers at wxwidgets were being lazy imo but then you could say im being lazy by not understanding well no its more that i dont understand the meaning of it 'all' hence all :P
« Last Edit: July 12, 2011, 03:22:11 pm by noobscratcher »
The Door Closes to all noobs
but noobs arnt always dumb :)

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: WxWidgets 2.8 and Code::Blocks 10.5 not working?? Please help
« Reply #22 on: July 12, 2011, 03:22:57 pm »
kk :) but i cant build anything haha :P errors everywhere

3weeks this problem has been a persistent Fork and Cup!
please teach me in english terms not nerd language :) because i cant understand half of what it says thats the problem with tutorials for programming half of it is in nerd and people who just want to create a GUI have to learn aload of extra crap just because its a balancing act of speak normal or speak nerd cant someone just come out and speak it in clear normal english terms infact when i make my program im gunna teach others how to get through these ridicoulous tutorials step by step explaining each meaning too them with your guidance ill be one step there! :)

and i followed the tutorial with wxpack,etc and it didnt work for some reason it keeps bringing up the same errors as always

If you are not able to build wxWidgets with the tutorial in our wiki, you should do something different, and not try to be a programmer.
It's really quite simple.

I close this topic now, because it violates our forum rules.

It's not about using Code::Blocks or setup Code::Blocks !!

i would love it also if someone could tell me the structure of installing wxwidgets into Code::Blocks or any IDE that actually allows me to do it without learning extra stuff that i dont really think is nessecary because the developers at wxwidgets were being lazy imo

If you think the wxWidgets developers are too lazy, you should post it in their forum.

This is the wrong place for such questions.

Please respect our forum rules (point 3.):
Quote from: http://forums.codeblocks.org/index.php/topic,9996.0.html
3. Is your problem library, framework specific? There are appropriate forums for it, not the Code::Blocks forum.