I can compile my program after #include “fmod.h” and using libfmod-3.7.so in my make file. However when I run the executable I get an error saying:
./RunImage: error while loading shared libraries: libfmod-3.71.so: cannot open shared object file: No such file or directory
I have the libfmod-3.71.so in the same directory as my executable and the permissions for the executable are OK????
- nigelibrown asked 15 years ago
i’m having the same problem… but i think my makefile is correct. the fmod.h header file is found, but the library isn’t being linked in on execution.
INCDIR = -I/usr/class/cs248/support/include -I/usr/X11R6/include -Ifmodapi371linux/api/inc
LIBDIR = -L/usr/class/cs248/support/lib/i386-linux -L/usr/X11R6/lib -Lfmodapi371linux/api
LIBS = -lglut -lGL -lGLU -lXmu -lXext -lX11 -lm -lfmod-3.71
CXX = g++
$(TARGET): $(OBJS) Makefile
$(CXX) -Wall $(DEBUG) -o $@ $(OBJS) $(LIBDIR) $(LIBS)
$(CXX) -Wall -g $(INCDIR) -c -o $@ $*.cc
- seat answered 15 years ago
Long time since I’ve been programming on Linux but shouldn’t the fmod*.so file be in a directory that is in the SO_LIBRARY_PATH.
In Bash try this in the diretory with fmod*.so and executable:
$PWD == present working directory
- bear101 answered 15 years ago
Please login first to submit.