Page 1 of 2

The right wx build in order to build CodeLite on MAC

Posted: Wed Jan 28, 2009 2:48 am
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?

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

Posted: Wed Jan 28, 2009 3:07 am
by sdolim
What does "wx-config --list" show?

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

Posted: Wed Jan 28, 2009 3:29 am
by Roey

Code: Select all

    Default config is mac-unicode-debug-2.8

  Default config will be used for output

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

Posted: Wed Jan 28, 2009 4:02 am
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

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

Posted: Wed Jan 28, 2009 4:19 am
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.

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

Posted: Wed Jan 28, 2009 4:20 am
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

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

Posted: Wed Jan 28, 2009 10:33 am
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

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

Posted: Fri Jan 30, 2009 3:31 am
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...

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

Posted: Fri Jan 30, 2009 2:20 pm
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

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

Posted: Fri Jan 30, 2009 11:49 pm
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