User forums > Using Code::Blocks

[SOLVED] 'AM_OPTIONS_WXCONFIG' not found in library

<< < (3/5) > >>

stahta01:
ArchLinux normal location for wxwin.m4


--- Code: ---/usr/share/aclocal/wxwin.m4

--- End code ---

stahta01:

--- Quote from: hidefromkgb on September 20, 2019, 12:43:26 am ---Installed wxgtk2-dev and wxgtk3-dev.

--- End quote ---

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

Tim S.

stahta01:
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

--- End quote ---

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

hidefromkgb:

--- Quote from: stahta01 on November 03, 2019, 11:43:29 pm ---What does the command below return?

--- End quote ---

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


--- End code ---


--- Quote from: stahta01 on November 04, 2019, 02:32:15 pm ---Where in the world did you find wxgtk2-dev and wxgtk3-dev for ArchLinux?

--- End quote ---
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


--- End code ---


--- Quote from: stahta01 on November 04, 2019, 03:05:10 pm ---My best guess at the correct directions

--- End quote ---
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

--- End code ---


[PS#2]

--- Quote from: oBFusCATed on November 04, 2019, 09:14:28 am ---you have something in the toolchain (m4, autotools, automake) which is too new and we don't support it

--- End quote ---
I guess this is the most probable explanation, for Arch always has the most bleeding-edge versions.
Which versions should I install to build?

oBFusCATed:
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

--- End code ---

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version