Questions tagged [library-path]

71 questions
4
votes
0 answers

Automatically move libraryDependencies (natives) to Java's Library Path or set Library Path to the location of the dependencies

I'm here to ask for help to automate a process I saw no other solution than doing it manually. In one of my projects, I have the following dependencies: libraryDependencies ++= Seq( "org.lwjgl" % "lwjgl" % "3.0.0a", "org.lwjgl" %…
user4063815
4
votes
1 answer

Load .so file from a jar

I made a library in C and I call it from Java with JNI so I have my package and a lib folder with the libMYLIB.so file. I recall it from Java writing: static{ System.loadLibrary("MYLIB"); } If I execute it with the option…
3
votes
1 answer

How best to modify / install a component library path into the Delphi IDE without doing it manually?

I am preparing an installer (Inno Setup) to install my component package into Delphi XE without having to manually fiddle in the IDE. I need to modify the Delphi library path, for example to delete part of it (for example, xxx;MyOldPath;yyy) and…
Brian Frost
  • 13,334
  • 11
  • 80
  • 154
3
votes
1 answer

Java 9 Classpath and Library Path Extension

Java 9 is modularized precluding accessing via reflection base Java components. This renders most methods of extending classpath and java.library.path programmatically invalid. How to do it right? And how to make it compatible with…
user579013
  • 197
  • 2
  • 9
3
votes
0 answers

Linking to a native library in Eclipse

I have a native library to which I'm trying to link from Eclipse. Library (libhmsbeagle) is in /usr/local/lib: $ls /usr/local/lib libhmsbeagle-cpu.la libhmsbeagle-jni.la libhmsbeagle-cpu.so …
fbielejec
  • 3,492
  • 4
  • 27
  • 35
2
votes
1 answer

Default Library Path

Prior to my problem, I attempted to install a component which required me to change my Library - Win32 library path. The installation did not work out so I left it. A few days ago, I ran Delphi to work on my project. I compiled the program but…
ple103
  • 2,080
  • 6
  • 35
  • 50
2
votes
0 answers

How to specify path for dlls a dll library uses in c++?

I am using a dll library for my c++ code using LoadLibrary. HINSTANCE h_dll = LoadLibrary("library1.dll"); When I do this and load the functions, library1.dll seems to use a multiple of other dll files, say library2.dll and library3.dll. So for the…
2
votes
0 answers

Add path for native library at runtime in Java regarding non modular and modular projects

I have two projects using Java 11 from AdoptOpenJDK with ant for building purposes. Both using the same code base except of namings. The first one is a non modular project with the code in the unnamed module. This one runs without Exception and adds…
2
votes
1 answer

Z3 Python bindings: init(Z3_LIBRARY_PATH) must be invoked before using Z3-python

I installed the Z3 theorem prover on Linux, and am using its Python bindings (Z3Py). I tried to test a minimal example, but I immediately got the following error: z3.z3types.Z3Exception: init(Z3_LIBRARY_PATH) must be invoked before using…
D.W.
  • 3,382
  • 7
  • 44
  • 110
1
vote
0 answers

How can I add an environment entry for _all_ project targets?

In CLion (e.g. 2021.3), you can "Edit Configurations..." for project targets, and set environment variables (such as LD_LIBRARY_PATH). But - how can I append such variables for all targets in a project? (That is, other than manually adding them for…
einpoklum
  • 118,144
  • 57
  • 340
  • 684
1
vote
2 answers

Xcode can't find or include SDL2

I have recently downloaded SDL2 and am trying to install it. I created a small test program consisting of a .cpp and a .h file. I have put SDL2.frameworks inside of /Library/Frameworks and then made sure that it was added to General->Frameworks and…
1
vote
2 answers

Where is Python path being manipulated?

On one server I'm able to import a library, on a second one I'm not. The library I need to import is shared via NFS and reachable by both servers. I found out that the Python path is different between the two servers, but the Python binary is the…
Alberto Chiusole
  • 2,204
  • 2
  • 16
  • 26
1
vote
1 answer

What is the best way to create the user library directory set in .Renviron?

I'm trying to find the best way to setup R for my team. Because our institution has the user home directory on a network share, the R user library is defaulted to this network share. After some research, I found that setting R_LIBS_USER in the…
1
vote
1 answer

ld: cannot find .... Error when compiling CAMB in a cluster (ifort compiler)

I'm trying to install the program CAMB in a cluster environment. I'm using the ifort compiler. Whenever I type make I get this error: ld: cannot find -lm ld: cannot find -lstdc++ ld: cannot find -lpthread ld: cannot find -lc ld: cannot find…
1
vote
0 answers

How to add library to vcxproject in project properties?

I want to link a library file and a directory to my project, but I want to set this in project files, not from visual studio. I am running msbuild. I tried