Advertisement

SVGAlib-- trouble with linking or build... I'm not sure

Started by October 13, 2002 01:19 AM
2 comments, last by Some Guy 22 years, 3 months ago
(Enter Gaelic equivalent of "Hello") I think it was yesterday that I compiled SVGAlib for about the hundredth time, just I have many times before and never used it. I wrote and compiled a little test proggie that merely initializes SVGAlib and quits. gcc -lvga main.cpp -o tst It compiles, but tst does not run. Here''s the error I get: $./tst ./tst: error while loading shared libraries: libvga.so.1: cannot open shared object file: No such file or directory Better yet, the demos get this same error. My best guess is that the programs are trying to link to libvga.so.1, when they should be linking to libvga.so or libvga.so.1.4.3 in /usr/local/lib. What do you think is wrong, and what do I do? (Enter Gaelic equivalent of "asta la vista")
Make sure there is a symlink from libvga.so.1 to libvga.so.1.4.3. Also, have you run ldconfig after installing the libraries?

Advertisement
Negative.

As su root...

#cd /usr/local/lib
#ln -s libvga.so.1.4.3 libvga.so.1 &&
>ln -s libvgagl.so.1.4.3 libvgagl.so.1
#ldconfig

And still, the test program fails to run, displaying the exact same error.

Now what?
Problem solved.

I was assuming the programs were trying to find the so''s in /usr/local/lib, but they were really looking for them in /usr/lib. I immediately smacked myself for being so blind.

So, now I have the proper symlinks in place so the programs can run.

This topic is closed to new replies.

Advertisement