As usual while waiting for the next release - don't forget to check the nightly builds in the forum.
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 libraryconfigure.ac:142: warning: macro 'AM_PATH_WXCONFIG' not found in libraryconfigure.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
$ pc -Ql wxgtk2wxgtk2 /usr/wxgtk2 /usr/bin/wxgtk2 /usr/bin/wx-configwxgtk2 /usr/lib/wxgtk2 /usr/lib/libwx_gtk2u_adv-3.0.sowxgtk2 /usr/lib/libwx_gtk2u_adv-3.0.so.0wxgtk2 /usr/lib/libwx_gtk2u_adv-3.0.so.0.4.0wxgtk2 /usr/lib/libwx_gtk2u_aui-3.0.sowxgtk2 /usr/lib/libwx_gtk2u_aui-3.0.so.0wxgtk2 /usr/lib/libwx_gtk2u_aui-3.0.so.0.4.0wxgtk2 /usr/lib/libwx_gtk2u_core-3.0.sowxgtk2 /usr/lib/libwx_gtk2u_core-3.0.so.0wxgtk2 /usr/lib/libwx_gtk2u_core-3.0.so.0.4.0wxgtk2 /usr/lib/libwx_gtk2u_gl-3.0.sowxgtk2 /usr/lib/libwx_gtk2u_gl-3.0.so.0wxgtk2 /usr/lib/libwx_gtk2u_gl-3.0.so.0.4.0wxgtk2 /usr/lib/libwx_gtk2u_html-3.0.sowxgtk2 /usr/lib/libwx_gtk2u_html-3.0.so.0wxgtk2 /usr/lib/libwx_gtk2u_html-3.0.so.0.4.0wxgtk2 /usr/lib/libwx_gtk2u_media-3.0.sowxgtk2 /usr/lib/libwx_gtk2u_media-3.0.so.0wxgtk2 /usr/lib/libwx_gtk2u_media-3.0.so.0.4.0wxgtk2 /usr/lib/libwx_gtk2u_propgrid-3.0.sowxgtk2 /usr/lib/libwx_gtk2u_propgrid-3.0.so.0wxgtk2 /usr/lib/libwx_gtk2u_propgrid-3.0.so.0.4.0wxgtk2 /usr/lib/libwx_gtk2u_qa-3.0.sowxgtk2 /usr/lib/libwx_gtk2u_qa-3.0.so.0wxgtk2 /usr/lib/libwx_gtk2u_qa-3.0.so.0.4.0wxgtk2 /usr/lib/libwx_gtk2u_ribbon-3.0.sowxgtk2 /usr/lib/libwx_gtk2u_ribbon-3.0.so.0wxgtk2 /usr/lib/libwx_gtk2u_ribbon-3.0.so.0.4.0wxgtk2 /usr/lib/libwx_gtk2u_richtext-3.0.sowxgtk2 /usr/lib/libwx_gtk2u_richtext-3.0.so.0wxgtk2 /usr/lib/libwx_gtk2u_richtext-3.0.so.0.4.0wxgtk2 /usr/lib/libwx_gtk2u_stc-3.0.sowxgtk2 /usr/lib/libwx_gtk2u_stc-3.0.so.0wxgtk2 /usr/lib/libwx_gtk2u_stc-3.0.so.0.4.0wxgtk2 /usr/lib/libwx_gtk2u_xrc-3.0.sowxgtk2 /usr/lib/libwx_gtk2u_xrc-3.0.so.0wxgtk2 /usr/lib/libwx_gtk2u_xrc-3.0.so.0.4.0wxgtk2 /usr/lib/wx/wxgtk2 /usr/lib/wx/config/wxgtk2 /usr/lib/wx/config/gtk2-unicode-3.0wxgtk2 /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.hwxgtk2 /usr/share/wxgtk2 /usr/share/licenses/wxgtk2 /usr/share/licenses/wxgtk2/wxgtk2 /usr/share/licenses/wxgtk2/LICENSE$ pc -Ql wxgtk3wxgtk3 /usr/wxgtk3 /usr/bin/wxgtk3 /usr/bin/wx-config-gtk3wxgtk3 /usr/lib/wxgtk3 /usr/lib/libwx_gtk3u_adv-3.0.sowxgtk3 /usr/lib/libwx_gtk3u_adv-3.0.so.0wxgtk3 /usr/lib/libwx_gtk3u_adv-3.0.so.0.4.0wxgtk3 /usr/lib/libwx_gtk3u_aui-3.0.sowxgtk3 /usr/lib/libwx_gtk3u_aui-3.0.so.0wxgtk3 /usr/lib/libwx_gtk3u_aui-3.0.so.0.4.0wxgtk3 /usr/lib/libwx_gtk3u_core-3.0.sowxgtk3 /usr/lib/libwx_gtk3u_core-3.0.so.0wxgtk3 /usr/lib/libwx_gtk3u_core-3.0.so.0.4.0wxgtk3 /usr/lib/libwx_gtk3u_gl-3.0.sowxgtk3 /usr/lib/libwx_gtk3u_gl-3.0.so.0wxgtk3 /usr/lib/libwx_gtk3u_gl-3.0.so.0.4.0wxgtk3 /usr/lib/libwx_gtk3u_html-3.0.sowxgtk3 /usr/lib/libwx_gtk3u_html-3.0.so.0wxgtk3 /usr/lib/libwx_gtk3u_html-3.0.so.0.4.0wxgtk3 /usr/lib/libwx_gtk3u_media-3.0.sowxgtk3 /usr/lib/libwx_gtk3u_media-3.0.so.0wxgtk3 /usr/lib/libwx_gtk3u_media-3.0.so.0.4.0wxgtk3 /usr/lib/libwx_gtk3u_propgrid-3.0.sowxgtk3 /usr/lib/libwx_gtk3u_propgrid-3.0.so.0wxgtk3 /usr/lib/libwx_gtk3u_propgrid-3.0.so.0.4.0wxgtk3 /usr/lib/libwx_gtk3u_qa-3.0.sowxgtk3 /usr/lib/libwx_gtk3u_qa-3.0.so.0wxgtk3 /usr/lib/libwx_gtk3u_qa-3.0.so.0.4.0wxgtk3 /usr/lib/libwx_gtk3u_ribbon-3.0.sowxgtk3 /usr/lib/libwx_gtk3u_ribbon-3.0.so.0wxgtk3 /usr/lib/libwx_gtk3u_ribbon-3.0.so.0.4.0wxgtk3 /usr/lib/libwx_gtk3u_richtext-3.0.sowxgtk3 /usr/lib/libwx_gtk3u_richtext-3.0.so.0wxgtk3 /usr/lib/libwx_gtk3u_richtext-3.0.so.0.4.0wxgtk3 /usr/lib/libwx_gtk3u_stc-3.0.sowxgtk3 /usr/lib/libwx_gtk3u_stc-3.0.so.0wxgtk3 /usr/lib/libwx_gtk3u_stc-3.0.so.0.4.0wxgtk3 /usr/lib/libwx_gtk3u_webview-3.0.sowxgtk3 /usr/lib/libwx_gtk3u_webview-3.0.so.0wxgtk3 /usr/lib/libwx_gtk3u_webview-3.0.so.0.4.0wxgtk3 /usr/lib/libwx_gtk3u_xrc-3.0.sowxgtk3 /usr/lib/libwx_gtk3u_xrc-3.0.so.0wxgtk3 /usr/lib/libwx_gtk3u_xrc-3.0.so.0.4.0wxgtk3 /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.sowxgtk3 /usr/lib/wx/config/wxgtk3 /usr/lib/wx/config/gtk3-unicode-3.0wxgtk3 /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.hwxgtk3 /usr/share/wxgtk3 /usr/share/licenses/wxgtk3 /usr/share/licenses/wxgtk3/wxgtk3 /usr/share/licenses/wxgtk3/LICENSE
checking build system type... x86_64-pc-linux-gnuchecking host system type... x86_64-pc-linux-gnuchecking target system type... x86_64-pc-linux-gnuchecking whether configure should try to set CFLAGS/CXXFLAGS/CPPFLAGS/LDFLAGS... nochecking whether to enable debugging... nochecking for a BSD-compatible install... /usr/bin/install -cchecking whether build environment is sane... yeschecking for a thread-safe mkdir -p... /usr/bin/mkdir -pchecking for gawk... gawkchecking whether make sets $(MAKE)... yeschecking whether make supports nested variables... yeschecking how to print strings... printfchecking whether make supports the include directive... yes (GNU style)checking for gcc... gccchecking whether the C compiler works... yeschecking for C compiler default output file name... a.outchecking for suffix of executables... checking whether we are cross compiling... nochecking for suffix of object files... ochecking whether we are using the GNU C compiler... yeschecking whether gcc accepts -g... yeschecking for gcc option to accept ISO C89... none neededchecking whether gcc understands -c and -o together... yeschecking dependency style of gcc... gcc3checking for a sed that does not truncate output... /usr/bin/sedchecking for grep that handles long lines and -e... /usr/bin/grepchecking for egrep... /usr/bin/grep -Echecking for fgrep... /usr/bin/grep -Fchecking for ld used by gcc... /usr/bin/ldchecking if the linker (/usr/bin/ld) is GNU ld... yeschecking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -Bchecking the name lister (/usr/bin/nm -B) interface... BSD nmchecking whether ln -s works... yeschecking the maximum length of command line arguments... 1572864checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noopchecking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noopchecking for /usr/bin/ld option to reload object files... -rchecking for objdump... objdumpchecking how to recognize dependent libraries... pass_allchecking for dlltool... nochecking how to associate runtime and link libraries... printf %s\nchecking for ar... archecking for archiver @FILE support... @checking for strip... stripchecking for ranlib... ranlibchecking command to parse /usr/bin/nm -B output from gcc object... okchecking for sysroot... nochecking for a working dd... /usr/bin/ddchecking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1checking for mt... nochecking if : is a manifest tool... nochecking how to run the C preprocessor... gcc -Echecking for ANSI C header files... yeschecking for sys/types.h... yeschecking for sys/stat.h... yeschecking for stdlib.h... yeschecking for string.h... yeschecking for memory.h... yeschecking for strings.h... yeschecking for inttypes.h... yeschecking for stdint.h... yeschecking for unistd.h... yeschecking for dlfcn.h... yeschecking for objdir... .libschecking if gcc supports -fno-rtti -fno-exceptions... nochecking for gcc option to produce PIC... -fPIC -DPICchecking if gcc PIC flag -fPIC -DPIC works... yeschecking if gcc static flag -static works... yeschecking if gcc supports -c -o file.o... yeschecking if gcc supports -c -o file.o... (cached) yeschecking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yeschecking whether -lc should be explicitly linked in... nochecking dynamic linker characteristics... GNU/Linux ld.sochecking how to hardcode library paths into programs... immediatechecking whether stripping libraries is possible... yeschecking if libtool supports shared libraries... yeschecking whether to build shared libraries... yeschecking whether to build static libraries... nochecking whether make supports nested variables... (cached) yeschecking for g++... g++checking whether we are using the GNU C++ compiler... yeschecking whether g++ accepts -g... yeschecking dependency style of g++... gcc3checking how to run the C++ preprocessor... g++ -Echecking for ld used by g++... /usr/bin/ld -m elf_x86_64checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yeschecking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yeschecking for g++ option to produce PIC... -fPIC -DPICchecking if g++ PIC flag -fPIC -DPIC works... yeschecking if g++ static flag -static works... yeschecking if g++ supports -c -o file.o... yeschecking if g++ supports -c -o file.o... (cached) yeschecking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yeschecking dynamic linker characteristics... (cached) GNU/Linux ld.sochecking how to hardcode library paths into programs... immediatechecking how to run the C preprocessor... gcc -Echecking for gcc... (cached) gccchecking whether we are using the GNU C compiler... (cached) yeschecking whether gcc accepts -g... (cached) yeschecking for gcc option to accept ISO C89... (cached) none neededchecking whether gcc understands -c and -o together... (cached) yeschecking dependency style of gcc... (cached) gcc3checking whether ln -s works... yeschecking whether make sets $(MAKE)... (cached) yeschecking for gawk... (cached) gawkchecking whether the linker accepts -Wl,--no-undefined... yeschecking for dirent.h that defines DIR... yeschecking for library containing opendir... none requiredchecking for ANSI C header files... (cached) yeschecking fcntl.h usability... yeschecking fcntl.h presence... yeschecking for fcntl.h... yeschecking limits.h usability... yeschecking limits.h presence... yeschecking for limits.h... yeschecking for stdlib.h... (cached) yeschecking for string.h... (cached) yeschecking sys/param.h usability... yeschecking sys/param.h presence... yeschecking for sys/param.h... yeschecking for unistd.h... (cached) yeschecking malloc.h usability... yeschecking malloc.h presence... yeschecking for malloc.h... yeschecking sys/malloc.h usability... nochecking sys/malloc.h presence... nochecking for sys/malloc.h... nochecking malloc/malloc.h usability... nochecking malloc/malloc.h presence... nochecking for malloc/malloc.h... nochecking for stdbool.h that conforms to C99... yeschecking for _Bool... yeschecking for an ANSI C-conforming const... yeschecking for inline... inlinechecking for size_t... yeschecking whether time.h and sys/time.h may both be included... yeschecking for working volatile... yeschecking whether closedir returns void... nochecking for stdlib.h... (cached) yeschecking for GNU libc compatible malloc... yeschecking for working memcmp... yeschecking whether lstat correctly handles trailing slash... yeschecking whether stat accepts an empty string... nochecking for vprintf... yeschecking for _doprnt... nochecking for atexit... yeschecking for getcwd... yeschecking for isascii... yeschecking for memchr... yeschecking for memmove... yeschecking for memset... yeschecking for strcasecmp... yeschecking for strchr... yeschecking for strcspn... yeschecking for strdup... yeschecking for strrchr... yeschecking for strstr... yeschecking for dlopen in -ldl... yeschecking for pthread_create in -lpthread... yeschecking for snprintf... yeschecking for vsnprintf... yeschecking for pkg-config... /usr/bin/pkg-configchecking pkg-config is at least version 0.9.0... yeschecking for zlib... yeschecking for library containing BZ2_bzopen... -lbz2checking astyle.h usability... nochecking astyle.h presence... nochecking for astyle.h... nochecking for pkg-config... yeschecking for pkg-config... (cached) /usr/bin/pkg-configchecking pkg-config is at least version 0.9.0... yeschecking for SQUIRREL... nochecking for TINYXML... yeschecking whether to build the source formatter plugin... yeschecking whether to build the autosave plugin... yeschecking whether to build the class wizard plugin... yeschecking whether to build the code completion plugin... yeschecking whether to build the compiler plugin... yeschecking whether to build the debugger plugin... yeschecking whether to build the default MIME handler plugin... yeschecking whether to build the open files list plugin... yeschecking whether to build the occurrences highlighting plugin... yeschecking whether to build the foreign projects importer plugin... yeschecking whether to build the scripted wizard plugin... yeschecking whether to build the to-do plugin... yeschecking whether to build the abbreviations plugin... yeschecking whether to keep prebuild windows dll's in dist-tarball... yeschecking whether to integrate fortran-plugin in dist-tarball... yeschecking whether to use gtk-notebook as default notebook... yeschecking which (if any) contrib plugins to build... allchecking 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)'
If you mess up your system it is your job to clean it up.
wx-config --list
/usr/bin/wx-config-gtk3 --list
/usr/share/aclocal/wxwin.m4
Installed wxgtk2-dev and wxgtk3-dev.
# Install CB from source on ArchLinux.txt## based on# https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/codeblocks# http://wiki.codeblocks.org/index.php/Installing_Code::Blocks_from_source_on_Arch_Linux# Install svn and other needed libraries$ pacman -S --needed zip xterm svn hunspell boost imagemagick wxgtk3# Create devel folder$ mkdir -p ~/devel# Change to devel folder$ cd ~/devel# Download Codeblocks code$ svn checkout https://svn.code.sf.net/p/codeblocks/code/trunk codeblocks-code# Go into codeblocks folder$ cd codeblocks-code$ ./bootstrap# configure. We can not use the FileManager plugin because of the missing gamin library (08.2019)$ ./configure --prefix=/opt/codeblocks --with-wx-config=/usr/bin/wx-config-gtk3 --with-contrib-plugins=all,-FileManager$ make# Now install codeblocks to /opt/codeblocks$ make install# Start codeblocks$ /opt/codeblocks/bin/codeblocks
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?
$ pacaur -Ss wxgtk2-devaur/wxgtk2-dev 3.1.3-1 (5, 0.98657) GTK+2 implementation of wxWidgets API for GUI$ pacaur -Ss wxgtk3-devaur/wxgtk3-dev 3.1.3-1 (5, 0.98657) GTK+3 implementation of wxWidgets API for GUI
My best guess at the correct directions
$ pacaur -Qo /usr/share/aclocal/wxwin.m4/usr/share/aclocal/wxwin.m4 is owned by wxgtk-common 3.0.4-2
you have something in the toolchain (m4, autotools, automake) which is too new and we don't support it
obfuscated@xlad ~/p/c/git> autoconf --versionautoconf (GNU Autoconf) 2.69obfuscated@xlad ~/p/c/git> automake --versionautomake (GNU automake) 1.9.6obfuscated@xlad ~/p/c/git> m4 --versionm4 (GNU M4) 1.4.18
Initial preparationsIt is better to remove the old versions of both C::B and WXW before trying to build.To do that, run Bash and paste this to the command prompt:Codepkglist=""for pkg in codeblocks wxgtk3 wxgtk2 wxgtk-common; do pkglist+="$(pacman -Qi $pkg | grep -i "^ *name *:" | cut -d: -f2-) "; done[ -n "$(tr -d " " <<<"$pkglist")" ] && sudo pacman -Rsn $pkglistOption 1. Building without an AUR wrapperFirst, install the prerequisites:Codesudo pacman -S curl zlib gcc-libs expat gtk2 gtk3 gst-plugins-base-libs libsm libxxf86vm libnotify valgrind bzip2 hicolor-icon-theme gamin hunspell webkit2gtkThen, go to /tmp/ and build a development version of WXW and then an SVN revision of C::B:Codecd /tmp/root="https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h="for pkg in wxgtk-common-dev wxgtk2-dev wxgtk3-dev codeblocks-svn; do rm -rf $pkg; mkdir $pkg; cd $pkg; curl -o PKGBUILD "$root$pkg"; makepkg --noconfirm; sudo pacman -U *.pkg.tar.xz || exit 1; cd ..; doneDone.Option 2. Building with an AUR wrapperHere I assume that the AUR wrapper installed on the target Arch machine is Pacaur.If it`s not the case then please translate the given commands to your favourite wrapper`s format manually, it should be straightforward.Build a development version of WXW and then an SVN revision of C::B:Codepacaur -S wxgtk-common-dev wxgtk2-dev wxgtk3-dev codeblocks-svnDone.
pkglist=""for pkg in codeblocks wxgtk3 wxgtk2 wxgtk-common; do pkglist+="$(pacman -Qi $pkg | grep -i "^ *name *:" | cut -d: -f2-) "; done[ -n "$(tr -d " " <<<"$pkglist")" ] && sudo pacman -Rsn $pkglist
sudo pacman -S curl zlib gcc-libs expat gtk2 gtk3 gst-plugins-base-libs libsm libxxf86vm libnotify valgrind bzip2 hicolor-icon-theme gamin hunspell webkit2gtk
cd /tmp/root="https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h="for pkg in wxgtk-common-dev wxgtk2-dev wxgtk3-dev codeblocks-svn; do rm -rf $pkg; mkdir $pkg; cd $pkg; curl -o PKGBUILD "$root$pkg"; makepkg --noconfirm; sudo pacman -U *.pkg.tar.xz || exit 1; cd ..; done
pacaur -S wxgtk-common-dev wxgtk2-dev wxgtk3-dev codeblocks-svn