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

Qt5LinguistToolsConfig Can't find "x64-linux/tools/qt5/lrelease" under linux #7771

Closed
longhuan2018 opened this issue Aug 20, 2019 · 3 comments
Assignees
Labels
category:question This issue is a question

Comments

@longhuan2018
Copy link
Contributor

When I submit a new port #7760, it fails in vcpkg-Linux-PR, here is its error log.

CMake Error at /home/vcpkg/myagent/_work/4/s/installed/x64-linux/share/cmake/Qt5LinguistTools/Qt5LinguistToolsConfig.cmake:10 (message):
  The package "Qt5LinguistTools" references the file

     "/home/vcpkg/myagent/_work/4/s/installed/x64-linux/tools/qt5/lrelease"

  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

     "/home/vcpkg/myagent/_work/4/s/installed/x64-linux/share/cmake/Qt5LinguistTools/Qt5LinguistToolsConfig.cmake"

  but not all the files it references.

Call Stack (most recent call first):
  /home/vcpkg/myagent/_work/4/s/installed/x64-linux/share/cmake/Qt5LinguistTools/Qt5LinguistToolsConfig.cmake:26 (_qt5_LinguistTools_check_file_exists)
  /home/vcpkg/myagent/_work/4/s/scripts/buildsystems/vcpkg.cmake:256 (_find_package)
  CMakeLists.txt:55 (find_package)

Under Windows, I found that qt5-tools are installed in the tools/qt5-tools directory instead of tools/qt5.
I checked the solution for the issue #2834, but the latest version of vcpkg has merged this solution, so I wonder if there are some hidden bugs under Linux.

@longhuan2018 longhuan2018 added the category:question This issue is a question label Aug 20, 2019
longhuan2018 added a commit to longhuan2018/vcpkg that referenced this issue Aug 20, 2019
Avoiding issues microsoft#7771 by not build translations on linux
@cbezault cbezault assigned cbezault and Rastaban and unassigned cbezault Aug 20, 2019
cbezault pushed a commit that referenced this issue Aug 20, 2019
* new port qtkeychain

* Update CONTROL

* not build translations on linux 

Avoiding issues #7771 by not build translations on linux
@Neumann-A
Copy link
Contributor

Note: there is a general problem that the qt ports currently require vcpkg_copy_dependencies to make the tools work using cmake. VCPKG requires that each port has a unique set of files not overlapping with other ports. vcpkg_copy_dependencies breaks this if the tools are moved to tools/qt5 and as such are moved to tools/${PORT}. Properly adding the /bin to PATH using the vcpkg cmake toolchain would solve that problem and avoid the copying of duplicated dependencies.

@longhuan2018
Copy link
Contributor Author

Fixcmake.py Modify the tools/qt5 in the cmake file of the qt tool to the tools/${port} directory, but it only considers the file suffix of windows. Add the suffix of linux and osx to the regular expression to fix the issue. #8029

@Rastaban
Copy link
Contributor

This should be fixed in 96f4487 (Thank you @longhuan2018!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:question This issue is a question
Projects
None yet
Development

No branches or pull requests

4 participants