Find the answer to your Linux question:
Results 1 to 5 of 5
I have a strange problem here. I had configured and exported PKG_CONFIG_PATH on my pc and I am using `pkg-config --cflags --libs gtk+-2.0` for compiling my code. Everything worked fine ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2008
    Posts
    4

    PKG_CONFIG_PATH issue


    I have a strange problem here. I had configured and exported PKG_CONFIG_PATH on my pc and I am using `pkg-config --cflags --libs gtk+-2.0` for compiling my code.
    Everything worked fine untill I had to add libgnomecanvas path to the existing PKG_CONFIG_PATH. So I decided to check the original PKG_CONFIG_PATH [a sanity check] before I modify it. But I cannot find the existing PKG_CONFIG_PATH in env & echo $PKG_CONFIG_PATH returns NULL. But strangely the code compiles
    So where is the PKG_CONFIG_PATH I had set?

  2. #2
    Just Joined!
    Join Date
    Dec 2008
    Posts
    8
    If you type env at the prompt what do you have ?

  3. #3
    Just Joined!
    Join Date
    Dec 2008
    Posts
    4
    I get list of all paths except PKG_CONFIG_PATH

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Dec 2008
    Posts
    8
    try this
    env | more
    check carefully if you have something that looks like PKG_CONFIG_PATH.
    if yes, perhaps you have mistyped
    if no then
    { the variable PKG_CONFIG_PATH have not been exported;
    check your reference manual to know how to export it;
    }

  6. #5
    Just Joined!
    Join Date
    Dec 2008
    Posts
    4
    I tried exporting the PKG_CONFIG_PATH. But now I am not able to compile the code which I previous could. I dont know what export has done to this path.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •