WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: With Qt-5.x version 5.14.0 qmake gives compile error  (Read 123 times)

Offline rhermsen

  • Newbie
  • *
  • Posts: 40
With Qt-5.x version 5.14.0 qmake gives compile error
« on: July 17, 2020, 06:07:18 PM »
I'm getting the following error with Qt-5.14.0 on TCP-11.0:

Code: [Select]
Could not find qmake spec 'linux-g++'.
Error processing project file: /tmp/ostinato/source/ostinato-1.1/ost.pro
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target 'install'.  Stop.

Compiling the same package on TCP-10.1 with Qt-5.11.2 goes fine.

From googling a bit I get that the "Could not find qmake spec 'linux-g++'" error is likely an Qt (environment) issue.

I hope someone can help with this..

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 12255
Re: With Qt-5.x version 5.14.0 qmake gives compile error
« Reply #1 on: July 18, 2020, 12:27:52 AM »
The paths containing linux-g++ in qt-5.x-dev are consitant between the versions of qt-5.x-dev in tinycore 10.x and 11x, so you would think that something that worked with one would work with the other...

Offline rhermsen

  • Newbie
  • *
  • Posts: 40
Re: With Qt-5.x version 5.14.0 qmake gives compile error
« Reply #2 on: July 18, 2020, 03:24:27 AM »
Hi Juanito,

I also tried to use Qt-5.11.2 with TCP 11.0 (e.g. wget http://www.tinycorelinux.net/10.x/x86/tcz/qt-5.x-<each needed component>.tcz[.dep|.md5.txt]), and with Qt-5.11.2 it start to compile.
(eventually it failed with a bunch of 'undefined reference' errors, likely due to changes in openssl. Which likely can be solved with using more packages from 10.x)

From that I would think the issue must be with Qt-5.14.0.

First few lines with Qt-5.11.2 on TCP 11.0:
Code: [Select]
DESTDIR = /tmp/ostinato/build
PREFIX = /tmp/ostinato/build/usr/local
Info: creating stash file /tmp/ostinato/source/ostinato-1.1/.qmake.stash
cd common/ && ( test -e Makefile.ostproto || /usr/local/bin/qmake -o Makefile.ostproto /tmp/ostinato/source/ostinato-1.1/common/ostproto.pro ) && make -f Makefile.ostproto
make[1]: Entering directory '/tmp/ostinato/source/ostinato-1.1/common'
protoc --cpp_out=. --proto_path=. protocol.proto
[libprotobuf WARNING google/protobuf/compiler/parser.cc:546] No syntax specified for the proto file: protocol.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
g++ -c -march=i486 -mtune=i686 -pipe -isystem /usr/local/include/qt5 -std=c++11 -Os -fPIC -D_REENTRANT -Wall -W -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_SCRIPT_LIB -DQT_XML_LIB -DQT_CORE_LIB -I. -isystem /usr/local/include/qt5 -isystem /usr/local/include/qt5/QtNetwork -isystem /usr/local/include/qt5/QtScript -isystem /usr/local/include/qt5/QtXml -isystem /usr/local/include/qt5/QtCore -I. -I/usr/local/lib/qt5/mkspecs/linux-g++ -o abstractprotocol.o abstractprotocol.cpp

Same lines with Qt-5.14.0 (on TCP 11.0):
Code: [Select]
DESTDIR = /tmp/ostinato/build
PREFIX = /tmp/ostinato/build/usr/local
Could not find qmake spec 'linux-g++'.
Error processing project file: /tmp/ostinato/source/ostinato-1.1/ost.pro
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target 'install'.  Stop.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 12255
Re: With Qt-5.x version 5.14.0 qmake gives compile error
« Reply #3 on: July 18, 2020, 03:57:53 AM »
Is qt-5.x-dev loaded in tc-11.x?

Offline rhermsen

  • Newbie
  • *
  • Posts: 40
Re: With Qt-5.x version 5.14.0 qmake gives compile error
« Reply #4 on: July 18, 2020, 05:31:36 AM »
Yes it is:
Code: [Select]
tc@testapps:/mnt/vda1/tce/optional$ ls -la /usr/local/tce.installed/qt-*
-rw-r--r--    1 tc       staff            0 Jul 18 12:25 /usr/local/tce.installed/qt-5.x-all
-rw-r--r--    1 tc       staff            0 Jul 18 12:24 /usr/local/tce.installed/qt-5.x-base
-rw-r--r--    1 tc       staff            0 Jul 18 12:24 /usr/local/tce.installed/qt-5.x-bin
-rw-r--r--    1 tc       staff            0 Jul 18 12:24 /usr/local/tce.installed/qt-5.x-dbus
-rw-r--r--    1 tc       staff            0 Jul 18 12:25 /usr/local/tce.installed/qt-5.x-dev
-rw-r--r--    1 tc       staff            0 Jul 18 12:24 /usr/local/tce.installed/qt-5.x-extended
-rw-r--r--    1 tc       staff            0 Jul 18 12:24 /usr/local/tce.installed/qt-5.x-opengl
-rw-r--r--    1 tc       staff            0 Jul 18 12:24 /usr/local/tce.installed/qt-5.x-printsupport
-rw-r--r--    1 tc       staff            0 Jul 18 12:24 /usr/local/tce.installed/qt-5.x-script
-rw-r--r--    1 tc       staff            0 Jul 18 12:24 /usr/local/tce.installed/qt-5.x-sql
-rw-r--r--    1 tc       staff            0 Jul 18 12:24 /usr/local/tce.installed/qt-5.x-xml
tc@testapps:/mnt/vda1/tce/optional$

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 12255
Re: With Qt-5.x version 5.14.0 qmake gives compile error
« Reply #5 on: July 18, 2020, 06:36:50 AM »
strange - i've compiled several apps against qt-5.x-dev and things worked...