User forums > Help

[SOLVED] Newbie problem with wxWidgets

(1/1)

john_erlandsson:
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

Jenna:
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 ?) .

john_erlandsson:
That did it... thanks

Navigation

[0] Message Index

Go to full version