Tiny Core Linux
Off-Topic => Off-Topic - Tiny Core Lounge => Topic started by: GNUser on March 30, 2020, 08:57:28 AM
-
Hello, friends. Please, I'm trying to compile latest git version of notepadqq on my Pure64 11.0 laptop. The source code is available here:
https://github.com/notepadqq/notepadqq
I can get this far:
$ tce-load -wi compiletc qt-5.x-dev uchardet-dev
$ export QTMAKESPEC=/usr/local/lib/qt5/mkspecs/linux-g++
$ configure --prefix=/usr/local
$ make
...
Generated 359 translation(s) (359 finished and 0 unfinished)
Updating '/home/bruno/Downloads/notepadqq-master/src/ui/../translations/notepadqq_uk.qm'...
Generated 453 translation(s) (453 finished and 0 unfinished)
Updating '/home/bruno/Downloads/notepadqq-master/src/ui/../translations/notepadqq_zh.qm'...
Generated 448 translation(s) (448 finished and 0 unfinished)
Project ERROR: Could not find feature thread.
make: *** [Makefile:48: sub-src-ui-make_first] Error 3
How do I solve "Project ERROR: Could not find feature thread."?
Internet searches have not turned up anything helpful.
-
Are qt-5.x-all and intltool loaded?
-
Yes, both are loaded.
Also, in the steps I listed it should be export QMAKESPEC (no "T" in it). Sorry for the typo.
I'm totally stuck.
-
Does “make V=1” throw up any more errors?
-
No. Same as before:
bruno@box:~/Downloads/notepadqq-master$ make V=1
cd src/ui/ && ( test -e Makefile || /usr/local/bin/qmake -o Makefile /home/bruno/Downloads/notepadqq-master/src/ui/ui.pro PREFIX=/usr/local QMAKE_CXX=c++ 'QMAKE_CXXFLAGS=-mtune=generic -Os -pipe ' QMAKE_LFLAGS=-Wl,-O1 LRELEASE=/usr/local/bin/lrelease CONFIG+= ) && make -f Makefile
Project MESSAGE: Release build
WARNING: Project ERROR: Could not find feature thread.
Updating '/home/bruno/Downloads/notepadqq-master/src/ui/../translations/notepadqq_de.qm'...
Generated 453 translation(s) (453 finished and 0 unfinished)
Updating '/home/bruno/Downloads/notepadqq-master/src/ui/../translations/notepadqq_es.qm'...
Generated 454 translation(s) (454 finished and 0 unfinished)
Updating '/home/bruno/Downloads/notepadqq-master/src/ui/../translations/notepadqq_fr.qm'...
Generated 345 translation(s) (345 finished and 0 unfinished)
Updating '/home/bruno/Downloads/notepadqq-master/src/ui/../translations/notepadqq_hu.qm'...
Generated 454 translation(s) (454 finished and 0 unfinished)
Updating '/home/bruno/Downloads/notepadqq-master/src/ui/../translations/notepadqq_it.qm'...
Generated 451 translation(s) (434 finished and 17 unfinished)
Ignored 1 untranslated source text(s)
Updating '/home/bruno/Downloads/notepadqq-master/src/ui/../translations/notepadqq_ja.qm'...
Generated 447 translation(s) (447 finished and 0 unfinished)
Ignored 5 untranslated source text(s)
Updating '/home/bruno/Downloads/notepadqq-master/src/ui/../translations/notepadqq_pl.qm'...
Generated 452 translation(s) (452 finished and 0 unfinished)
Updating '/home/bruno/Downloads/notepadqq-master/src/ui/../translations/notepadqq_pt.qm'...
Generated 454 translation(s) (454 finished and 0 unfinished)
Updating '/home/bruno/Downloads/notepadqq-master/src/ui/../translations/notepadqq_ru.qm'...
Generated 328 translation(s) (326 finished and 2 unfinished)
Ignored 17 untranslated source text(s)
Updating '/home/bruno/Downloads/notepadqq-master/src/ui/../translations/notepadqq_sl.qm'...
Generated 345 translation(s) (345 finished and 0 unfinished)
Updating '/home/bruno/Downloads/notepadqq-master/src/ui/../translations/notepadqq_sv.qm'...
Generated 359 translation(s) (359 finished and 0 unfinished)
Updating '/home/bruno/Downloads/notepadqq-master/src/ui/../translations/notepadqq_uk.qm'...
Generated 453 translation(s) (453 finished and 0 unfinished)
Updating '/home/bruno/Downloads/notepadqq-master/src/ui/../translations/notepadqq_zh.qm'...
Generated 448 translation(s) (448 finished and 0 unfinished)
Project ERROR: Could not find feature thread.
make: *** [Makefile:48: sub-src-ui-make_first] Error 3
-
Hi GNUser
What if you do this:
configure --prefix=/usr/local -no-feature-thread
-
Darn, no. Same result.
-
Hi GNUser
How about this:
configure --prefix=/usr/local -no-warnings-are-errors -no-feature-thread
-
Thank you, Rich. You had my hopes up with that one :)
Alas, same result.
-
I found that these files in the qt-5.x-dev extension have "thread" in their name:
./tmp/tcloop/qt-5.x-dev/usr/local/include/qt5/QtCore/QThread
./tmp/tcloop/qt-5.x-dev/usr/local/include/qt5/QtCore/QThreadPool
./tmp/tcloop/qt-5.x-dev/usr/local/include/qt5/QtCore/QThreadStorage
./tmp/tcloop/qt-5.x-dev/usr/local/include/qt5/QtCore/QThreadStorageData
./tmp/tcloop/qt-5.x-dev/usr/local/include/qt5/QtCore/qthread.h
./tmp/tcloop/qt-5.x-dev/usr/local/include/qt5/QtCore/qthreadpool.h
./tmp/tcloop/qt-5.x-dev/usr/local/include/qt5/QtCore/qthreadstorage.h
Maybe one of the steps in the build process does not know where to find these files on a TCL system?
-
Hi GNUser
You missed one:
/usr/local/lib/qt5/mkspecs/features/unix/thread.prf
-
Thank you, Rich. I think I see what the problem is. At first I was getting an error related to linux-g++. I got around that error with this:
export QMAKESPEC=/usr/local/lib/qt5/mkspecs/linux-g++
Now the errors are related to thread. So it seems both errors may be related to mkspecs
Maybe I should be setting QMAKESPEC to something else?
-
Hi GNUser
Maybe you need to shorten it to:
export QMAKESPEC=/usr/local/lib/qt5/mkspecs
-
Thanks, Rich. That helps somewhat. Now the error is different:
$ export QMAKESPEC=/usr/local/lib/qt5/mkspecs
$ ./configure --prefix=/usr/local
checking for QT5 qmake... /usr/local/bin/qmake
checking for lrelease... /usr/local/bin/lrelease
checking for c++... /usr/local/bin/c++
checking whether c++ compiler builds test program... ok
checking whether c++ compiler supports -std=c++0x... ok
checking whether compiled test program works... ok
checking for make... /usr/local/bin/make
checking for pkg-config... /usr/local/bin/pkg-config
checking for Qt5Core library... -L/usr/local/lib -lQt5Core
checking for Qt5Gui library... -L/usr/local/lib -lQt5Gui -lQt5Core
checking for Qt5Network library... -L/usr/local/lib -lQt5Network -lQt5Core
checking for Qt5WebEngine library... not found!
checking for Qt5Widgets library... -L/usr/local/lib -lQt5Widgets -lQt5Gui -lQt5Core
checking for Qt5WebEngineWidgets library... not found!
checking for Qt5PrintSupport library... -L/usr/local/lib -lQt5PrintSupport -lQt5Widgets -lQt5Gui -lQt5Core
checking for Qt5Svg library... -L/usr/local/lib -lQt5Svg -lQt5Widgets -lQt5Gui -lQt5Core
checking for Qt5WebSockets library... -L/usr/local/lib -lQt5WebSockets -lQt5Network -lQt5Core
checking for Qt5WebChannel library... -L/usr/local/lib -lQt5WebChannel -lQt5Qml -lQt5Network -lQt5Core
checking for uchardet library... -L/usr/local/lib -luchardet
generate Makefile... Cannot read /usr/local/lib/qt5/common/linux.conf: No such file or directory
Cannot read /usr/local/lib/qt5/common/gcc-base-unix.conf: No such file or directory
Cannot read /usr/local/lib/qt5/common/g++-unix.conf: No such file or directory
Project ERROR: qmake spec does not announce the compiler family, and it cannot be guessed.
Error processing project file: notepadqq.pro
error!
I'm puzzled why qmake can't find things on its own.
Is it a problem with how qmake was packaged, or is it a problem with notepadqq's source code (making assumptions that are true for some distros but not true for TCL)?
-
Hi GNUser
... I'm puzzled why qmake can't find things on its own. ...
I found this:
./configure --prefix /usr --qmake /usr/lib/x86_64-linux-gnu/qt5/bin/qmake
over here:
https://www.linuxbabe.com/desktop-linux/compile-notepadqq-debian-ubuntu-raspbian
That site also list some packages I don't see in the repo (qt5-qmake, qttools5-dev-tools, etc) though it's possible they are included
in some other packages.
-
make seems to be able to find qmake, I don't think that's the issue. The issue seems to be that qmake itself is looking for stuff in wrong places, has no clue where to find things in TCL.
Thanks for your help, Rich. I'm giving up on this for now.
-
Hi GNUser
There's always geany.tcz. Been using it since TC4.
-
Thanks, Rich. I had used geany in the past, but it had fallen off my radar.
I tried geany again today and have to say it's perfect for what I need. It does more than notepadqq but, paradoxically, loads much faster and has fewer dependencies. Thank you very much for the recommendation!