WxWIDGETS INSTALL:
Download the latest wxWidgets pack 2.9.x, not 2.8.x
cd to the root folder and create new build folder with
mkdir build-carbon
cd build-carbon
../configure --with-osx_cocoa --with-macosx-version-min=10.7
--with-macosx-sdk=/Applications/Xcode.app/Contents/Developer/Platforms/
MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk
sudo make
sudo make install
ECLIPSE BUILD SETTINGS:
create new empty project with MacOSX GCC compiler
create new source file named main.cpp
right click Project-Properties-C/C++Properties-Preprocessor Include Path- CDT
Add - File System Path - and type
/usr/local/include/wx-2.9/
OK - Apply - and the Settings Entries should look like this:
right click properties- C/C++ Build- Settings -
MacOSX C++ Linker - Miscelanneous - Linker flags: `/usr/local/bin/wx-config --libs`
GCC C++ Compiler - Miscelanneous- other flags add `/usr/local/bin/wx-config --cppflags`
still under Settings, select Build Steps, and under Pre-Build Command type
mkdir -p wxHello.app/Contents/MacOS
Under Build Artifact, type as Artifact Name the name of your project - wxHello
and under OutPut Prefix write wxHello.app/Contents/MacOS/
under Run- Debug Settings click on New-C++ Application
Unselect box for "Select configuration using C/C++ Application"
Select Build Configuration as Debug
and in C/C++ Application type Debug/wxHello.app/Contents/MacOS/wxHello
Click "Apply" and make sure you build the project before running it.








Niciun comentariu:
Trimiteți un comentariu