Researching python plugin
Brendan Scott
disposableemail at apps.opensourcelaw.biz
Wed Jun 7 07:19:35 UTC 2017
On 06/02/2017 07:33 PM, Boudewijn Rempt wrote:
> On Fri, 2 Jun 2017, Brendan Scott wrote:
>
>> Hi,
>>
>> A hobby project of mine is a Python application that maps out perspective
>> spaces. I would like to see if I can take it a little further and turnit into
>> a Krita plugin using its upcoming Python scripting. Is the scripting
>> component in a useable enough state for me to start tinkering?* If so,is
>> there a scripting branch and where do I find it? Is it just in the current
>> development version?
>
> It's in the master branch currently.
So I've tried making master and it fails at 19% through make install (output below). cmake doesn't complain about any packages not found. (cmake output below).
Any thoughts about what I'm missing? I am on OpenSuSE, so had working out the dependencies was trial and error.
Thanks
Brendan
********************************* make install
[ 19%] Building CXX object libs/flake/CMakeFiles/kritaflake.dir/kritaflake_automoc.cpp.o
/home/user/software/krita/src/libs/flake/svg/parsers/SvgTransformParser.cpp:125:9: error: expected identifier before ‘(’ token
(qreal, a)
^
/home/user/software/krita/src/libs/flake/svg/parsers/SvgTransformParser.cpp:125:17: error: ‘a’ has not been declared
(qreal, a)
^
/home/user/software/krita/src/libs/flake/svg/parsers/SvgTransformParser.cpp:126:17: error: ‘b’ has not been declared
(qreal, b)
^
/home/user/software/krita/src/libs/flake/svg/parsers/SvgTransformParser.cpp:127:17: error: ‘c’ has not been declared
(qreal, c)
^
/home/user/software/krita/src/libs/flake/svg/parsers/SvgTransformParser.cpp:128:17: error: ‘d’ has not been declared
(qreal, d)
^
/home/user/software/krita/src/libs/flake/svg/parsers/SvgTransformParser.cpp:129:17: error: ‘e’ has not been declared
(qreal, e)
^
/home/user/software/krita/src/libs/flake/svg/parsers/SvgTransformParser.cpp:130:17: error: ‘f’ has not been declared
(qreal, f)
^
/home/user/software/krita/src/libs/flake/svg/parsers/SvgTransformParser.cpp:130:18: error: ‘parameter’ declared as function returning a function
(qreal, f)
^
/home/user/software/krita/src/libs/flake/svg/parsers/SvgTransformParser.cpp:133:1: error: expected constructor, destructor, or type conversion before ‘BOOST_FUSION_ADAPT_STRUCT’
BOOST_FUSION_ADAPT_STRUCT(
^
libs/flake/CMakeFiles/kritaflake.dir/build.make:4610: recipe for target 'libs/flake/CMakeFiles/kritaflake.dir/svg/parsers/SvgTransformParser.cpp.o' failed
make[2]: *** [libs/flake/CMakeFiles/kritaflake.dir/svg/parsers/SvgTransformParser.cpp.o] Error 1
CMakeFiles/Makefile2:2522: recipe for target 'libs/flake/CMakeFiles/kritaflake.dir/all' failed
make[1]: *** [libs/flake/CMakeFiles/kritaflake.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 19%] Linking CXX static library libgmic.a
[ 19%] Built target gmic
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
********************************* cmake
>cmake -DCMAKE_INSTALL_PREFIX=/home/user/software/krita/inst /home/user/software/krita/src -DWITH_GMIC=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -DPRODUCTSET=ALL -DPACKAGERS_BUILD=ON -DBUILD_TESTING=OFF -DKDE4_BUILD_TESTS=OFF
-- Using CMake version: 3.5.2
-- Krita version: 4.0.0-pre-alpha
-- Release build: TRUE
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.4.5", minimum required is "3.0")
-- Found PythonInterp: /usr/bin/python3 (found version "3.4.5")
-- Python system site-packages directory: /usr/lib64/python3.4/site-packages
-- The Python files will be installed to /home/user/software/krita/inst/lib64/python3.4/site-packages. Make sure to add them to the Python search path (e.g. by setting PYTHONPATH)
-- Found PythonLibrary: /usr/lib64/libpython2.7.so (Required is at least version "3.0")
-- Boost version: 1.54.0
-- Found the following Boost libraries:
-- system
-- Found GNU Scientific Library 1.16: /usr/include/gsl /usr/lib64/libgsl.so;/usr/lib64/libgslcblas.so
-- Found OPENEXR: /usr/lib64/libImath.so;/usr/lib64/libIlmImf.so;/usr/lib64/libIex.so;/usr/lib64/libHalf.so;/usr/lib64/libIlmThread.so
-- Found FFTW3
-- FFTW Found Version:
-- Found QtGui OpenGL support
-- Found lcms version 2.07, /usr/lib64/liblcms2.so
-- Detected Compiler: GCC 4.8
-- GCC Version from --version: 4.8.5
-- Detected CPU: haswell
-- Vc found!
CMake Warning at /opt/Vc/lib/cmake/Vc/AddCompilerFlag.cmake:55 (message):
Deprecated use of the AddCompilerFlag macro.
Call Stack (most recent call first):
CMakeLists.txt:556 (AddCompilerFlag)
CMake Warning (dev) at /usr/share/ECM/modules/ECMFindModuleHelpers.cmake:133 (message):
Your project should require at least CMake 2.8.12 to use FindPoppler.cmake
Call Stack (most recent call first):
/usr/share/ECM/find-modules/FindPoppler.cmake:78 (ecm_find_package_version_check)
CMakeLists.txt:590 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Poppler: Qt5 requires Core
Following objects are generated from the per-arch lib
/home/user/software/krita/build/libs/pigment/KoOptimizedCompositeOpFactoryPerArch_SSE2.cpp/home/user/software/krita/build/libs/pigment/KoOptimizedCompositeOpFactoryPerArch_SSSE3.cpp/home/user/software/krita/build/libs/pigment/KoOptimizedCompositeOpFactoryPerArch_SSE4_1.cpp/home/user/software/krita/build/libs/pigment/KoOptimizedCompositeOpFactoryPerArch_AVX.cpp/home/user/software/krita/build/libs/pigment/KoOptimizedCompositeOpFactoryPerArch_AVX2+FMA+BMI2.cpp
G'Mic: using pthreads
G'Mic: using OpenMP
G'Mic: using FFTW3
G'Mic: using Curl
-- Python system site-packages directory: /usr/lib64/python3.4/site-packages
-- The Python files will be installed to /home/user/software/krita/inst/lib64/python3.4/site-packages. Make sure to add them to the Python search path (e.g. by setting PYTHONPATH)
-- Found PythonLibrary: /usr/lib64/libpython2.7.so
-- Found SIP version: 4.16.9
QML debugging is enabled. Only use this in a safe environment.
-- Found PyQt5 version: 5.5.1
041009 - The version of SIP found expressed as a 6 digit hex number suitable for comparison as a string.
4.16.9 - The version of SIP found as a human readable string.
/usr/bin/sip - Path and filename of the SIP command line executable.
/usr/include/python3.4m - Directory holding the SIP C++ header file.
/usr/share/sip - default SIP dir
Broken tests:
* libs-widgets-KoResourceTaggingTest
* libs-kritaflake-TestPathShape
* libs-kritaflake-TestControlPointMoveCommand
* libs-kritaflake-TestPointTypeCommand
* libs-kritaflake-TestPointRemoveCommand
* libs-kritaflake-TestRemoveSubpathCommand
* libs-kritaflake-TestPathSegment
* libs-kritaflake-TestSegmentTypeCommand
* libs-kritaflake-TestPointMergeCommand
* krita-image-KisPaintDeviceTest
* krita-image-KisFilterMaskTest
* krita-image-KisTransformMaskTest
* krita-image-KisHistogramTest
* krita-image-KisWalkersTest
* krita-image-KisUpdateSchedulerTest
* krita-image-KisQueuesProgressUpdaterTest
* krita-image-KisCageTransformWorkerTest
* krita-image-KisMetaDataTest
* krita-image-KisRandomGeneratorTest
* krita-image-Keyframing-Test
* krita-image-ImageAnimationInterface-Test
* krita-image-OnionSkinCompositor-Test
* krita-image-LayerStylesTest
* krita-image-KisSwappedDataStoreTest
* krita-image-KisTileDataStoreTest
* krita-image-KisStoreLimitsTest
* krita-image-KisTileDataPoolerTest
* krita-ui-kis_node_model_test
* krita-ui-kis_shape_controller_test
* krita-ui-kis_prescaled_projection_test
* krita-ui-KisExiv2Test
* krita-ui-KisClipboardTest
* krita-ui-FreehandStrokeTest
* krita-ui-FillProcessingVisitorTest
* krita-ui-FilterStrokeTest
* krita-ui-KisSelectionManagerTest
* krita-ui-KisNodeManagerTest
* krita-ui-KisDummiesFacadeTest
* krita-ui-KisZoomAndPanTest
* krita-ui-KisActionManagerTest
* krita-ui-KisCategoriesMapperTest
* krita-ui-KisAslLayerStyleSerializerTest
* kritaui-animation_exporter_test
* kritaui-animation_importer_test
* kritaui-animation_frame_cache_test
* krita-resourcemanager-ResourceBundleTest
* libs-pigment-TestKoColorSpaceRegistry
* krita-ocio-KisOcioDisplayFilterTest
* krita-animation-TimelineModelTest
* krita-plugin-format-jpeg_test
* krita-plugin-format-png_test
* krita-plugin-format-csv_test
* krita-plugin-format-exr_test
* krita-plugin-format-ppm_test
* krita-plugin-format-xcf_test
* krita-plugins-formats-psd_test
* krita-paintop-EmbeddedPatternManagerTest
* krita-plugins-KisBrushOpTest
* krita-basictools-MoveStrokeTest
* krita-ui-TestSaveLoadTransformArgs
* krita-ui-TestAnimatedTransformParameters
--
-- The following features have been enabled:
* Safe Asserts , Don't show message box for "safe" asserts, just ignorethem automatically and dump a message to the terminal.
-- The following OPTIONAL packages have been found:
* Qt5Multimedia (required version >= 5.6.0) , Qt multimedia integration , <http://www.qt.io/>
Optionally used to provide sound support for animations
* Qt5DBus (required version >= 5.6.0) , Qt DBUS integration , <http://www.qt.io/>
Optionally used to provide a dbus api on Linux
* KF5KIO (required version >= 5.7.0) , KDE's KIO Framework , <http://api.kde.org/frameworks-api/frameworks5-apidocs/kio/html/index.html>
Optionally used for recent document handling
* KF5Crash (required version >= 5.7.0) , KDE's Crash Handler , <http://api.kde.org/frameworks-api/frameworks5-apidocs/kcrash/html/index.html>
Optionally used to provide crash reporting on Linux
* XCB , X protocol C-language Binding , <http://xcb.freedesktop.org>
* ZLIB , Compression library , <http://www.zlib.net/>
Optionally used by the G'Mic and the PSD plugins
* OpenEXR , High dynamic-range (HDR) image file format , <http://www.openexr.com>
Required by the Krita OpenEXR filter
* TIFF , TIFF Library and Utilities , <http://www.remotesensing.org/libtiff>
Required by the Krita TIFF filter
* JPEG , Free library for JPEG image compression. Note: libjpeg8 is NOTsupported. , <http://www.libjpeg-turbo.org>
Required by the Krita JPEG filter
* LibRaw (required version >= 0.16) , Library to decode RAW images , <http://www.libraw.org>
Required to build the raw import plugin
* FFTW3 , A fast, free C FFT library , <http://www.fftw.org/>
Required by the Krita for fast convolution operators and some G'Mic features
* OCIO , The OpenColorIO Library , <http://www.opencolorio.org>
Required by the Krita LUT docker
* Vc (required version >= 1.1.0) , Portable, zero-overhead SIMD library for C++ , <https://github.com/VcDevel/Vc>
Required by the Krita for vectorization
* PkgConfig
* Poppler , A PDF rendering library , <http://poppler.freedesktop.org>
Required by the Krita PDF filter.
* Threads , PThreads - A low-level threading library
Optionally used by the G'Mic plugin
* OpenMP , A low-level parallel execution library , <http://openmp.org/wp/>
Optionally used by the G'Mic plugin
* CURL , A tool to fetch remote data , <http://curl.haxx.se/>
Optionally used by the G'Mic plugin
* PythonLibrary , Python Library , <http://www.python.org>
Required by the Krita PyQt plugin
* SIP (required version >= 4.18.0) , Support for generating SIP Python bindings , <https://www.riverbankcomputing.com/software/sip/download>
Required by the Krita PyQt plugin
* PyQt5 (required version >= 5.6.0) , Python bindings for Qt5. , <https://www.riverbankcomputing.com/software/pyqt/download5>
Required by the Krita PyQt plugin
-- The following RECOMMENDED packages have been found:
* GSL , <http://www.gnu.org/software/gsl>
Required by Krita's Transform tool.
-- The following REQUIRED packages have been found:
* ECM (required version >= 5.19)
* KF5Archive (required version >= 5.7.0)
* KF5Config (required version >= 5.7.0)
* KF5WidgetsAddons (required version >= 5.7.0)
* KF5Completion (required version >= 5.7.0)
* KF5CoreAddons (required version >= 5.7.0)
* KF5GuiAddons (required version >= 5.7.0)
* Gettext
* KF5I18n (required version >= 5.7.0)
* KF5ItemModels (required version >= 5.7.0)
* KF5ItemViews (required version >= 5.7.0)
* KF5WindowSystem (required version >= 5.7.0)
* KF5 (required version >= 5.7.0)
* Qt5Core
* Qt5Gui
* Qt5Widgets
* Qt5Xml
* Qt5Network
* Qt5PrintSupport
* Qt5Svg
* Qt5Test
* Qt5Concurrent
* Qt5X11Extras
* Qt5 (required version >= 5.6.0)
* X11
* PNG
* Boost
* Eigen3 , C++ template library for linear algebra , <http://eigen.tuxfamily.org>
* Exiv2 , Image metadata library and tools , <http://www.exiv2.org>
Required by Krita
* LCMS2 , LittleCMS Color management engine , <http://www.littlecms.com>
Will be used for color management and is necessary for Krita
* PythonInterp
-- The following features have been disabled:
* Foundation Build , A Foundation build is a binary release build that can package some extra things like color themes. Linux distributions thatbuild and install Krita into a default system location should not definethis option to true.
* Enable Broken Tests , Runs broken test when "make test" is invoked (use -DKRITA_ENABLE_BROKEN_TESTS=ON to enable).
-- Configuring done
-- Generating done
-- Build files have been written to: /home/user/software/krita/build
More information about the kimageshop
mailing list