[opensuse-packaging] libqinfinity
Project: home:saigkill Package: libqinfinity Hello Mates, does anyone know what the following Cmake Error is? -- Found Qt-Version 4.5.0 (using /usr/bin/qmake) CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: GLIB_LIB_INCLUDE_DIR used as include directory in directory /usr/src/packages/BUILD/libqinfinity-1.0b1/libqinfinity used as include directory in directory /usr/src/packages/BUILD/libqinfinity-1.0b1/test LIBINFINITY_INCLUDES used as include directory in directory /usr/src/packages/BUILD/libqinfinity-1.0b1/libqinfinity used as include directory in directory /usr/src/packages/BUILD/libqinfinity-1.0b1/test LIBINFINITY_LIBRARY linked by target "qinfinity" in directory /usr/src/packages/BUILD/libqinfinity-1.0b1/libqinfinity linked by target "guibrowser" in directory /usr/src/packages/BUILD/libqinfinity-1.0b1/test LIBINFTEXT_INCLUDES used as include directory in directory /usr/src/packages/BUILD/libqinfinity-1.0b1/libqinfinity LIBINFTEXT_LIBRARY linked by target "qinfinity" in directory /usr/src/packages/BUILD/libqinfinity-1.0b1/libqinfinity -- Sincereley yours Sascha Manns openSUSE Marketing Team openSUSE Build Service openSUSE Features Screening Team Web: http://saschamanns.gulli.to Project-Blog: http://lizards.opensuse.org/author/saigkill Private-Blog: http://saschasbacktrace.blogspot.com -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Sascha 'saigkill' Manns wrote:
Project: home:saigkill Package: libqinfinity
Hello Mates,
does anyone know what the following Cmake Error is?
-- Found Qt-Version 4.5.0 (using /usr/bin/qmake) CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: GLIB_LIB_INCLUDE_DIR
Try adding glib2-devel to BuildRequires -- Best Regards / S pozdravom, Pavol RUSNAK SUSE LINUX, s.r.o Package Maintainer Lihovarska 1060/12 PGP 0xA6917144 19000 Praha 9, CR prusnak[at]suse.cz http://www.suse.cz -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Montag 20 April 2009 10:10:41 Pavol Rusnak wrote:
Sascha 'saigkill' Manns wrote:
Project: home:saigkill Package: libqinfinity
Hello Mates,
does anyone know what the following Cmake Error is?
-- Found Qt-Version 4.5.0 (using /usr/bin/qmake) CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: GLIB_LIB_INCLUDE_DIR
Try adding glib2-devel to BuildRequires Thank you for helping Pavol. I tried it with glib2-devel and glib- devel. But the same Error....:-( -- Sincereley yours
Sascha Manns openSUSE Marketing Team openSUSE Build Service openSUSE Features Screening Team Web: http://saschamanns.gulli.to Project-Blog: http://lizards.opensuse.org/author/saigkill Private-Blog: http://saschasbacktrace.blogspot.com -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Project: home:saigkill Package: libqinfinity On Montag 20 April 2009 12:44:44 Sascha 'saigkill' Manns wrote:
On Montag 20 April 2009 10:10:41 Pavol Rusnak wrote:
Sascha 'saigkill' Manns wrote:
Project: home:saigkill Package: libqinfinity
Hello Mates,
does anyone know what the following Cmake Error is?
-- Found Qt-Version 4.5.0 (using /usr/bin/qmake) CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: GLIB_LIB_INCLUDE_DIR
Try adding glib2-devel to BuildRequires
Thank you for helping Pavol. I tried it with glib2-devel and glib- devel. But the same Error....:-( Now i've found out. The Searchpath from GLIB_LIB_INCLUDE_DIR was only set for i586. Now i added an Prefix Patch, and it builds. But now it hangs on the compiler Errors. He said me: E: libqinfinity no-return-in-nonvoid-function /usr/src/packages/BUILD/libqinfinity-1.0b1/libqinfinity/browseriter.cpp:140, 134, 128, 122, 111, 105, 99, 93, 87, 81, 75, 69, 63, 57 E: libqinfinity no-return-in-nonvoid-function /usr/src/packages/BUILD/libqinfinity-1.0b1/libqinfinity/browsermodel.cpp:222, 195
I've tried to add just "return 0" at the End of each function. But that not works. [ 62%] Building CXX object libqinfinity/CMakeFiles/qinfinity.dir/browseriter.cpp.o /usr/src/packages/BUILD/libqinfinity-1.0b1/libqinfinity/browseriter.cpp: In member function 'QInfinity::BrowserIter& QInfinity::BrowserIter::operator=(const QInfinity::BrowserIter&)': /usr/src/packages/BUILD/libqinfinity-1.0b1/libqinfinity/browseriter.cpp:57: error: invalid initialization of non-const reference of type 'QInfinity::BrowserIter&' from a temporary of type 'int' Has anyone an Idea? -- Sincereley yours Sascha Manns openSUSE Marketing Team openSUSE Build Service openSUSE Features Screening Team Web: http://saschamanns.gulli.to Project-Blog: http://lizards.opensuse.org/author/saigkill Private-Blog: http://saschasbacktrace.blogspot.com -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Sascha 'saigkill' Manns wrote:
But now it hangs on the compiler Errors. He said me: E: libqinfinity no-return-in-nonvoid-function /usr/src/packages/BUILD/libqinfinity-1.0b1/libqinfinity/browseriter.cpp:140, 134, 128, 122, 111, 105, 99, 93, 87, 81, 75, 69, 63, 57 E: libqinfinity no-return-in-nonvoid-function /usr/src/packages/BUILD/libqinfinity-1.0b1/libqinfinity/browsermodel.cpp:222, 195
I've tried to add just "return 0" at the End of each function. But that not works.
[ 62%] Building CXX object libqinfinity/CMakeFiles/qinfinity.dir/browseriter.cpp.o /usr/src/packages/BUILD/libqinfinity-1.0b1/libqinfinity/browseriter.cpp: In member function 'QInfinity::BrowserIter& QInfinity::BrowserIter::operator=(const QInfinity::BrowserIter&)': /usr/src/packages/BUILD/libqinfinity-1.0b1/libqinfinity/browseriter.cpp:57: error: invalid initialization of non-const reference of type 'QInfinity::BrowserIter&' from a temporary of type 'int'
Has anyone an Idea?
The function does not have int or pointer as a return value. It returns reference. You could create an empty QInfinity::BrowserIter object (not sure if this is possible) and return a reference to it (&obj). Much more great solution would be to report to upstream so they could fix the code (handling the program flow). -- Best Regards / S pozdravom, Pavol RUSNAK SUSE LINUX, s.r.o Package Maintainer Lihovarska 1060/12 PGP 0xA6917144 19000 Praha 9, CR prusnak[at]suse.cz http://www.suse.cz -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Dienstag 21 April 2009 13:25:43 Pavol Rusnak wrote:
Sascha 'saigkill' Manns wrote:
But now it hangs on the compiler Errors. He said me: E: libqinfinity no-return-in-nonvoid-function /usr/src/packages/BUILD/libqinfinity-1.0b1/libqinfinity/browseriter .cpp:140, 134, 128, 122, 111, 105, 99, 93, 87, 81, 75, 69, 63, 57 E: libqinfinity no-return-in-nonvoid-function /usr/src/packages/BUILD/libqinfinity-1.0b1/libqinfinity/browsermode l.cpp:222, 195
I've tried to add just "return 0" at the End of each function. But that not works.
[ 62%] Building CXX object libqinfinity/CMakeFiles/qinfinity.dir/browseriter.cpp.o /usr/src/packages/BUILD/libqinfinity-1.0b1/libqinfinity/browseriter .cpp: In member function 'QInfinity::BrowserIter& QInfinity::BrowserIter::operator=(const QInfinity::BrowserIter&)': /usr/src/packages/BUILD/libqinfinity-1.0b1/libqinfinity/browseriter .cpp:57: error: invalid initialization of non-const reference of type 'QInfinity::BrowserIter&' from a temporary of type 'int'
Has anyone an Idea?
The function does not have int or pointer as a return value. It returns reference. You could create an empty QInfinity::BrowserIter object (not sure if this is possible) and return a reference to it (&obj). Much more great solution would be to report to upstream so they could fix the code (handling the program flow).
This is the code from them. BrowserIter &BrowserIter::operator=( const BrowserIter &other ) { m_infBrowser = other.infBrowser(); m_infBrowserIter.node_id = other.infBrowserIter()->node_id; m_infBrowserIter.node = other.infBrowserIter()->node; return ; } What must i change? -- Sincereley yours Sascha Manns openSUSE Marketing Team openSUSE Build Service openSUSE Features Screening Team Web: http://saschamanns.gulli.to Project-Blog: http://lizards.opensuse.org/author/saigkill Private-Blog: http://saschasbacktrace.blogspot.com -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Sascha 'saigkill' Manns wrote:
This is the code from them. BrowserIter &BrowserIter::operator=( const BrowserIter &other ) { m_infBrowser = other.infBrowser(); m_infBrowserIter.node_id = other.infBrowserIter()->node_id; m_infBrowserIter.node = other.infBrowserIter()->node; return ; } What must i change?
Aha! When you overload assignment operator (=), it should end with "return *this;" so it could be chained (eg. a = b = 3). Just insert "*this" between "return" and ";". -- Best Regards / S pozdravom, Pavol RUSNAK SUSE LINUX, s.r.o Package Maintainer Lihovarska 1060/12 PGP 0xA6917144 19000 Praha 9, CR prusnak[at]suse.cz http://www.suse.cz -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Dienstag 21 April 2009 15:22:17 Pavol Rusnak wrote:
Sascha 'saigkill' Manns wrote:
This is the code from them. BrowserIter &BrowserIter::operator=( const BrowserIter &other ) { m_infBrowser = other.infBrowser(); m_infBrowserIter.node_id = other.infBrowserIter()->node_id; m_infBrowserIter.node = other.infBrowserIter()->node; return ; } What must i change?
Aha! When you overload assignment operator (=), it should end with "return *this;" so it could be chained (eg. a = b = 3). Just insert "*this" between "return" and ";". Now he runs, and i can see the End. He breaks with: testing for serious compiler warnings (using /usr/lib/build/checks-data/check_gcc_output) (using /var/tmp/build-root/.build.log)
I: Program returns random data in a function E: libqinfinity no-return-in-nonvoid-function /usr/src/packages/BUILD/libqinfinity-1.0b1/libqinfinity/browseriter.cpp:140, 134, 128, 122, 111, 105, 99, 93, 87, 81, 75, 69, 63, 57 E: libqinfinity no-return-in-nonvoid-function /usr/src/packages/BUILD/libqinfinity-1.0b1/libqinfinity/browsermodel.cpp:222, 195 Musrt i here place "return *this;" on the End of each functions? -- Sincereley yours Sascha Manns openSUSE Marketing Team openSUSE Build Service openSUSE Features Screening Team Web: http://saschamanns.gulli.to Project-Blog: http://lizards.opensuse.org/author/saigkill Private-Blog: http://saschasbacktrace.blogspot.com
participants (2)
-
Pavol Rusnak
-
Sascha 'saigkill' Manns