kleintom / Cstitch

Convert images to cross stitch patterns: choose the number of colors to use and the final pattern size; edit your pattern (save and restore your work); save your pattern as a pdf.
http://cstitch.sourceforge.net/
GNU General Public License v3.0
35 stars 12 forks source link

Compilation fails on Arch Linux (Qt 5) #7

Closed willemw12 closed 8 years ago

willemw12 commented 8 years ago

Recently, compliation on Arch Linux fails:

g++ -c -pipe -O2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -Wall -W -D_REENTRANT -fPIC -
DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_CORE_LIB -I. -I. -isystem /usr/include/qt -isystem /u
sr/include/qt/QtPrintSupport -isystem /usr/include/qt/QtWidgets -isystem /usr/include/qt/QtGui -isystem /usr/include/qt/QtXml -isystem /
usr/include/qt/QtCore -I. -I/usr/lib/qt/mkspecs/linux-g++ -o colorChooserProcessModes.o colorChooserProcessModes.cpp
In file included from colorChooserProcessModes.cpp:20:0:
colorChooserProcessModes.h: In member function ‘virtual processChange numColorsBaseModes::makeProcessChange() const’:
colorChooserProcessModes.h:210:44: error: ‘QObject’ was not declared in this scope
     return processChange(true, true, true, QObject::tr("Clicked colors"),
                                            ^

Compliation succeeds when adding #include <QtCore/QObject> to colorChooserProcessModes.h:

#ifndef COLORCHOOSERPROCESSMODES_H
#define COLORCHOOSERPROCESSMODES_H

#include <QtCore/QObject>
#include <QtCore/QSharedData>
#include <QtCore/QVector>

Package 'qt5-base' version 5.5.0 is installed.

kleintom commented 8 years ago

Thanks for the update Willem. I'm not at 5.5 yet so I don't know if there will be other issues...if there are let me know and I'll install 5.5.