Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #8667

Re: System.load / System.loadLibrary

From "John B. Matthews" <nospam@nospam.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: System.load / System.loadLibrary
Date 2011-10-09 22:26 -0400
Organization The Wasteland
Message-ID <nospam-3E4BB9.22263209102011@news.aioe.org> (permalink)
References <j6rtvg$g6t$1@online.de>

Show all headers | View raw


In article <j6rtvg$g6t$1@online.de>,
 Philipp Kraus <philipp.kraus@flashpixx.de> wrote:

> Library not loaded: libboost_system.dylib   Referenced from: 
> /mytemp/mylib.dylib   Reason: image not found
> 
> Does anybody know a tip to load all libraries first, so the Java VM 
> can work with them from a "fixed" path?

The simplest approach is to let DYLD_LIBRARY_PATH include the full paths 
to both mylib.dylib and libboost_system.dylib.

You can display the names and version numbers of the shared libraries 
required by mylib.dylib using the -L option of otool. It may be 
convenient to use the -install_name option of libtool when building 
mylib.dylib. Both full and relative paths are supported. The -change 
option of install_name_tool may be helpful, too. There's a related 
example here:

<http://home.roadrunner.com/~jbmatthews/misc/shared.html>

-- 
John B. Matthews
trashgod at gmail dot com
<http://sites.google.com/site/drjohnbmatthews>

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Find similar


Thread

System.load / System.loadLibrary Philipp Kraus <philipp.kraus@flashpixx.de> - 2011-10-09 12:45 +0200
  Re: System.load / System.loadLibrary Roedy Green <see_website@mindprod.com.invalid> - 2011-10-09 03:52 -0700
  Re: System.load / System.loadLibrary Roedy Green <see_website@mindprod.com.invalid> - 2011-10-09 04:22 -0700
    Re: System.load / System.loadLibrary Philipp Kraus <philipp.kraus@flashpixx.de> - 2011-10-09 14:09 +0200
      Re: System.load / System.loadLibrary Roedy Green <see_website@mindprod.com.invalid> - 2011-10-09 07:54 -0700
        Re: System.load / System.loadLibrary markspace <-@.> - 2011-10-09 09:32 -0700
          Re: System.load / System.loadLibrary Philipp Kraus <philipp.kraus@flashpixx.de> - 2011-10-09 18:41 +0200
            Re: System.load / System.loadLibrary markspace <-@.> - 2011-10-09 10:31 -0700
  Re: System.load / System.loadLibrary "John B. Matthews" <nospam@nospam.invalid> - 2011-10-09 22:26 -0400

csiph-web