Menu

#1 crash on compiling

open
nobody
5
2008-03-05
2008-03-05
Anonymous
No

Sorry tu disturb you

I'm trying to compile and use your skype call recorder (at last one for linux!! Thanks).

But when doing make, I get the following error:

g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/default -I. -I/usr/include/QtCore -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/QtGui -I/usr/include -I. -I. -I. -o main.o main.cpp
In file included from /usr/include/QtCore/qdebug.h:45,
from /usr/include/QtNetwork/qabstractsocket.h:218,
from /usr/include/QtNetwork/QTcpServer:41,
from tcpstreams.h:27,
from MainWindow.h:32,
from main.cpp:24:
/usr/include/QtCore/qtextstream.h:53:2: error: #error qtextstream.h must be included before any header file that defines Status
In file included from /usr/include/QtCore/qdebug.h:45,
from /usr/include/QtNetwork/qabstractsocket.h:218,
from /usr/include/QtNetwork/QTcpServer:41,
from tcpstreams.h:27,
from MainWindow.h:32,
from main.cpp:24:
/usr/include/QtCore/qtextstream.h:80: error: expected identifier before ‘int’
/usr/include/QtCore/qtextstream.h:80: error: expected unqualified-id before ‘{’ token
make: *** [main.o] Error 1

Any Idea what's doing wrong?
I use Suse 10.3 (with libqt4 4.3.3-10.1) and use also Ubuntu 7.10, and the problem is the same in both.

Thanks

Discussion

  • Nobody/Anonymous

    Logged In: NO

    When I try to compile, I get the following error:

    /usr/bin/uic-qt4 AboutSCXDialog.ui -o ui_AboutSCXDialog.h
    /usr/bin/uic-qt4 ConfigDlg.ui -o ui_ConfigDlg.h
    /usr/bin/uic-qt4 MainWindow.ui -o ui_MainWindow.h
    g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_SHARED -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -I. -o AboutSCXDialog.o AboutSCXDialog.cpp
    AboutSCXDialog.cpp:26: error: ‘AboutSCXDialog’ has not been declared
    AboutSCXDialog.cpp:26: error: ISO C++ forbids declaration of ‘AboutSCXDialog’ with no type
    AboutSCXDialog.cpp: In function ‘int AboutSCXDialog(QWidget*, Qt::WindowFlags)’:
    AboutSCXDialog.cpp:26: error: only constructors take base initializers
    AboutSCXDialog.cpp:28: error: invalid use of ‘this’ in non-member function
    AboutSCXDialog.cpp:28: error: ‘setupUi’ was not declared in this scope
    AboutSCXDialog.cpp: At global scope:
    AboutSCXDialog.cpp:31: error: expected constructor, destructor, or type conversion before ‘::’ token
    make: *** [AboutSCXDialog.o] Error 1

     
  • Nobody/Anonymous

    Logged In: NO

    I had the same problem. Try downloading the source files from the SVN repository, then compile. It worked for me.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.