Author Topic: Bootstrap with no wxWidgets packet installed  (Read 274 times)

Offline BlueHazzard

  • Lives here!
  • ****
  • Posts: 1846
Bootstrap with no wxWidgets packet installed
« on: February 20, 2018, 05:16:45 pm »
Hi,
i try to build codeblocks on linux, without wxWidgets installed, but compiled and installed by myself.

If i run ./bootstrap it can not find the wx-config macro:
Code: [Select]
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.
Now this seems ok, because i can provide the wx-config path by myself (it is /usr/local/bin/wx-config) but the ./configure command has no option --witch-wx-config and fails because it can not find the AM_CONFIG thing

Code: [Select]
./configure: line 21384: AM_OPTIONS_WXCONFIG: command not found
./configure: line 21385: syntax error near unexpected token `2.8.12,'
./configure: line 21385: `AM_PATH_WXCONFIG(2.8.12, wxWin=1)'

Is there a easy solution beside installing wxWidgets from repo?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6221
    • My Best Post
Re: Bootstrap with no wxWidgets packet installed
« Reply #1 on: February 20, 2018, 05:19:38 pm »
Are you using an Debian based Linux; because it has an easy fix? I posted it somewhere in the Wiki an way to use alternates with self built wxWidgets.

Edit: Added wiki link http://wiki.codeblocks.org/index.php/Installing_Code::Blocks_from_source_on_Linux#Checking_the_presence_of_libwxGTK_library

Tim S.
« Last Edit: February 20, 2018, 05:21:36 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Testing, compiling CB Trunk against wxWidgets 3.0.2.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline BlueHazzard

  • Lives here!
  • ****
  • Posts: 1846
Re: Bootstrap with no wxWidgets packet installed
« Reply #2 on: February 20, 2018, 05:29:13 pm »
thank you!
i also found this article in the mean time and i have tried this:
Code: [Select]
export ACLOCAL_FLAGS="-I `wx-config --prefix`/share/aclocal"with this i was able to go trought bootstrap and it is now compiling. But i would like to know what this does....

Code: [Select]
$ update-alternatives --install /usr/bin/wx-config wx-config /opt/wx/2.8/bin/wx-config 50can you explain what this does? Am i asked every time i run wx-config what version i would like to run? How does this go with autotools, or other tools that do not allow user interaction?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6221
    • My Best Post
Re: Bootstrap with no wxWidgets packet installed
« Reply #3 on: February 20, 2018, 05:47:18 pm »
update-alternatives is used to switch an link to various real files.

I believe update-alternatives is an Debian only command.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Testing, compiling CB Trunk against wxWidgets 3.0.2.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7258
    • Jens' unofficial debian-repository for the Code::Blocks - IDE
Re: Bootstrap with no wxWidgets packet installed
« Reply #4 on: February 20, 2018, 07:39:19 pm »
I believe update-alternatives is an Debian only command.
No, it isn't.
It's copyrighted by Redhat in 2001 or 2002.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6221
    • My Best Post
Re: Bootstrap with no wxWidgets packet installed
« Reply #5 on: February 20, 2018, 07:45:32 pm »
I believe update-alternatives is an Debian only command.
No, it isn't.
It's copyrighted by Redhat in 2001 or 2002.

So, at least Redhat and Debian Linux Distros should have it.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Testing, compiling CB Trunk against wxWidgets 3.0.2.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 10837
    • Travis build status
Re: Bootstrap with no wxWidgets packet installed
« Reply #6 on: February 20, 2018, 08:14:12 pm »
There is an issue about this on the tickets page. The proposed solution there is to copy the file in out m4 folder.
(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!]