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
36 stars 12 forks source link

Compilation fails on Arch Linux #1

Closed edunham closed 10 years ago

edunham commented 10 years ago

Hi,

I tried to install cstitch-git from the AUR with yaourt -S cstitch-git but it failed:

g++ -c -pipe -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -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 -I. -I. -o buttonGrid.o buttonGrid.cpp
In file included from buttonGrid.cpp:20:0:
buttonGrid.h:24:29: fatal error: QtWidgets/QWidget: No such file or directory
 #include <QtWidgets/QWidget>
                             ^
compilation terminated.
Makefile:598: recipe for target 'buttonGrid.o' failed
make: *** [buttonGrid.o] Error 1

Could you either fix the package in the AUR or add a readme to this project explaining how to install from source?

Thank you!!

kleintom commented 10 years ago

The most recent versions of cstitch are based on Qt5, while the Arch package is still compiling against Qt4. I contacted the package maintainer abut the issue, but in the meantime you can check out the generic linux install doc at https://github.com/kleintom/Cstitch/blob/master/doc/web/INSTALL_linux

kleintom commented 10 years ago

The package maintainer has fixed the AUR package, and the Linux install doc has been moved to the repository's home directory.