WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: notepadqq compilation error: "Could not find feature thread"  (Read 5708 times)

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1453
notepadqq compilation error: "Could not find feature thread"
« 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:
Code: [Select]
$ 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.

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14755
Re: notepadqq compilation error: "Could not find feature thread"
« Reply #1 on: March 30, 2020, 09:47:19 AM »
Are qt-5.x-all and intltool loaded?

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1453
Re: notepadqq compilation error: "Could not find feature thread"
« Reply #2 on: March 30, 2020, 09:56:42 AM »
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.

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14755
Re: notepadqq compilation error: "Could not find feature thread"
« Reply #3 on: March 30, 2020, 10:03:42 AM »
Does “make V=1” throw up any more errors?

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1453
Re: notepadqq compilation error: "Could not find feature thread"
« Reply #4 on: March 30, 2020, 10:06:52 AM »
No. Same as before:

Code: [Select]
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

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11514
Re: notepadqq compilation error: "Could not find feature thread"
« Reply #5 on: March 30, 2020, 10:17:25 AM »
Hi GNUser
What if you do this:
Code: [Select]
configure --prefix=/usr/local -no-feature-thread

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1453
Re: notepadqq compilation error: "Could not find feature thread"
« Reply #6 on: March 30, 2020, 10:22:00 AM »
Darn, no. Same result.

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11514
Re: notepadqq compilation error: "Could not find feature thread"
« Reply #7 on: March 30, 2020, 10:28:25 AM »
Hi GNUser
How about this:
Code: [Select]
configure --prefix=/usr/local -no-warnings-are-errors -no-feature-thread

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1453
Re: notepadqq compilation error: "Could not find feature thread"
« Reply #8 on: March 30, 2020, 10:33:38 AM »
Thank you, Rich. You had my hopes up with that one :)
Alas, same result.

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1453
Re: notepadqq compilation error: "Could not find feature thread"
« Reply #9 on: March 30, 2020, 10:38:22 AM »
I found that these files in the  qt-5.x-dev  extension have "thread" in their name:
Code: [Select]
./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?

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11514
Re: notepadqq compilation error: "Could not find feature thread"
« Reply #10 on: March 30, 2020, 11:07:12 AM »
Hi GNUser
You missed one:
Code: [Select]
/usr/local/lib/qt5/mkspecs/features/unix/thread.prf

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1453
Re: notepadqq compilation error: "Could not find feature thread"
« Reply #11 on: March 30, 2020, 11:24:21 AM »
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:
Code: [Select]
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?

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11514
Re: notepadqq compilation error: "Could not find feature thread"
« Reply #12 on: March 30, 2020, 11:28:04 AM »
Hi GNUser
Maybe you need to shorten it to:
Code: [Select]
export QMAKESPEC=/usr/local/lib/qt5/mkspecs

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1453
Re: notepadqq compilation error: "Could not find feature thread"
« Reply #13 on: March 30, 2020, 01:55:52 PM »
Thanks, Rich. That helps somewhat. Now the error is different:

Code: [Select]
$ 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)?

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11514
Re: notepadqq compilation error: "Could not find feature thread"
« Reply #14 on: March 30, 2020, 02:53:30 PM »
Hi GNUser
... I'm puzzled why  qmake  can't find things on its own. ...
I found this:
Code: [Select]
./configure --prefix /usr --qmake /usr/lib/x86_64-linux-gnu/qt5/bin/qmakeover 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.