Author Topic: [SOLVED] Newbie problem with wxWidgets  (Read 3595 times)

Offline john_erlandsson

  • Single posting newcomer
  • *
  • Posts: 6
[SOLVED] Newbie problem with wxWidgets
« on: August 17, 2009, 11:49:51 pm »
Hi!

I recently decided to learn GUI programming with codeblocks and wxWidgets. But encountered some problems.

Running code::blocks 8.02 under Fedora 11.

I tried starting a new project with the following settings:

Version: wxWidgets 2.8.x
GUI Builder: wxSmith
Application type: Frame based
Compiler: GNU GCC

After creating the project in the wizard i try to compile it before putting in any objects or code.
This gives me the message: ./wx_pch.h|14|error: wx/wxprec.h: No such file or directory|

The compiler cant find the include file <wx/wxprec.h>. Or any other include files that are automaticly put in the code.

I read in a forum that i need to set the path to wxWidgets in the variable wx, under GLOBAL VARIABLES.

The problem is that i cant find the correct path. I searched for some of the files that the compiler was looking for, but couldn't find them.

Do i need to install wxWidgets seperatley?
In that case witch package?

Is GNU GCC the compiler to use if i whant to create GUI applications that run under both windows and linux?

i searched for wxWidgets in yum and found that wxBase.i586 is installed.

Appreciate any help.

//John
« Last Edit: August 18, 2009, 10:45:11 pm by john_erlandsson »

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Newbie problem with wxWidgets
« Reply #1 on: August 18, 2009, 12:12:30 am »
You don't need to set the wx-variable on linux.

But you need wx-config in your path.

I don't know the fedora package-structure, but you will also need a package (mostlikely) called something like wxgtk and the appropriate development packages (wxgtk-devel ?) .

Offline john_erlandsson

  • Single posting newcomer
  • *
  • Posts: 6
Re: Newbie problem with wxWidgets
« Reply #2 on: August 18, 2009, 02:05:03 am »
That did it... thanks