Page 1 of 1

Problem compiling QUCS

Posted: 5. Oct 2015, 08:41
by jd63
Hi,

I'm trying to compile QUCS (a circuit simulator) which is available in Slackbuilds. Compilation fails with the error:
checking for Qt headers... configure: error: not found
But I have Qt installed. As I understand it Slackware doesn't have separate "dev" packages, so I'm not sure where to go from here.

I'm using Salix 14.1 with Xfce. Thanks for any help. Great distro by the way!

Re: Problem compiling QUCS

Posted: 5. Oct 2015, 14:13
by gapan
This is weird. Can you try with:

Code: Select all

sudo -E spi -i qucs

Re: Problem compiling QUCS

Posted: 5. Oct 2015, 15:51
by jd63
Thanks but I'm getting the same error using -E.
checking build system type... i486-slackware-linux-gnu
checking host system type... i486-slackware-linux-gnu
checking target system type... i486-slackware-linux-gnu
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for clang++... no
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for ranlib... ranlib
checking for ar... ar

The qucs package has never been compiled or run on this platform.
Please send an email to <qucs-devel@lists.sourceforge.net> including your
compiler and Qt version and whether it worked correctly or not. The
'i486-slackware-linux-gnu' line will then be added to the PLATFORMS file included
in this package.

checking for lrelease-qt4... no
checking for lrelease... /usr/bin/lrelease
checking for lupdate-qt4... no
checking for lupdate... /usr/bin/lupdate
checking for moc-qt4... no
checking for moc... /usr/bin/moc
checking for uic-qt4... no
checking for uic... /usr/bin/uic
checking for rcc... /usr/bin/rcc
checking how to run the C preprocessor... gcc -E
checking for X... libraries , headers
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for Qt headers... configure: error: not found
fakeroot -- sh qucs.SlackBuild Failed
According to the qucs website compilation requires Qt4 with "Qt3 support". http://qucs.sourceforge.net/build.html
Not sure what this means...

Re: Problem compiling QUCS

Posted: 5. Oct 2015, 15:59
by gapan
Can you post the output of this?

Code: Select all

sudo su
echo $QT4DIR

Re: Problem compiling QUCS

Posted: 5. Oct 2015, 16:22
by jd63
hmm.... not getting any output at all for that.

But tried this:
qmake --version
QMake version 2.01a
Using Qt version 4.8.7 in /usr/lib/qt/lib
Also maybe this will help from someone who had the same problem with an earlier version?

http://murga-linux.com/puppy/viewtopic. ... 27d3970aff

But I don't really want to start installing old versions of Qt in case it messes up my system.

Re: Problem compiling QUCS

Posted: 5. Oct 2015, 16:32
by gapan
Try this:

Code: Select all

sudo su
source /etc/profile.d/qt4.sh
spi -i qucs

Re: Problem compiling QUCS

Posted: 5. Oct 2015, 18:07
by jd63
Thanks gapan, that did it! :D