Yes, should be reported upstream, but I just checked the Qt docs and qreal is typedfed to double. abs(), according to http://www.cplusplus.com/reference/cmath/abs/ comes in three flavors. So I don't see why abs(double) is not chosen as the prototype for abs(qreal). But, looking at the error message, it is taking the "usual" C prototype for abs (which is abs(int)). A fix for this until you hear from the upstream maintainers is to use std::abs() instead of abs().
On Aug 26, 2016, at 14:21:35, Greg Freemyer
wrote: On Fri, Aug 26, 2016 at 12:36 PM, Oliver Kurz
wrote: Hi Josep,
On Thursday 25 August 2016 14:16:46 Josep wrote:
Hello,
I am a teacher and I've been user of openSankore, which is an open source software for interactive whiteboards. Previous versions of openSuse had a built package to install through One-click-install. But it seems that openSankore has been left since the newest version is a little bit old. Actually, there is no package for Leap.
Otherwise, I have realized that there is a fork of that project called OpenBoard which has more recent versions. But unfortunately there isn't any opensuse version. They offer the source code to be compiled by yourself which is far from my possibilities.
http://openboard.ch/index.en.html
Is there someone that could do it for me?
Thanks in advance
Josep
I was trying to build OpenBoard for you. I created a OBS project to build it: https://build.opensuse.org/package/show/home:okurz:OpenBoard/OpenBoard
I am getting as far as a compile error which I don't know immediately how to handle.
The compiler error details:
[ 178s] g++ -c -pipe -fopenmp -O2 -w -D_REENTRANT -fPIC - DNO_THIRD_PARTY_WARNINGS -DUBVERSION="\"1.3.3."\" - DUBVERSION_RC=1,3,3,240,0 -DQT_NO_DEBUG -DQT_WEBKITWIDGETS_LIB - DQT_WEBKIT_LIB -DQT_SVG_LIB -DQT_UITOOLS_LIB - DQT_MULTIMEDIAWIDGETS_LIB -DQT_PRINTSUPPORT_LIB - DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_GUI_LIB - DQT_XMLPATTERNS_LIB -DQT_NETWORK_LIB -DQT_XML_LIB - DQT_SCRIPT_LIB -DQT_CORE_LIB -isystem /usr/include/QtSolutions -isystem /usr/include/quazip -Isrc -Isrc/web/browser -Isrc/pdf-merger -I../OpenBoard- ThirdParty/quazip/ -I../OpenBoard-ThirdParty/qt/singleapplication -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtWebKitWidgets -isystem /usr/include/qt5/QtWebKit -isystem /usr/include/qt5/QtSvg -isystem /usr/include/qt5/QtUiTools -isystem /usr/include/qt5/QtMultimediaWidgets - isystem /usr/include/qt5/QtPrintSupport -isystem /usr/include/qt5/QtWidgets - isystem /usr/include/qt5/QtMultimedia -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtXmlPatterns -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtXml -isystem /usr/include/qt5/QtScript -isystem /usr/include/qt5/QtCore -Ibuild/linux/release/moc -Ibuild/linux/release/ui - I/usr/lib64/qt5/mkspecs/linux-g++ -o build/linux/release/objects/UBStringUtils.o src/frameworks/UBStringUtils.cpp [ 179s] src/frameworks/UBGeometryUtils.cpp: In static member function 'static QPolygonF UBGeometryUtils::arcToPolygon(const QLineF&, qreal, qreal)': [ 179s] src/frameworks/UBGeometryUtils.cpp:191:42: error: call of overloaded 'abs(qreal&)' is ambiguous [ 179s] bool overlap = abs(spanAngleInDegrees) > 360 - angle; [ 179s] ^ [ 179s] In file included from /usr/include/c++/6/cstdlib:75:0, [ 179s] from /usr/include/c++/6/bits/stl_algo.h:59, [ 179s] from /usr/include/c++/6/algorithm:62, [ 179s] from /usr/include/qt5/QtCore/qglobal.h:88, [ 179s] from /usr/include/qt5/QtCore/qnamespace.h:37, [ 179s] from /usr/include/qt5/QtCore/qobjectdefs.h:41, [ 179s] from /usr/include/qt5/QtCore/qobject.h:40, [ 179s] from /usr/include/qt5/QtCore/qabstractanimation.h:37, [ 179s] from /usr/include/qt5/QtCore/QtCore:4, [ 179s] from /usr/include/qt5/QtGui/QtGuiDepends:3, [ 179s] from /usr/include/qt5/QtGui/QtGui:3, [ 179s] from src/frameworks/UBGeometryUtils.h:33, [ 179s] from src/frameworks/UBGeometryUtils.cpp:30: [ 179s] /usr/include/stdlib.h:774:12: note: candidate: int abs(int) [ 179s] extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur; [ 179s] ^~~ [ 179s] In file included from /usr/include/c++/6/bits/stl_algo.h:59:0, [ 179s] from /usr/include/c++/6/algorithm:62, [ 179s] from /usr/include/qt5/QtCore/qglobal.h:88, [ 179s] from /usr/include/qt5/QtCore/qnamespace.h:37, [ 179s] from /usr/include/qt5/QtCore/qobjectdefs.h:41, [ 179s] from /usr/include/qt5/QtCore/qobject.h:40, [ 179s] from /usr/include/qt5/QtCore/qabstractanimation.h:37, [ 179s] from /usr/include/qt5/QtCore/QtCore:4, [ 179s] from /usr/include/qt5/QtGui/QtGuiDepends:3, [ 179s] from /usr/include/qt5/QtGui/QtGui:3, [ 179s] from src/frameworks/UBGeometryUtils.h:33, [ 179s] from src/frameworks/UBGeometryUtils.cpp:30: [ 179s] /usr/include/c++/6/cstdlib:185:3: note: candidate: __int128 std::abs(__int128) [ 179s] abs(__GLIBCXX_TYPE_INT_N_0 __x) { return __x >= 0 ? __x : -__x; } [ 179s] ^~~ [ 179s] /usr/include/c++/6/cstdlib:180:3: note: candidate: long long int std::abs(long long int) [ 179s] abs(long long __x) { return __builtin_llabs (__x); } [ 179s] ^~~ [ 179s] /usr/include/c++/6/cstdlib:172:3: note: candidate: long int std::abs(long int) [ 179s] abs(long __i) { return __builtin_labs(__i); } [ 179s] ^~~ [ 179s] make[1]: *** [Makefile.Release:4294: build/linux/release/objects/UBGeometryUtils.o] Error 1
Maybe someone else has an idea how to continue from here.
Have fun, Oliver
Oliver,
A c++ programmer can probably fix (patch) that up pretty quickly, but it would be better to report it to upstream and get them to do a real fix that will be part of the next release. They could probably provide you the needed patch as well will little problem.
Greg -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org