#303 /usr/lib/libfltk_images.so.1.1:undefined reference to `png_*

closed-invalid
stage (111)
5
2009-09-13
2009-08-29
Anonymous
No

Well its taken a lot of time and effort to take care of the dependencies for Player Stage.
I had a fresh installation of Ubuntu 9.04 which didnt even have g++ preinstalled :(

I have successfully installed Player.
But instaling Staga seems to be a lot of pain.

At last, Ive been able to successfully run the command cmake .
The output is:

nikhil@akhil-nikhil:~/Desktop/Stage-3.1.0-Source$ cmake .
-- Stage version 3.1.0
-- Operating system is Linux
-- Build type RELEASE
-- Checking for libtool
-- Checking for required libraries...
-- * FLTK version 1.1.9 detected via /usr/bin/fltk-config
-- Checking for optional libraries...
-- * Player version 3.0.0-rc3 detected at /usr/local
-- checking for one of the modules 'websim'
* WebSim not detected.
-- Installation path CMAKE_INSTALL_PREFIX=/usr/local
-- Configuring libstage
-- Configuring libstageplugin
-- Configuring done
-- Generating done
-- Build files have been written to: /home/nikhil/Desktop/Stage-3.1.0-Source

Notice that it could not detect WebSim. I dont know why. I tried searching for a reason but couldnt find anything. :(
After this when i run make, the following output is produced:

nikhil@akhil-nikhil:~/Desktop/Stage-3.1.0-Source$ make
Scanning dependencies of target stage
[ 1%] Building CXX object libstage/CMakeFiles/stage.dir/ancestor.o
In file included from /usr/include/c++/4.3/ext/hash_map:64,
from /home/nikhil/Desktop/Stage-3.1.0-Source/libstage/stage.hh:50,
from /home/nikhil/Desktop/Stage-3.1.0-Source/libstage/ancestor.cc:1:
/usr/include/c++/4.3/backward/backward_warning.h:33:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.

This warning is repeated from 1% to 61% after which the following output is produced:

[ 61%] Building CXX object libstage/CMakeFiles/stage.dir/options_dlg.o
In file included from /usr/include/c++/4.3/ext/hash_map:64,
from /home/nikhil/Desktop/Stage-3.1.0-Source/libstage/stage.hh:50,
from /home/nikhil/Desktop/Stage-3.1.0-Source/libstage/options_dlg.hh:13,
from /home/nikhil/Desktop/Stage-3.1.0-Source/libstage/options_dlg.cc:1:
/usr/include/c++/4.3/backward/backward_warning.h:33:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.
Linking CXX shared library libstage.so
[ 61%] Built target stage
Scanning dependencies of target stagebinary
[ 63%] Building CXX object libstage/CMakeFiles/stagebinary.dir/main.o
In file included from /usr/include/c++/4.3/ext/hash_map:64,
from /home/nikhil/Desktop/Stage-3.1.0-Source/libstage/stage.hh:50,
from /home/nikhil/Desktop/Stage-3.1.0-Source/libstage/main.cc:9:
/usr/include/c++/4.3/backward/backward_warning.h:33:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.
Linking CXX executable stage
/usr/lib/libfltk_images.so.1.1: undefined reference to `png_read_info@PNG12_0'
/usr/lib/libfltk_images.so.1.1: undefined reference to `png_set_packing@PNG12_0'
/usr/lib/libfltk_images.so.1.1: undefined reference to `png_read_rows@PNG12_0'
/usr/lib/libfltk_images.so.1.1: undefined reference to `png_set_interlace_handling@PNG12_0'
/usr/lib/libfltk_images.so.1.1: undefined reference to `png_create_read_struct@PNG12_0'
/usr/lib/libfltk_images.so.1.1: undefined reference to `png_set_strip_16@PNG12_0'
/usr/lib/libfltk_images.so.1.1: undefined reference to `png_set_expand@PNG12_0'
/usr/lib/libfltk_images.so.1.1: undefined reference to `png_init_io@PNG12_0'
/usr/lib/libfltk_images.so.1.1: undefined reference to `png_destroy_read_struct@PNG12_0'
/usr/lib/libfltk_images.so.1.1: undefined reference to `png_read_end@PNG12_0'
/usr/lib/libfltk_images.so.1.1: undefined reference to `png_create_info_struct@PNG12_0'
collect2: ld returned 1 exit status
make[2]: *** [libstage/stage] Error 1
make[1]: *** [libstage/CMakeFiles/stagebinary.dir/all] Error 2
make: *** [all] Error 2

I dont know how to remove these errors. Ive tried searching for a solution. Couldnt find anything. Please Help....

Discussion

  • Nobody/Anonymous

    I am in need of a quick reply. Someone pls help....
    Ive searched a lot but couldnt find a solution.

     
  • Richard Vaughan

    Richard Vaughan - 2009-09-13

    This is not a bug. You need to install libpng, as stated in the installation instructions.

     
  • Richard Vaughan

    Richard Vaughan - 2009-09-13
    • status: open --> closed-invalid
     

Log in to post a comment.