Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#16 lt-asc2g: error

closed-fixed
Sean Morrison
5
2007-05-14
2007-05-13
John Coppens
No

After a flawless autogen.sh and configure, compilation stops at this point:

make[1]: Leaving directory `/tmp/cvs/brlcad/bench'
Making all in db
make[1]: Entering directory `/tmp/cvs/brlcad/db'
../src/conv/asc2g bldg391.asc bldg391.g
/tmp/cvs/brlcad/src/conv/.libs/lt-asc2g: error while loading shared libraries: libtcl8.5.so: cannot open shared object file: No such file or directory
make[1]: *** [bldg391.g] Error 127
make[1]: Leaving directory `/tmp/cvs/brlcad/db'
make: *** [all-recursive] Error 1

I downloaded brl-cad from cvs yesterday. gcc is 4.1.2,
machine is an AMD64 in 32 bit mode.

John

Discussion

  • Sean Morrison
    Sean Morrison
    2007-05-13

    • assigned_to: nobody --> brlcad
    • status: open --> open-accepted
     
  • Sean Morrison
    Sean Morrison
    2007-05-13

    Logged In: YES
    user_id=785737
    Originator: NO

    Good news is that pretty much everything compiled -- running asc2g is one of the very last steps where it generates geometry database files from the examples we provide. You should be able to just "sudo make install" and it should actually complete (including successfully running asc2g during make install).

    The problem loading libtcl8.5.so is that libtool isn't looking in the build directory where it resides (i.e. src/other/libtcl/unix) so when it tries to run the (uninstalled) asc2g binary -- it fails. Working on a way to work around that problem, but don't presently have a great solution (e.g. compile and link tcl/tk static or don't run asc2g until during installation phase, etc).

     
  • John Coppens
    John Coppens
    2007-05-13

    Logged In: YES
    user_id=21667
    Originator: YES

    For some reason I hadn't noticed the libtcl reference at first. I then checked my tcl version and it was 8.4, so I downloaded tcl8.5 and did the install procedure. Strangely enough, it seems ldconfig doesn't want to update the links though - even after re-running ldconfig, libtcl.so
    still points to libtcl8.4.so, even though the 8.5 version is just
    alongside. The libs are in /usr/lib, so they should be read by ldconfig
    at all times.

    So, I edited the symlink by hand, and brlcad now finished compiling and installed completely.

    Thanks,
    John

     
  • John Coppens
    John Coppens
    2007-05-13

    • status: open-accepted --> open-fixed
     
  • Sean Morrison
    Sean Morrison
    2007-05-14

    Logged In: YES
    user_id=785737
    Originator: NO

    Glad to hear you got it working, albeit via a different approach. Cheers!

     
  • Sean Morrison
    Sean Morrison
    2007-05-14

    • labels: 622299 --> Compilation & Installation
    • status: open-fixed --> closed-fixed