CodeLite9.1.3在OSX 10.11中编译wxWidgets失败

这是wxWidgets论坛的中文版本。在这里,您可以用您的母语汉语讨论上面任一子论坛所涉及的所有关于wxWidgets的话题。欢迎大家参与到对有价值的帖子的中英互译工作中来!
zhongcheng99
In need of some credit
In need of some credit
Posts: 4
Joined: Wed Nov 21, 2012 2:29 pm

CodeLite9.1.3在OSX 10.11中编译wxWidgets失败

Postby zhongcheng99 » Sun Mar 06, 2016 1:03 pm

我的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


不知是何原因?
请各位帮忙解决下,谢谢了!!

Return to “wxWidgets Development (Chinese)”

Who is online

Users browsing this forum: No registered users and 1 guest