New User - codelite and wxcrafter question

General questions regarding the usage of CodeLite
gtsullivan
CodeLite Curious
Posts: 1
Joined: Mon Jun 23, 2014 1:28 am
Genuine User: Yes
IDE Question: c++
Contact:

New User - codelite and wxcrafter question

Post by gtsullivan »

Rookie codelite user here.

Sequence described as follows:

Platform is MacPro
OS X 10.8.5
Xcode 5.1.1
Xcode Command Line tools installed
Homebrew installed
(ran) brew doctor
brew install cmake
-----
Downloaded wxWidgets-3.0.1 source
created build-release directory and cd to it
used suggested build commands:
../configure --enable-shared --enable-monolithic --with-osx_cocoa CXX='clang++ -std=c++11 -stdlib=libc++' CC=clang --with-macosx-version-min=10.8 --disable-debug
make -j4
sudo make install

tried many samples/tests from command line make. All appears fine.
-----
Downloaded codelite for OS X
codelite-6.0.app.zip
Extracted codelite.app and placed in standard Applications Directory
----
Followed WxCrafterHelloWorld tutorial
http://codelite.org/LiteEditor/WxCrafterHelloWorld
Compiler set to "clang" (also tried others, errors noted below appear the same)
----
On build, first errors

make[1]: wx-config: Command not found
(multiple errors)

My attempted fix:
Change project settings where wx-config command appears from

$(shell wx-config . . .
$(shell /usr/local/bin/wx-config . . .

for Compiler, Linker, Resources (Resource Compiler)

appears to fix the issue.
----
Now I have the following issue as noted in build log below. My searches in blogs, wikis, faqs, etc. do not seem to explain what I am doing wrong -- but I am a rookie :-)

----
Any help/tips would be appreciated.
Best Regards,
George

Code: Select all

/bin/sh -c 'make -j24 -e -f  Makefile'
----------Building project:[ wxcTest - Debug ]----------
/usr/bin/clang++   -c  "/Users/gtsullivan/Documents/WXProjects/wxcTest/main.cpp" -g -O0 -Wall -I/usr/local/lib/wx/include/osx_cocoa-unicode-3.0 -I/usr/local/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DwxDEBUG_LEVEL=0 -DWXUSINGDLL -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__   -o ./Debug/main.cpp.o -I. -I.
/usr/bin/clang++   -c  "/Users/gtsullivan/Documents/WXProjects/wxcTest/wxcrafter.cpp" -g -O0 -Wall -I/usr/local/lib/wx/include/osx_cocoa-unicode-3.0 -I/usr/local/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DwxDEBUG_LEVEL=0 -DWXUSINGDLL -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__   -o ./Debug/wxcrafter.cpp.o -I. -I.
/usr/bin/clang++   -c  "/Users/gtsullivan/Documents/WXProjects/wxcTest/wxcrafter_bitmaps.cpp" -g -O0 -Wall -I/usr/local/lib/wx/include/osx_cocoa-unicode-3.0 -I/usr/local/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DwxDEBUG_LEVEL=0 -DWXUSINGDLL -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__   -o ./Debug/wxcrafter_bitmaps.cpp.o -I. -I.
/usr/bin/clang++   -c  "/Users/gtsullivan/Documents/WXProjects/wxcTest/MainDialog.cpp" -g -O0 -Wall -I/usr/local/lib/wx/include/osx_cocoa-unicode-3.0 -I/usr/local/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DwxDEBUG_LEVEL=0 -DWXUSINGDLL -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__   -o ./Debug/MainDialog.cpp.o -I. -I.
In file included from /Users/gtsullivan/Documents/WXProjects/wxcTest/MainDialog.cpp:1:
In file included from /usr/local/include/wx-3.0/wx/msgdlg.h:18:
In file included from /usr/local/include/wx-3.0/wx/dialog.h:14:
In file included from /usr/local/include/wx-3.0/wx/toplevel.h:20:
In file included from /usr/local/include/wx-3.0/wx/nonownedwnd.h:14:
In file included from /usr/local/include/wx-3.0/wx/window.h:18:
In file included from /usr/local/include/wx-3.0/wx/event.h:16:
In file included from /usr/local/include/wx-3.0/wx/object.h:19:
In file included from /usr/local/include/wx-3.0/wx/memory.h:15:
In file included from /usr/local/include/wx-3.0/wx/string.h:46:
/usr/local/include/wx-3.0/wx/strvararg.h:25:14: fatal error: 'type_traits' file not found
    #include <type_traits>
             ^
In file included from /Users/gtsullivan/Documents/WXProjects/wxcTest/wxcrafter.cpp:7:
In file included from ./wxcrafter.h:10:
In file included from /usr/local/include/wx-3.0/wx/settings.h:14:
In file included from /usr/local/include/wx-3.0/wx/colour.h:15:
In file included from /usr/local/include/wx-3.0/wx/gdiobj.h:14:
In file included from /usr/local/include/wx-3.0/wx/object.h:19:
In file included from /usr/local/include/wx-3.0/wx/memory.h:15:
In file included from /usr/local/include/wx-3.0/wx/string.h:46:
/usr/local/include/wx-3.0/wx/strvararg.h:25:14: fatal error: 'type_traits' file not found
    #include <type_traits>
             ^
In file included from /Users/gtsullivan/Documents/WXProjects/wxcTest/wxcrafter_bitmaps.cpp:11:
In file included from /usr/local/include/wx-3.0/wx/filesys.h:24:
In file included from /usr/local/include/wx-3.0/wx/stream.h:19:
In file included from /usr/local/include/wx-3.0/wx/object.h:19:
In file included from /usr/local/include/wx-3.0/wx/memory.h:15:
In file included from /usr/local/include/wx-3.0/wx/string.h:46:
/usr/local/include/wx-3.0/wx/strvararg.h:25:14: fatal error: 'type_traits' file not found
    #include <type_traits>
             ^
In file included from /Users/gtsullivan/Documents/WXProjects/wxcTest/main.cpp:1:
In file included from /usr/local/include/wx-3.0/wx/app.h:19:
In file included from /usr/local/include/wx-3.0/wx/event.h:16:
In file included from /usr/local/include/wx-3.0/wx/object.h:19:
In file included from /usr/local/include/wx-3.0/wx/memory.h:15:
In file included from /usr/local/include/wx-3.0/wx/string.h:46:
/usr/local/include/wx-3.0/wx/strvararg.h:25:14: fatal error: 'type_traits' file not found
    #include <type_traits>
             ^
1 error generated.
make[1]: *** [Debug/wxcrafter_bitmaps.cpp.o] Error 1
make[1]: *** Waiting for unfinished jobs....
1 error generated.
make[1]: *** [Debug/wxcrafter.cpp.o] Error 1
1 error generated.
make[1]: *** [Debug/MainDialog.cpp.o] Error 1
1 error generated.
make[1]: *** [Debug/main.cpp.o] Error 1
make: *** [All] Error 2
5 errors, 30 warnings
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: New User - codelite and wxcrafter question

Post by eranif »

You need to use the same flags as you built wxWidgets.
these flags are missing:

Code: Select all

-std=c++11 -stdlib=libc++
Try adding them to the project settings (project settings->common settings->compiler->compiler options)

And rebuild your project

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