Open NoName298GH opened 2 months ago
As per the README file, Editor currently needs Qt5, building with version 6 will not work. Please provide a helpful error message next time, we cannot really help with "does not work".
Sorry, I also tried install Qt5 with brew and then I used CMake, but it gave me: "CMake Error at CMakeLists.txt:381 (find_package): Could not find a package configuration file provided by "Qt5" with any of the following names:
Qt5Config.cmake
qt5-config.cmake
Add the installation prefix of "Qt5" to CMAKE_PREFIX_PATH or set "Qt5_DIR" to a directory containing one of the above files. If "Qt5" provides a separate development package or SDK, be sure it has been installed."
Assuming you tried brew install qt@5
.
Did you try to add the following in your cmake line? -DQt5_DIR=$(brew --prefix qt5)/lib/cmake/Qt5
It said "zsh: no such file or directory: -DQt5_DIR=/opt/homebrew/opt/qt@5/lib/cmake/Qt5" (I'm using Z shell.)
I guess you forgot to add it to the first command:
cmake . -DQt5_DIR=$(brew --prefix qt5)/lib/cmake/Qt5
Then:
cmake --build
It gave me this error: "CMake Error at /opt/homebrew/Cellar/cmake/3.29.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message): Failed to find all ICU components (missing: ICU_LIBRARY _ICU_REQUIRED_LIBS_FOUND) (found version "70.2") Call Stack (most recent call first): /opt/homebrew/Cellar/cmake/3.29.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE) /opt/homebrew/Cellar/cmake/3.29.2/share/cmake/Modules/FindICU.cmake:334 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) /opt/homebrew/Cellar/cmake/3.29.2/share/cmake/Modules/CMakeFindDependencyMacro.cmake:76 (find_package) /opt/homebrew/lib/cmake/liblcf/liblcf-config.cmake:30 (find_dependency) CMakeLists.txt:411 (find_package)"
As the error message says, you need ICU.
I installed liblcf and Qt 6, but it doesn't work!