This forum has been archived. All content is frozen. Please use KDE Discuss instead.

building marble with Qt5.4.0 for OS Windows

Tags: None
(comma "," separated)
jonnysmith
Registered Member
Posts
1
Karma
0
Hello all.
I received the following errors while trying to build with Qt5.4.0 minGW:

e:\marble\build cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Debug -DQTONLY=TRUE -DQT5BUILD -DCMAKE_INSTALL_PREFIX=e:\marble-tmp ..
...
...

Configuring done
Generating done

e:\marble\build mingw32-make
...
...
[ 63%] Building CXX object src/lib/marble/CMakeFiles/marblewidget.dir/routing/RoutingWidget.obj
[ 63%] Building CXX object src/lib/marble/CMakeFiles/marblewidget.dir/routing/RoutingProfilesWidget.obj

E:\marble\src\lib\marble\routing\RoutingWidget.cpp: In instantiation of 'void QL
ist<T>::node_construct(QList<T>::Node*, const T&) [with T = Marble::WaypointInfo]':
e:/Qt/Qt5.4.0/5.4/mingw491_32/include/QtCore/qlist.h:521:32: required from 'vo
id QList<T>::append(const T&) [with T = Marble::WaypointInfo]'
e:/Qt/Qt5.4.0/5.4/mingw491_32/include/QtCore/qlist.h:331:15: required from 'QL
ist<T>& QList<T>::operator<<(const T&) [with T = Marble::WaypointInfo]'
E:\marble\src\lib\marble\routing\RoutingWidget.cpp:898:139: required from here

E:\marble\src\lib\marble\routing\RoutingWidget.cpp:60:8: error: non-static const
member 'const QString Marble::WaypointInfo::info', can't use default assignment
operator
struct WaypointInfo
^
In file included from e:/Qt/Qt5.4.0/5.4/mingw491_32/include/QtCore/qobject.h:43:
0,
from e:/Qt/Qt5.4.0/5.4/mingw491_32/include/QtCore/qcoreapplication.h:40,
from e:/Qt/Qt5.4.0/5.4/mingw491_32/include/QtCore/QCoreApplication:1,
from E:/marble/src/lib/marble/geodata/data/GeoDataCoordinates.h:17,
from E:\marble\src\lib\marble\routing\RoutingWidget.h:14,
from E:\marble\src\lib\marble\routing\RoutingWidget.cpp:11:
e:/Qt/Qt5.4.0/5.4/mingw491_32/include/QtCore/qlist.h:378:35: note: synthesized
method 'Marble::WaypointInfo& Marble::WaypointInfo::operator=(const Marble::WaypointInfo&)' first required here
else *reinterpret_cast<T*>(n) = t;
^
src\lib\marble\CMakeFiles\marblewidget.dir\build.make:13921: recipe for target '
src/lib/marble/CMakeFiles/marblewidget.dir/routing/RoutingWidget.obj' failed
mingw32-make[2]: *** [src/lib/marble/CMakeFiles/marblewidget.dir/routing/Routing
Widget.obj] Error 1
mingw32-make[2]: *** Waiting for unfinished jobs....
CMakeFiles\Makefile2:1404: recipe for target 'src/lib/marble/CMakeFiles/marblewidget.dir/all' failed
mingw32-make[1]: *** [src/lib/marble/CMakeFiles/marblewidget.dir/all] Error 2
makefile:145: recipe for target 'all' failed
mingw32-make: *** [all] Error 2

Can somebody tell me, what I'm doing wrong?


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], Sogou [Bot]