The right wx build in order to build CodeLite on MAC

Discussion about CodeLite development process and patches
Roey
CodeLite Enthusiast
Posts: 43
Joined: Fri Aug 22, 2008 1:32 am
Contact:

The right wx build in order to build CodeLite on MAC

Post by Roey »

Hi,

I've got the CodeLite source code from SVN.

I've built the wx library using:
configure --enable-unicode

Opened LiteEditor.workspace
Selected Unix_Mac_Custom_Makefile
For the LiteEditor Project: Custom Built Targets > Configure
Then Build Project

I get:

Code: Select all

make 
----------Building project:[ LiteEditor - Unix ]----------
./le_makerevision.sh
Generating svninfo file...
  Warning: No config found to match: /usr/bin/wx-config --cxxflags --unicode=yes --debug=no
g++   -O3 -DREGEXP_UNICODE   -Wall  -fno-strict-aliasing -DASTYLE_LIB -DYY_NEVER_INTERACTIVE=1 -DGTK -DSCI_LEXER -DLINK_LEXERS -D__WX__  -D__APPLE__ -DMACOSX  -ILiteEditor  -I. -I./sdk/wxsqlite3/include -I./sdk/wxsqlite3/sqlite3/include -I./sdk/wxscintilla/include -I./sdk/wxscintilla/src/scintilla/include -I./sdk/wxpropgrid/include	 -I./sdk/wxscintilla/src/scintilla/src -I./Interfaces -I./Debugger -I./Plugin -I./CodeLite  -MTRelease_gcc_unicode/archive.o -MFRelease_gcc_unicode/archive.o.d  -MM CodeLite/archive.cpp
           in /usr/lib/wx/config
  If you require this configuration, please install the desired
  library build.  If this is part of an automated configuration
  test and no other errors occur, you may safely ignore it.
  You may use wx-config --list to see all configs available in
  the default prefix.
In file included from CodeLite/archive.cpp:25:
CodeLite/archive.h:28:23: error: wx/string.h: No such file or directory
CodeLite/archive.h:29:24: error: wx/hashmap.h: No such file or directory
CodeLite/archive.h:30:23: error: wx/arrstr.h: No such file or directory
CodeLite/archive.h:31:25: error: wx/filename.h: No such file or directory
CodeLite/archive.h:32:23: error: wx/gdicmn.h: No such file or directory
CodeLite/archive.cpp:26:23: error: wx/colour.h: No such file or directory
CodeLite/archive.cpp:27:24: error: wx/xml/xml.h: No such file or directory
make: *** [Release_gcc_unicode/archive.o.d] Error 1
I believe that the warning on wxconfig means that I haven't got my wx library built correctly.

Any ideas?
sdolim
CodeLite Veteran
Posts: 69
Joined: Fri Oct 24, 2008 10:29 pm
Contact:

Re: The right wx build in order to build CodeLite on MAC

Post by sdolim »

What does "wx-config --list" show?
Roey
CodeLite Enthusiast
Posts: 43
Joined: Fri Aug 22, 2008 1:32 am
Contact:

Re: The right wx build in order to build CodeLite on MAC

Post by Roey »

Code: Select all

    Default config is mac-unicode-debug-2.8

  Default config will be used for output
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: The right wx build in order to build CodeLite on MAC

Post by eranif »

When u run ./configure with no parameters, it means 'generate makefile for release' however you only have wx with debug.

You will need to build wx in release mode:

Code: Select all

./configure --enable-unicode --disable-debug
Eran
Make sure you have read the HOW TO POST thread
Roey
CodeLite Enthusiast
Posts: 43
Joined: Fri Aug 22, 2008 1:32 am
Contact:

Re: The right wx build in order to build CodeLite on MAC

Post by Roey »

Thanks,

Did it, but still get:

Code: Select all

----------Building project:[ LiteEditor - Unix ]----------
./le_makerevision.sh
Generating svninfo file...
  Warning: No config found to match: /usr/bin/wx-config --cxxflags --unicode=yes --debug=no
g++   -O3 -DREGEXP_UNICODE   -Wall  -fno-strict-aliasing -DASTYLE_LIB -DYY_NEVER_INTERACTIVE=1 -DGTK -DSCI_LEXER -DLINK_LEXERS -D__WX__  -D__APPLE__ -DMACOSX  -ILiteEditor  -I. -I./sdk/wxsqlite3/include -I./sdk/wxsqlite3/sqlite3/include -I./sdk/wxscintilla/include -I./sdk/wxscintilla/src/scintilla/include -I./sdk/wxpropgrid/include	 -I./sdk/wxscintilla/src/scintilla/src -I./Interfaces -I./Debugger -I./Plugin -I./CodeLite  -MTRelease_gcc_unicode/archive.o -MFRelease_gcc_unicode/archive.o.d  -MM CodeLite/archive.cpp
           in /usr/lib/wx/config
  If you require this configuration, please install the desired
  library build.  If this is part of an automated configuration
  test and no other errors occur, you may safely ignore it.
  You may use wx-config --list to see all configs available in
  the default prefix.
Roey
CodeLite Enthusiast
Posts: 43
Joined: Fri Aug 22, 2008 1:32 am
Contact:

Re: The right wx build in order to build CodeLite on MAC

Post by Roey »

wx-config --list Shows the same thing:

Code: Select all

Default config is mac-unicode-debug-2.8

Default config will be used for output
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: The right wx build in order to build CodeLite on MAC

Post by eranif »

Hi Roey,

this is the command that codelite tries to execute during the build:

Code: Select all

/usr/bin/wx-config --cxxflags --unicode=yes --debug=no
try to run it from the command line.

If you have built wx with no debug and in unicode you should get a valid result.

I can only guess that you are not running the correct wx-config tool. Perhaps you have another wx-config under /usr/local/bin ?

Eran
Make sure you have read the HOW TO POST thread
Roey
CodeLite Enthusiast
Posts: 43
Joined: Fri Aug 22, 2008 1:32 am
Contact:

Re: The right wx build in order to build CodeLite on MAC

Post by Roey »

Ok, back to this forum.

As I mentioned on this forum, sudo make install solved the wx-config issue with more than one builds. Now with wx-config --list I get:

Code: Select all

Default config is mac-unicode-release-2.8

Default config will be used for output

Alternate matches:
  mac-unicode-debug-static-2.8
Great.

But now CodeLite cannot find wx-config (and so I can't compile anything). You said above that CodeLite is looking for wx-config in /usr/bin, but mine is now under /usr/local/bin...
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: The right wx build in order to build CodeLite on MAC

Post by eranif »

Roey wrote:But now CodeLite cannot find wx-config (and so I can't compile anything). You said above that CodeLite is looking for wx-config in /usr/bin, but mine is now under /usr/local/bin...
So you either
1. add '/usr/loca/bin' to your PATH variable or
2. modify the project settings (linker & compiler) the line $(shell wx-config ...) to $(shell /usr/loca/bin/wx-config ...) or
3. rename the old /bin/wx-config OR /usr/bin/wx-config to .orig and make a soft link:

Code: Select all

ln -s /usr/local/bin/wx-config /bin/wx-config


Eran
Make sure you have read the HOW TO POST thread
sdolim
CodeLite Veteran
Posts: 69
Joined: Fri Oct 24, 2008 10:29 pm
Contact:

Re: The right wx build in order to build CodeLite on MAC

Post by sdolim »

Another option:

Configure wxwidgets to install to /usr instead of /usr/local:

Code: Select all

./configure --prefix=/usr --enable-unicode --disable-debug
Scott
Post Reply