This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Fail to compile heaptrack on mac

Tags: None
(comma "," separated)
photoszzt
Registered Member
Posts
1
Karma
0

Fail to compile heaptrack on mac

Mon Dec 21, 2020 5:57 pm
I'm following heaptrack's readme to install its dependencies.

Code: Select all
brew install kde-mac/kde/kf5-kcoreaddons kde-mac/kde/kf5-kitemmodels kde-mac/kde/kf5-kconfigwidgets \
             kde-mac/kde/kf5-kio kde-mac/kde/kdiagram \
             kde-extra-cmake-modules kde-ki18n kde-threadweaver \
             boost zstd gettext


When I run cmake:
Code: Select all
CMAKE_PREFIX_PATH=/usr/local/opt/qt PATH=$PATH:/usr/local/opt/gettext/bin cmake ..


It generates the following output:
-- Found Boost: /usr/local/lib/cmake/Boost-1.75.0/BoostConfig.cmake (found suitable version "1.75.0", minimum required is "1.41.0") found components: system filesystem iostreams
CMake Warning (dev) at /usr/local/Cellar/cmake/3.19.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:426 (message):
The package name passed to `find_package_handle_standard_args` (ZSTD) does
not match the name of the calling package (Zstd). This can lead to
problems in calling code that expects `find_package` result variables
(e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
cmake/FindZstd.cmake:15 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:31 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Found Boost: /usr/local/lib/cmake/Boost-1.75.0/BoostConfig.cmake (found suitable version "1.75.0", minimum required is "1.41.0") found components: iostreams program_options
CMake Warning at /usr/local/Cellar/cmake/3.19.2/share/cmake/Modules/CMakeFindDependencyMacro.cmake:47 (find_package):
By not providing "FindKF5Service.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"KF5Service", but CMake did not find one.

Could not find a package configuration file provided by "KF5Service"
(requested version 5.76.0) with any of the following names:

KF5ServiceConfig.cmake
kf5service-config.cmake

Add the installation prefix of "KF5Service" to CMAKE_PREFIX_PATH or set
"KF5Service_DIR" to a directory containing one of the above files. If
"KF5Service" provides a separate development package or SDK, be sure it has
been installed.
Call Stack (most recent call first):
/usr/local/lib/cmake/KF5KIO/KF5KIOConfig.cmake:35 (find_dependency)
/usr/local/share/ECM/find-modules/FindKF5.cmake:53 (find_package)
src/analyze/CMakeLists.txt:38 (find_package)


CMake Warning at /usr/local/share/ECM/find-modules/FindKF5.cmake:53 (find_package):
Found package configuration file:

/usr/local/lib/cmake/KF5KIO/KF5KIOConfig.cmake

but it set KF5KIO_FOUND to FALSE so package "KF5KIO" is considered to be
NOT FOUND. Reason given by package:

KF5KIO could not be found because dependency KF5Service could not be found.

Call Stack (most recent call first):
src/analyze/CMakeLists.txt:38 (find_package)


-- Could NOT find KF5KIO (found version "5.76.0"), checked the following files:
/usr/local/lib/cmake/KF5KIO/KF5KIOConfig.cmake (version 5.76.0)
Reason given by package: KF5KIO could not be found because dependency KF5Service could not be found.

-- Could NOT find KF5 (missing: KIO) (found version "5.76.0")
-- The following OPTIONAL packages have been found:

* Qt5Gui (required version >= 5.15.2)
* Qt5 (required version >= 5.2.0)
* ECM (required version >= 1.0.0)
* KF5I18n
* KF5ItemModels
* KF5ThreadWeaver
* KF5Auth (required version >= 5.76.0)
* KF5Codecs (required version >= 5.76.0)
* KF5WidgetsAddons (required version >= 5.76.0)
* KF5ConfigWidgets
* KF5CoreAddons (required version >= 5.76.0)
* Qt5Core (required version >= 5.6.0)
* Qt5Widgets (required version >= 5.6.0)

-- The following RECOMMENDED packages have been found:

* Zstd
Zstandard offers better (de)compression performance compared with gzip/zlib, making heaptrack faster and datafiles smaller.
* KChart (required version >= 2.6.0)
Required for the heaptrack_gui executable. Get it from the kdiagram module.

-- The following REQUIRED packages have been found:

* Threads
* ZLIB
* boost_iostreams (required version == 1.75.0)
* boost_headers (required version == 1.75.0)
* boost_program_options (required version == 1.75.0)
* Boost (required version >= 1.41.0)
* Gettext

-- The following OPTIONAL packages have not been found:

* KF5KIO
* KF5

-- Configuring done
-- Generating done


I'm not sure whether kf5service is installed. There's no such formula for kf5-service. The kde cmake file for kf5service is not presented in /usr/local/lib/cmake. Is there anything missing?


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], kesang, Yahoo [Bot]