Help with QtCreator

Dirk Hohndel dirk at hohndel.org
Mon Feb 23 10:12:56 PST 2015


On Mon, Feb 23, 2015 at 06:17:34PM +0200, Willem Ferguson wrote:
> I get the following unresolved symbols when I build Subsurface using
> QtCreator:
> 
> 
> /home/willem/build-subsurface-Desktop_Qt_5_4_0_GCC_64bit-Debug/../subsurface/qt-ui/globe.cpp:192:
> undefined reference to `Marble::MarbleWidget::model()'
> 
> /home/willem/build-subsurface-Desktop_Qt_5_4_0_GCC_64bit-Debug/../subsurface/qt-ui/globe.cpp:233:
> undefined reference to `Marble::MarbleWidget::model()'
> 
> .obj/moc_globe.o:(.data.rel.ro._ZTV8GlobeGPS[_ZTV8GlobeGPS]+0x60): undefined
> reference to `Marble::MarbleWidget::connectNotify(QMetaMethod const&)'
> 
> .obj/moc_globe.o:(.data.rel.ro._ZTV8GlobeGPS[_ZTV8GlobeGPS]+0x68): undefined
> reference to `Marble::MarbleWidget::disconnectNotify(QMetaMethod const&)'
> 
> collect2: error: ld returned 1 exit status
> 
> 
> Has anything changed with respect to marble?  When I build a new Subsurface
> by hand, I use the following form of qmake:
> 
> qmake SPECIAL_MARBLE_PREFIX=1
> 
> However, when I build using QtCreator, I cannot use this option. My
> suspicion is that this is my problem.

Yes you can.

Go to Projects on the side bar

Click Build in the "Kit" that you are using.

Under Build Steps add this under Additional arguments.

/D



More information about the subsurface mailing list