https://bugs.kde.org/show_bug.cgi?id=478699

            Bug ID: 478699
           Summary: Building for Qt6 fails with a missing find_package
                    line
    Classification: Applications
           Product: KOSMIndoorMaps
           Version: 24.01.80
          Platform: Fedora RPMs
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: vkra...@kde.org
          Reporter: farch...@gmail.com
  Target Milestone: ---

+ CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g
-grecord-gcc-switches -pipe -Wall -Werror=format-security
-Werror=implicit-function-declaration -Werror=implicit-int
-Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64   -mtune=generic
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer '
+ export CFLAGS
+ CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g
-grecord-gcc-switches -pipe -Wall -Werror=format-security
-Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64   -mtune=generic
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer '
+ export CXXFLAGS
+ FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g
-grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3
-Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
-fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  
-mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection
-fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer
-I/usr/lib64/gfortran/modules '
+ export FFLAGS
+ LDFLAGS='-Wl,-z,relro -Wl,--as-needed  -Wl,-z,now
-specs=/usr/lib/rpm/redhat/redhat-hardened-ld
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1
-specs=/usr/lib/rpm/redhat/redhat-package-notes '
+ export LDFLAGS
+ /usr/bin/cmake -S . -B redhat-linux-build
-DCMAKE_C_FLAGS_RELEASE:STRING=-DNDEBUG
-DCMAKE_CXX_FLAGS_RELEASE:STRING=-DNDEBUG
-DCMAKE_Fortran_FLAGS_RELEASE:STRING=-DNDEBUG -DBUILD_SHARED_LIBS:BOOL=ON
-DBUILD_TESTING:BOOL=FALSE -DCMAKE_BUILD_TYPE=release
-DCMAKE_INSTALL_INCLUDEDIR_kf6:PATH=/usr/include/KF6
-DCMAKE_INSTALL_LIBEXECDIR_kf6:PATH=/usr/libexec/kf6
-DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_USE_RELATIVE_PATHS:BOOL=ON
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
-DECM_MKSPECS_INSTALL_DIR:PATH=/usr/lib64/qt6/mkspecs/modules
-DKDE_INSTALL_BINDIR:PATH=/usr/bin -DKDE_INSTALL_INCLUDEDIR:PATH=/usr/include
-DKDE_INSTALL_KCFGDIR:PATH=/usr/share/config.kcfg
-DKDE_INSTALL_LIBDIR:PATH=/usr/lib64 -DKDE_INSTALL_LIBEXECDIR:PATH=/usr/libexec
-DKDE_INSTALL_METAINFODIR:PATH=/usr/share/metainfo
-DKDE_INSTALL_PLUGINDIR:PATH=/usr/lib64/qt6/plugins
-DKDE_INSTALL_QMLDIR:PATH=/usr/lib64/qt6/qml
-DKDE_INSTALL_QTPLUGINDIR:PATH=/usr/lib64/qt6/plugins
-DKDE_INSTALL_QTQUICKIMPORTSDIR:PATH=/usr/lib64/qt6/imports
-DKDE_INSTALL_SYSCONFDIR:PATH=/etc -DKDE_INSTALL_USE_QT_SYS_PATHS:BOOL=ON
-DQT_MAJOR_VERSION=6
-- The C compiler identification is GNU 13.2.1
-- The CXX compiler identification is GNU 13.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for __GLIBC__
-- Looking for __GLIBC__ - found
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Success
-- Performing Test HAVE_DATE_TIME
-- Performing Test HAVE_DATE_TIME - Success
-- Performing Test HAVE_STDATOMIC
-- Performing Test HAVE_STDATOMIC - Success
-- Found WrapAtomic: TRUE  
-- Found OpenGL: /usr/lib64/libOpenGL.so   
-- Found WrapOpenGL: TRUE  
-- Found XKB: /usr/lib64/libxkbcommon.so (found suitable version "1.6.0",
minimum required is "0.5.0") 
-- Found WrapVulkanHeaders: /usr/include  
-- Found Gettext: /usr/bin/msgmerge (found version "0.22") 
-- Found KF6I18n: /usr/lib64/cmake/KF6I18n/KF6I18nConfig.cmake (found version
"5.246.0") 
-- Found KF6: success (found version "5.246.0") found components: I18n 
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.13")  
-- Found KF6CoreAddons:
/usr/lib64/cmake/KF6CoreAddons/KF6CoreAddonsConfig.cmake (found version
"5.246.0") 
-- Found KF6Service: /usr/lib64/cmake/KF6Service/KF6ServiceConfig.cmake (found
version "5.246.0") 
-- Found KF6: success (found version "5.246.0") found components: CoreAddons
Service 
-- Found OsmTools: /usr/bin/osmconvert  
-- Found FLEX: /usr/bin/flex (found version "2.6.4") 
-- Found BISON: /usr/bin/bison (found version "3.8.2") 
-- Could NOT find Protobuf (missing: Protobuf_DIR)
-- Found Protobuf: /usr/lib64/libprotobuf.so (found version "3.19.6") 
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
-- The following OPTIONAL packages have been found:

 * Qt6Network (required version >= 5.15)
 * OpenGL
 * Vulkan
 * Qt6QmlTools (required version >= 6.6.1)
 * Qt6Quick (required version >= 5.15)
 * PkgConfig
 * XKB (required version >= 0.5.0), XKB API common to servers and clients.,
<http://xkbcommon.org>
 * WrapVulkanHeaders
 * Qt6GuiTools (required version >= 6.6.1)
 * Qt6CoreTools (required version >= 6.6.1)
 * Qt6Core
 * Qt6DBusTools (required version >= 6.6.1)
 * KF6CoreAddons (required version >= 5.246.0)
 * KF6Service
 * OsmTools, Tols to convert, filter and update OpenStreetMap data files,
<https://gitlab.com/osm-c-tools/osmctools>
   Needed only for regenereating line metadata tables (ie. you most likely
don't need this)
 * Threads
 * Protobuf
   Parsing of OSM PBF files.

-- The following REQUIRED packages have been found:

 * ECM (required version >= 5.90)
 * Qt6 (required version >= 5.15)
 * Gettext
 * KF6I18n
 * KPublicTransport
 * KOpeningHours
   Highlight currently open amenities/shops/etc.
 * KF6
 * ZLIB
 * FLEX
   MapCSS parser for indoor map rendering.
 * BISON
   MapCSS parser for indoor map rendering.

-- The following OPTIONAL packages have not been found:

 * Qt6QmlCompilerPlusPrivate

-- Configuring done (1.8s)
CMake Error at src/osm/io/CMakeLists.txt:21 (target_link_libraries):
  Target "KOSM_pbfioplugin" links to:

    protobuf::libprotobuf-lite

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.



-- Generating done (0.0s)
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_C_FLAGS_RELEASE
    CMAKE_Fortran_FLAGS_RELEASE
    CMAKE_INSTALL_INCLUDEDIR_kf6
    CMAKE_INSTALL_LIBEXECDIR_kf6
    CMAKE_USE_RELATIVE_PATHS
    ECM_MKSPECS_INSTALL_DIR
    KDE_INSTALL_QTQUICKIMPORTSDIR


CMake Generate step failed.  Build files cannot be regenerated correctly.
error: Bad exit status from /var/tmp/rpm-tmp.maFV4S (%build)
    Bad exit status from /var/tmp/rpm-tmp.maFV4S (%build)

RPM build errors:
Finish: rpmbuild kosmindoormap-24.01.80-1.fc40.src.rpm

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to