Chen-tao / webm

Automatically exported from code.google.com/p/webm
0 stars 0 forks source link

Compiling libvpx with gcc 4.7.0 #418

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I am trying to compile libvpx 1.0.0 and the current git branch on Slackware 
-current (kernel version 3.2.13, gcc 4.7.0) and it keeps throwing some errors 
at me near the end of make. Despite the errors, if I compile the library 
statically, vpxenc and vpxdec work fine anyway. But, if I try to compile with 
the "--enable-shared" option, attempting to execute vpxenc yields this:

./vpxenc: error while loading shared libraries: libvpx.so.1: cannot open shared 
object file: No such file or directory

And same goes for vpxdec.

Running ldd on vpxenc shows this:

coriolis@fontane:~/mediasys/libvpx-v1.0.0$ ldd vpxenc

        linux-vdso.so.1 (0x00007fff337ff000)
        libvpx.so.1 => not found
        libm.so.6 => /lib64/libm.so.6 (0x00007f7a69c4a000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f7a69a2d000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f7a6966e000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f7a69f70000)

The error that follows from "configure --enable-shared && make" is in the 
attached file.

An interesting thing is that this only started happening after I upgraded from 
gcc 4.6.2 to 4.7.0. Could that be causing the problem?

Original issue reported on code.google.com by jared.pr...@gmail.com on 10 Apr 2012 at 3:33

Attachments:

GoogleCodeExporter commented 9 years ago
I think this is an issue with your environment, try setting LD_LIBRARY_PATH=. 
when you run the executable, if that fixes it, you can add a GGCC flag 

Please reopen if you have more issues. 

Original comment by albe...@google.com on 12 Apr 2012 at 6:08