Opened 11 years ago

Closed 11 years ago

#2427 closed defect (fixed)

Compilation problems in GUI, /usr/include/qt4/QtGui ?

Reported by: vadime@… Owned by: Martin Sjölund
Priority: high Milestone: 1.9.1
Component: Installation program Version: trunk
Keywords: Cc:

Description

g++ -c -m64 -pipe -O2 -w -fPIC -D_REENTRANT -DQT_WEBKIT -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 -Irelease/generatedfiles/ui -I/usr/include/qwt-qt4 -I. -I.. -I../GUI -I../GUI/Widgets -I../GUI/Tools -I../GUI/Dialogs -I../Units -I../Tools -I../Infos -I../FileData -I../Problems -Irelease/generatedfiles/moc -Irelease/generatedfiles/ui -o release/generatedfiles/Variables.o ../Variables.cpp
In file included from ../MOVector.h:169:0,

from ../Variables.h:4,
from ../Variables.cpp:1:

../MOVector.cpp: In instantiation of ‘bool MOVector<ItemClass>::dropMimeData(const QMimeData*, Qt::DropAction, int, int, const QModelIndex&) [with ItemClass = ScannedVariable]’:
../Variables.cpp:164:1: required from here
../MOVector.cpp:741:13: error: ‘insertItem’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
../MOVector.cpp:741:13: note: declarations in dependent base ‘MOAVector<ScannedVariable>’ are not found by unqualified lookup
../MOVector.cpp:741:13: note: use ‘this->insertItem’ instead

Which additional information do you need to locate the problem ?

I run apt-get -b source openmodelica

apt-show-versions | grep qt | grep dev
libqt4-dev/quantal-security uptodate 4:4.8.3+dfsg-0ubuntu3.1
libqt4-dev-bin/quantal-security uptodate 4:4.8.3+dfsg-0ubuntu3.1
libqtwebkit-dev/quantal uptodate 2.2.1-4ubuntu1
libqwt5-qt4-dev/quantal uptodate 5.2.2-3
qt4-dev-tools/quantal-security uptodate 4:4.8.3+dfsg-0ubuntu3.1

Change History (3)

comment:1 by Martin Sjölund, 11 years ago

I think you might need to install a compiler that can handle the broken C++ in paradiseo (the OMOptim author did not update to use the latest paradiseo).
From our build log:

quantal-amd64: g++-4.4 -c -m64 -pipe -O2 -w -fPIC -D_REENTRANT -DQT_WEBKIT -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 -Irelease/generatedfiles/ui -I/usr/include/qwt-qt4 -I. -I.. -I../GUI -I../GUI/Widgets -I../GUI/Tools -I../GUI/Dialogs -I../Units -I../Tools -I../Infos -I../FileData -I../Problems -Irelease/generatedfiles/moc -Irelease/generatedfiles/ui -o release/generatedfiles/Variables.o ../Variables.cpp

I am adding g++-4.4 to the dependencies.

comment:2 by Martin Sjölund, 11 years ago

Owner: changed from Adeel Asghar to Martin Sjölund
Status: newaccepted

comment:3 by Martin Sjölund, 11 years ago

Resolution: fixed
Status: acceptedclosed
Note: See TracTickets for help on using tickets.