Building panoglviewer on Ubuntu 14.04 - undefined reference to symbol 'glColor4f'

152 visningar
Hoppa till det första olästa meddelandet

Sven N.

oläst,
15 juli 2014 08:16:122014-07-15
till hugi...@googlegroups.com
Hello,

I'm building PanoGLView as described in the wiki at

I am building on Ubuntu 14.04 (64bit). I have the following relevant packages installed:

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                     Version           Architecture      Description
+++-========================-=================-=================-=====================================================
ii  automake                 1:1.14.1-2ubuntu1 all               Tool for generating GNU Standards-compliant Makefiles
ii  freeglut3-dev:amd64      2.8.1-1           amd64             OpenGL Utility Toolkit development files
ii  g++                      4:4.8.2-1ubuntu6  amd64             GNU C++ compiler
ii  libglew-dev:amd64        1.10.0-3          amd64             OpenGL Extension Wrangler - development environment
ii  libwxgtk2.8-dev          2.8.12.1+dfsg-2ub amd64             wxWidgets Cross-platform C++ GUI toolkit (GTK+ develo
ii  wx-common                3.0.0-2           amd64             wxWidgets Cross-platform C++ GUI toolkit (common supp

I'm getting an error during linking:

$ make
Making all in src
make[1]: Entering directory `/x/src/hugin/hugin-panoglview/src'
g++ -DPACKAGE_NAME=\"panoglview\" -DPACKAGE_TARNAME=\"panoglview\" -DPACKAGE_VERSION=\"0.2.2\" -DPACKAGE_STRING=\"panoglview\ 0.2.2\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I.    -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -g -O2 -MT panoglview-panoapp.o -MD -MP -MF .deps/panoglview-panoapp.Tpo -c -o panoglview-panoapp.o `test -f 'panoapp.cpp' || echo './'`panoapp.cpp
mv -f .deps/panoglview-panoapp.Tpo .deps/panoglview-panoapp.Po
g++ -DPACKAGE_NAME=\"panoglview\" -DPACKAGE_TARNAME=\"panoglview\" -DPACKAGE_VERSION=\"0.2.2\" -DPACKAGE_STRING=\"panoglview\ 0.2.2\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I.    -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -g -O2 -MT panoglview-panoframe.o -MD -MP -MF .deps/panoglview-panoframe.Tpo -c -o panoglview-panoframe.o `test -f 'panoframe.cpp' || echo './'`panoframe.cpp
In file included from panoframe.cpp:32:0:
smallicon.xpm:28:19: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
 "................"};
                   ^
smallicon.xpm:28:19: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
smallicon.xpm:28:19: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
smallicon.xpm:28:19: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
smallicon.xpm:28:19: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
smallicon.xpm:28:19: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
smallicon.xpm:28:19: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
smallicon.xpm:28:19: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
smallicon.xpm:28:19: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
smallicon.xpm:28:19: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
smallicon.xpm:28:19: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
smallicon.xpm:28:19: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
smallicon.xpm:28:19: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
smallicon.xpm:28:19: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
smallicon.xpm:28:19: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
smallicon.xpm:28:19: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
smallicon.xpm:28:19: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
smallicon.xpm:28:19: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
smallicon.xpm:28:19: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
smallicon.xpm:28:19: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
smallicon.xpm:28:19: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
smallicon.xpm:28:19: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
smallicon.xpm:28:19: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
smallicon.xpm:28:19: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
smallicon.xpm:28:19: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
smallicon.xpm:28:19: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
mv -f .deps/panoglview-panoframe.Tpo .deps/panoglview-panoframe.Po
g++ -DPACKAGE_NAME=\"panoglview\" -DPACKAGE_TARNAME=\"panoglview\" -DPACKAGE_VERSION=\"0.2.2\" -DPACKAGE_STRING=\"panoglview\ 0.2.2\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I.    -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -g -O2 -MT panoglview-panointeractivecanvas.o -MD -MP -MF .deps/panoglview-panointeractivecanvas.Tpo -c -o panoglview-panointeractivecanvas.o `test -f 'panointeractivecanvas.cpp' || echo './'`panointeractivecanvas.cpp
mv -f .deps/panoglview-panointeractivecanvas.Tpo .deps/panoglview-panointeractivecanvas.Po
g++ -DPACKAGE_NAME=\"panoglview\" -DPACKAGE_TARNAME=\"panoglview\" -DPACKAGE_VERSION=\"0.2.2\" -DPACKAGE_STRING=\"panoglview\ 0.2.2\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I.    -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -g -O2 -MT panoglview-panocanvas.o -MD -MP -MF .deps/panoglview-panocanvas.Tpo -c -o panoglview-panocanvas.o `test -f 'panocanvas.cpp' || echo './'`panocanvas.cpp
In file included from /usr/include/string.h:640:0,
                 from /usr/include/wx-2.8/wx/wxchar.h:1343,
                 from /usr/include/wx-2.8/wx/debug.h:22,
                 from /usr/include/wx-2.8/wx/defs.h:521,
                 from /usr/include/wx-2.8/wx/wxprec.h:13,
                 from panocanvas.cpp:24:
In function 'void* memset(void*, int, size_t)',
    inlined from 'void panoCanvas::createPanorama(const wxImage&)' at panocanvas.cpp:160:36:
/usr/include/x86_64-linux-gnu/bits/string3.h:81:32: warning: call to '__warn_memset_zero_len' declared with attribute warning: memset used with constant zero length parameter; this could be due to transposed parameters [enabled by default]
       __warn_memset_zero_len ();
                                ^
mv -f .deps/panoglview-panocanvas.Tpo .deps/panoglview-panocanvas.Po
g++ -DPACKAGE_NAME=\"panoglview\" -DPACKAGE_TARNAME=\"panoglview\" -DPACKAGE_VERSION=\"0.2.2\" -DPACKAGE_STRING=\"panoglview\ 0.2.2\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I.    -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -g -O2 -MT panoglview-boundaries.o -MD -MP -MF .deps/panoglview-boundaries.Tpo -c -o panoglview-boundaries.o `test -f 'boundaries.cpp' || echo './'`boundaries.cpp
mv -f .deps/panoglview-boundaries.Tpo .deps/panoglview-boundaries.Po
/bin/bash ../libtool  --tag=CXX   --mode=link g++ -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -g -O2   -o panoglview panoglview-panoapp.o panoglview-panoframe.o panoglview-panointeractivecanvas.o panoglview-panocanvas.o panoglview-boundaries.o -L/usr/lib/x86_64-linux-gnu -pthread -Wl,-Bsymbolic-functions -Wl,-z,relro  -L/usr/lib/x86_64-linux-gnu   -lwx_gtk2u_richtext-2.8 -lwx_gtk2u_aui-2.8 -lwx_gtk2u_xrc-2.8 -lwx_gtk2u_qa-2.8 -lwx_gtk2u_html-2.8 -lwx_gtk2u_adv-2.8 -lwx_gtk2u_core-2.8 -lwx_baseu_xml-2.8 -lwx_baseu_net-2.8 -lwx_baseu-2.8  -lwx_gtk2u_gl-2.8 
libtool: link: g++ -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -g -O2 -o panoglview panoglview-panoapp.o panoglview-panoframe.o panoglview-panointeractivecanvas.o panoglview-panocanvas.o panoglview-boundaries.o -pthread -Wl,-Bsymbolic-functions -Wl,-z -Wl,relro  -L/usr/lib/x86_64-linux-gnu -lwx_gtk2u_richtext-2.8 -lwx_gtk2u_aui-2.8 -lwx_gtk2u_xrc-2.8 -lwx_gtk2u_qa-2.8 -lwx_gtk2u_html-2.8 -lwx_gtk2u_adv-2.8 -lwx_gtk2u_core-2.8 -lwx_baseu_xml-2.8 -lwx_baseu_net-2.8 -lwx_baseu-2.8 -lwx_gtk2u_gl-2.8 -pthread
panoglview-panocanvas.o: In function `memset':
/usr/include/x86_64-linux-gnu/bits/string3.h:81: warning: memset used with constant zero length parameter; this could be due to transposed parameters
/usr/bin/ld: panoglview-panointeractivecanvas.o: undefined reference to symbol 'glColor4f'
//usr/lib/nvidia-331-updates/libGL.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[1]: *** [panoglview] Error 1
make[1]: Leaving directory `/x/src/hugin/hugin-panoglview/src'
make: *** [all-recursive] Error 1

What am I missing?

Thanks,
-Sven
Svara alla
Svara författaren
Vidarebefordra
0 nya meddelanden