0
0

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???? :)

  • You must to post comments
0
0

no, put the .so lib to you $LIB paths ( /usr/local/lib, /usr/lib …)

  • You must to post comments
0
0

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
@echo FINAL!!!!
$(CXX) -Wall $(DEBUG) -o $@ $(OBJS) $(LIBDIR) $(LIBS)

$(OBJS):
@echo SHDFLKSDJF!!!!!
$(CXX) -Wall -g $(INCDIR) -c -o $@ $*.cc

thx,
s/e

  • You must to post comments
0
0

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:

export SO_LIBRARY_PATH=$SO_LIBRARY_PATH:$PWD

$PWD == present working directory

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.