I am attempting to follow the instructions at:
https://wiki.wxwidgets.org/Installing_and_configuring_under_Ubuntu
I already have wxGTK installed (see my final post in the thread: http://forums.codeblocks.org/index.php/topic,23067.new.html). So I skipped to the heading "Code::Blocks installation".
In the development directory I did this command sequence:
svn checkout http://svn.code.sf.net/p/codeblocks/code/trunk
cd trunk
./bootstrap
and got these errors:
...
libtoolize: copying file 'm4/lt~obsolete.m4'
configure.ac:141: warning: macro 'AM_OPTIONS_WXCONFIG' not found in library
configure.ac:142: warning: macro 'AM_PATH_WXCONFIG' not found in library
...
src/base/tinyxml/Makefile.am: installing './depcomp'
configure.ac:141: error: possibly undefined macro: AM_OPTIONS_WXCONFIG
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:142: error: possibly undefined macro: AM_PATH_WXCONFIG
What is to be done about these errors?
I attempted to ignore those errors and proceed with the commands:
But got the error:
make: *** No targets specified and no makefile found. Stop.
I got wx-config to work by just using the full path to it. But bootstrap is still not working:
aclocal: warning: couldn't open directory '/Users/(user)/Documents/wxWidgets-3.1.2/share/aclocal': No such file or directory
configure.ac:141: warning: macro 'AM_OPTIONS_WXCONFIG' not found in library
configure.ac:142: warning: macro 'AM_PATH_WXCONFIG' not found in library
configure.ac:26: installing './compile'
configure.ac:22: installing './missing'
src/base/tinyxml/Makefile.am: installing './depcomp'
configure.ac:141: error: possibly undefined macro: AM_OPTIONS_WXCONFIG
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:142: error: possibly undefined macro: AM_PATH_WXCONFIG
Well yes, there is no share/aclocal directory in the wxWidgets-3.1.2. Why isn't it there, didn't it compile or am I missing something?
export ACLOCAL_FLAGS="-I `wx-config --prefix`/share/aclocal"
Replace wx-config with the full path to it!
Edit: You need to find a website that teaches the basics of command line tasks on OSX.
Because, I am guessing, you do not know the basics!
Edit2: Post what .../wx-config --prefix gives; replace ... with path
Edit3: You do know that wxWidgets needs to be installed on your computer; just downloading the sourcecode does not install it!
Tim S.
So, does the clearly obvious code work?
export ACLOCAL_FLAGS="-I `./wx-config --prefix`/share/aclocal"
Edit: And, post a link to the wxWidgets directions you are following.
Edit2: And, why does the directions not say to install the wxWidgets?
And, why do you NOT use the wxforums to get help?
Tim S.
It is NOT installed.
I ran sudo make install and now ./bootstrap work, however when I run ./configure for Code::Blocks I get this error:
configure: error: Package requirements (hunspell) were not met:
No package 'hunspell' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables HUNSPELL_CFLAGS
and HUNSPELL_LIBS to avoid the need to call pkg-config.
By the way, wxwidget people say Code::Blocks is doing it the wrong way, you should not have to make install the library:
https://forums.wxwidgets.org/viewtopic.php?f=23&p=193484&sid=2001ebb0b423d41e4be8134b3ef2758d#p193484