Results 1 to 4 of 4

Thread: Pkg-Config Error

  1. #1
    Join Date
    Jun 2008
    Beans
    287

    Pkg-Config Error

    Hi All,

    Hopefully someone can do some translating for me. I am trying to install the Imlib3D library (for some c++ volumetric image processing).

    So I downloaded the source from:
    http://imlib3d.sourceforge.net/
    and tried:

    ./configure

    This failed finishing with:
    Code:
    configure: error: Package requirements (libxml++-2.6 >= 2.6.1) were not met.
    Consider adjusting the PKG_CONFIG_PATH environment variable if you
    installed software in a non-standard prefix.
    
    Alternatively you may set the XML2_CFLAGS and XML2_LIBS environment variables
    to avoid the need to call pkg-config.  See the pkg-config man page for
    more details.
    When I look in synaptic I do in fact have libxml++-2.6.2 . So I guess as the error suggests it is some error with pkg-config's reply.

    However I have no idea how to implement either suggested fix. Can someone tell me how to do set these flags or adjust the variable.

    Thanks for any help
    I suffer from web impatience. You have 5 seconds to amaze me.

  2. #2
    wojox is offline I Ubuntu, Therefore, I Am
    Join Date
    Apr 2009
    Beans
    8,630

    Re: Pkg-Config Error

    Go to Applications > Accessories > Terminal

    Enter sudo apt-get install libxml++-2.6-dev

    Then try install again.

  3. #3
    Join Date
    Jun 2008
    Beans
    287

    Re: Pkg-Config Error

    Thanks alot that was it. I was totally thrown of the scent by the error message referring to libxml++-2.6 not libxml++2.6-dev.

    Just in case someone else encounters the same problem the above line has a slight typo (extra "-") it should be

    sudo apt-get install libxml++2.6-dev

    Thanks again
    I suffer from web impatience. You have 5 seconds to amaze me.

  4. #4
    Join Date
    Jun 2008
    Beans
    287

    Re: Pkg-Config Error

    Spoke far too soon. Moving onto "make" gave the error:

    Code:
    TaskProgressManager.cpp: In member function 'void TaskProgressManager::EndTask(const TaskInProgress*)':
    TaskProgressManager.cpp:107: error: cast from 'const TaskInProgress*' to 'uint' loses precision
    make[3]: *** [TaskProgressManager.lo] Error 1
    make[3]: Leaving directory `imlib3d-0.9.2/ImLib3D'
    make[2]: *** [all] Error 2
    make[2]: Leaving directory `imlib3d-0.9.2/ImLib3D'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `imlib3d-0.9.2'
    make: *** [all] Error 2
    Why is this an error? Surely a losing precision note should be a warning. I commented out the line in the .cpp as it was only a printf line. This worked but I just ran into the same problem in the next file. A quick search showed that there were loads of these casts.

    Is there a flag for g++ to ignore these precision losses. Or does anyone know a better way around this. Come to think of it has anyone actually compiled imlib3d on an ubuntu (64b) machine before.
    I suffer from web impatience. You have 5 seconds to amaze me.

Tags for this Thread

Bookmarks

Posting Permissions

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