-
Notifications
You must be signed in to change notification settings - Fork 857
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build errors: no matching function for calls pangolin::Widget and pangolin::Button #6
Comments
Are you certain that your files widgets.h and widgets.cpp are in synch? Do you have any local modifications? I can't fathem why the errors are referring to the Widget default constructor when on all those lines the correct constructor is being used. |
Signed-off-by: Steven Lovegrove <[email protected]>
Okay, for earlier versions of GCC it is necessary to be explicit about the template parameters when calling the base classes constructor. |
Hello Steven, All is well. I was able to compile. I created a new clone and it worked the Thanks, Frank On Mon, Jul 9, 2012 at 1:29 PM, Steven Lovegrove <
|
Hello,
I was able to successfully compile prior to the widgets.cpp and widget.h update.
Below are the errors:
franksvision@gordan:
/MY_SOFTWARE_DIRECTORY/ScaViSLAM/EXTERNAL/Pangolin/svs_build$ cmake ../MY_SOFTWARE_DIRECTORY/ScaViSLAM/EXTERNAL/Pangolin/svs_build$ make -j8-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - 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
Build type not set (defaults to release)
-DCMAKE_BUILD_TYPE=Debug for debug
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/libX11.so
-- Found GLEW: /usr/lib/libGLEW.so
-- CUDA Found and Enabled
-- Found FREEGLUT: /usr/lib/libglut.so
-- Glut Found and Enabled
-- Looking for include files AVUTIL_HAVE_PIXDESC
-- Looking for include files AVUTIL_HAVE_PIXDESC - not found.
-- checking for module 'openni-dev'
-- package 'openni-dev' not found
-- OpenNI Found and Enabled
-- Configuring done
-- Generating done
-- Build files have been written to: /home/franksvision/MY_SOFTWARE_DIRECTORY/ScaViSLAM/EXTERNAL/Pangolin/svs_build
franksvision@gordan:
[ 4%] Building CXX object pangolin/CMakeFiles/pangolin.dir/widgets.cpp.o
/home/franksvision/MY_SOFTWARE_DIRECTORY/ScaViSLAM/EXTERNAL/Pangolin/pangolin/widgets.cpp: In constructor ‘pangolin::Button::Button(std::string, pangolin::_Var&)’:
/home/franksvision/MY_SOFTWARE_DIRECTORY/ScaViSLAM/EXTERNAL/Pangolin/pangolin/widgets.cpp:212: error: class ‘pangolin::Button’ does not have any field named ‘Widget’
/home/franksvision/MY_SOFTWARE_DIRECTORY/ScaViSLAM/EXTERNAL/Pangolin/pangolin/widgets.cpp:212: error: no matching function for call to ‘pangolin::Widget::Widget()’
/home/franksvision/MY_SOFTWARE_DIRECTORY/ScaViSLAM/EXTERNAL/Pangolin/pangolin/widgets.h:55: note: candidates are: pangolin::Widget::Widget(std::string, pangolin::_Var&) [with T = bool]
/home/franksvision/MY_SOFTWARE_DIRECTORY/ScaViSLAM/EXTERNAL/Pangolin/pangolin/widgets.h:54: note: pangolin::Widget::Widget(pangolin::Widget&)
/home/franksvision/MY_SOFTWARE_DIRECTORY/ScaViSLAM/EXTERNAL/Pangolin/pangolin/widgets.cpp: In constructor ‘pangolin::Checkbox::Checkbox(std::string, pangolin::_Var&)’:
/home/franksvision/MY_SOFTWARE_DIRECTORY/ScaViSLAM/EXTERNAL/Pangolin/pangolin/widgets.cpp:251: error: class ‘pangolin::Checkbox’ does not have any field named ‘Widget’
/home/franksvision/MY_SOFTWARE_DIRECTORY/ScaViSLAM/EXTERNAL/Pangolin/pangolin/widgets.cpp:251: error: no matching function for call to ‘pangolin::Widget::Widget()’
/home/franksvision/MY_SOFTWARE_DIRECTORY/ScaViSLAM/EXTERNAL/Pangolin/pangolin/widgets.h:55: note: candidates are: pangolin::Widget::Widget(std::string, pangolin::_Var&) [with T = bool]
/home/franksvision/MY_SOFTWARE_DIRECTORY/ScaViSLAM/EXTERNAL/Pangolin/pangolin/widgets.h:54: note: pangolin::Widget::Widget(pangolin::Widget&)
/home/franksvision/MY_SOFTWARE_DIRECTORY/ScaViSLAM/EXTERNAL/Pangolin/pangolin/widgets.cpp: In constructor ‘pangolin::Slider::Slider(std::string, pangolin::_Var&)’:
/home/franksvision/MY_SOFTWARE_DIRECTORY/ScaViSLAM/EXTERNAL/Pangolin/pangolin/widgets.cpp:294: error: class ‘pangolin::Slider’ does not have any field named ‘Widget’
/home/franksvision/MY_SOFTWARE_DIRECTORY/ScaViSLAM/EXTERNAL/Pangolin/pangolin/widgets.cpp:294: error: no matching function for call to ‘pangolin::Widget::Widget()’
/home/franksvision/MY_SOFTWARE_DIRECTORY/ScaViSLAM/EXTERNAL/Pangolin/pangolin/widgets.h:55: note: candidates are: pangolin::Widget::Widget(std::string, pangolin::_Var&) [with T = double]
/home/franksvision/MY_SOFTWARE_DIRECTORY/ScaViSLAM/EXTERNAL/Pangolin/pangolin/widgets.h:54: note: pangolin::Widget::Widget(pangolin::Widget&)
/home/franksvision/MY_SOFTWARE_DIRECTORY/ScaViSLAM/EXTERNAL/Pangolin/pangolin/widgets.cpp: In constructor ‘pangolin::TextInput::TextInput(std::string, pangolin::_Var&)’:
/home/franksvision/MY_SOFTWARE_DIRECTORY/ScaViSLAM/EXTERNAL/Pangolin/pangolin/widgets.cpp:429: error: class ‘pangolin::TextInput’ does not have any field named ‘Widget’
/home/franksvision/MY_SOFTWARE_DIRECTORY/ScaViSLAM/EXTERNAL/Pangolin/pangolin/widgets.cpp:429: error: no matching function for call to ‘pangolin::Widget<std::basic_string<char, std::char_traits, std::allocator > >::Widget()’
/home/franksvision/MY_SOFTWARE_DIRECTORY/ScaViSLAM/EXTERNAL/Pangolin/pangolin/widgets.h:55: note: candidates are: pangolin::Widget::Widget(std::string, pangolin::_Var&) [with T = std::basic_string<char, std::char_traits, std::allocator >]
/home/franksvision/MY_SOFTWARE_DIRECTORY/ScaViSLAM/EXTERNAL/Pangolin/pangolin/widgets.h:54: note: pangolin::Widget<std::basic_string<char, std::char_traits, std::allocator > >::Widget(pangolin::Widget<std::basic_string<char, std::char_traits, std::allocator > >&)
make[2]: *** [pangolin/CMakeFiles/pangolin.dir/widgets.cpp.o] Error 1
make[1]: *** [pangolin/CMakeFiles/pangolin.dir/all] Error 2
make: *** [all] Error 2
The text was updated successfully, but these errors were encountered: