Author Topic: [SOLVED] 'AM_OPTIONS_WXCONFIG' not found in library  (Read 12424 times)

Offline hidefromkgb

  • Multiple posting newcomer
  • *
  • Posts: 50
[SOLVED] 'AM_OPTIONS_WXCONFIG' not found in library
« 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, 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
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
« Last Edit: November 08, 2019, 12:08:39 am by hidefromkgb »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: 'AM_OPTIONS_WXCONFIG' not found in library
« Reply #1 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.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline hidefromkgb

  • Multiple posting newcomer
  • *
  • Posts: 50
Re: 'AM_OPTIONS_WXCONFIG' not found in library
« Reply #2 on: September 17, 2019, 09:27:03 pm »
This is what I have on my machine:

Code
$ 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.

Offline sodev

  • Regular
  • ***
  • Posts: 497
Re: 'AM_OPTIONS_WXCONFIG' not found in library
« Reply #3 on: September 17, 2019, 09:36:01 pm »
You need the dev package of wxGTKx.

Offline hidefromkgb

  • Multiple posting newcomer
  • *
  • Posts: 50
Re: 'AM_OPTIONS_WXCONFIG' not found in library
« Reply #4 on: September 20, 2019, 12:43:26 am »
Installed wxgtk2-dev and wxgtk3-dev.
Now there is a different error popping up:
Code
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)'

Offline hidefromkgb

  • Multiple posting newcomer
  • *
  • Posts: 50
Re: 'AM_OPTIONS_WXCONFIG' not found in library
« Reply #5 on: September 25, 2019, 12:38:28 am »
…guys?

Offline sodev

  • Regular
  • ***
  • Posts: 497
Re: 'AM_OPTIONS_WXCONFIG' not found in library
« Reply #6 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.

Offline hidefromkgb

  • Multiple posting newcomer
  • *
  • Posts: 50
Re: 'AM_OPTIONS_WXCONFIG' not found in library
« Reply #7 on: November 03, 2019, 09:50:16 pm »
If you mess up your system it is your job to clean it up.
  • What gave you the idea I messed my system up? Everything I install, I install via the standard package manager, converting packages to its native format if needed.
  • Do you actually have to be so toxic in response to a simple question of what went wrong with the build?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: 'AM_OPTIONS_WXCONFIG' not found in library
« Reply #8 on: November 03, 2019, 11:43:29 pm »
What does the command below return?
Code
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
/usr/bin/wx-config-gtk3 --list

Tim S.
« Last Edit: November 04, 2019, 03:01:37 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: 'AM_OPTIONS_WXCONFIG' not found in library
« Reply #9 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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: 'AM_OPTIONS_WXCONFIG' not found in library
« Reply #10 on: November 04, 2019, 02:24:41 pm »
ArchLinux normal location for wxwin.m4

Code
/usr/share/aclocal/wxwin.m4
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: 'AM_OPTIONS_WXCONFIG' not found in library
« Reply #11 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.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: 'AM_OPTIONS_WXCONFIG' not found in library
« Reply #12 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.
« Last Edit: November 04, 2019, 03:12:30 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline hidefromkgb

  • Multiple posting newcomer
  • *
  • Posts: 50
Re: 'AM_OPTIONS_WXCONFIG' not found in library
« Reply #13 on: November 06, 2019, 08:22:00 pm »
What does the command below return?
Code
$ 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, of course:
Code
$ 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
$ 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?
« Last Edit: November 06, 2019, 08:29:42 pm by hidefromkgb »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: 'AM_OPTIONS_WXCONFIG' not found in library
« Reply #14 on: November 07, 2019, 07:34:51 pm »
These work for me.
Code
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
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]