Shared dynamic and static library

0

Category: , , , , , ,

Waktu itu iseng install app yang gak ada dipackage bawaan distro. terpaksa compile langsung dari file source codenya. nah, apesnya ditengah jalan terdapat sesuatu yang gak diharapkan. eaaaaaaaa ada masalah dengan dependencies  library app yang bersangkutan gak mau kedetek pas diconfigure padahal udah ane install.

#tail -f config.log | grep not found
checking for libxzy >= 0.0.1... configure: error: xzy not found

Cek library udah masuk ke direktori.

/usr/lib/libxyz.la
/usr/lib/libxyz.so.1
/usr/lib/libxyz.so.0.0.1
/usr/lib/libxyz.a
/usr/lib/libxyz.so




#pkg-config --libs xyz
Package xyz was not found in the pkg-config search path.
Perhaps you should add the directory containing `xyz.pc'
to the PKG_CONFIG_PATH environment variable
No package 'xyz' found

File sudah terinstall sesui ditempatnya namun library gak kedaftar module pkg-config.  kembali ke direktori source code file xyz. setelah proses ./configure kopi  file berekstensi .pc ke direktori /usr/lib/pkgconfig dan /usr/share/pkgconfig

Setelah itu cek lagi
#pkg-config --libs xyz

dah aman gan heheheh. kejadian apes diatas gara2 ane ngompile file library menggunakan metode yang kurang emaknyus, kalo agan ada masukan ttg kompile file library yang mantaps, kasi komeng di trit ini yaw. thank's b4

Reference :

http://people.freedesktop.org/~dbn/pkg-config-guide.html
http://linux.die.net/man/1/pkg-config
http://www.ibm.com/developerworks/linux/library/l-shlibs/index.html
http://www.yolinux.com/TUTORIALS/LinuxTutorialSoftwareDevelopment.html
http://www.yolinux.com/TUTORIALS/LibraryArchives-StaticAndDynamic.html
http://www.thegeekstuff.com/2010/09/linux-file-system-structure/
http://www.tuxfiles.org/linuxhelp/linuxdir.html

-ghopal-


Related Post



Comments (0)

Post a Comment