Re: [Anjuta-list] Source folders inside src
- From: Paulo Jorge de Oliveira Cantante de Matos <pocm netvisao pt>
- To: Naba Kumar <kh_naba gmx net>
- Cc: Anjuta List ML <anjuta-list lists sourceforge net>
- Subject: Re: [Anjuta-list] Source folders inside src
- Date: Sat Jan 3 12:02:01 2004
Oh, forgot to run autogen.
So, I get:
pmatos euler EcoSim $ ./autogen.sh
**Warning**: I am going to run `configure' with no arguments.
If you wish to pass any to it, please specify them on the
`./autogen.sh' command line.
processing .
Running libtoolize...
Running aclocal ...
Running autoheader...
Running automake --gnu ...
automake: src/Makefile.am: not supported: source file `cenario/car.cc'
is in subdirectory
automake: src/Makefile.am: not supported: source file `glm/glm.cc' is in
subdirectory
automake: src/Makefile.am: not supported: source file
`lib3dswrapper/wrapper.cc' is in subdirectory
Running autoconf ...
Running ./configure ...
...
creating libtool
updating cache ./config.cache
creating ./config.status
creating Makefile
creating include/Makefile
creating src/Makefile
creating config.h
config.h is unchanged
Now type `make' to compile the package.
This time I get no errors!
pmatos euler EcoSim $ make
cd . && autoheader
make all-recursive
make[1]: Entering directory `/home/pmatos/projects/EcoSim'
Making all in include
make[2]: Entering directory `/home/pmatos/projects/EcoSim/include'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/pmatos/projects/EcoSim/include'
Making all in src
make[2]: Entering directory `/home/pmatos/projects/EcoSim/src'
g++ -DHAVE_CONFIG_H -I. -I. -I..
-I/home/pmatos/projects/EcoSim/include -g -O2 -c accpersp.cc
g++ -DHAVE_CONFIG_H -I. -I. -I..
-I/home/pmatos/projects/EcoSim/include -g -O2 -c camera.cc
g++ -DHAVE_CONFIG_H -I. -I. -I..
-I/home/pmatos/projects/EcoSim/include -g -O2 -c display.cc
g++ -DHAVE_CONFIG_H -I. -I. -I..
-I/home/pmatos/projects/EcoSim/include -g -O2 -c game.cc
g++ -DHAVE_CONFIG_H -I. -I. -I..
-I/home/pmatos/projects/EcoSim/include -g -O2 -c main.cc
g++ -DHAVE_CONFIG_H -I. -I. -I..
-I/home/pmatos/projects/EcoSim/include -g -O2 -c snapshot.cc
/bin/sh ../libtool --mode=link g++ -g -O2 -o ecosim accpersp.o
camera.o display.o game.o main.o snapshot.o -lGL -lglut -l3ds -lGLU
mkdir .libs
g++ -g -O2 -o ecosim accpersp.o camera.o display.o game.o main.o
snapshot.o /usr/lib/libglut.so -L/usr/X11R6/lib -l3ds
/usr/lib/libGLU.so -L/usr/lib -lGL -lSM -lICE -lXmu -lXt -lXext -lXi
-lX11 -ldl -lpthread
game.o(.text+0x94): In function `game::~game [not-in-charge]()':
/home/pmatos/projects/EcoSim/src/game.cc:18: undefined reference to
`car::~car [in-charge]()'
game.o(.text+0x114): In function `game::~game [in-charge]()':
/home/pmatos/projects/EcoSim/src/game.cc:18: undefined reference to
`car::~car [in-charge]()'
game.o(.text+0x1b4): In function `game::game[not-in-charge]()':
/home/pmatos/projects/EcoSim/src/game.cc:32: undefined reference to
`car::car[in-charge]()'
game.o(.text+0x294): In function `game::game[in-charge]()':
/home/pmatos/projects/EcoSim/src/game.cc:32: undefined reference to
`car::car[in-charge]()'
collect2: ld returned 1 exit status
make[2]: *** [ecosim] Error 1
make[2]: Leaving directory `/home/pmatos/projects/EcoSim/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/pmatos/projects/EcoSim'
make: *** [all-recursive-am] Error 2
Which is normal, since it is not compiling car.cc
Any ideas?
Best regards,
Paulo Matos
On Sat, 2004-01-03 at 19:59, Paulo Jorge de Oliveira Cantante de Matos
wrote:
> >From the command line I get something diff:
> With configure I get everything correct until:
> pmatos euler EcoSim $ ./configure
> ...
> creating libtool
> updating cache ./config.cache
> creating ./config.status
> creating Makefile
> creating include/Makefile
> sed: can't read ./include/Makefile.in: No such file or directory
> creating src/Makefile
> creating config.h
> config.h is unchanged
> pmatos euler EcoSim $ make
> make all-recursive
> make[1]: Entering directory `/home/pmatos/projects/EcoSim'
> Making all in include
> make[2]: Entering directory `/home/pmatos/projects/EcoSim/include'
> make[2]: *** No rule to make target `all'. Stop.
> make[2]: Leaving directory `/home/pmatos/projects/EcoSim/include'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/pmatos/projects/EcoSim'
> make: *** [all-recursive-am] Error 2
> pmatos euler EcoSim $ make all
> make all-recursive
> make[1]: Entering directory `/home/pmatos/projects/EcoSim'
> Making all in include
> make[2]: Entering directory `/home/pmatos/projects/EcoSim/include'
> make[2]: *** No rule to make target `all'. Stop.
> make[2]: Leaving directory `/home/pmatos/projects/EcoSim/include'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/pmatos/projects/EcoSim'
> make: *** [all-recursive-am] Error 2
>
> Any ideas?
>
>
> Best regards,
>
> Paulo Matos
>
> On Fri, 2004-01-02 at 17:20, Naba Kumar wrote:
> > On Fri, 2004-01-02 at 20:12, Paulo Jorge de Oliveira Cantante de Matos
> > wrote:
> > > Hi all,
> > >
> > > I had a project I programmed sometime ago under emacs and I had a src
> > > folder and then I had there some source files but inside src I had some
> > > folders that would correspond to some portions of the program or some
> > > wrappers.
> > > When I had this to Anjuta 1.2.0, all the source folder and include files
> > > I get when doing build all:
> > > automake:src/Makefile.am: not supported: source file `cenario/car.cc' is
> > > in subdirectory
> > > ... and some other lines like this one.
> > >
> > > How can I make Anjuta check the folder and compile them as needed?
> > >
> > Does it work from command line? Looks like you have some problem with
> > your automake structure in your project. I would suggest you build the
> > structure similar to other project and re-import your project in anjuta.
> >
> > Regards,
> > -Naba
> >
> >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: IBM Linux Tutorials.
> > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
> > Free Linux Tutorials. Learn everything from the bash shell to sys admin.
> > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
> > _______________________________________________
> > Anjuta-list mailing list
> > Anjuta-list lists sourceforge net
> > https://lists.sourceforge.net/lists/listinfo/anjuta-list
--
Paulo J. Matos : pocm [_at_] mega . ist . utl . pt
Instituto Superior Tecnico - Lisbon
Computer and Software Eng. - A.I.
- > http://mega.ist.utl.pt/~pocm
---
-> God had a deadline...
So, he wrote it all in Lisp!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]