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

[QA] generic build instrutions are incomplete #416

Open
jnweiger opened this issue May 26, 2023 · 4 comments
Open

[QA] generic build instrutions are incomplete #416

jnweiger opened this issue May 26, 2023 · 4 comments

Comments

@jnweiger
Copy link
Contributor

I've tried to compile master on ubuntu 22.10 -- which seems pretty good in providing most of the cmake dependencies
like qt5, qtkeychain, ecm with usable versions.

The build gets stuck with

CMake Error at src/libsync/CMakeLists.txt:1 (find_package):
  By not providing "FindLibreGraphAPI.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "LibreGraphAPI", but CMake did not find one.

  Could not find a package configuration file provided by "LibreGraphAPI"
  (requested version 1.0.4) with any of the following names:

    LibreGraphAPIConfig.cmake
    libregraphapi-config.cmake

  Add the installation prefix of "LibreGraphAPI" to CMAKE_PREFIX_PATH or set
  "LibreGraphAPI_DIR" to a directory containing one of the above files.  If
  "LibreGraphAPI" provides a separate development package or SDK, be sure it
  has been installed.

There seems to be no Ubuntu dev package for this.

I've looked into the documentation,
https://doc.owncloud.com/desktop/4.0/appendices/building.html#generic-build-instructions
It does not mention libre graph api.

After some research,
the missing LibreGraphAPIConfig.cmake file can built from owncloud/libre-graph-api repo but then cmake it fails with

  include could not find requested file:

    /mnt/libre-graph-api/out/cpp/client/LibreGraphAPITargets.cmake
Call Stack (most recent call first):
  src/libsync/CMakeLists.txt:1 (find_package)


CMake Error at src/gui/CMakeLists.txt:3 (find_package):
  By not providing "FindKDSingleApplication.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "KDSingleApplication", but CMake did not find one.

  Could not find a package configuration file provided by
  "KDSingleApplication" with any of the following names:

    KDSingleApplicationConfig.cmake
    kdsingleapplication-config.cmake

  Add the installation prefix of "KDSingleApplication" to CMAKE_PREFIX_PATH
  or set "KDSingleApplication_DIR" to a directory containing one of the above
  files.  If "KDSingleApplication" provides a separate development package or
  SDK, be sure it has been installed.
@Pequeneza98
Copy link

Hello @jnweiger,

You can surpass this error with the same steps:

1 - git clone https://github.com/KDAB/KDSingleApplication.git
2 - cd KDSingleApplication/
3 - cd cmake
4 - cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=/usr -G Ninja
     ninja install -v 
5 - cd ../../
6 - rm -rf KDSingleApplication
7 - sudo ldconfig

Once all is set and done, run > cmake .. on {owncloud_client_sourcecode}/client/client-build/

@vaibhavtekam
Copy link

vaibhavtekam commented Oct 13, 2023

For me its asking a .a file but what is built for me is a .dylib.
Also, the name and locations are different.

abc@abcs-MacBook-Pro build % cmake -DCMAKE_PREFIX_PATH="/Users/abc/Documents/Projects/qtkeychain;/opt/homebrew;/Users/abc/Documents/Projects/libre-graph-api-cpp-qt-client-main/client/CMakeFiles/Export/8ebf82cbdc64d5957c8dca6a9698f9fd;/Users/abc/Documents/Projects/KDSingleApplication-1.0/build" -DCMAKE_INSTALL_PREFIX="/Users/abc/Documents/Projects/qtkeychain/build/owncloudclient/client/target/install" ..

--

-- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR)
-- Using Qt 6.5.2 (/opt/homebrew/bin/qmake)
Installing in /Users/abc/Documents/Projects/qtkeychain/build/owncloudclient/client/target/install. Run /Users/abc/Documents/Projects/qtkeychain/build/owncloudclient/client/build/prefix.sh to set the environment for owncloud-client.
-- Could not set up the appstream test. appstreamcli is missing.
-- Branding: ownCloud
-- Branding: ownCloud
-- Build of crashreporter disabled.
-- GIT_SHA1 016eb51059fb2894051b7dc87152884b67a537da
-- OWNCLOUD_ICONS: owncloud: /Users/abc/Documents/Projects/qtkeychain/build/owncloudclient/client/src/resources//theme/colored/1024-owncloud-icon.png;/Users/abc/Documents/Projects/qtkeychain/build/owncloudclient/client/src/resources//theme/colored/128-owncloud-icon.png;/Users/abc/Documents/Projects/qtkeychain/build/owncloudclient/client/src/resources//theme/colored/16-owncloud-icon.png;/Users/abc/Documents/Projects/qtkeychain/build/owncloudclient/client/src/resources//theme/colored/24-owncloud-icon.png;/Users/abc/Documents/Projects/qtkeychain/build/owncloudclient/client/src/resources//theme/colored/256-owncloud-icon.png;/Users/abc/Documents/Projects/qtkeychain/build/owncloudclient/client/src/resources//theme/colored/32-owncloud-icon.png;/Users/abc/Documents/Projects/qtkeychain/build/owncloudclient/client/src/resources//theme/colored/48-owncloud-icon.png;/Users/abc/Documents/Projects/qtkeychain/build/owncloudclient/client/src/resources//theme/colored/64-owncloud-icon.png
CMake Error at /Users/abc/Documents/Projects/KDSingleApplication-1.0/build/src/KDSingleApplication-qt6Targets.cmake:86 (message):
The imported target "KDAB::kdsingleapplication" references the file

 "/Users/abc/Documents/Projects/lib/libkdsingleapplication-qt6.a"

but this file does not exist. Possible reasons include:

  • The file was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and contained

    "/Users/abc/Documents/Projects/KDSingleApplication-1.0/build/src/KDSingleApplication-qt6Targets.cmake"

but not all the files it references.

Call Stack (most recent call first):
/Users/abc/Documents/Projects/KDSingleApplication-1.0/build/src/KDSingleApplication-qt6Config.cmake:15 (include)
src/gui/CMakeLists.txt:3 (find_package)

-- Configuring incomplete, errors occurred!

@mmattel
Copy link
Contributor

mmattel commented Oct 13, 2023

@fmoc

@saw-jan
Copy link
Member

saw-jan commented Oct 19, 2023

desktop-client >=5.0 now requires Qt6 to build

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

5 participants