Skip to content

Failing to build gui-v2 on macOS #1389

@itemir

Description

@itemir

Following the instructions on How to build venus gui v2, specifically Building for Linux / Max OS X Desktop on a macOS 14.5 but failing with the following error message:

itemir@Ilkers-MacBook-Pro build % ~/Qt/Tools/CMake/CMake.app/Contents/bin/cmake -DNO_CACHEGEN=true -DLOAD_QML_FROM_FILESYSTEM=true -DCMAKE_BUILD_TYPE=MinSizeRel ../
-- The CXX compiler identification is AppleClang 15.0.0.15000309
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Deprecation Warning at tests/CMakeLists.txt:6 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Performing Test HAVE_STDATOMIC
-- Performing Test HAVE_STDATOMIC - Success
-- Found WrapAtomic: TRUE
-- Found OpenGL: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks/OpenGL.framework
-- Found WrapOpenGL: TRUE
-- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR)
-- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR)
-- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR)
-- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR)
-- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR)
-- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR)
Building VenusOS for Darwin
CMAKE_CXX_FLAGS:
CMAKE_C_FLAGS:
Removing '-g' debug flag set by /opt/venus/dunfell-arm-cortexa7hf-neon-vfpv4/environment-setup-cortexa7hf-neon-vfpv4-ve-linux-gnueabi
new CMAKE_CXX_FLAGS:
Disabling cache generation for faster builds
This application will load qml sources from the filesystem, not from the compiled resources
-- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR)
-- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR)
components/controls/presseffect.frag -> components/controls/presseffect.frag.qsb exposed as ://components/controls/presseffect.frag.qsb
BUILD_DIR_TS_FILES: /Users/itemir/gui-v2/build/i18n/venus-gui-v2_ar.ts;/Users/itemir/gui-v2/build/i18n/venus-gui-v2_cs.ts;/Users/itemir/gui-v2/build/i18n/venus-gui-v2_da.ts;/Users/itemir/gui-v2/build/i18n/venus-gui-v2_de.ts;/Users/itemir/gui-v2/build/i18n/venus-gui-v2_es.ts;/Users/itemir/gui-v2/build/i18n/venus-gui-v2_fr.ts;/Users/itemir/gui-v2/build/i18n/venus-gui-v2_it.ts;/Users/itemir/gui-v2/build/i18n/venus-gui-v2_nl.ts;/Users/itemir/gui-v2/build/i18n/venus-gui-v2_pl.ts;/Users/itemir/gui-v2/build/i18n/venus-gui-v2_ro.ts;/Users/itemir/gui-v2/build/i18n/venus-gui-v2_ru.ts;/Users/itemir/gui-v2/build/i18n/venus-gui-v2_sv.ts;/Users/itemir/gui-v2/build/i18n/venus-gui-v2_th.ts;/Users/itemir/gui-v2/build/i18n/venus-gui-v2_tr.ts;/Users/itemir/gui-v2/build/i18n/venus-gui-v2_uk.ts;/Users/itemir/gui-v2/build/i18n/venus-gui-v2_zh_CN.ts;/Users/itemir/gui-v2/build/i18n/venus-gui-v2.ts;/Users/itemir/gui-v2/build/i18n/venus-gui-v2_en.ts
CMake Error at CMakeLists.txt:1204 (add_dependencies):
  Cannot add target-level dependencies to non-existent target
  "venus-gui-v2_lrelease".

  The add_dependencies works for top-level logical targets created by the
  add_executable, add_library, or add_custom_target commands.  If you want to
  add file-level dependencies see the DEPENDS option of the add_custom_target
  and add_custom_command commands.


-- Found Python3: /usr/local/Frameworks/Python.framework/Versions/3.12/bin/python3.12 (found version "3.12.4") found components: Interpreter
CMake Warning at /usr/local/lib/cmake/Qt6LinguistTools/Qt6LinguistToolsMacros.cmake:399 (message):
  Failed to resolve language code for
  /Users/itemir/gui-v2/build/i18n/venus-gui-v2.ts.  Please update
  CFBundleLocalizations in your Info.plist manually.
Call Stack (most recent call first):
  /usr/local/lib/cmake/Qt6LinguistTools/Qt6LinguistToolsMacros.cmake:718 (_qt_internal_store_languages_from_ts_files_in_targets)
  /usr/local/lib/cmake/Qt6LinguistTools/Qt6LinguistToolsMacros.cmake:689:EVAL:1 (qt6_add_translations)
  CMakeLists.txt:DEFERRED


CMake Warning at /usr/local/lib/cmake/Qt6LinguistTools/Qt6LinguistToolsMacros.cmake:399 (message):
  Failed to resolve language code for
  /Users/itemir/gui-v2/build/i18n/venus-gui-v2_en.ts.  Please update
  CFBundleLocalizations in your Info.plist manually.
Call Stack (most recent call first):
  /usr/local/lib/cmake/Qt6LinguistTools/Qt6LinguistToolsMacros.cmake:718 (_qt_internal_store_languages_from_ts_files_in_targets)
  /usr/local/lib/cmake/Qt6LinguistTools/Qt6LinguistToolsMacros.cmake:689:EVAL:1 (qt6_add_translations)
  CMakeLists.txt:DEFERRED


-- Configuring incomplete, errors occurred!
itemir@Ilkers-MacBook-Pro build %
itemir@Ilkers-MacBook-Pro gui-v2 % pwd
/Users/itemir/gui-v2
itemir@Ilkers-MacBook-Pro gui-v2 %

Note that the path for qt-make provided in the instructions (~/Qt6/6.5.2/macos/bin/qt-cmake) is non-existent on a Mac, so replaced it with this: ~/Qt6/6.5.2/macos/bin/qt-cmake

Qt 6.6.3 is installed and qtmqtt is built as described.

itemir@Ilkers-MacBook-Pro gui-v2 % ls -l ~/Qt/
total 1560
drwxr-xr-x   5 itemir  staff     160 Mar 19 11:39 6.6.3
drwxr-xr-x   3 itemir  staff      96 Mar 19 11:53 Docs
drwxr-xr-x   3 itemir  staff      96 Mar 19 11:53 Examples
-rw-r--r--@  1 itemir  staff  397512 Aug  4 21:34 InstallationLog.txt
drwxr-xr-x@  7 itemir  staff     224 Aug  4 18:12 Licenses
drwxrwxrwx@  3 itemir  staff      96 Aug  4 18:12 MaintenanceTool.app
-rw-r--r--   1 itemir  staff  340263 Aug  4 21:34 MaintenanceTool.dat
-rw-r--r--   1 itemir  staff   25315 Aug  4 21:34 MaintenanceTool.ini
drwxr-xr-x@  3 itemir  staff      96 Jul 23 17:46 Qt Creator.app
lrwxr-xr-x   1 itemir  staff       3 Aug  4 21:49 Qt6 -> Qt6
drwxr-xr-x@  4 itemir  staff     128 Jun 20 05:46 QtDesignStudio
-rw-rw-r--@  1 itemir  staff    1592 Jun 20 05:46 README.txt
drwxr-xr-x@  5 itemir  staff     160 May 15 04:57 Tools
drwxr-xr-x  15 itemir  staff     480 Aug  4 21:54 build-qtmqtt
-rw-r--r--@  1 itemir  staff   10332 Aug  4 21:34 components.xml
drwxr-xr-x@  3 itemir  staff      96 May 24 03:22 dist
drwxr-xr-x@ 14 itemir  staff     448 Aug  4 21:33 installerResources
-rw-rw-rw-@  1 itemir  staff      27 Aug  4 21:34 licenseInfo.txt
-rw-r--r--@  1 itemir  staff     433 Aug  4 21:34 network.xml
drwxr-xr-x  16 itemir  staff     512 Aug  4 21:50 qtmqtt
itemir@Ilkers-MacBook-Pro gui-v2 % ls -l ~/Qt6
lrwxr-xr-x  1 itemir  staff  2 Aug  4 21:49 /Users/itemir/Qt6 -> Qt
itemir@Ilkers-MacBook-Pro gui-v2 %

Any advice will be appreciated. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions