wxWidgets tutorial needed !
Posted: Thu Jun 25, 2015 1:30 pm
1. Quick Start
http://codelite.org/LiteEditor/QuickStart
- This is beautifull, I do this without manual.
2. WxWidgets/WxWidgetsBuildParameters is empty
http://codelite.org/WxWidgets/WxWidgetsBuildParameters
What is my problem ?
I created new project GUI--> Executable (wxWidgets enabled)
Problem is I can not compile:
- find wx.h file
so this is /usr/include/wx-2.8/wx/wx.h or /usr/include/wx-3.0/wx/wx.h
so I tried fix problem, I changed line
to / on / into
and I have next errors
And what now ? I can not change /usr/include/wx-3.0/wx/wx.h , so I need maybe add path, but where ?
I tried like this (through trial and errors) :
I undo line to #include <wx/wx.h> and
Why /usr/include/wx-3.0/ and not /usr/include/wx-3.0/wx/ ?
( option in "Addditional include Paths" on screenshot above )
because part path ( /wx/ ) is in include ( #include <wx/wx.h> ), so will be /usr/include/wx-3.0/
And I have next errors ...
but I fund on google how compile from terminal:
And looks from terminal looks like working, how do this from codelite ?
I have the same problem on PCLinuxOS 64 bit Mate and Fedora 64bit Mate.
http://codelite.org/LiteEditor/QuickStart
- This is beautifull, I do this without manual.
2. WxWidgets/WxWidgetsBuildParameters is empty
http://codelite.org/WxWidgets/WxWidgetsBuildParameters
What is my problem ?
I created new project GUI--> Executable (wxWidgets enabled)
Problem is I can not compile:
What I tried ?/home/gg/codelite/test/main.cpp:1:19: fatal error: wx/wx.h: No such file or directory
#include <wx/wx.h>
- find wx.h file
Code: Select all
$ locate wx.h
/home/gg/src/rpm/BUILD/codelite-8.0/LiteEditor/stdwx.h
/usr/include/wx-2.8/wx/wx.h
/usr/include/wx-3.0/wx/wx.h
/usr/share/doc/lib64wxgtku2.8-devel/samples/help/doc/wx.htm
/usr/share/doc/lib64wxgtku3.0-devel/samples/help/doc/wx.htm
so I tried fix problem, I changed line
Code: Select all
#include <wx/wx.h>
Code: Select all
#include </usr/include/wx-3.0/wx/wx.h>
Code: Select all
/usr/include/wx-3.0/wx/wx.h:14:21: fatal error: wx/defs.h: No such file or directory
#include "wx/defs.h"
I tried like this (through trial and errors) :
I undo line to #include <wx/wx.h> and
Why /usr/include/wx-3.0/ and not /usr/include/wx-3.0/wx/ ?
( option in "Addditional include Paths" on screenshot above )
because part path ( /wx/ ) is in include ( #include <wx/wx.h> ), so will be /usr/include/wx-3.0/
And I have next errors ...
Code: Select all
/usr/include/wx-3.0/wx/chkconf.h:88:9: error: #error "wxUSE_ANY must be defined, please read comment near the top of this file."
# error "wxUSE_ANY must be defined, please read comment near the top of this file."
/usr/include/wx-3.0/wx/chkconf.h:96:9: error: #error "wxUSE_COMPILER_TLS must be defined, please read comment near the top of this file."
# error "wxUSE_COMPILER_TLS must be defined, please read comment near the top of this file."
.......
Code: Select all
$ g++ main.cpp `wx-config --libs` `wx-config --cxxflags` -o test1
$ ./test1
$
I have the same problem on PCLinuxOS 64 bit Mate and Fedora 64bit Mate.