[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Swarm-Support] Re: [swarm-hackers] Compiliing swarm from scratch - phas
From: |
Bill Northcott |
Subject: |
[Swarm-Support] Re: [swarm-hackers] Compiliing swarm from scratch - phase 1 |
Date: |
Mon, 25 Aug 2003 12:07:26 +1000 |
I have put this on the support list because that is where it belongs.
>[alex-alexs-Computer:/swarmapps/tutorial/simpleCBug] alex% ./bug
>dyld: ./bug can't open library: libBLT24.dylib (No such file or
>directory, errno = 2)
When the app is launched, dyld has to resolve all undefined symbols in the
libraries that were linked by ld. This is failing because it cannot find
libBLT. ld will have found it from '-L/usr/local/blt2.4z/lib' in the link
instruction but dyld needs it to be in the DYLD_LIBRARY_PATH or one of the
default directories (/usr/lib etc.).
Is libBLT24.dylib in your DYLD_LIBRARY_PATH? If not just add it,
preferable by editing the shell initialisation script (~/.bashrc or
~/.tcshrc)
Bill Northcott
> I am trying to compile Swarm from scratch on MacOsX.
> Actually I am compiling just the objc.
> The compilation runs fine, but when I try to compile any simulation
> here it is the result (here I compile the simpleCbug, but the
> buhavour is the same)
> .--
> [alex-alexs-Computer:/swarmapps/tutorial/simpleCBug] alex% make clean
> rm -f main.o bug .libs/bug .libs/lt-bug core gmon.out bug.core
> [alex-alexs-Computer:/swarmapps/tutorial/simpleCBug] alex% make
> /compiler/bin/gcc -c -g -O2 -fgnu-runtime -fno-strict-aliasing -Wall
> -Wno-import -Wno-protocol -Wno-long-long -Wno-error -DAPPNAME=bug
> -DAPPVERSION=2.1 address@hidden -I/swarm/include
> main.m
> /bin/sh /swarm/bin/libtool-swarm --mode link /compiler/bin/gcc -g -O2
> -L/swarm/lib -rpath /swarm/lib -o bug main.o -lswarm -lswarmobjc
> /compiler/bin/gcc -g -O2 -o bug main.o -L/swarm/lib
> /swarm/lib/libswarm.dylib -L/src/needed/swarm/build/src/space
> -L/src/needed/swarm/build/src/analysis
> -L/src/needed/swarm/build/src/simtoolsgui
> -L/src/needed/swarm/build/src/simtools
> -L/src/needed/swarm/build/src/random
> -L/src/needed/swarm/build/src/tkobjc
> -L/src/needed/swarm/build/src/tclobjc
> -L/src/needed/swarm/build/src/objectbase
> -L/src/needed/swarm/build/src/activity
> -L/src/needed/swarm/build/src/defobj
> -L/src/needed/swarm/build/src/collections
> -L/src/needed/swarm/build/src/misc -L/src/needed/swarm/build/libobjc
> -L/usr/local/png_1.2.5/lib -L/usr/lib -L/usr/local/blt2.4z/lib
> -L/usr/local/tcl8.4.1/lib -L/usr/X11R6/lib -L/usr/local/tk8.4.1/lib
> /swarm/lib/libspace.dylib /swarm/lib/libanalysis.dylib
> /swarm/lib/libsimtoolsgui.dylib /swarm/lib/libsimtools.dylib
> /swarm/lib/librandom.dylib /swarm/lib/libtkobjc.dylib
> /swarm/lib/libtclobjc.dylib /swarm/lib/libobjectbase.dylib
> /swarm/lib/libactivity.dylib /swarm/lib/libdefobj.dylib
> /swarm/lib/libcollections.dylib /swarm/lib/libmisc.dylib -lBLT24
> -ltk8.4 -ltcl8.4 -lXpm -lpng -lz -lX11 -lm
> /swarm/lib/libswarmobjc.dylib
> /usr/bin/ld: warning multiple definitions of symbol ___trampoline_setup
> /swarm/lib/libspace.dylib(darwin-tramp.o) definition of
___trampoline_setup
> /swarm/lib/libswarmobjc.dylib(darwin-tramp.o) definition of
> ___trampoline_setup
> /usr/bin/ld: warning multiple definitions of symbol _tclStubsPtr
> /usr/local/tk8.4.1/lib/libtk8.4.dylib(tclStubLib.o) definition of
_tclStubsPtr
> /usr/local/tcl8.4.1/lib/libtcl8.4.dylib(tclStubLib.o) definition of
> _tclStubsPtr
> /usr/bin/ld: warning multiple definitions of symbol _tclPlatStubsPtr
> /usr/local/tk8.4.1/lib/libtk8.4.dylib(tclStubLib.o) definition of
> _tclPlatStubsPtr
> /usr/local/tcl8.4.1/lib/libtcl8.4.dylib(tclStubLib.o) definition of
> _tclPlatStubsPtr
> /usr/bin/ld: warning multiple definitions of symbol _tclIntPlatStubsPtr
> /usr/local/tk8.4.1/lib/libtk8.4.dylib(tclStubLib.o) definition of
> _tclIntPlatStubsPtr
> /usr/local/tcl8.4.1/lib/libtcl8.4.dylib(tclStubLib.o) definition of
> _tclIntPlatStubsPtr
> /usr/bin/ld: warning multiple definitions of symbol _tclIntStubsPtr
> /usr/local/tk8.4.1/lib/libtk8.4.dylib(tclStubLib.o) definition of
> _tclIntStubsPtr
> /usr/local/tcl8.4.1/lib/libtcl8.4.dylib(tclStubLib.o) definition of
> _tclIntStubsPtr
> /usr/bin/ld: warning multiple definitions of symbol _Tcl_InitStubs
> /usr/local/tk8.4.1/lib/libtk8.4.dylib(tclStubLib.o) definition of
> _Tcl_InitStubs
> /usr/local/tcl8.4.1/lib/libtcl8.4.dylib(tclStubLib.o) definition of
> _Tcl_InitStubs
> /usr/bin/ld: warning suggest use of -bind_at_load, as lazy binding
> may result in errors or different symbols being used
> symbol ___eprintf used from dynamic library
> /swarm/lib/libswarmobjc.dylib(_eprintf.o) not from earlier dynamic
> library /swarm/lib/libdefobj.4.dylib(_eprintf.o)
> symbol ___eprintf used from dynamic library
> /swarm/lib/libswarmobjc.dylib(_eprintf.o) not from earlier dynamic
> library /swarm/lib/libmisc.1.dylib(_eprintf.o)
> [alex-alexs-Computer:/swarmapps/tutorial/simpleCBug] alex% ./bug
> dyld: ./bug can't open library: libBLT24.dylib (No such file or
> directory, errno = 2)
> Trace/BPT trap
> [alex-alexs-Computer:/swarmapps/tutorial/simpleCBug] alex%
> ---
> Any hints?
> ALEX
> --
> ----
> ,,,,
> /'^'\
> ( o o )
> -oOOO--(_)--OOOo---------------------------------------------------
> Amo parlare di niente,
> E' l'unico argomento di cui so tutto.
> .oooO Alex Perrone - address@hidden address@hidden
> ( ) Oooo. Home Page: http://www.alessandroperrone.it
> ---\ (----( )----------------------------------------------------
> \_) ) /
> (_/
>
> _______________________________________________
> swarm-hackers mailing list
> address@hidden
> http://mail.nongnu.org/mailman/listinfo/swarm-hackers
- [Swarm-Support] Re: [swarm-hackers] Compiliing swarm from scratch - phase 1,
Bill Northcott <=