LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-12-2008, 11:49 PM   #1
secretlydead
Member
 
Registered: Sep 2003
Location: Qingdao, China
Distribution: mandriva, slack, red flag
Posts: 249

Rep: Reputation: 31
Qt compile problem - scx-tools - AboutSCXDialog.cpp:26: error: ‘AboutSCXDialog’ has n


I've been working to compile recording software for skype on debian for some time. I'm getting this error:

dan@dan:/mnt/data/programs/I M/scx-tools-0.1.1/scx-recorder$ qmake-qt4 -project "LIBS += -lQtNetwork -lasound"
dan@dan:/mnt/data/programs/I M/scx-tools-0.1.1/scx-recorder$ qmake-qt4
dan@dan:/mnt/data/programs/I M/scx-tools-0.1.1/scx-recorder$ make
/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 -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -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


I'm hoping someone else has set this up on Debian Etch...
 
Old 07-11-2008, 06:24 AM   #2
Andersonian
LQ Newbie
 
Registered: Oct 2006
Location: California / Moldova
Distribution: bunch of Ubuntu flavors
Posts: 29

Rep: Reputation: 15
Where did you get the source from?

I'm not sure what your error means, but I had some error with qtextstream.h when compiling the tarball from sf.net
Then I got the trunk version through svn and this compiled with no problems.

However, after I started Skype I would get a segmentation fault when running scx-recorder.
Anyone has an idea if this could be related to the fact that it's 32-bit Skype on a 64-bit system. SCX is probably compiled for 64 by default.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
compile amarok fails with ktrm.cpp error pwc101 Linux - Software 2 10-28-2006 03:56 AM
How to compile a C++ file (.cpp) with allegro? RHLinuxGUY Programming 5 11-29-2005 02:06 AM
debian dpkg cpp depends on cpp error darkleaf Linux - Software 2 06-25-2004 01:47 AM
How do I compile a *.cpp Document in linux? njbrain Linux - Software 9 01-29-2004 07:43 PM
compile programs in c and cpp Manjula.S Linux - Software 2 10-15-2003 01:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration