OSX Mavericks + wxWidgets 3.0 + CodeLite 5.3 install issue

CodeLite installation/troubleshooting forum
mhackney
CodeLite Curious
Posts: 6
Joined: Thu Jan 09, 2014 9:46 pm
Genuine User: Yes
IDE Question: C++
Contact:

OSX Mavericks + wxWidgets 3.0 + CodeLite 5.3 install issue

Post by mhackney »

Starting clean (no Xcode or other dev tools) I installed the latest Xcode and tools. I then downloaded and built (from the shell) wxAll (all the wxWindows platform support). Then I grabbed the CodeLite 5.3 installer for OSX (prebuilt binary).

I've verified that the libraries were built and installed in /usr/local/lib/wx and the headers are in /usr/local/include

I then ran CodeLite and created a new wxProject using the wizard. When attempting to build, I get the following errors. I do have this in my Tag Options:Search Path:

Code: Select all

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/c++/v1
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/5.0/include
/Library/Frameworks
/System/Library/Frameworks
/usr/include
/usr/local/include
/usr/local/include/wx-3.0

Code: Select all

/bin/sh -c 'make -j 4 -e -f  Makefile'
----------Building project:[ Squibbler - Debug ]----------
make[1]: wx-config: Command not found
make[1]: wx-config: Command not found
make[1]: wx-config: Command not found
g++  -c  "/Users/XYZ/Desktop/Development/Projects/Squibbler/squibbler_app.cpp" -g -Wall -O0   -D__WX__  -o ./Debug/squibbler_app.o -I.
g++  -c  "/Users/XYZ/Desktop/Development/Projects/Squibbler/squibbler_frame.cpp" -g -Wall -O0   -D__WX__  -o ./Debug/squibbler_frame.o -I.
In file included from In file included from /Users/XYZ/Desktop/Development/Projects/Squibbler/squibbler_frame.cpp:1:
./squibbler_frame.h:4:10: fatal error: 'wx/frame.h' file not found
/Users/XYZ/Desktop/Development/Projects/Squibbler/squibbler_app.cpp:1:
./squibbler_app.h:4:10: fatal error: 'wx/app.h' file not found
#include "wx/frame.h"
         ^
#include "wx/app.h"
         ^
1 error generated.
1 error generated.
make[1]: *** [Debug/squibbler_frame.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [Debug/squibbler_app.o] Error 1
make: *** [All] Error 2
2 errors, 1 warnings
I'm new to wxWidgets and CodeLite so hopefully I'm just being bone headed!
cheers,
Michael
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: OSX Mavericks + wxWidgets 3.0 + CodeLite 5.3 install iss

Post by eranif »

mhackney wrote:make[1]: wx-config: Command not found
make[1]: wx-config: Command not found
make[1]: wx-config: Command not found
It looks like wx-config could not be located on your system ( at least by the makefile )

Type from the command line

Code: Select all

which wx-config
If it could not be found, then something is broken with your wxWidgets installation.

Try rebuilding your wxWidgets, following the steps I described in codelite's wiki:

http://codelite.org/Developers/BuildingCodeLiteOnAMac
Especially step 2 which explains how to properly build wxWidgets for OSX

Eran
Make sure you have read the HOW TO POST thread
mhackney
CodeLite Curious
Posts: 6
Joined: Thu Jan 09, 2014 9:46 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: OSX Mavericks + wxWidgets 3.0 + CodeLite 5.3 install iss

Post by mhackney »

Thanks, which wx-config gives /usr/local/bin/wx-config so it is installed.

I did build and install using the instructions on that wiki page. So, before rebuilding, is there a path to wx-config that is missing? If so, where do I set that?

cheers and thanks!
Michael
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: OSX Mavericks + wxWidgets 3.0 + CodeLite 5.3 install iss

Post by eranif »

In this case, try this:

1) from codelite's main menu: Settings -> Environment variables
and add this line:

Code: Select all

PATH=/usr/local/bin:$PATH
OR

2) Try running codelite from the command line:
Open Terminal and type:

Code: Select all

open /path/to/codelite.app
Eran
Make sure you have read the HOW TO POST thread
mhackney
CodeLite Curious
Posts: 6
Joined: Thu Jan 09, 2014 9:46 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: OSX Mavericks + wxWidgets 3.0 + CodeLite 5.3 install iss

Post by mhackney »

Some progress, I added the PATH to Environment variables. Now I am just getting the include file not found errors.

BTW, I also did execute cod elite from terminal and get exactly the same result.

Code: Select all

/bin/sh -c 'make -j 4 -e -f  Makefile'
----------Building project:[ Squibbler - Release ]----------
g++  -c  "/Users/XYZ/Desktop/Development/Projects/Squibbler/squibbler_app.cpp" -O2 -Wall  -I/usr/local/include/wx-3.0/lib/wx/include/osx_cocoa-unicode-3.0 -I/usr/local/include/wx-3.0/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__  -D__WX__  -o ./Release/squibbler_app.o -I.
g++  -c  "/Users/XYZ/Desktop/Development/Projects/Squibbler/squibbler_frame.cpp" -O2 -Wall  -I/usr/local/include/wx-3.0/lib/wx/include/osx_cocoa-unicode-3.0 -I/usr/local/include/wx-3.0/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__  -D__WX__  -o ./Release/squibbler_frame.o -I.
In file included from /Users/XYZ/Desktop/Development/Projects/Squibbler/squibbler_frame.cpp:1:
./squibbler_frame.h:4:10: fatal error: 'wx/frame.h' file not found
#include "wx/frame.h"
         ^
1 error generated.
In file included from /Users/XYZ/Desktop/Development/Projects/Squibbler/squibbler_app.cpp:1:
./squibbler_app.h:4:10: fatal error: 'wx/app.h' file not found
#include "wx/app.h"
         ^
1 error generated.
make[1]: *** [Release/squibbler_frame.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [Release/squibbler_app.o] Error 1
make: *** [All] Error 2
2 errors, 2 warnings
So, the include -I flags are all wrong. Here they are extracted from the build output listing:

Code: Select all

-I/usr/local/include/wx-3.0/lib/wx/include/osx_cocoa-unicode-3.0 
-I/usr/local/include/wx-3.0/include/wx-3.0 
The path to the first is actually /usr/local/lib/wx/include/osx_cocoa-unicode-3.0 and the second is /usr/local/include/wx-3.0 [/code]on my system.

My Search Paths is configured as:

Code: Select all

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/c++/v1
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/5.0/include
/Library/Frameworks
/System/Library/Frameworks
/usr/include
/usr/local/include
/usr/local/include/wx-3.0

I'm not sure how to fix this path issue.

cheers,
Michael
mhackney
CodeLite Curious
Posts: 6
Joined: Thu Jan 09, 2014 9:46 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: OSX Mavericks + wxWidgets 3.0 + CodeLite 5.3 install iss

Post by mhackney »

Ok, I have things working. Not sure why but when I checked the workspace I noticed its path was to my trash! I deleted the workspace and project and rebuilt them from scratch. Now I am able to compile and link a simple wxApp.

Thanks for your help, greatly appreciated!

cheers,
Michael
Post Reply