swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swarm-Support] compile error, now almost working


From: Marcello
Subject: Re: [Swarm-Support] compile error, now almost working
Date: 30 May 2003 18:01:08 +0200

HI,
thanks again. Now everything works fine. I put my swarm libraries in
ld.so.conf (which I already use in place of LD_LIBRARY_PATH), and I do
not get any error or warning. It seems to work perfectly.

I'm very grateful for the help
cheers
Marcello




On Fri, 2003-05-30 at 17:43, Paul Johnson wrote:
> Well, I dunno about your build since you have not done it the way I do.
> 
> It looks like you have a typographical error, in the prefix you say 
> "user" and in your compiler output it says "usr".
> 
> I hasten to say that if you did ./configure once and built swarm, then 
> running ./configure --prefix will not do anything. You can erase the 
> build dir to get a fresh start.
> 
> Also, I wonder if you noticed that when swarm installs, it gives lots of 
> warnings about dynamic libraries and I suspect you have not taken into 
> account the fact that your swarm libraris are not in your 
> LD_LIBRARY_PATH. Consider setting the library path in the environment with
> 
> # export LD_LIBRARY_PATH=/home/user/swarm:$LD_LIBRARY_PATH
> 
> so it knows where to look.
> 
> Marcello wrote:
> > Hi Paul,
> > thanks so much for your quick help. Here is what happened:
> > 
> > I was trying to manually compile swarm-2.1.143.20030512. Following your
> > suggestion, I compiled it in a separate build directory, but I stuck on
> > gcc 3.2, with GNU libtool 1.4.2 (1.922.2.53 2001/09/11 03:18:52). I just
> > ran "configure--make--make install" sequence without any change
> > anywhere.It compiled as smooth as silk (without JDK).
> > .
> > 
> > I then installed it in a non-standard directory (by ./configure
> > --prefix=/home/user/swarm).
> > 
> > I then compiled one of my old swarm program in objectC (from swarm 2.0)
> > and I got this error:
> > /bin/sh /home/usr/swarm/bin/libtool-swarm --mode link gcc -g -O2
> > -L/home/usr/swarm/lib -rpath /home/usr/swarm/lib  -o base main.o
> > Person.o Counter.o Genesis.o ModelSwarm.o ObserverSwarm.o Game.o
> > Groups.o BatchSwarm.o  -lswarm -lswarmobjc 
> > libtool-swarm: link: warning: library
> > `/home/usr/swarm/lib/libswarmobjc.la' was moved.
> > libtool-swarm: link: cannot find the library
> > `/usr/local/lib/libswarmobjc.la'
> > make: *** [base] Error 1
> > I checked and libswarmobjc.la was in /home/usr/swarm/lib.
> > 
> > I also checked libtool-swarm --config, but nothing pointed to
> > /home/usr/swarm. I then copied libswarmobjc.* from /home/usr/swarm to
> > /usr/local/lib, and everything works well. All my programs compile and
> > run well.
> > 
> > Do you know why I had this problem? 
> > I have read on the mailing list about the problems with gcc 3.2, but it
> > seems to work fine for me. Is that an illusion?
> > 
> > thanks a lot of the help
> > marcello
> >  
> > P.S. please let me know if you need any details about my system.
> >  
> > 
> 
> -- 
> Paul E. Johnson                       email: address@hidden
> Dept. of Political Science            http://lark.cc.ku.edu/~pauljohn
> University of Kansas                  Office: (785) 864-9086
> Lawrence, Kansas 66045                FAX: (785) 864-5700
> 
> _______________________________________________
> Support mailing list
> address@hidden
> http://www.swarm.org/mailman/listinfo/support
-- 
Marcello Gallucci (Ph.D)
Department of Social Psychology
Free University
Van der Boechorststraat 1
1081 BT Amsterdam (NL)
Tel. +31(0)20 4448846
Fax  +31 (0)20 4448921


reply via email to

[Prev in Thread] Current Thread [Next in Thread]