User forums > Using Code::Blocks
Buidling from CVS - bootstrap error
doscott:
I have built wxWindows 2.6.1 using the method shown in http://wiki.codeblocks.org/index.php/Compiling_Code::Blocks_in_Linux_%28applies_to_all_distros%29#Getting_the_latest_sources_from_CVS
wx-config --prefix
gives: /opt/wx/2.6
wx-config --libs
gives:-L/opt/wx/2.6/lib -pthread -L/usr/X11R6/lib -lwx_gtk2u-2.6
which wx-config
gives:/opt/wx/2.6/bin/wx-config
When I run ./bootstrap I get
[dos@DOS1 codeblocks]$ ./bootstrap
aclocal:configure.in:61: warning: macro `AM_OPTIONS_WXCONFIG' not found in library
aclocal:configure.in:62: warning: macro `AM_PATH_WXCONFIG' not found in library
configure.in:61: error: possibly undefined macro: AM_OPTIONS_WXCONFIG
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.in:62: error: possibly undefined macro: AM_PATH_WXCONFIG
Any idea as to what I am doing wrong?
This is on Fedora Core 4.
doscott:
I have found the probem.
wxwin.m4 was located in
/usr/local/share/aclocal
I copied it to
/usr/share/aclocal
grv575:
OK, someone else had the same problem. I've updated the wiki to solve this (moving .m4 files from different wx versions isn't the best thing to do). I just wrote those steps yesterday so you're probably the first to test them :)
fiammy:
grv575: Could you provide any link to that update on the wiki? A search on '.m4' turns up nothing...
Thanks
doscott:
http://wiki.codeblocks.org/index.php/Compiling_Code::Blocks_in_Linux_%28applies_to_all_distros%29#wxWidgets_2.6.1_build
This sets up the configure script and it's dependencies. It only needs to be run once (after downloading the source from cvs). If you get errors like:
aclocal:configure.in:61: warning: macro `AM_OPTIONS_WXCONFIG' not found in library
Then aclocal is having trouble finding the wxWidgets .m4 files. You can do one of two things: To just get bootstrap to find the path this time do:
export ACLOCAL_FLAGS="--acdir=`wx-config --prefix`/share/aclocal"
To change the aclocal search path more permanently do:
echo `wx-config --prefix`/share/aclocal >> /usr/share/aclocal/dirlist
Then aclocal will also search somewhere like /opt/wx/2.6/share/aclocal
Navigation
[0] Message Index
[#] Next page
Go to full version