Hello folks.
I`m trying to build C::B on an Arch Linux machine, but the build process refuses to go further after it encounters that AM_OPTIONS_WXCONFIG line in the build script.
I have already tried all three methods listed here (http://wiki.codeblocks.org/index.php/Installing_Code::Blocks_from_source_on_Linux), including wx-config which I converted to Arch package format with debtap.
None of them worked.
What should I do to resolve this?
Logs:
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
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
configure.ac:26: installing './compile'
configure.ac:7: installing './config.guess'
configure.ac:7: installing './config.sub'
configure.ac:22: installing './install-sh'
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
This is what I have on my machine:
$ pc -Ql wxgtk2
wxgtk2 /usr/
wxgtk2 /usr/bin/
wxgtk2 /usr/bin/wx-config
wxgtk2 /usr/lib/
wxgtk2 /usr/lib/libwx_gtk2u_adv-3.0.so
wxgtk2 /usr/lib/libwx_gtk2u_adv-3.0.so.0
wxgtk2 /usr/lib/libwx_gtk2u_adv-3.0.so.0.4.0
wxgtk2 /usr/lib/libwx_gtk2u_aui-3.0.so
wxgtk2 /usr/lib/libwx_gtk2u_aui-3.0.so.0
wxgtk2 /usr/lib/libwx_gtk2u_aui-3.0.so.0.4.0
wxgtk2 /usr/lib/libwx_gtk2u_core-3.0.so
wxgtk2 /usr/lib/libwx_gtk2u_core-3.0.so.0
wxgtk2 /usr/lib/libwx_gtk2u_core-3.0.so.0.4.0
wxgtk2 /usr/lib/libwx_gtk2u_gl-3.0.so
wxgtk2 /usr/lib/libwx_gtk2u_gl-3.0.so.0
wxgtk2 /usr/lib/libwx_gtk2u_gl-3.0.so.0.4.0
wxgtk2 /usr/lib/libwx_gtk2u_html-3.0.so
wxgtk2 /usr/lib/libwx_gtk2u_html-3.0.so.0
wxgtk2 /usr/lib/libwx_gtk2u_html-3.0.so.0.4.0
wxgtk2 /usr/lib/libwx_gtk2u_media-3.0.so
wxgtk2 /usr/lib/libwx_gtk2u_media-3.0.so.0
wxgtk2 /usr/lib/libwx_gtk2u_media-3.0.so.0.4.0
wxgtk2 /usr/lib/libwx_gtk2u_propgrid-3.0.so
wxgtk2 /usr/lib/libwx_gtk2u_propgrid-3.0.so.0
wxgtk2 /usr/lib/libwx_gtk2u_propgrid-3.0.so.0.4.0
wxgtk2 /usr/lib/libwx_gtk2u_qa-3.0.so
wxgtk2 /usr/lib/libwx_gtk2u_qa-3.0.so.0
wxgtk2 /usr/lib/libwx_gtk2u_qa-3.0.so.0.4.0
wxgtk2 /usr/lib/libwx_gtk2u_ribbon-3.0.so
wxgtk2 /usr/lib/libwx_gtk2u_ribbon-3.0.so.0
wxgtk2 /usr/lib/libwx_gtk2u_ribbon-3.0.so.0.4.0
wxgtk2 /usr/lib/libwx_gtk2u_richtext-3.0.so
wxgtk2 /usr/lib/libwx_gtk2u_richtext-3.0.so.0
wxgtk2 /usr/lib/libwx_gtk2u_richtext-3.0.so.0.4.0
wxgtk2 /usr/lib/libwx_gtk2u_stc-3.0.so
wxgtk2 /usr/lib/libwx_gtk2u_stc-3.0.so.0
wxgtk2 /usr/lib/libwx_gtk2u_stc-3.0.so.0.4.0
wxgtk2 /usr/lib/libwx_gtk2u_xrc-3.0.so
wxgtk2 /usr/lib/libwx_gtk2u_xrc-3.0.so.0
wxgtk2 /usr/lib/libwx_gtk2u_xrc-3.0.so.0.4.0
wxgtk2 /usr/lib/wx/
wxgtk2 /usr/lib/wx/config/
wxgtk2 /usr/lib/wx/config/gtk2-unicode-3.0
wxgtk2 /usr/lib/wx/include/
wxgtk2 /usr/lib/wx/include/gtk2-unicode-3.0/
wxgtk2 /usr/lib/wx/include/gtk2-unicode-3.0/wx/
wxgtk2 /usr/lib/wx/include/gtk2-unicode-3.0/wx/setup.h
wxgtk2 /usr/share/
wxgtk2 /usr/share/licenses/
wxgtk2 /usr/share/licenses/wxgtk2/
wxgtk2 /usr/share/licenses/wxgtk2/LICENSE
$ pc -Ql wxgtk3
wxgtk3 /usr/
wxgtk3 /usr/bin/
wxgtk3 /usr/bin/wx-config-gtk3
wxgtk3 /usr/lib/
wxgtk3 /usr/lib/libwx_gtk3u_adv-3.0.so
wxgtk3 /usr/lib/libwx_gtk3u_adv-3.0.so.0
wxgtk3 /usr/lib/libwx_gtk3u_adv-3.0.so.0.4.0
wxgtk3 /usr/lib/libwx_gtk3u_aui-3.0.so
wxgtk3 /usr/lib/libwx_gtk3u_aui-3.0.so.0
wxgtk3 /usr/lib/libwx_gtk3u_aui-3.0.so.0.4.0
wxgtk3 /usr/lib/libwx_gtk3u_core-3.0.so
wxgtk3 /usr/lib/libwx_gtk3u_core-3.0.so.0
wxgtk3 /usr/lib/libwx_gtk3u_core-3.0.so.0.4.0
wxgtk3 /usr/lib/libwx_gtk3u_gl-3.0.so
wxgtk3 /usr/lib/libwx_gtk3u_gl-3.0.so.0
wxgtk3 /usr/lib/libwx_gtk3u_gl-3.0.so.0.4.0
wxgtk3 /usr/lib/libwx_gtk3u_html-3.0.so
wxgtk3 /usr/lib/libwx_gtk3u_html-3.0.so.0
wxgtk3 /usr/lib/libwx_gtk3u_html-3.0.so.0.4.0
wxgtk3 /usr/lib/libwx_gtk3u_media-3.0.so
wxgtk3 /usr/lib/libwx_gtk3u_media-3.0.so.0
wxgtk3 /usr/lib/libwx_gtk3u_media-3.0.so.0.4.0
wxgtk3 /usr/lib/libwx_gtk3u_propgrid-3.0.so
wxgtk3 /usr/lib/libwx_gtk3u_propgrid-3.0.so.0
wxgtk3 /usr/lib/libwx_gtk3u_propgrid-3.0.so.0.4.0
wxgtk3 /usr/lib/libwx_gtk3u_qa-3.0.so
wxgtk3 /usr/lib/libwx_gtk3u_qa-3.0.so.0
wxgtk3 /usr/lib/libwx_gtk3u_qa-3.0.so.0.4.0
wxgtk3 /usr/lib/libwx_gtk3u_ribbon-3.0.so
wxgtk3 /usr/lib/libwx_gtk3u_ribbon-3.0.so.0
wxgtk3 /usr/lib/libwx_gtk3u_ribbon-3.0.so.0.4.0
wxgtk3 /usr/lib/libwx_gtk3u_richtext-3.0.so
wxgtk3 /usr/lib/libwx_gtk3u_richtext-3.0.so.0
wxgtk3 /usr/lib/libwx_gtk3u_richtext-3.0.so.0.4.0
wxgtk3 /usr/lib/libwx_gtk3u_stc-3.0.so
wxgtk3 /usr/lib/libwx_gtk3u_stc-3.0.so.0
wxgtk3 /usr/lib/libwx_gtk3u_stc-3.0.so.0.4.0
wxgtk3 /usr/lib/libwx_gtk3u_webview-3.0.so
wxgtk3 /usr/lib/libwx_gtk3u_webview-3.0.so.0
wxgtk3 /usr/lib/libwx_gtk3u_webview-3.0.so.0.4.0
wxgtk3 /usr/lib/libwx_gtk3u_xrc-3.0.so
wxgtk3 /usr/lib/libwx_gtk3u_xrc-3.0.so.0
wxgtk3 /usr/lib/libwx_gtk3u_xrc-3.0.so.0.4.0
wxgtk3 /usr/lib/wx/
wxgtk3 /usr/lib/wx/3.0/
wxgtk3 /usr/lib/wx/3.0/web-extensions/
wxgtk3 /usr/lib/wx/3.0/web-extensions/webkit2_extu-3.0.so
wxgtk3 /usr/lib/wx/config/
wxgtk3 /usr/lib/wx/config/gtk3-unicode-3.0
wxgtk3 /usr/lib/wx/include/
wxgtk3 /usr/lib/wx/include/gtk3-unicode-3.0/
wxgtk3 /usr/lib/wx/include/gtk3-unicode-3.0/wx/
wxgtk3 /usr/lib/wx/include/gtk3-unicode-3.0/wx/setup.h
wxgtk3 /usr/share/
wxgtk3 /usr/share/licenses/
wxgtk3 /usr/share/licenses/wxgtk3/
wxgtk3 /usr/share/licenses/wxgtk3/LICENSE
So wxGTK seems to be installed but that does not help.
Installed wxgtk2-dev and wxgtk3-dev.
Now there is a different error popping up:
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking whether configure should try to set CFLAGS/CXXFLAGS/CPPFLAGS/LDFLAGS... no
checking whether to enable debugging... no
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking how to print strings... printf
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking whether make supports nested variables... (cached) yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking how to run the C preprocessor... gcc -E
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for gawk... (cached) gawk
checking whether the linker accepts -Wl,--no-undefined... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for unistd.h... (cached) yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking sys/malloc.h usability... no
checking sys/malloc.h presence... no
checking for sys/malloc.h... no
checking malloc/malloc.h usability... no
checking malloc/malloc.h presence... no
checking for malloc/malloc.h... no
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for working volatile... yes
checking whether closedir returns void... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for working memcmp... yes
checking whether lstat correctly handles trailing slash... yes
checking whether stat accepts an empty string... no
checking for vprintf... yes
checking for _doprnt... no
checking for atexit... yes
checking for getcwd... yes
checking for isascii... yes
checking for memchr... yes
checking for memmove... yes
checking for memset... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strcspn... yes
checking for strdup... yes
checking for strrchr... yes
checking for strstr... yes
checking for dlopen in -ldl... yes
checking for pthread_create in -lpthread... yes
checking for snprintf... yes
checking for vsnprintf... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for zlib... yes
checking for library containing BZ2_bzopen... -lbz2
checking astyle.h usability... no
checking astyle.h presence... no
checking for astyle.h... no
checking for pkg-config... yes
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for SQUIRREL... no
checking for TINYXML... yes
checking whether to build the source formatter plugin... yes
checking whether to build the autosave plugin... yes
checking whether to build the class wizard plugin... yes
checking whether to build the code completion plugin... yes
checking whether to build the compiler plugin... yes
checking whether to build the debugger plugin... yes
checking whether to build the default MIME handler plugin... yes
checking whether to build the open files list plugin... yes
checking whether to build the occurrences highlighting plugin... yes
checking whether to build the foreign projects importer plugin... yes
checking whether to build the scripted wizard plugin... yes
checking whether to build the to-do plugin... yes
checking whether to build the abbreviations plugin... yes
checking whether to keep prebuild windows dll's in dist-tarball... yes
checking whether to integrate fortran-plugin in dist-tarball... yes
checking whether to use gtk-notebook as default notebook... yes
checking which (if any) contrib plugins to build... all
checking if the compiler supports precompiled headers... yes
./configure: line 16990: AM_OPTIONS_WXCONFIG: command not found
./configure: line 16991: syntax error near unexpected token `2.8.12,'
./configure: line 16991: `AM_PATH_WXCONFIG(2.8.12, wxWin=1)'
What does the command below return?
Edit: What version of Code::Blocks are you trying to build?
Edit2: What exactly are the commands you are using?
Edit3: What does the command below return?
/usr/bin/wx-config-gtk3 --list
Tim S.
ArchLinux normal location for wxwin.m4
/usr/share/aclocal/wxwin.m4
What does the command below return?
$ wx-config --list
Default config is gtk2-unicode-3.0
Default config will be used for output
Alternate matches:
gtk3-unicode-3.0
$ wx-config-gtk3 --list
Default config is gtk3-unicode-3.0
Default config will be used for output
Alternate matches:
gtk2-unicode-3.0
Where in the world did you find wxgtk2-dev and wxgtk3-dev for ArchLinux?
In AUR (https://aur.archlinux.org/), of course:
$ pacaur -Ss wxgtk2-dev
aur/wxgtk2-dev 3.1.3-1 (5, 0.98657)
GTK+2 implementation of wxWidgets API for GUI
$ pacaur -Ss wxgtk3-dev
aur/wxgtk3-dev 3.1.3-1 (5, 0.98657)
GTK+3 implementation of wxWidgets API for GUI
My best guess at the correct directions
Thank you! Will try right now.
[PS#1] wxwin.m4 seems to be present:
$ pacaur -Qo /usr/share/aclocal/wxwin.m4
/usr/share/aclocal/wxwin.m4 is owned by wxgtk-common 3.0.4-2
[PS#2]
you have something in the toolchain (m4, autotools, automake) which is too new and we don't support it
I guess this is the most probable explanation, for Arch always has the most bleeding-edge versions.
Which versions should I install to build?
These work for me.
obfuscated@xlad ~/p/c/git> autoconf --version
autoconf (GNU Autoconf) 2.69
obfuscated@xlad ~/p/c/git> automake --version
automake (GNU automake) 1.9.6
obfuscated@xlad ~/p/c/git> m4 --version
m4 (GNU M4) 1.4.18