Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build errors regarding Qt5 cmake files (x64) #3315

Open
real-kami-kun opened this issue Aug 9, 2023 · 4 comments
Open

Build errors regarding Qt5 cmake files (x64) #3315

real-kami-kun opened this issue Aug 9, 2023 · 4 comments

Comments

@real-kami-kun
Copy link

I'm trying to install Sonic Pi 4.4 on a PC so I can use it without relying on a Pi. Here are the specs from inxi:
System: Lenovo ThinkCenter H50-50
CPU: Intel Core i5-4460 @ 3.4GHz
RAM: 8GB
GPU: Nvidia GeForce GT 705 PEG card
HDD: Seagate hard disk, 2TB
OS: Ubuntu MATE 22.04 Jellyfish

I followed the instructions in BUILD_LINUX.md. I got the pre-requisites:
sudo apt install build-essential git libssl-dev ruby-dev elixir erlang-dev erlang-xmerl qttools5-dev qttools5-dev-tools libqt5svg5-dev libqt5opengl5-dev supercollider-server sc3-plugins-server alsa-utils jackd2 libjack-jackd2-dev libjack-jackd2-0 libasound2-dev cmake ninja-build
It did ask for an extra package (pulseaudio-module-jack) but clearly stated that it was only needed for RaspiOS, not regular linux.
I cloned the git repo and ran ./linux-build-all.sh, as instructed. It went relatively smoothly, then it spat this out:

CMake Error at vcpkg/scripts/buildsystems/vcpkg.cmake:853 (_find_package):
  Could not find a package configuration file provided by
  "Qt5WebEngineWidgets" with any of the following names:

    Qt5WebEngineWidgetsConfig.cmake
    qt5webenginewidgets-config.cmake

  Add the installation prefix of "Qt5WebEngineWidgets" to CMAKE_PREFIX_PATH
  or set "Qt5WebEngineWidgets_DIR" to a directory containing one of the above
  files.  If "Qt5WebEngineWidgets" provides a separate development package or
  SDK, be sure it has been installed.
Call Stack (most recent call first):
  /usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake:28 (find_package)
  vcpkg/scripts/buildsystems/vcpkg.cmake:853 (_find_package)
  gui/qt/CMakeLists.txt:55 (find_package)

This was thrown at the makefile generation stage. I installed all the packages it required and stuff, but it errored out anyway! I need help to figure out what is causing this error and how to fix it.

Thanks.

@samaaron
Copy link
Collaborator

samaaron commented Aug 9, 2023

Hiya. Could you try building from the 4.4 tag rather than the latest on the dev branch? That won't require any web engine stuff which will only be required in a future release.

@SunderB
Copy link
Contributor

SunderB commented Aug 9, 2023

@DepthsGD I recently encountered this issue too. Try installing qtwebengine5-dev and see if that helps.

@real-kami-kun
Copy link
Author

real-kami-kun commented Aug 9, 2023 via email

@SunderB
Copy link
Contributor

SunderB commented Aug 22, 2023

@DepthsGD The default branch is dev. To build v4.4, do git checkout v4.4.0 and do the build again. Hopefully this helps :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants