The libz.so.1 issue

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

The libz.so.1 issue

kartik natarajan
Hi, 
    I have written my first piece of gstreamer code for the DM365 board.
  I have setup the development evnironment for the DVSDK and the path variables show the right values.
 I compiled it with the following line
arm-none-linux-gnueabi-gcc  -o  gstream   gstream.c   `pkg-config  --cflags  --libs  gstreamer-0.10`

The file compiles and during linking it throws this message and stops: I have played the verbose and the path for libz.so.1 seems to be included. How do I solve this apparent trivial problem?

/home/nkartik/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: warning: libz.so.1, needed by /home/nkartik/ti-dvsdk_dm365-evm_4_02_00_06/linux-devkit//arm-none-linux-gnueabi/usr/lib/libgstreamer-0.10.so, not found (try using -rpath or -rpath-link)

/home/nkartik/ti-dvsdk_dm365-evm_4_02_00_06/linux-devkit//arm-none-linux-gnueabi/usr/lib/libxml2.so: undefined reference to `inflateEnd'

/home/nkartik/ti-dvsdk_dm365-evm_4_02_00_06/linux-devkit//arm-none-linux-gnueabi/usr/lib/libxml2.so: undefined reference to `gzdirect'

/home/nkartik/ti-dvsdk_dm365-evm_4_02_00_06/linux-devkit//arm-none-linux-gnueabi/usr/lib/libxml2.so: undefined reference to `gzopen'

/home/nkartik/ti-dvsdk_dm365-evm_4_02_00_06/linux-devkit//arm-none-linux-gnueabi/usr/lib/libxml2.so: undefined reference to `gzclose'

/home/nkartik/ti-dvsdk_dm365-evm_4_02_00_06/linux-devkit//arm-none-linux-gnueabi/usr/lib/libxml2.so: undefined reference to `deflate'

/home/nkartik/ti-dvsdk_dm365-evm_4_02_00_06/linux-devkit//arm-none-linux-gnueabi/usr/lib/libxml2.so: undefined reference to `inflateInit2_'

/home/nkartik/ti-dvsdk_dm365-evm_4_02_00_06/linux-devkit//arm-none-linux-gnueabi/usr/lib/libxml2.so: undefined reference to `inflate'

/home/nkartik/ti-dvsdk_dm365-evm_4_02_00_06/linux-devkit//arm-none-linux-gnueabi/usr/lib/libxml2.so: undefined reference to `gzwrite'

/home/nkartik/ti-dvsdk_dm365-evm_4_02_00_06/linux-devkit//arm-none-linux-gnueabi/usr/lib/libxml2.so: undefined reference to `crc32'

/home/nkartik/ti-dvsdk_dm365-evm_4_02_00_06/linux-devkit//arm-none-linux-gnueabi/usr/lib/libxml2.so: undefined reference to `deflateEnd'

/home/nkartik/ti-dvsdk_dm365-evm_4_02_00_06/linux-devkit//arm-none-linux-gnueabi/usr/lib/libxml2.so: undefined reference to `gzdopen'

/home/nkartik/ti-dvsdk_dm365-evm_4_02_00_06/linux-devkit//arm-none-linux-gnueabi/usr/lib/libxml2.so: undefined reference to `deflateInit2_'

/home/nkartik/ti-dvsdk_dm365-evm_4_02_00_06/linux-devkit//arm-none-linux-gnueabi/usr/lib/libxml2.so: undefined reference to `gzread'

collect2: ld returned 1 exit status


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: The libz.so.1 issue

Nicolas Dufresne
Le lundi 03 septembre 2012 à 18:51 +0530, kartik natarajan a écrit :
The file compiles and during linking it throws this message and stops: I have played the verbose and the path for libz.so.1 seems to be included. How do I solve this apparent trivial problem?
It looks like your build of gstreamer is not completely linked. Normally the library is link to libz in a way that you don't have to specify it to use the library. You can workaround this issue by adding -lz to build command.

regards,
Nicolas
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: The libz.so.1 issue

kartik natarajan
It worked!

Thanks Nicolas. It's a timely help!

On Mon, Sep 3, 2012 at 11:34 PM, Nicolas Dufresne <[hidden email]> wrote:
Le lundi 03 septembre 2012 à 18:51 +0530, kartik natarajan a écrit :

The file compiles and during linking it throws this message and stops: I have played the verbose and the path for libz.so.1 seems to be included. How do I solve this apparent trivial problem?
It looks like your build of gstreamer is not completely linked. Normally the library is link to libz in a way that you don't have to specify it to use the library. You can workaround this issue by adding -lz to build command.

regards,
Nicolas

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




--
Believe in your dreams, they have a strange way of coming true!!!

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel