Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configuration.h error: 'signals' does not name a type #10

Closed
EsbenSoeltoft opened this issue Oct 21, 2015 · 3 comments
Closed

configuration.h error: 'signals' does not name a type #10

EsbenSoeltoft opened this issue Oct 21, 2015 · 3 comments

Comments

@EsbenSoeltoft
Copy link

When I try to compile the code on my Fedora 22, I get the following error

/qt5/QtCore -I. -I/usr/lib64/qt5/mkspecs/linux-g++-64 -o configuration.o common/configuration.cpp
In file included from common/configuration.cpp:16:0:
common/configuration.h:69:1: error: ‘signals’ does not name a type
signals:
^
common/configuration.h: In static member function ‘static Configuration& Configuration::instance()’:
common/configuration.h:29:30: error: no matching function for call to ‘Configuration::Configuration()’
static Configuration singleton;
^
common/configuration.h:77:5: note: candidate: Configuration::Configuration(const Configuration&)
Configuration(const Configuration&);
^
common/configuration.h:77:5: note: candidate expects 1 argument, 0 provided
common/configuration.cpp: At global scope:
common/configuration.cpp:63:1: error: prototype for ‘Configuration::Configuration()’ does not match any in class ‘Configuration’
Configuration::Configuration()
^
In file included from common/configuration.cpp:16:0:
common/configuration.h:77:5: error: candidate is: Configuration::Configuration(const Configuration&)
Configuration(const Configuration&);
^
Makefile:2127: recipe for target 'configuration.o' failed
make: *** [configuration.o] Error 1

@embeddedartists
Copy link
Owner

This is not an error that we recognize. It seems as though it could be a problem with your Qt installation/configuration. The symbol signals is Qt specific and should work as long as Qt is correctly setup as far as we are aware of.

We haven't tried to compile LabTool in Fedora, but we have instructions for how to do it in Windows and on Raspberry Pi (which runs Linux).

https://github.com/embeddedartists/labtool/blob/master/app/COMPILE.raspi.md

@embeddedartists
Copy link
Owner

The problem could be that the Configuration object isn't defined as a QObject. Signals and slots are actually not used by this class so you can try to remove 'signals:' and 'public slots:' from the header file and see if it compiles

@EsbenSoeltoft
Copy link
Author

I commented out "Signals" and "slots" and this made the software compile.

I new feel confident enough to try and order the Labtool - thank you for
the help.

Best regards
Esben

On 22 October 2015 at 08:00, Embedded Artists notifications@github.com
wrote:

The problem could be that the Configuration object isn't defined as a
QObject. Signals and slots are actually not used by this class so you can
try to remove 'signals:' and 'public slots:' from the header file and see
if it compiles


Reply to this email directly or view it on GitHub
#10 (comment)
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants