Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#43749 - [openscenegraph] undefined reference to `osgViewer::View::addEventHandler(osgGA::EventHandler*)'
Attached to Project:
Community Packages
Opened by Michael Kapelko (kornerr) - Monday, 09 February 2015, 05:06 GMT
Last edited by Sergej Pupykin (sergej) - Tuesday, 10 February 2015, 08:19 GMT
Opened by Michael Kapelko (kornerr) - Monday, 09 February 2015, 05:06 GMT
Last edited by Sergej Pupykin (sergej) - Tuesday, 10 February 2015, 08:19 GMT
|
DetailsDescription:
The simplest OSG application (https://bitbucket.org/kornerr/osg-z-problem) cannot be built (as of 09 Feb 2015) due to 'undefined reference' errors: /home/kornerr/p/osg-z-problem/main.cpp:40: undefined reference to `osgViewer::View::addEventHandler(osgGA::EventHandler*)' Additional info: community/openscenegraph 3.2.1-3 [installed] Steps to reproduce: * hg clone https://bitbucket.org/kornerr/osg-z-problem * mkdir build_osgzproblem * cd build_osgzproblem * cmake ../osg-z-problem * make |
This task depends upon
Closed by Sergej Pupykin (sergej)
Tuesday, 10 February 2015, 08:19 GMT
Reason for closing: Not a bug
Tuesday, 10 February 2015, 08:19 GMT
Reason for closing: Not a bug
$ hg clone https://bitbucket.org/kornerr/osg-z-problem
...
5 files updated, 0 files merged, 0 files removed, 0 files unresolved
$ cmake ..
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- Check for working C compiler: /usr/lib/hardening-wrapper/bin/cc
-- Check for working C compiler: /usr/lib/hardening-wrapper/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/lib/hardening-wrapper/bin/c++
-- Check for working CXX compiler: /usr/lib/hardening-wrapper/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/osg-z-problem/build_osgzproblem
$ make
Scanning dependencies of target osgZProblem
[100%] Building CXX object CMakeFiles/osgZProblem.dir/main.cpp.o
Linking CXX executable osgZProblem
[100%] Built target osgZProblem
My output:
$ cmake ~/p/osg-z-problem/
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/kornerr/b/osg-z-problem
$ make
Scanning dependencies of target osgZProblem
[100%] Building CXX object CMakeFiles/osgZProblem.dir/main.cpp.o
Linking CXX executable osgZProblem
CMakeFiles/osgZProblem.dir/main.cpp.o: In function `main':
/home/kornerr/p/osg-z-problem/main.cpp:40: undefined reference to `osgViewer::View::addEventHandler(osgGA::EventHandler*)'
collect2: error: ld returned 1 exit status
CMakeFiles/osgZProblem.dir/build.make:85: recipe for target 'osgZProblem' failed
make[2]: *** [osgZProblem] Error 1
CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/osgZProblem.dir/all' failed
make[1]: *** [CMakeFiles/osgZProblem.dir/all] Error 2
Makefile:76: recipe for target 'all' failed
make: *** [all] Error 2
$ cmake ~/p/osg-z-problem/
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- Check for working C compiler: /usr/lib/hardening-wrapper/bin/cc
-- Check for working C compiler: /usr/lib/hardening-wrapper/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/lib/hardening-wrapper/bin/c++
-- Check for working CXX compiler: /usr/lib/hardening-wrapper/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/kornerr/b/osg-z-problem
$ make
Linking CXX executable osgZProblem
CMakeFiles/osgZProblem.dir/main.cpp.o: In function `main':
/home/kornerr/p/osg-z-problem/main.cpp:40: undefined reference to `osgViewer::View::addEventHandler(osgGA::EventHandler*)'
collect2: error: ld returned 1 exit status
CMakeFiles/osgZProblem.dir/build.make:85: recipe for target 'osgZProblem' failed
make[2]: *** [osgZProblem] Error 1
CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/osgZProblem.dir/all' failed
make[1]: *** [CMakeFiles/osgZProblem.dir/all] Error 2
Makefile:76: recipe for target 'all' failed
make: *** [all] Error 2
Anyway, this issue can be closed.