我在windows10下,使用CMake gui 编译krita源码
where is the source code:E:/krita-dev/krita
where to build the binaries:E:/krita-dev/krita_camke
current generator:MinGW Makefiles
分别点击Configure、Generate,输出:
Using CMake version: 3.26.3
Krita version: 5.2.0-prealpha
Branding selected: Next
FindPythonLibrary: TRUE
Python system site-packages directory: C:\Users\ASUS\AppData\Local\Programs\Python\Python310\Lib\site-packages
Krita site-packages directories for SIP v4:
Krita site-packages directories for SIP v5+:
Performing Test CAN_USE_PYTHON_LIBS
Performing Test CAN_USE_PYTHON_LIBS - Success
Could not set up the appstream test. appstreamcli is missing.
CMake Warning at cmake/modules/CheckLibTIFFPSDSupport.cmake:60 (message):
Your version of libtiff cannot read or write Photoshop TIFFs!
Call Stack (most recent call first):
CMakeLists.txt:859 (include)
Found HEIF
Found OpenJPEG
Correctly found FFTW3
Traceback (most recent call last):
File “E:\krita-dev\krita\cmake\modules\FindSIP.py”, line 18, in
import sipbuild
ModuleNotFoundError: No module named ‘sipbuild’
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “E:\krita-dev\krita\cmake\modules\FindSIP.py”, line 28, in
import sipconfig
ModuleNotFoundError: No module named ‘sipconfig’
Traceback (most recent call last):
File “E:\krita-dev\krita\cmake\modules\FindPyQt5.py”, line 22, in
import PyQt5.QtCore
ModuleNotFoundError: No module named ‘PyQt5’
Found LibMyPaint 1.6.1
Found QtGui OpenGL support
Found LittleCMS’s fast float plugin
Could NOT find xsimd (Required is at least version “8.1.0”), checked the following files:
C:/msys64/mingw64/lib/cmake/xsimd/xsimdConfig.cmake (version 11.0.0)
C:/msys64/mingw64/lib/cmake/xsimd/xsimdConfig.cmake (version 11.0.0)
Could NOT find xsimd (Required is at least version “9”), checked the following files:
C:/msys64/mingw64/lib/cmake/xsimd/xsimdConfig.cmake (version 11.0.0)
C:/msys64/mingw64/lib/cmake/xsimd/xsimdConfig.cmake (version 11.0.0)
Could NOT find xsimd (Required is at least version “10”), checked the following files:
C:/msys64/mingw64/lib/cmake/xsimd/xsimdConfig.cmake (version 11.0.0)
C:/msys64/mingw64/lib/cmake/xsimd/xsimdConfig.cmake (version 11.0.0)
Poppler: Qt5 requires Core
Found the following HarfBuzz libraries:
HarfBuzz (required): C:/msys64/mingw64/lib/libharfbuzz.dll.a
Broken tests:
* libs-flake-TestPointMergeCommand
* libs-flake-TestSvgText
* libs-flake-TestSvgTextCloned
* libs-flake-TestSvgTextRoundTrip
* libs-image-kis_transform_mask_test
* libs-image-kis_perspective_transform_worker_test
* libs-ui-KisPaintingAssistantsDecorationTest
* libs-ui-KisClipboardTest
* libs-ui-FreehandStrokeTest
* libs-ui-FreehandStrokeBenchmark
* libs-ui-KisPaintOnTransparencyMaskTest
* libs-ui-FillProcessingVisitorTest
* libs-ui-FilterStrokeTest
* libs-ui-KisSelectionManagerTest
* libs-ui-KisNodeManagerTest
* libs-ui-KisZoomAndPanTest
* libs-ui-KisActionManagerTest
* libs-ui-KisCategoriesMapperTest
* krita-filters-kis_all_filter_test
* krita-filters-kis_crash_filter_test
* plugins-impex-kis_png_test
* plugins-impex-kis_csv_test
* plugins-impex-KisSvgTest
* plugins-metadata-KisExifTest
* plugins-libpaintop-kis_linked_pattern_manager_test
* plugins-defaultpaintops-KisBrushOpTest
* plugins-tools-basictools-MoveStrokeTest
The following features have been enabled:
– The following OPTIONAL packages have been found:
– The following RECOMMENDED packages have been found:
– The following REQUIRED packages have been found:
– The following features have been disabled:
– The following OPTIONAL packages have not been found:
Configuring done (6.1s)
CMake Warning at plugins/color/lcms2engine/CMakeLists.txt:84 (target_link_libraries):
Target “kritalcmsengine” requests linking to directory
“C:/msys64/mingw64/”. Targets may link only to libraries. CMake is
dropping the item.
CMake Warning at cmake/modules/KritaAddBrokenUnitTest.cmake:61 (target_link_libraries):
Target “TestKoLcmsColorProfile” requests linking to directory
“C:/msys64/mingw64/”. Targets may link only to libraries. CMake is
dropping the item.
Call Stack (most recent call first):
cmake/modules/KritaAddBrokenUnitTest.cmake:95 (KRITA_ADD_UNIT_TEST)
cmake/modules/KritaAddBrokenUnitTest.cmake:145 (KRITA_ADD_UNIT_TESTS)
plugins/color/lcms2engine/tests/CMakeLists.txt:8 (kis_add_tests)
CMake Warning at cmake/modules/KritaAddBrokenUnitTest.cmake:61 (target_link_libraries):
Target “TestColorSpaceRegistry” requests linking to directory
“C:/msys64/mingw64/”. Targets may link only to libraries. CMake is
dropping the item.
Call Stack (most recent call first):
cmake/modules/KritaAddBrokenUnitTest.cmake:95 (KRITA_ADD_UNIT_TEST)
cmake/modules/KritaAddBrokenUnitTest.cmake:145 (KRITA_ADD_UNIT_TESTS)
plugins/color/lcms2engine/tests/CMakeLists.txt:8 (kis_add_tests)
CMake Warning at cmake/modules/KritaAddBrokenUnitTest.cmake:61 (target_link_libraries):
Target “TestLcmsRGBP2020PQColorSpace” requests linking to directory
“C:/msys64/mingw64/”. Targets may link only to libraries. CMake is
dropping the item.
Call Stack (most recent call first):
cmake/modules/KritaAddBrokenUnitTest.cmake:95 (KRITA_ADD_UNIT_TEST)
cmake/modules/KritaAddBrokenUnitTest.cmake:145 (KRITA_ADD_UNIT_TESTS)
plugins/color/lcms2engine/tests/CMakeLists.txt:8 (kis_add_tests)
CMake Warning at cmake/modules/KritaAddBrokenUnitTest.cmake:61 (target_link_libraries):
Target “TestProfileGeneration” requests linking to directory
“C:/msys64/mingw64/”. Targets may link only to libraries. CMake is
dropping the item.
Call Stack (most recent call first):
cmake/modules/KritaAddBrokenUnitTest.cmake:95 (KRITA_ADD_UNIT_TEST)
cmake/modules/KritaAddBrokenUnitTest.cmake:145 (KRITA_ADD_UNIT_TESTS)
plugins/color/lcms2engine/tests/CMakeLists.txt:8 (kis_add_tests)
CMake Warning at plugins/impex/jpeg/CMakeLists.txt:27 (target_link_libraries):
Target “kritajpegimport” requests linking to directory
“C:/msys64/mingw64/”. Targets may link only to libraries. CMake is
dropping the item.
CMake Warning at plugins/impex/jpeg/CMakeLists.txt:40 (target_link_libraries):
Target “kritajpegexport” requests linking to directory
“C:/msys64/mingw64/”. Targets may link only to libraries. CMake is
dropping the item.
Generating done (55.6s)
示例:pandas 是基于NumPy 的一种工具,该工具是为了解决数据分析任务而创建的。
看起来在编译 Krita 源代码时找不到 LibMyPaint 库。要解决这个问题,请按照以下步骤操作:
确保您已经安装了 LibMyPaint。如果尚未安装,请访问 LibMyPaint GitHub 页面 并按照说明进行安装。
在 CMake GUI 中,单击 “Add Entry”,然后添加以下信息:
Name: LibMyPaint_DIR
Type: PATH
Value: (将其替换为 LibMyPaint 安装目录的路径)
如果您已经安装了 LibMyPaint,但是在编译 Krita 时仍然收到这个错误,请尝试在您的系统环境变量中添加 LibMyPaint 的路径。例如,将以下路径添加到 PATH 环境变量中(根据您的实际安装位置进行调整):
/bin
/lib
在 CMake GUI 中单击 “Configure”,然后单击 “Generate” 以重新生成构建文件。
## 在 Windows 10 下安装 LibMyPaint 的方法如下:
首先,确保您已经安装了以下依赖项:
MSYS2:用于提供编译环境和一些必需的工具。
MinGW-w64:用于提供编译器和链接器。
打开 MSYS2 MinGW 64-bit 终端(请确保使用 MinGW-w64 终端,而不是普通的 MSYS2 终端)。
更新 MSYS2 和安装所需的依赖包:
sh
Copy code
pacman -Syu
pacman -S git make mingw-w64-x86_64-gcc mingw-w64-x86_64-pkg-config mingw-w64-x86_64-gobject-introspection mingw-w64-x86_64-json-c
克隆 LibMyPaint 的源代码:
sh
Copy code
git clone https://github.com/mypaint/libmypaint.git
进入源代码目录并创建一个构建目录:
sh
Copy code
cd libmypaint
mkdir build
cd build
使用 Meson 配置构建目录:
sh
Copy code
meson ..
使用 Ninja 编译和安装 LibMyPaint:
sh
Copy code
ninja
ninja install
安装完成后,将以下路径添加到您的 PATH 环境变量中(根据您的实际安装位置进行调整):
/mingw64/bin
/mingw64/lib
现在,LibMyPaint 已经成功安装在您的 Windows 10 系统中。接下来,您可以按照之前提到的步骤设置 CMake 以编译 Krita 源代码。
# 总结
`提示:这里对文章进行总结:`
例如:以上就是今天要讲的内容,本文仅仅简单介绍了pandas的使用,而pandas提供了大量能使我们快速便捷地处理数据的函数和方法。