hello everybody!
I want to learning the wxWidgets library [ http://www.wxwidgets.org/ ]
I have some problems with installing this library and compile a sample project
I install the following from /usr/ports :
1. wxgtk2-2.8.10_3
2. wxgtk2-common-2.8.10_3
3. wxgtk2-unicode-2.8.10_3
Sample project I get from http://wiki.wxwidgets.org/Hello_World
And I make a main.cpp:
When I launch the terminal and typing:
there is occur the following:
Please, help me to correct it and how to install correct the wxWidgets
I want to learning the wxWidgets library [ http://www.wxwidgets.org/ ]
I have some problems with installing this library and compile a sample project
I install the following from /usr/ports :
1. wxgtk2-2.8.10_3
2. wxgtk2-common-2.8.10_3
3. wxgtk2-unicode-2.8.10_3
Sample project I get from http://wiki.wxwidgets.org/Hello_World
And I make a main.cpp:
Code:
include "HelloWorldApp.h"
int main()
{
HelloWorldApp &app = ::wxGetApp();
return 0;
}
When I launch the terminal and typing:
Code:
g++ HelloWorldApp.cpp `wx-config --libs` `wx-config --cxxflags` -o HelloWorldApp
there is occur the following:
Code:
wx-config: not found
wx-config: not found
HelloWorldApp.cpp:2:23: error: wx/wxprec.h: No such file or directory
HelloWorldApp.cpp:5:20: error: wx/wx.h: No such file or directory
In file included from HelloWorldApp.cpp:8:
HelloWorldApp.h:7: error: expected class-name before '{' token
HelloWorldApp.cpp:10: error: expected constructor, destructor, or type conversion before 'IMPLEMENT_APP'
In file included from main.cpp:1:
HelloWorldApp.h:7: error: expected class-name before '{' token
main.cpp:3: error: expected constructor, destructor, or type conversion before 'int'
Please, help me to correct it and how to install correct the wxWidgets