comp.lang.ada
 help / color / mirror / Atom feed
From: Alexander Korolev <antonovkablog@gmail.com>
Subject: Re: GNAColl SQLite Binding Installation Problem (Mac, Snow Leopard)
Date: Thu, 11 Aug 2011 00:20:19 -0700 (PDT)
Date: 2011-08-11T00:20:19-07:00	[thread overview]
Message-ID: <8db55ca7-7468-4323-a3a4-f139decd2bdc@j9g2000prj.googlegroups.com> (raw)
In-Reply-To: m2aabh2av1.fsf@pushface.org

On Aug 11, 1:52 am, Simon Wright <si...@pushface.org> wrote:
> Alexander Korolev <antonovkab...@gmail.com> writes:
> > I've installed GNATColl as a part of GNAT GPL 5 up until "make test"
> > step.
>
> What is GNAT GPL 5? I guess you mean GNAT GPL 2011?
>
> Which version of Mac OS X are you running?
>
>
>
>
>
> > There is no single error on steps
> > "configure"
> > ./configure --prefix=/usr/local/gnatcoll --with-sqlite
>
> > and "make"
>
> > make
>
> > Tried to make a test
>
> > make test
>
> > got errors related to libgnatcoll_sqlite.dylib
>
> > -----
> > ! dyld: Library not loaded: @rpath/libgnatcoll_sqlite.dylib
> > !   Referenced from: /Developer/adacore/AdaCore/GNATcoll/gnatcoll-
> > gpl-2011-src/testsuite/../local_install/bin/gnatcoll_db2ada
> > !   Reason: image not found
>
> > ----
> > I wasn't able to find the file libgnatcoll_sqlite.dylib.  Did anybody
> > experience the same or similar or have any guess.
>
> It's in gnatcoll-gpl-2011-src/src/lib/sqlite/relocatable/.
>
> I don't see why dyld didn't find it at runtime, unless perhaps it's
> confused because the .dylib is a symlink (because gnatcoll isn't fully
> up to speed with shared libraries on the Mac). But then why would it
> work if calling gnatcoll_db2ada in its original built location?
>
> I'd recommend that you configure for static libraries only
> (--disable-shared). NB, all, this is only for Mac users!

Thanks Simon.

- MacOS version 10.6.5
- GPL 2011

I've implemented your recommendation. It seems to me  I can proceed
with make install
step now. Just want to make all "make" steps clean to avoid
consequenses further.

AFTER

make test
--
make prefix=/Developer/adacore/AdaCore/GNATcoll/gnatcoll-gpl-2011-src/
local_install install >/dev/null
make prefix=/Developer/adacore/AdaCore/GNATcoll/gnatcoll-gpl-2011-src/
local_install -C testsuite test
--
AFTER
make examples

make -C examples
gnatmake -Pexamples
gcc -c -gnat05 -I- -gnatA /Developer/adacore/AdaCore/GNATcoll/gnatcoll-
gpl-2011-src/examples/newclass.adb
gcc -c -gnat05 -I- -gnatA /Developer/adacore/AdaCore/GNATcoll/gnatcoll-
gpl-2011-src/examples/common.adb
gcc -c -gnat05 -I- -gnatA /Developer/adacore/AdaCore/GNATcoll/gnatcoll-
gpl-2011-src/examples/textconsole.adb
gnatbind -I- -x /Developer/adacore/AdaCore/GNATcoll/gnatcoll-gpl-2011-
src/examples/obj/newclass.ali
gnatlink /Developer/adacore/AdaCore/GNATcoll/gnatcoll-gpl-2011-src/
examples/obj/newclass.ali /usr/local/gnatcoll/lib/gnatcoll/static/
libgnatcoll_python.a /usr/local/gnatcoll/lib/gnatcoll/static/
libgnatcoll.a /usr/local/gnat/lib/gnat_util/static/libgnat_util.a -Wl,-
rpath,/usr/local/gnat/lib/gcc/x86_64-apple-darwin10.2.0/4.5.3/adalib/ /
System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/
config/libpython2.6.a -ldl -lm -o /Developer/adacore/AdaCore/GNATcoll/
gnatcoll-gpl-2011-src/examples/newclass
===================================================
== To run, set the environment variable LD_LIBRARY_PATH
==   LD_LIBRARY_PATH=/usr/local/gnatcoll/lib/gnat:$LD_LIBRARY_PATH








  reply	other threads:[~2011-08-11  7:20 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-10 18:48 GNAColl SQLite Binding Installation Problem (Mac, Snow Leopard) Alexander Korolev
2011-08-10 21:52 ` Simon Wright
2011-08-11  7:20   ` Alexander Korolev [this message]
2011-08-11 12:04     ` Simon Wright
2011-08-11 12:52       ` Dmitry A. Kazakov
2011-08-13 16:51         ` Alexander Korolev
2011-08-13 19:09           ` Dmitry A. Kazakov
2011-08-13 17:05         ` Simon Wright
2011-08-13 19:16           ` Dmitry A. Kazakov
2011-08-13 23:10             ` Simon Wright
2011-08-13 16:50       ` Alexander Korolev
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox