Author Topic: macro `AM_OPTIONS_WXRC' not found  (Read 7679 times)

blindcut

  • Guest
macro `AM_OPTIONS_WXRC' not found
« on: December 15, 2005, 02:16:52 pm »
Hi there,

I get the following message, when trying to build C::B:

------
$ ./bootstrap
You should add the contents of `/usr/share/aclocal/libtool.m4' to `aclocal.m4'.
aclocal: configure.in: 61: macro `AM_OPTIONS_WXRC' not found in library
-----

I'm using the latest version of C::B (from svn repository, revision 1512),
Ubuntu (breezy)
and wxGTK-2.6.1.1 (also its development files)

what is wrong or missing?

Thanks for your help!
    blindcut

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: macro `AM_OPTIONS_WXRC' not found
« Reply #1 on: December 15, 2005, 02:22:00 pm »
No idea what caused the problem, but ...
You should add the contents of `/usr/share/aclocal/libtool.m4' to `aclocal.m4'.
Did you do what you were told? Maybe it is as simple as that.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

blindcut

  • Guest
Re: macro `AM_OPTIONS_WXRC' not found
« Reply #2 on: December 15, 2005, 02:39:52 pm »
Ehmm...., if that means, that I should copy the contents of '/usr/share/aclocal/libtool.m4' and paste these to the end of `aclocal.m4', then yes: I tried that, without any result. -The same error as before.

Any other idea?

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: macro `AM_OPTIONS_WXRC' not found
« Reply #3 on: December 15, 2005, 02:44:23 pm »
Quote
aclocal: configure.in: 61: macro `AM_OPTIONS_WXRC' not found in library

Install the package wx-common.
Be patient!
This bug will be fixed soon...

blindcut

  • Guest
Re: macro `AM_OPTIONS_WXRC' not found
« Reply #4 on: December 15, 2005, 02:59:09 pm »
Quote
Install the package wx-common.

That package was already installed. -But nevertheless I reinstalled it and... nothing; the error still remains! :-(

Thanks for your effort!
    blindcut

willkn

  • Guest
Re: macro `AM_OPTIONS_WXRC' not found
« Reply #5 on: December 15, 2005, 05:12:26 pm »
Try doing 'export ACLOCAL_FLAGS="-I (path_to_wxwidgets_dir)/wxwidgets/share/aclocal"'

There is a file in that directory, wxwin.m4, that has the AM_OPTIONS_WXRC definition. Setting the ACLOCAL_FLAGS var should help aclocal to find it (see 'aclocal --help' for more info).

blindcut

  • Guest
Re: macro `AM_OPTIONS_WXRC' not found
« Reply #6 on: December 15, 2005, 06:10:46 pm »
Try doing 'export ACLOCAL_FLAGS="-I (path_to_wxwidgets_dir)/wxwidgets/share/aclocal"'

There is a file in that directory, wxwin.m4, that has the AM_OPTIONS_WXRC definition. Setting the ACLOCAL_FLAGS var should help aclocal to find it (see 'aclocal --help' for more info).

My 'wxwin.m4' is in '/usr/share/aclocal/', so I ran:
    aclocal -I /usr/share/aclocal
The result: see above; it doesn't change anything. :-(
But are you sure, that this macro should be defined there? -I searched that file for 'AM_OPTIONS_WXRC', and the only apearance is part of a command-block.... no definition at all.... mmmhh....

Any idea?


willkn

  • Guest
Re: macro `AM_OPTIONS_WXRC' not found
« Reply #7 on: December 16, 2005, 12:43:34 am »
are you sure that you first got rid of all of the linefeeds by doing 'dos2unix' on all of the necessary files?

blindcut

  • Guest
Re: macro `AM_OPTIONS_WXRC' not found
« Reply #8 on: December 16, 2005, 04:16:59 pm »
Thanks for all your help, but finally I decided to use the pre-compiled package of version RC2..., that works! :-)

Bye!
    blindcut

Offline Ceniza

  • Developer
  • Lives here!
  • *****
  • Posts: 1441
    • CenizaSOFT
Re: macro `AM_OPTIONS_WXRC' not found
« Reply #9 on: January 10, 2006, 11:40:13 am »
I just had the same problem in a new Kubuntu Dapper installation (under VMware Player :)) and found it's caused because aclocal pointed to the old aclocal-1.4.

Be sure you have aclocal-1.9 and remove the symlink /etc/alternatives/aclocal and create a new one pointing to /usr/bin/aclocal-1.9 named /etc/alternatives/aclocal

Quote from: root @ bash
rm /etc/alternatives/aclocal
ln -s /usr/bin/aclocal-1.9 /etc/alternatives/aclocal

northtar

  • Guest
Re: macro `AM_OPTIONS_WXRC' not found
« Reply #10 on: January 15, 2006, 05:41:43 am »
hi Ceniza,I met the same problem,I just copy the file to /usr/share and all is ok.
sudo cp /usr/local/share/aclocal/ /usr/share/ -R