Pkg_config_path
Quote:
Thanks a lot. |
For example if you are using bash:
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig export PKG_CONFIG_PATH You can find default path like this: locate pkg-config and it usually is : /usr/bin/pkg-config You should knw where the new libraries are (=where to set PKG_CONFIG_PATH). This can give hins: locate pkgconfig I hope this helps ? |
Thanks a lot,that command works.
I've an old Glib-2.2.3 installed at prefix /usr and the new Glib-2.4.6 at the prefix /usr/local . Pango config shows this log >>>>> checking for pkg-config... (cached) /usr/bin/pkg-config checking for GLIB - version >= 2.4.0... *** 'pkg-config --modversion glib-2.0' returned 2.4.6, but GLIB (2.2.3) *** was found! If pkg-config was correct, then it is best *** to remove the old version of GLib. You may also be able to fix the error *** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing *** /etc/ld.so.conf. Make sure you have run ldconfig if that is *** required on your system. *** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH *** to point to the correct configuration files I prefer keep also the old version of Glib , then how can I modify LD_LIBRARY_PATH or what have I to put in /etc/ld.so.conf ??? Sorry...I'm a beginner......Thanks a lot in advance. Regards. |
both LD_LIBRARY_PATH and /etc/ld.so.conf contain list of directories to search for libraries.
LD_LIBRARY_PATH is higher preference, so it is checked first. Just do export LD_LIBRARY_PATH=/usr/local or export LD_LIBRARY_PATH=/usr/local/lib depending where those libraries are. (/usr/lib is always searched since it is default location, so you do not have to put it there.) If you need to define multiple library directories separate those with ; You can also enter line /usr/local/lib or /usr/local into /etc/ld.so.conf but this is checked after the default location, so it probably does not help you. for example I have: cat /etc/ld.so.conf /usr/kerberos/lib /usr/X11R6/lib /usr/lib/sane /usr/local/qt/lib /usr/local/lib man ld might also be useful. |
Many thanks !:newbie:
|
I just had the same problem - thanks guys, this thread really helped me out :)
|
Decoders in gstreamer programming
Hi,
My first prog. on gstreamer project is simpleAudioPlayer.c which is not working,perhaps due to decoder's problem. The decoder plugin "mad" is NOT found as shows during execution . How write to exact syntax and others requirements for that??? my code is: include<gst/gst.h> main(int argc, char *argv[ ]) { GstElement *pipeline, *filesrc, *decoder, *audiosink; gst_init(&argc, &argv); if (argc != 2) { g_print ("usage: %s <mp3 filename>\n", argv[0]); exit (-1); } pipeline = gst_pipeline_new ("pipeline"); filesrc = gst_element_factory_make ("filesrc", "disk_source"); if(filesrc==NULL) { g_print("filesrc=NULL\n"); exit(-1); } g_object_set (G_OBJECT (filesrc), "location", argv[1], NULL); decoder = gst_element_factory_make ("mad", "decode"); if(decoder==NULL) { g_print("decoder=NULL %x\n",decoder); exit(-1); } g_object_set (G_OBJECT (filesrc), "location", argv[1], NULL); decoder = gst_element_factory_make ("mad", "decode");// this does not do its job properly if(decoder==NULL) //This statement seem to be true when i run the prog. why not mad could not found???? { g_print(" decoder address=%x\n",decoder); //it prints : decoder address=0, always !!! exit(-1); } g_object_set (G_OBJECT (filesrc), "location", argv[1], NULL); audiosink = gst_element_factory_make ("osssink", "play_audio"); if(audiosink==NULL) { g_print("audiosink=NULL\n"); exit(-1); } g_objectt_set (G_OBJECT (filesrc), "location", argv[1], NULL); gst_bin_add_many (GST_BIN (pipeline), filesrc, decoder, audiosink, NULL); gst_element_link_many (filesrc, decoder, audiosink, NULL); gst_element_set_state (pipeline, GST_STATE_PLAYING); while (gst_bin_iterate (GST_BIN (pipeline))); gst_element_set_state (pipeline, GST_STATE_NULL); gst_object_unref (GST_OBJECT (pipeline)); exit (0); } compilation: gcc simpleAudioPlayer.c -o myPlayer `pkg-config gstreamer --cflags --libs` // is this OK??? running as: . /myPlayer myFavSongs Output is: decoder =0 // instead of sound , where is the problem? |
Hi,
i get this problem during ./configure : ./configure: line 21810: PKG_PROG_PKG_CONFIG: command not found pkg-config is not in your $PATH. Please ensure it is. Read the manual page for you shell as to how to extend your path. configure: error: Cannot find pkg-config however i find this when i go env : PKG_CONFIG_PATH=/usr/lib/pkgconfig what can be wrong here? ./configure keeps giving me the same error thanks Quote:
|
Quote:
whereis pkg-config if it is installed it should show the path of the binary and the man pages. if the binary is in /usr/sbin or /sbin you will have to be root or use sudo to run ./configure. if it is in /usr/bin /bin or something else make sure that the $PATH variable has this directory included. |
hai same proble old glib2.6.x with 2.4.8 what i can do
plz help me regard this
I've an old Glib-2.6.x installed at prefix /usr and the new Glib-2.4.8 at the prefix /usr/local . Pango config shows this log >>>>> checking for pkg-config... (cached) /usr/bin/pkg-config checking for GLIB - version >= 2.4.0... *** 'pkg-config --modversion glib-2.0' returned 2.4.6, but GLIB (2.2.3) *** was found! If pkg-config was correct, then it is best *** to remove the old version of GLib. You may also be able to fix the error *** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing *** /etc/ld.so.conf. Make sure you have run ldconfig if that is *** required on your system. *** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH *** to point to the correct configuration files I prefer keep also the old version of Glib , then how can I modify LD_LIBRARY_PATH or what have I to put in /etc/ld.so.conf ??? Sorry...I'm a beginner......Thanks a lot in advance. Regards.[/QUOTE] |
Thanks
Quote:
|
hello all
i want install xfkc for xfce4.2.3.2 when i configure it this error appear : checking XFCE4_UTIL_LIBS... -lxfce4util -lglib-2.0 checking for libxfcegui4-1.0 >= 4.3.99.1... found, but 4.2.3 *** The required package libxfcegui4-1.0 was found on your system, *** but the installed version (4.2.3) is too old. *** Please upgrade libxfcegui4-1.0 to atleast version 4.3.99.1, or adjust *** the PKG_CONFIG_PATH environment variable if you installed *** the new version of the package in a nonstandard prefix so *** pkg-config is able to find it. i have this Package installed: [root@localhost ~]# rpm -qa |grep libxfcegui4 libxfcegui4-4.4.2-1.fc8 libxfcegui4-devel-4.4.2-1.fc8 is it a good version for me? and i have: [root@localhost ~]# locate pkg-config /usr/bin/pkg-config /usr/share/man/man1/pkg-config.1.gz /usr/share/zsh/4.3.4/functions/_pkg-config and with: [root@localhost ~]# locate pkgconfig /usr/local/lib/pkgconfig /usr/share/pkgconfig ... (many directory) which directory should i choose for this line: export PKG_CONFIG_PATH=(directory???) and should i type this line in terminal ?i do this but nothing down .what should i do? |
firsly i want to install gnu c compiler on my desktop pc but i fail to install gcc compiler after installing linux8.please help me in this regard
|
jeet3886@rediffmail.
Please do not take over other peoples threads - create your own and give it a meaningful title. Also try reading documentation for your distribution first - they tell you how installing software is handeled. linux8 is not a distributions name BTW |
saved me!
I hope you see this.. Thank you very much dude. your example were very helpful. :Pengy:
Quote:
|
All times are GMT -5. The time now is 07:14 PM. |