CodeLite9.1.3在OSX 10.11中编译失败

General questions regarding the usage of CodeLite
zhongcheng99
CodeLite Curious
Posts: 1
Joined: Fri Mar 04, 2016 8:47 pm
Genuine User: Yes
IDE Question: C++
Contact:

CodeLite9.1.3在OSX 10.11中编译失败

Post by zhongcheng99 »

我的mac book 从OS X 10.10升级到10.11后就无法编译wxWidgets了。
Cod elite版本9.1.3

Code: Select all

/bin/sh -c 'make -j 8 -e -f  Makefile'
----------正在构建项目:[ wxFB - Debug ]----------
make[1]: wx-config: Command not found
make[1]: wx-config: Command not found
make[1]: wx-config: Command not found
g++  -c  "/Volumes/MACINTOSH H/WinAndMac/CodeLiteWorkSpace/mac/Mac_C_Dev/wxWidgetCode/wxFB/gui.cpp" -g -O0 -Wall  -D__WX__  -o ./Debug/gui.cpp.o -I.
g++  -c  "/Volumes/MACINTOSH H/WinAndMac/CodeLiteWorkSpace/mac/Mac_C_Dev/wxWidgetCode/wxFB/main.cpp" -g -O0 -Wall  -D__WX__  -o ./Debug/main.cpp.o -I.
In file included from In file included from /Volumes/MACINTOSH H/WinAndMac/CodeLiteWorkSpace/mac/Mac_C_Dev/wxWidgetCode/wxFB/gui.cpp:/Volumes/MACINTOSH H/WinAndMac/CodeLiteWorkSpace/mac/Mac_C_Dev/wxWidgetCode/wxFB/main.cpp8::
14:
./gui.h:11:10: fatal error: ./main.h:18:10: fatal error: 'wx/wx.h' file not found
'wx/artprov.h' file not found
#include <wx/wx.h>#include <wx/artprov.h>

         ^
         ^
11 error error generated.
 generated.
make[1]: *** [Debug/main.cpp.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [Debug/gui.cpp.o] Error 1
make: *** [All] Error 2
====1 错误, 0 警告====
编译器的命令行变成
-g;-O0;$(shell wx-config —cxxflags —unicode=yes —debug=yes)

通过终端查看wxWidgets配置信息:

Code: Select all

applematoMacBook-Pro:~ apple$ wx-config --list

    Default config is osx_cocoa-unicode-static-3.0

  Default config will be used for output

  Alternate matches:
    osx_cocoa-unicode-3.0
    osx_cocoa-unicode-3.1
    osx_cocoa-unicode-static-2.9

applematoMacBook-Pro:~ apple$ wx-config --cxxflags
-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__ 
applematoMacBook-Pro:~ apple$ wx-config --libs
-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 -llzma 
applematoMacBook-Pro:~ apple$ echo $PATH 
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/JayWon/cocos2dx/android/android-ndk-r9d:/Users/JayWon/cocos2dx/android/adt-bundle-mac-x86_64-20140321/sdk:/usr/local/mysql/bin
不知是何原因?
请各位帮忙解决下,谢谢了!!
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: CodeLite9.1.3在OSX 10.11中编译失败

Post by eranif »

Yes... not really helpful.

Please post in English on this forum only.
Also, looks like (from what I managed to read) is that you have problems with wxWidgets

Try posting on https://forums.wxwidgets.org

Eran
Make sure you have read the HOW TO POST thread
Post Reply