Solved how to build and install qt5.12.5 plugin for raspbian-buster in raspberry 4?
-
I use the raspberry 4 with raspbian-buster, I need to use tts, but qt5.12.5 in my board do not contain qtspeech plugin. so I download the qtspeech-everywhere-src-5.12.5.zip.
and do as follow:
///////////////////////////////////////////////////////////////////- qmake qtspeech.pro;
- make
/////////////////////////////////////////////////////////////////////
but in the 1 step, after I qmake , errors as bellow, show in the config.log file:
executing config test flite
- cd /home/qt5_install/qtspeech-everywhere-src-5.12.5/build/config.tests/flite && /usr/lib/qt5.12/bin/qmake -spec /usr/lib/qt5.12/mkspecs/linux-rpi3-g++ "CONFIG -= qt debug_and_release app_bundle lib_bundle" /home/qt5_install/qtspeech-everywhere-src-5.12.5/config.tests/flite
- cd /home/qt5_install/qtspeech-everywhere-src-5.12.5/build/config.tests/flite && MAKEFLAGS= make
g++ -c -pipe -march=armv8-a -mtune=cortex-a53 -mfpu=crypto-neon-fp-armv8 -O2 -fno-exceptions -Wall -W -fPIC -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I/home/qt5_install/qtspeech-everywhere-src-5.12.5/config.tests/flite -I. -I/usr/lib/qt5.12/mkspecs/linux-rpi3-g++ -o .obj/flite.o /home/qt5_install/qtspeech-everywhere-src-5.12.5/config.tests/flite/flite.cpp
/home/qt5_install/qtspeech-everywhere-src-5.12.5/config.tests/flite/flite.cpp:37:10: fatal error: flite/flite.h: 没有那个文件或目录
#include <flite/flite.h>
^~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:533:.obj/flite.o] 错误 1
test flite FAILED
executing config test flite_alsa- cd /home/qt5_install/qtspeech-everywhere-src-5.12.5/build/config.tests/flite_alsa && /usr/lib/qt5.12/bin/qmake -spec /usr/lib/qt5.12/mkspecs/linux-rpi3-g++ "CONFIG -= qt debug_and_release app_bundle lib_bundle" /home/qt5_install/qtspeech-everywhere-src-5.12.5/config.tests/flite_alsa
- cd /home/qt5_install/qtspeech-everywhere-src-5.12.5/build/config.tests/flite_alsa && MAKEFLAGS= make
g++ -c -pipe -march=armv8-a -mtune=cortex-a53 -mfpu=crypto-neon-fp-armv8 -O2 -fno-exceptions -Wall -W -fPIC -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I/home/qt5_install/qtspeech-everywhere-src-5.12.5/config.tests/flite_alsa -I. -I/usr/lib/qt5.12/mkspecs/linux-rpi3-g++ -o .obj/flite.o /home/qt5_install/qtspeech-everywhere-src-5.12.5/config.tests/flite/flite.cpp
/home/qt5_install/qtspeech-everywhere-src-5.12.5/config.tests/flite/flite.cpp:37:10: fatal error: flite/flite.h: 没有那个文件或目录
#include <flite/flite.h>
^~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:533:.obj/flite.o] 错误 1
test flite_alsa FAILED
executing config test speechd- cd /home/qt5_install/qtspeech-everywhere-src-5.12.5/build/config.tests/speechd && /usr/lib/qt5.12/bin/qmake -spec /usr/lib/qt5.12/mkspecs/linux-rpi3-g++ "CONFIG -= qt debug_and_release app_bundle lib_bundle" /home/qt5_install/qtspeech-everywhere-src-5.12.5/config.tests/speechd
- cd /home/qt5_install/qtspeech-everywhere-src-5.12.5/build/config.tests/speechd && MAKEFLAGS= make
g++ -c -pipe -march=armv8-a -mtune=cortex-a53 -mfpu=crypto-neon-fp-armv8 -O2 -fno-exceptions -Wall -W -fPIC -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I/home/qt5_install/qtspeech-everywhere-src-5.12.5/config.tests/speechd -I. -I/usr/lib/qt5.12/mkspecs/linux-rpi3-g++ -o .obj/speechd.o /home/qt5_install/qtspeech-everywhere-src-5.12.5/config.tests/speechd/speechd.cpp
/home/qt5_install/qtspeech-everywhere-src-5.12.5/config.tests/speechd/speechd.cpp:37:10: fatal error: libspeechd.h: 没有那个文件或目录
#include <libspeechd.h>
^~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:530:.obj/speechd.o] 错误 1
test speechd FAILED -
@stevewu said in how to build and install qt5.12.5 plugin for raspbian-buster in raspberry 4?:
qtspeech-everywhere-src-5.12.5.zip
You should download qtspeech-everywhere-src-5.12.5.tar.gz. The ZIP version is meant for Windows.
Install libflite and libflite-dev packages.
Same for libspeechd. -
@stevewu said in how to build and install qt5.12.5 plugin for raspbian-buster in raspberry 4?:
linux-rpi3-g++
I install some libs, the config.log errors disappear.
after step 2, make
the build directory has some files or directories as below:
/bin /include /lib Makefile /mkspecs /srcdo not have the /plugin directory;
in the /lib directory, there are libQt5TextToSpeech.so;
in the /bin directory, empty;is any one can tell me , how to success build the qtspeech-everywhere-src-5.12.5, and deploy it to the qt5.12.5 libs?
-
@stevewu said in how to build and install qt5.12.5 plugin for raspbian-buster in raspberry 4?:
is any one can tell me , how to success build the qtspeech-everywhere-src-5.12.5, and deploy it to the qt5.12.5 libs?
Did you forget "make install"?
-
@jsulm thank you so much , I install as you said,
aptitude install speechd-el
aptitude install speechd-el-doc-cs
aptitude install speechd-upafter 2nd setp, make, as below
I do the 3rd step, make install after make,
but , in the path /usr/lib/qt5.12/plugins, still no qtspeech...
-
@stevewu Acoording to the "make install" output it was installed in lib subdirectory, not plugins.
-
where is the subdirectory?
I check the path /usr/bin/qt5.12.5
and the build path,
and the source path,
but can not find it,,,,the same code , I build in windows, it seems that everything is OK! I can get the /bin /lib and /plugins.... after build.
-
@stevewu said in how to build and install qt5.12.5 plugin for raspbian-buster in raspberry 4?:
where is the subdirectory?
Did you check the output from "make install" you posted?
It is right there: /usr/lib/qt5.12/lib... -
@jsulm thank you for reply, I check the /usr/lib/qt5.12/lib, find no subdirectory.
after “make install” ,
I check the out put from “make ”, and find that ,
it only build the code in path “/home/qt5_install/qtspeech_build/src/tts”,
so i can get "libQt5TextToSpeech.so...etc" in the /lib, after "make" ,new add libs as below:
but when it enters in “/home/qt5_install/qtspeech_build/src/plugins/tts”,
put out information "nothing need to do for the first" and left, so the /plugin not be built. -
@stevewu said in how to build and install qt5.12.5 plugin for raspbian-buster in raspberry 4?:
I check the /usr/lib/qt5.12/lib, find no subdirectory
lib in/usr/lib/qt5.12/ IS the subdirectory I'm talking about.
-
@jsulm OK, thanks, I got it,,,
but only "libQt5TextToSpeech.so..." in /usr/lib/qt5.12/lib, is OK for the plugin "text-to-speech"?
"make" does not build the path “/home/qt5_install/qtspeech_build/src/plugins/tts”, it dose not matter?I run a test code(which can work in the win10) on the raspberry pi4, it can build success, but run error, put out "No text-to-speech plug-ins were found."
-
@stevewu I guess you also need to build the tts plug-in from the plugins directory
-
ok, tks, I will try it later.....
-
@jsulm hi, I enter the /src/plugins and make,, but it still does not work.
could you please tell me how to fix it?
-
@jsulm thank you very much , what you said is right...
I reinstall all the libs about libflite and libspeechd, and it works.. -
@stevewu said in how to build and install qt5.12.5 plugin for raspbian-buster in raspberry 4?:
and it works..
great, if your issue is solved please mark your post as such!
-
@Pablo-J-Rogina OK.....
-
@stevewu Hi, I meet the same problem. Could you tell me how to fix it by reinstalling the libs about libflite and libspeechd? Looking forward to your reply, Thanks!
-
@jsulm I meet the same problem. I check the configuration of Qt TextToSpeech, and found all 'no'. Is this the problem that I don't make the right configuration? Please help me to make the right configuraiton. Thanks.
-
@Peter_Gao Did you install Flite, Speech Dispatcher and their dev packages?
You can always check config.log file to see what exactly is the problem.