psieg / Lightpack

Lightpack and Prismatik open repository
GNU General Public License v3.0
1.56k stars 187 forks source link

Installation problems on Fedora based linux #585

Open poireau49128 opened 1 year ago

poireau49128 commented 1 year ago

After run "make" i get: In file included from LedDeviceAdalight.cpp:27: LedDeviceAdalight.hpp:31:10: fatal error: QtSerialPort/QSerialPort: No such file or directory 31 | #include <QtSerialPort/QSerialPort> | ^~~~~~ compilation aborted. make[1]: [Makefile:1392: stuff/LedDeviceAdalight.o] Error 1 make[1]: exit directory «/home/pcname/Lightpack/Software/src» make: [Makefile:50: sub-src-make_first] Error 2

zomfg commented 1 year ago

you are missing qtserialport-devel, probably

poireau49128 commented 1 year ago

Installed with "sudo yum install qt5-qtserialport-devel" command. In file included from SoundManagerBase.cpp:37: PulseAudioSoundManager.hpp:30:10: fatal error: pulse/pulseaudio.h: No such file or directory 30 | #include <pulse/pulseaudio.h> | ^~~~~~~~ compilation aborted. make[1]: [Makefile:1887: stuff/SoundManagerBase.o] Error 1 make[1]: exit directory «/home/pcname/Lightpack/Software/src» make: [Makefile:50: sub-src-make_first] Error 2

zomfg commented 1 year ago

well, same thing, but pulseaudio you can also disable that fuctionality by commenting it out in build-vars.prf(.default)

   DEFINES += PULSEAUDIO_SUPPORT
poireau49128 commented 1 year ago

make[1]: directory entry «/home/pcname/Lightpack/Software/src» make[1]: No rule for build target«../res/translations/en.qm», required for «stuff/qrc_LightpackResources.cpp». make[1]: exit directory «/home/poireau/Lightpack/Software/src» make: [Makefile:50: sub-src-make_first] Ошибка 2

zomfg commented 1 year ago

update_locales

poireau49128 commented 1 year ago

================================================= Updating translation files for Lightpack project:

./update_locales.sh: line 31: lupdate: command not found done

=========================================================== Generating release translation files for Lightpack project:

./update_locales.sh: line 38: lrelease: command not found

zomfg commented 1 year ago

qttools

poireau49128 commented 1 year ago

As I understand it, I have it installed, because to the "rpm -qa | grep qt5-qttools" I get this response: qt5-qttools-common-5.15.9-1.fc37.noarch qt5-qttools-libs-designer-5.15.9-1.fc37.x86_64 qt5-qttools-libs-designercomponents-5.15.9-1.fc37.x86_64 qt5-qttools-libs-help-5.15.9-1.fc37.x86_64 qt5-qttools-5.15.9-1.fc37.x86_64 However I am getting the same error

zomfg commented 1 year ago

you need whichever contains those 2 binaries on your particular flavor of linux those binaries could also be called something like qt-lupdate, qt5-lupdate, lupdate-qt, lupdate-qt5, in which case you'd need to alter the script to adjust or make symlinks etc

poireau49128 commented 1 year ago

/usr/bin/ld: stuff/LightpackApplication.o: in function «LightpackApplication::settingsChanged()»: LightpackApplication.cpp:(.text+0x29f8): undefined reference to «SoundManagerBase::reset()» /usr/bin/ld: stuff/SettingsWindow.o: in function «SettingsWindow::onPostInit()»: SettingsWindow.cpp:(.text+0x112da): undefined reference to «SettingsWindow::requestSoundVizDevices()» /usr/bin/ld: SettingsWindow.cpp:(.text+0x112e2): undefined reference to «SettingsWindow::requestSoundVizVisualizers()» /usr/bin/ld: stuff/Settings.o: in function «SettingsScope::Settings::setSoundVisualizerMinColor(QColor)»: Settings.cpp:(.text+0x9be8): undefined reference to «SettingsScope::Settings::soundVisualizerMinColorChanged(QColor)» /usr/bin/ld: stuff/Settings.o: in function «SettingsScope::Settings::setSoundVisualizerMaxColor(QColor)»: Settings.cpp:(.text+0x9da8): undefined reference to «SettingsScope::Settings::soundVisualizerMaxColorChanged(QColor)» /usr/bin/ld: stuff/Settings.o: in function «SettingsScope::Settings::setSoundVisualizerDevice(int)»: Settings.cpp:(.text+0x942a): undefined reference to «SettingsScope::Settings::soundVisualizerDeviceChanged(int)» /usr/bin/ld: stuff/Settings.o: in function «SettingsScope::Settings::setSoundVisualizerVisualizer(int)»: Settings.cpp:(.text+0x950a): undefined reference to «SettingsScope::Settings::soundVisualizerVisualizerChanged(int)» /usr/bin/ld: stuff/Settings.o: in function «SettingsScope::Settings::setSoundVisualizerLiquidMode(bool)»: Settings.cpp:(.text+0x9629): undefined reference to «SettingsScope::Settings::soundVisualizerLiquidModeChanged(bool)» /usr/bin/ld: stuff/Settings.o: in function «SettingsScope::Settings::setSoundVisualizerLiquidSpeed(int)»: Settings.cpp:(.text+0x9706): undefined reference to «SettingsScope::Settings::soundVisualizerLiquidSpeedChanged(int)» /usr/bin/ld: stuff/LightpackPluginInterface.o: in function «LightpackPluginInterface::SetSoundVizColors(QString const&, QColor, QColor)»: LightpackPluginInterface.cpp:(.text+0x1a67): undefined reference to «LightpackPluginInterface::updateSoundVizMinColor(QColor)» /usr/bin/ld: LightpackPluginInterface.cpp:(.text+0x1ab5): undefined reference to «LightpackPluginInterface::updateSoundVizMaxColor(QColor)» /usr/bin/ld: stuff/LightpackPluginInterface.o: in function «LightpackPluginInterface::SetSoundVizLiquidMode(QString const&, bool)»: LightpackPluginInterface.cpp:(.text+0x1be9): undefined reference to «LightpackPluginInterface::updateSoundVizLiquid(bool)» collect2: Error: execution ld ended with a return code 1 make[1]: [Makefile:438: ../bin/Prismatik] Error 1 make[1]: exit directory «/home/pcname/Lightpack/Software/src» make: [Makefile:50: sub-src-make_first] Error 2

zomfg commented 1 year ago

qmake -r

poireau49128 commented 1 year ago

That's exactly what I did. cd Lightpack/Software qmake -r make And after that I get this error

zomfg commented 1 year ago

before or after you dealt with PULSEAUDIO_SUPPORT?

poireau49128 commented 1 year ago

I commented out DEFINE += PULSEAUDIO_SUPPORT and then did all the steps from the "Build Process"

zomfg commented 1 year ago

make clean