Code::Blocks

User forums => Using Code::Blocks => Topic started by: hidefromkgb on September 15, 2019, 06:30:05 pm

Title: [SOLVED] 'AM_OPTIONS_WXCONFIG' not found in library
Post by: hidefromkgb on September 15, 2019, 06:30:05 pm
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:
Code: [Select]
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
Title: Re: 'AM_OPTIONS_WXCONFIG' not found in library
Post by: stahta01 on September 15, 2019, 08:15:29 pm
Did you install wxWidgets/wxGTK?
NOTE: Installed means installed it does not mean building it!

Tim S.
Title: Re: 'AM_OPTIONS_WXCONFIG' not found in library
Post by: hidefromkgb on September 17, 2019, 09:27:03 pm
This is what I have on my machine:

Code: [Select]
$ 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.
Title: Re: 'AM_OPTIONS_WXCONFIG' not found in library
Post by: sodev on September 17, 2019, 09:36:01 pm
You need the dev package of wxGTKx.
Title: Re: 'AM_OPTIONS_WXCONFIG' not found in library
Post by: hidefromkgb on September 20, 2019, 12:43:26 am
Installed wxgtk2-dev and wxgtk3-dev.
Now there is a different error popping up:
Code: [Select]
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)'
Title: Re: 'AM_OPTIONS_WXCONFIG' not found in library
Post by: hidefromkgb on September 25, 2019, 12:38:28 am
…guys?
Title: Re: 'AM_OPTIONS_WXCONFIG' not found in library
Post by: sodev on September 25, 2019, 01:33:01 am
If you mess up your system it is your job to clean it up.

You have at least two wxWidgets versions installed, forcefully installed a selfmade wx-config package and yet Automake is looking for a third one which apparently is not installed. If you use multiple wxWidgets versions installation order is important because it determines which one gets used by default. Your selfmade package can make the situation worse if it doesn't follow the style of your distro. Maybe you are also reusing the source tree which has some cached values that mess up things even further.

If you are lucky it is enough to pass the wx-config of the wxWidgets version you want to use to the configure script (it has a nice help switch that shows you all options it supports). If your are not so lucky you need to get rid at least of all dev-packages of wxWidgets and your selfmade package and reinstall only the dev-package of the wxWidgets version you want to use. And if that doesn't help there is always mv / /dev/null.
Title: Re: 'AM_OPTIONS_WXCONFIG' not found in library
Post by: hidefromkgb on November 03, 2019, 09:50:16 pm
If you mess up your system it is your job to clean it up.
Title: Re: 'AM_OPTIONS_WXCONFIG' not found in library
Post by: stahta01 on November 03, 2019, 11:43:29 pm
What does the command below return?
Code: [Select]
wx-config --list


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?
Code: [Select]
/usr/bin/wx-config-gtk3 --list

Tim S.
Title: Re: 'AM_OPTIONS_WXCONFIG' not found in library
Post by: oBFusCATed on November 04, 2019, 09:14:28 am
My guess is either that the wxwin.m4 file is not found or you have something in the toolchain (m4, autotools, automake) which is too new and we don't support it... A third options is that you have something cached from a previous failed run.
Title: Re: 'AM_OPTIONS_WXCONFIG' not found in library
Post by: stahta01 on November 04, 2019, 02:24:41 pm
ArchLinux normal location for wxwin.m4

Code: [Select]
/usr/share/aclocal/wxwin.m4
Title: Re: 'AM_OPTIONS_WXCONFIG' not found in library
Post by: stahta01 on November 04, 2019, 02:32:15 pm
Installed wxgtk2-dev and wxgtk3-dev.

Where in the world did you find wxgtk2-dev and wxgtk3-dev for ArchLinux?

Tim S.
Title: Re: 'AM_OPTIONS_WXCONFIG' not found in library
Post by: stahta01 on November 04, 2019, 03:05:10 pm
My best guess at the correct directions

Quote
# 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

# means comment
$ means command that needs ran

Edit: You will likely need to uninstall all the debtap stuff you installed related to wxWidgets and Code::Blocks before these directions are likely to work.
If possible, I would also uninstall wxGTK3 before trying these directions.

Tim S.
Title: Re: 'AM_OPTIONS_WXCONFIG' not found in library
Post by: hidefromkgb on November 06, 2019, 08:22:00 pm
What does the command below return?
Code: [Select]
$ 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:
Code: [Select]
$ 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:
Code: [Select]
$ 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?
Title: Re: 'AM_OPTIONS_WXCONFIG' not found in library
Post by: oBFusCATed on November 07, 2019, 07:34:51 pm
These work for me.
Code: [Select]
[email protected] ~/p/c/git> autoconf --version
autoconf (GNU Autoconf) 2.69
[email protected] ~/p/c/git> automake --version
automake (GNU automake) 1.9.6
[email protected] ~/p/c/git> m4 --version
m4 (GNU M4) 1.4.18
Title: Re: 'AM_OPTIONS_WXCONFIG' not found in library
Post by: hidefromkgb on November 08, 2019, 12:08:21 am
…Okay. After several more rebuilds I finally know what happened.
The actual culprit was wxgtk-common being incompatible with wxgtk2-dev and wxgtk3-dev.

To successfully build C::B on Arch, even if your system seems to refuse, you need to:
Freshest versions of autoconf, automake, and m4 known to be working:
$ autoconf --version | head -1; automake --version | head -1; m4 --version | head -1
autoconf (GNU Autoconf) 2.69
automake (GNU automake) 1.16.1
m4 (GNU M4) 1.4.18

Thanks guys!
Now I`m finally able to use shortcuts on non-Latin layouts ^__^
Title: Re: [SOLVED] 'AM_OPTIONS_WXCONFIG' not found in library
Post by: BlueHazzard on November 08, 2019, 11:13:02 am
I have not followed the whole thread, but it would be very nice, if you could write a little up to date, step by step tutorial how to build codeblocks on ARCH and put it in the wiki, or put it here and i will put it to the wiki...
Title: Re: [SOLVED] 'AM_OPTIONS_WXCONFIG' not found in library
Post by: hidefromkgb on November 08, 2019, 09:07:25 pm
Okay, I`m ready to help!
This is the article (http://wiki.codeblocks.org/index.php/Installing_Code::Blocks_from_source_on_Arch_Linux) to be edited, I presume?
The problem is, in Arch there is actually no need to compile C::B from source anymore unless you want the latest features right now, e.g. like I do.
Can I change the name of the article to something more general, e.g. «Installing Code::Blocks on Arch Linux» to include the easy method of pacman -S codeblocks?
Title: Re: [SOLVED] 'AM_OPTIONS_WXCONFIG' not found in library
Post by: BlueHazzard on November 10, 2019, 10:46:11 am
Sry, i was thinking you build from source.
You can make a new wiki page for installing, or update this. Any additional information and instruction is great!
Title: Re: [SOLVED] 'AM_OPTIONS_WXCONFIG' not found in library
Post by: oBFusCATed on November 10, 2019, 12:48:16 pm
This page is specifically for source installations. Using pacman isn't something worth documenting.
Title: Re: [SOLVED] 'AM_OPTIONS_WXCONFIG' not found in library
Post by: hidefromkgb on November 13, 2019, 01:00:54 am
The article should be as follows:

Quote
Initial preparations

It 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:
Code: [Select]
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

Option 1. Building without an AUR wrapper

First, install the prerequisites:

Code: [Select]
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
Then, go to /tmp/ and build a development version of WXW and then an SVN revision of C::B:

Code: [Select]
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

Done.

Option 2. Building with an AUR wrapper

Here I assume that the AUR wrapper (https://wiki.archlinux.org/index.php/AUR_helpers) 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:

Code: [Select]
pacaur -S wxgtk-common-dev wxgtk2-dev wxgtk3-dev codeblocks-svn
Done.
I`ll modify the article once I finish testing the first approach.