organicmaps / organicmaps

🍃 Organic Maps is a free Android & iOS offline maps app for travelers, tourists, hikers, and cyclists. It uses crowd-sourced OpenStreetMap data and is developed with love by MapsWithMe (MapsMe) founders and our community. No ads, no tracking, no data collection, no crapware. Please donate to support the development!
https://organicmaps.app
Apache License 2.0
8.58k stars 837 forks source link

release 2023-03-31-8 can't compile with Mesa due to Vulkan problem #7938

Closed Popolon closed 2 weeks ago

Popolon commented 2 weeks ago

⚠ Have you searched for similar, already existing issues?

yes

Describe the issue Please write a clear and concise description of the issue here.

compilation fail with OrganicMaps 2023-03-31-8 with standard Mesa on Arch Linux,

Steps to reproduce

  1. compile
  2. following error is returned:
    [49/99] Building CXX object drape/CMakeFiles/drape.dir/Unity/unity_1_cxx.cxx.o
    FAILED: drape/CMakeFiles/drape.dir/Unity/unity_1_cxx.cxx.o 
    /usr/bin/ccache /usr/bin/ccache /usr/bin/c++ -DQT_CORE_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_POSITIONING_LIB -DRELEASE -DUSE_FILE32API -I/data/pacaur/organicmaps-git/src/organicmaps-git -I/data/pacaur/organicmaps-git/src/omim-build-release/3party/gflags/include -I/data/pacaur/organicmaps-git/src/organicmaps-git/3party/glm -I/data/pacaur/organicmaps-git/src/organicmaps-git/3party/opening_hours/. -I/data/pacaur/organicmaps-git/src/organicmaps-git/3party/pugixml/pugixml/src -I/data/pacaur/organicmaps-git/src/organicmaps-git/3party/utfcpp/source -I/data/pacaur/organicmaps-git/src/organicmaps-git/3party/expat/expat/lib -I/data/pacaur/organicmaps-git/src/omim-build-release/3party/expat/expat -I/data/pacaur/organicmaps-git/src/omim-build-release/3party/jansson/jansson/include -I/data/pacaur/organicmaps-git/src/organicmaps-git/3party/liboauthcpp/include -I/data/pacaur/organicmaps-git/src/organicmaps-git/3party/protobuf/protobuf/src -I/data/pacaur/organicmaps-git/src/organicmaps-git/3party/vulkan_wrapper/../Vulkan-Headers/include -I/data/pacaur/organicmaps-git/src/organicmaps-git/3party/vulkan_wrapper/. -isystem /data/pacaur/organicmaps-git/src/organicmaps-git/3party/boost -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtNetwork -isystem /usr/include/qt6/QtPositioning -isystem /usr/include/freetype2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Wno-error=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -O3 -DNDEBUG -std=c++17 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -fdiagnostics-color=always -ffast-math -Ofast -Wall -Wextra -Wpedantic -Wno-unused-parameter -mno-direct-extern-access -MD -MT drape/CMakeFiles/drape.dir/Unity/unity_1_cxx.cxx.o -MF drape/CMakeFiles/drape.dir/Unity/unity_1_cxx.cxx.o.d -o drape/CMakeFiles/drape.dir/Unity/unity_1_cxx.cxx.o -c /data/pacaur/organicmaps-git/src/omim-build-release/drape/CMakeFiles/drape.dir/Unity/unity_1_cxx.cxx
    In file included from /data/pacaur/organicmaps-git/src/omim-build-release/drape/CMakeFiles/drape.dir/Unity/unity_1_cxx.cxx:19:
    /data/pacaur/organicmaps-git/src/organicmaps-git/drape/vulkan/vulkan_utils.cpp: In function 'std::string dp::vulkan::GetVulkanResultString(VkResult)':
    /data/pacaur/organicmaps-git/src/organicmaps-git/drape/vulkan/vulkan_utils.cpp:62:8: error: 'VK_ERROR_COMPRESSION_EXHAUSTED_EXT' was not declared in this scope
    62 |   case VK_ERROR_COMPRESSION_EXHAUSTED_EXT: return "VK_ERROR_COMPRESSION_EXHAUSTED_EXT";
      |        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /data/pacaur/organicmaps-git/src/organicmaps-git/drape/vulkan/vulkan_utils.cpp:63:8: error: 'VK_ERROR_INVALID_VIDEO_STD_PARAMETERS_KHR' was not declared in this scope
    63 |   case VK_ERROR_INVALID_VIDEO_STD_PARAMETERS_KHR: return "VK_ERROR_INVALID_VIDEO_STD_PARAMETERS_KHR";
      |        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /data/pacaur/organicmaps-git/src/organicmaps-git/drape/vulkan/vulkan_utils.cpp:64:8: error: 'VK_ERROR_VIDEO_STD_VERSION_NOT_SUPPORTED_KHR' was not declared in this scope
    64 |   case VK_ERROR_VIDEO_STD_VERSION_NOT_SUPPORTED_KHR: return "VK_ERROR_VIDEO_STD_VERSION_NOT_SUPPORTED_KHR";
      |        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /data/pacaur/organicmaps-git/src/organicmaps-git/drape/vulkan/vulkan_utils.cpp:65:8: error: 'VK_ERROR_VIDEO_PROFILE_CODEC_NOT_SUPPORTED_KHR' was not declared in this scope
    65 |   case VK_ERROR_VIDEO_PROFILE_CODEC_NOT_SUPPORTED_KHR: return "VK_ERROR_VIDEO_PROFILE_CODEC_NOT_SUPPORTED_KHR";
      |        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /data/pacaur/organicmaps-git/src/organicmaps-git/drape/vulkan/vulkan_utils.cpp:66:8: error: 'VK_ERROR_VIDEO_PROFILE_FORMAT_NOT_SUPPORTED_KHR' was not declared in this scope
    66 |   case VK_ERROR_VIDEO_PROFILE_FORMAT_NOT_SUPPORTED_KHR: return "VK_ERROR_VIDEO_PROFILE_FORMAT_NOT_SUPPORTED_KHR";
      |        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /data/pacaur/organicmaps-git/src/organicmaps-git/drape/vulkan/vulkan_utils.cpp:67:8: error: 'VK_ERROR_VIDEO_PROFILE_OPERATION_NOT_SUPPORTED_KHR' was not declared in this scope
    67 |   case VK_ERROR_VIDEO_PROFILE_OPERATION_NOT_SUPPORTED_KHR: return "VK_ERROR_VIDEO_PROFILE_OPERATION_NOT_SUPPORTED_KHR";
      |        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /data/pacaur/organicmaps-git/src/organicmaps-git/drape/vulkan/vulkan_utils.cpp:68:8: error: 'VK_ERROR_VIDEO_PICTURE_LAYOUT_NOT_SUPPORTED_KHR' was not declared in this scope
    68 |   case VK_ERROR_VIDEO_PICTURE_LAYOUT_NOT_SUPPORTED_KHR: return "VK_ERROR_VIDEO_PICTURE_LAYOUT_NOT_SUPPORTED_KHR";
      |        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /data/pacaur/organicmaps-git/src/organicmaps-git/drape/vulkan/vulkan_utils.cpp:69:8: error: 'VK_ERROR_IMAGE_USAGE_NOT_SUPPORTED_KHR' was not declared in this scope
    69 |   case VK_ERROR_IMAGE_USAGE_NOT_SUPPORTED_KHR: return "VK_ERROR_IMAGE_USAGE_NOT_SUPPORTED_KHR";
      |        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /data/pacaur/organicmaps-git/src/organicmaps-git/drape/vulkan/vulkan_utils.cpp:70:8: error: 'VK_INCOMPATIBLE_SHADER_BINARY_EXT' was not declared in this scope
    70 |   case VK_INCOMPATIBLE_SHADER_BINARY_EXT: return "VK_INCOMPATIBLE_SHADER_BINARY_EXT";
      |        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ninja: build stopped: subcommand failed.
    ==> ERROR: A failure occurred in build().
    Aborting...
    

System information:

biodranik commented 2 weeks ago

Did you run git submodule update --init --recursive ?

Popolon commented 2 weeks ago

ah, yes the author of the arch Linux recipe removed the recursive update, it works, sorry. It looks like he don't maintain it anymore :( .