From: Manuel O. <moe...@vi...> - 2003-01-08 15:07:12
|
Hi I try to compile vxl-1.0.beta2.fix1 on linux with gcc-3.2.1 and qt-3.1.1 and get the following error. vgui glut and gtk support is working. Thanks ---------------8<-------- /usr/pack/vxl-1.0.beta2.fix1-mo/i686-pc-linux-gnu2/oxl/vgui: building default_target g++-3.2.1 -Dvgui_EXPORTS -fPIC -I/usr/pack/vxl-1.0.beta2.fix1-mo/vxl-1.0-beta2/oxl/vgui -I/usr/pack/vxl-1.0.beta2.fix1-mo/i686-pc-linux-gnu2/vcl -I/usr/pack/vxl-1.0.beta2.fix1-mo/i686-pc-linux-gnu2/vxl -I/usr/pack/vxl-1.0.beta2.fix1-mo/vxl-1.0-beta2/vcl -I/usr/pack/vxl-1.0.beta2.fix1-mo/vxl-1.0-beta2/vxl -I/usr/pack/vxl-1.0.beta2.fix1-mo/vxl-1.0-beta2/oxl -I/usr/pack/glut-3.7-mo/linux/include -I/usr/pack/vxl-1.0.beta2.fix1-mo/vxl-1.0-beta2/v3p -I/usr/pack/qt-3.1.1-mo/sun4u-sun-solaris2.8/include -I/usr/pack/gtk-1.2.10-ds/include/gtk-1.2 -I/usr/pack/gtk-1.2.10-ds/i586-pc-linux-gnu2/lib/glib/include -I/usr/pack/gtk-1.2.10-ds/include/glib-1.2 -I/usr/pack/gtkglarea-1.2.2-mo/linux/include -DVXL_WARN_DEPRECATED -DVXL_WARN_DEPRECATED_ONCE -DHAS_OPENGL -DHAS_GLUT -DVGUI_USE_GLUT -DVGUI_USE_QT -DVGUI_USE_X -DVGUI_USE_GTK -c /usr/pack/vxl-1.0.beta2.fix1-mo/vxl-1.0-beta2/oxl/vgui/impl/qt/vgui_qt_dialog_impl.cxx -o vgui_qt_dialog_impl.o /usr/pack/vxl-1.0.beta2.fix1-mo/vxl-1.0-beta2/oxl/vgui/impl/qt/vgui_qt_dialog_impl.cxx: In member function `void vgui_qt_colorchooser_impl::get_a_color()': /usr/pack/vxl-1.0.beta2.fix1-mo/vxl-1.0-beta2/oxl/vgui/impl/qt/vgui_qt_dialog_impl.cxx:304: ambiguous overload for `std::basic_string<char, std::char_traits<char>, std::allocator<char> >& = QString' operator /usr/pack/gcc-3.2.1-mo/i686-pc-linux-gnu2/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/include/c++/bits/basic_string.h:338: candidates are: std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>::operator=(const std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>] /usr/pack/gcc-3.2.1-mo/i686-pc-linux-gnu2/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/include/c++/bits/basic_string.h:341: std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>::operator=(const _CharT*) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>] /usr/pack/gcc-3.2.1-mo/i686-pc-linux-gnu2/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/include/c++/bits/basic_string.h:344: std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>::operator=(_CharT) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>] <near match> gmake[5]: *** [vgui_qt_dialog_impl.o] Error 1 gmake[4]: *** [default_target] Error 2 gmake[3]: *** [default_target_vgui] Error 2 gmake[2]: *** [default_target] Error 2 gmake[1]: *** [default_target_oxl] Error 2 gmake: *** [default_target] Error 2 cheers Manuel -- _______ __________ __ __ \______ /___(_) Oetiker Manuel & SysMgr @ ISG.EE - D-ITET _ / / / _ \ __/_ / ETH-Zurich tel: +41 1-6325302 fax:..1199 / /_/ // __/ /_ _ / eMail: Manuel Oetiker <moe...@ee...> \____/ \___/\__/ /_/ www: http://people.ee.ethz.ch/~moetiker |
From: Peter V. <Pet...@es...> - 2003-01-08 16:14:42
|
> oxl/vgui/impl/qt/vgui_qt_dialog_impl.cxx:304: > ambiguous overload for `vcl_string& = QString' operator Try adding an explicit cast from QString to const char* , e.g.: value_ = c.name().ascii(); (since QString::ascii() returns the "latin1" representation as a const char*) or value_ = (const char*)(c.name()); -- Peter. |
From: Manuel O. <moe...@vi...> - 2003-01-08 21:27:46
|
Hi Peter Thanks its working... I have an other question in the Makefiles below oxl/vgui/examples/ is in the -rpath section qt and gtk not listed: .. .. .. -lmpeg2 -lvcl -lm -Wl,-rpath,/usr/pack/vxl-1.0.beta2.fix1-mo/i686-pc-linux-gnu2/lib:/usr/pack/gt kglarea-1.2.2-mo/linux/lib:/usr/pack/glut-3.7-mo/linux/lib:/usr/X11R6/lib -o /usr/pack/vxl-1.0.beta2.fix1-mo/i686-pc-linux-gnu2/bin/2d-example" .. .. .. In my case it should be: -rpath,/usr/pack/vxl-1.0.beta2.fix1-mo/i686-pc-linux-gnu2/lib:/usr/pack/gt kglarea-1.2.2-mo/linux/lib:/usr/pack/glut-3.7-mo/linux/lib:/usr/X11R6/lib:/usr/p ack/qt-3.1.1-mo/i686-pc-linux-gnu2/lib:/usr/pack/gtk-1.2.10-ds/i586-pc-linux-gnu2/lib -o /usr/pack/vxl-1.0.beta2.fix1-mo/i686-pc-linux-gnu2/bin/2d-example" Is there a cmake option? Thanks Manuel On Wed, 8 Jan 2003, Peter Vanroose wrote: > > oxl/vgui/impl/qt/vgui_qt_dialog_impl.cxx:304: > > ambiguous overload for `vcl_string& = QString' operator > > Try adding an explicit cast from QString to const char* , e.g.: > > value_ = c.name().ascii(); > > (since QString::ascii() returns the "latin1" representation as a const char*) > > or > > value_ = (const char*)(c.name()); > > > -- Peter. > -- _______ __________ __ __ \______ /___(_) Oetiker Manuel & SysMgr @ ISG.EE - D-ITET _ / / / _ \ __/_ / ETH-Zurich tel: +41 1-6325302 fax:..1199 / /_/ // __/ /_ _ / eMail: Manuel Oetiker <moe...@ee...> \____/ \___/\__/ /_/ www: http://people.ee.ethz.ch/~moetiker |
From: Peter V. <Pet...@es...> - 2003-01-08 22:06:39
|
> Makefiles below oxl/vgui/examples/ > is in the -rpath section qt and gtk not listed: Strange... I'm not too familiar with CMake, but it should be there when everything is configured correctly. What is the setting of QT_QT_LIBRARY in your CMakeCache.txt ? Peter. |