LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-07-2006, 12:08 PM   #1
skka
LQ Newbie
 
Registered: Mar 2006
Posts: 9

Rep: Reputation: 0
GNU autotools, Anjuta, wxWidgets


Hi everybody.

As I wanted to start developing wxWidget applications on Linux (C++) I downloaded wxGTK-2.6.2, compiled and installed it. Compiling samples from the shell works well with gcc -o test `wx-config --cxxflags` minifram.cpp `wx-config --libs`.
Since I want to use an IDE I installed Anjuta. When creating a sample wxWidgets application from Anjuta's wizard the autogen.sh script fails saying that "WX_LIBS" (when doing automake) is not defined in the "src/Makefile.am" (in fact it fails even earlier when doing aclocal). This variable is defined in the "configure.in" but seems to depend on the "AM_OPTIONS_WXCONFIG" and "AM_PATH_WXCONFIG" macros.
I found these macros in wxwin.m4 file which comes with wxGTK, so I copied the file to /usr/share/aclocal.

But the autogen.sh script still fails at the very beginning when executing "aclocal" with "aclocal: configure.in: 22: macro `AM_OPTIONS_WXRC' not found in library".
I can't find a definition for that macro and don't know what to do.

Please anyone help me.

I use
Anjuta 1.24 (deb package)
wxWidgets 2.6.2 - GTK
Ubuntu 5.1

Last edited by skka; 03-08-2006 at 12:18 AM.
 
Old 03-08-2006, 12:54 AM   #2
skka
LQ Newbie
 
Registered: Mar 2006
Posts: 9

Original Poster
Rep: Reputation: 0
Ok, I found the cause. All that was because Ubuntu installs an old version of aclocal. So I updated to "automake 1.9" and the autogen.sh script now runs fine.

But now I have another problem when compiling a sample project made by Anjuta's Wizard. It fails at linking stage:

Code:

skka@s-lap:~/Projects/butnow$ make
make  all-recursive
make[1]: Gehe in Verzeichnis »/home/skka/Projects/butnow«
Making all in src
make[2]: Gehe in Verzeichnis »/home/skka/Projects/butnow/src«
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/lib/wx/include/gtk2-ansi-release-2.6 -I/usr/local/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA     -Wall -g -g -O2 -MT main.o -MD -MP -MF ".deps/main.Tpo" -c -o main.o main.cc; \
then mv -f ".deps/main.Tpo" ".deps/main.Po"; else rm -f ".deps/main.Tpo"; exit 1; fi

/bin/sh ../libtool --mode=link g++ -Wall -g -g -O2   -o butnow  main.o -L/usr/local/lib -pthread   -lwx_gtk2_xrc-2.6 -lwx_gtk2_qa-2.6 -lwx_gtk2_html-2.6 -lwx_gtk2_adv-2.6 -lwx_gtk2_core-2.6 -lwx_base_xml-2.6 -lwx_base_net-2.6 -lwx_base-2.6 
../libtool: line 323: s,^.*/,,g: Datei oder Verzeichnis nicht gefunden
../libtool: line 537: -e: command not found
*** Warning: inferring the mode of operation is deprecated.
*** Future versions of Libtool will require -mode=MODE be specified.
../libtool: line 1841: -e: command not found
../libtool: line 1841: -e: command not found
../libtool: line 1841: -e: command not found
../libtool: line 1841: -e: command not found
../libtool: line 1592: -e: command not found
../libtool: line 2005: -e: command not found
../libtool: line 2010: -e: command not found
../libtool: line 2017: -e: command not found
mkdir /.libs
mkdir: cannot create directory `/.libs': Permission denied
make[2]: *** [butnow] Fehler 1
make[2]: Verlasse Verzeichnis »/home/skka/Projects/butnow/src«
make[1]: *** [all-recursive] Fehler 1
make[1]: Verlasse Verzeichnis »/home/skka/Projects/butnow«
make: *** [all] Fehler 2
Any suggestions?
 
Old 03-08-2006, 02:00 AM   #3
skka
LQ Newbie
 
Registered: Mar 2006
Posts: 9

Original Poster
Rep: Reputation: 0
ok, i figured it out. it was an error in the libtool script generated by anjuta. the script used a variable "SED" that was meant to hold the command name of the "sed" app, but was never initiated. i just set SED=sed in my /etc/environment and it works.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot compile my program anymore (autotools, gnu make) sterrenkijker Programming 5 07-27-2006 04:52 AM
Using GNU autotools properly MadCactus Linux - Software 0 08-19-2004 07:36 AM
GNU autotools in Rh 9 broken? Worked fine in 7.3... rylan76 Red Hat 1 04-17-2004 02:27 PM
Gnu Autotools jinksys Programming 0 10-08-2003 12:26 AM
autotools data help ChimpFace9000 Linux - Software 0 06-16-2003 01:29 PM


All times are GMT -5. The time now is 06:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration