I'm working on porting across an application to the MAC OSX (Mavericks). I have installed wxWidgets and the following two commands successfully return output from the terminal.
wx-config --libs
Gives the following output.
-L/usr/local/lib -framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System -framework OpenGL /usr/local/lib/libwx_osx_cocoau-3.0.a -framework WebKit -lwxregexu-3.0 -lwxtiff-3.0 -lwxjpeg-3.0 -lwxpng-3.0 -lz -lpthread -liconv
and
wx-config --cxxflags
Gives the following output.
-I/usr/local/lib/wx/include/osx_cocoa-unicode-static-3.0 -I/usr/local/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__
However, I tried to compile a basic wxWigets project using code blocks and netbeans. I followed numerous tutorials, but every time I build my project I get the following compile error.
"fatal error: 'wx/setup.h' file not found
I have added the following settings to the code blocks (and tried netbeans) IDE:
Compiler Settings -> Other options == wx-config --cxxflags
Linker Settings -> Other linker settings == wx-config --libs
but I just can't get my widgets project to build :(
can anyone please help
Thanks in advance
I see only two possible explanations:
make install
, ie there is no actual wx/setup.h
under the directory output by your wx-config --cxxflags
. wx-config --cxxflags
inside the backticks). In this case you need to copy and paste the actual output instead of using wx-config
directly.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.