anything

Author Topic: Compilation error under linux  (Read 15883 times)

Offline helpmeplz

  • Newbie
  • *
  • Posts: 1
Compilation error under linux
« on: December 12, 2009, 07:00:40 AM »
Hello,

I am trying to compile the source code for the Password Maker Desktop program v0.4, but I'm receiving the error messages below when I run "make" (after successfully running "qmake").  I am running Ubuntu 9.10 with QT 4.5 installed from the repositories.  I'm pretty sure the file isn't corrupt since I successfully compiled under mac from exactly the same archive file (on a flash drive--I did delete the directory and reextract the archive after compiling for Mac to get a clean install under Linux).

Code: [Select]
g++ -c -pipe -O2 -D_REENTRANT -Wall -W -DUSE_QT -DUSE_QTSCRIPT -DUSE_SHA256_BUG -DQT_NO_DEBUG -DQT_SCRIPT_LIB -DQT_SQL_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtSql -I/usr/include/qt4/QtScript -I/usr/include/qt4 -Irelease -o release/optionswindow.o optionswindow.cpp
optionswindow.cpp:32:22: error: qvarient.h: No such file or directory
optionswindow.cpp: In member function ‘virtual void OptionsWindow::accept()’:
optionswindow.cpp:43: error: aggregate ‘QVariant setting’ has incomplete type and cannot be defined
optionswindow.cpp:45: error: invalid use of incomplete type ‘struct QVariant’
/usr/include/qt4/QtCore/qobject.h:65: error: forward declaration of ‘struct QVariant’
optionswindow.cpp:47: error: invalid use of incomplete type ‘struct QVariant’
/usr/include/qt4/QtCore/qobject.h:65: error: forward declaration of ‘struct QVariant’
optionswindow.cpp:49: error: invalid use of incomplete type ‘struct QVariant’
/usr/include/qt4/QtCore/qobject.h:65: error: forward declaration of ‘struct QVariant’
optionswindow.cpp:51: error: invalid use of incomplete type ‘struct QVariant’
/usr/include/qt4/QtCore/qobject.h:65: error: forward declaration of ‘struct QVariant’
optionswindow.cpp:53: error: invalid use of incomplete type ‘struct QVariant’
/usr/include/qt4/QtCore/qobject.h:65: error: forward declaration of ‘struct QVariant’
optionswindow.cpp: In member function ‘void OptionsWindow::exec()’:
optionswindow.cpp:59: error: aggregate ‘QVariant setting’ has incomplete type and cannot be defined
optionswindow.cpp:62: error: invalid use of incomplete type ‘struct QVariant’
/usr/include/qt4/QtCore/qobject.h:65: error: forward declaration of ‘struct QVariant’
optionswindow.cpp:63: error: incomplete type ‘QVariant’ used in nested name specifier
optionswindow.cpp:66: error: invalid use of incomplete type ‘struct QVariant’
/usr/include/qt4/QtCore/qobject.h:65: error: forward declaration of ‘struct QVariant’
optionswindow.cpp:67: error: incomplete type ‘QVariant’ used in nested name specifier
optionswindow.cpp:70: error: invalid use of incomplete type ‘struct QVariant’
/usr/include/qt4/QtCore/qobject.h:65: error: forward declaration of ‘struct QVariant’
optionswindow.cpp:71: error: incomplete type ‘QVariant’ used in nested name specifier
optionswindow.cpp:74: error: invalid use of incomplete type ‘struct QVariant’
/usr/include/qt4/QtCore/qobject.h:65: error: forward declaration of ‘struct QVariant’
optionswindow.cpp:75: error: incomplete type ‘QVariant’ used in nested name specifier
optionswindow.cpp:78: error: invalid use of incomplete type ‘struct QVariant’
/usr/include/qt4/QtCore/qobject.h:65: error: forward declaration of ‘struct QVariant’
optionswindow.cpp:79: error: incomplete type ‘QVariant’ used in nested name specifier
make: *** [release/optionswindow.o] Error 1

 If anybody can help, I'd greatly appreciate it.

Thanks!

Offline Miquel 'Fire' Burns

  • Administrator
  • *****
  • Posts: 1145
  • Programmer
    • http://www.miquelfire.com/
Re: Compilation error under linux
« Reply #1 on: December 13, 2009, 03:15:55 AM »
The dev stuff for QT is installed right?
"I'm not drunk, just sleep deprived."

Offline hsiaoli

  • Newbie
  • *
  • Posts: 1
Re: Compilation error under linux
« Reply #2 on: October 09, 2010, 03:19:53 PM »
just add a include in the file optionwindow.cpp

Code: [Select]
#include <QVariant>

PasswordMaker Forums

Re: Compilation error under linux
« Reply #2 on: October 09, 2010, 03:19:53 PM »

 

anything