Code::Blocks Forums

User forums => Help => Topic started by: blindcut on December 15, 2005, 02:16:52 pm

Title: macro `AM_OPTIONS_WXRC' not found
Post by: blindcut 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
Title: Re: macro `AM_OPTIONS_WXRC' not found
Post by: thomas 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.
Title: Re: macro `AM_OPTIONS_WXRC' not found
Post by: blindcut 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?
Title: Re: macro `AM_OPTIONS_WXRC' not found
Post by: mandrav 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.
Title: Re: macro `AM_OPTIONS_WXRC' not found
Post by: blindcut 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
Title: Re: macro `AM_OPTIONS_WXRC' not found
Post by: willkn 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).
Title: Re: macro `AM_OPTIONS_WXRC' not found
Post by: blindcut 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?

Title: Re: macro `AM_OPTIONS_WXRC' not found
Post by: willkn 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?
Title: Re: macro `AM_OPTIONS_WXRC' not found
Post by: blindcut 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
Title: Re: macro `AM_OPTIONS_WXRC' not found
Post by: Ceniza 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
Title: Re: macro `AM_OPTIONS_WXRC' not found
Post by: northtar 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