Skip to content

Check Synfig builded by CMake #928

Open

Description

@ice0

Latest version.

Please check if everything works.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Activity

  1. ice0 commented on Aug 21, 2019

    @ice0
    CollaboratorAuthor

    Current build commands:

    git clone https://github.com/synfig/synfig
    cd synfig
    mkdir build-cmake && cd build-cmake
    cmake ..  -DCMAKE_INSTALL_PREFIX=~/synfig-cmake
    export SYNFIG_ROOT=~/synfig-cmake/
    make -j4
    make build_images -j4
    make install
    
  2. BobSynfig commented on Aug 21, 2019

    @BobSynfig
    Collaborator

    Attempt under Fedora 30 (VirtualBox)
    The 2 last command fail for me

    [bobsynfig@localhost build-cmake]$ make build_images -j4
    Scanning dependencies of target build_images
    /bin/sh: synfig : commande introuvable
    make[3]: *** [synfig-studio/images/CMakeFiles/build_images.dir/build.make:57: build_images] Error 127
    make[2]: *** [CMakeFiles/Makefile2:1671: synfig-studio/images/CMakeFiles/build_images.dir/all] Error 2
    make[1]: *** [CMakeFiles/Makefile2:1678: synfig-studio/images/CMakeFiles/build_images.dir/rule] Error 2
    make: *** [Makefile:489: build_images] Error 2
    
    [bobsynfig@localhost build-cmake]$ make install
    (...)
    -- Installing: /home/bobsynfig/synfig-cmake/bin/synfigstudio
    -- Set runtime path of "/home/bobsynfig/synfig-cmake/bin/synfigstudio" to ""
    CMake Error at synfig-studio/images/cmake_install.cmake:41 (file):
      file INSTALL cannot find
      "/home/bobsynfig/synfig.git/synfig/build-cmake/synfig-studio/images/about_icon.png".
    Call Stack (most recent call first):
      synfig-studio/cmake_install.cmake:43 (include)
      cmake_install.cmake:44 (include)
    
    
    make: *** [Makefile:118: install] Error 1
    
    
  3. ice0 commented on Aug 22, 2019

    @ice0
    CollaboratorAuthor

    @BobSynfig comment updated, please check.

  4. BobSynfig commented on Aug 22, 2019

    @BobSynfig
    Collaborator

    This time the images are produced and moved (with complain against falloff and loopyness unknow parameters by the way).
    But launching synfigstudio, any icon/image is missing in the application.

  5. added this to the v1.4.0 milestone on Aug 22, 2019
  6. ice0 commented on Aug 23, 2019

    @ice0
    CollaboratorAuthor

    @BobSynfig oh, forgot one more thing. Please execute
    export SYNFIG_ROOT=~/synfig-cmake/
    and try again. Btw, comment is also updated.

  7. morevnaproject commented on Aug 23, 2019

    @morevnaproject
    Member

    Hi! I did some testing. Here is what I found:

    Also, I didn't found a way how to choose debug or production build. ^__^

  8. BobSynfig commented on Aug 23, 2019

    @BobSynfig
    Collaborator

    Hi! I did some testing. Here is what I found:

    Also, I didn't found a way how to choose debug or production build. ^__^

    Same results here :)

  9. morevnaproject commented on Aug 24, 2019

    @morevnaproject
    Member

    @ice0 I suggest to resolve issue with rendering icons by implementing #703 (Do not invoke "synfig" for rendering icons at build time) ^__^

  10. morevnaproject commented on Sep 21, 2019

    @morevnaproject
    Member

    One more issue with CMake build - #959

  11. morevnaproject commented on Sep 21, 2019

    @morevnaproject
    Member

    One more - #960

  12. Keyikedalube commented on Nov 15, 2019

    @Keyikedalube
    Contributor

    -- Checking for module 'libmng'
    -- No package 'libmng' found
    CMake Error at /usr/share/cmake-3.13/Modules/FindPkgConfig.cmake:452 (message):
    A required package was not found
    Call Stack (most recent call first):
    /usr/share/cmake-3.13/Modules/FindPkgConfig.cmake:622 (_pkg_check_modules_internal)
    src/CMakeLists.txt:36 (pkg_check_modules)

    -- Configuring incomplete, errors occurred!
    See also "/home/keyikedalube/Source/synfig/_debug/synfig-core/CMakeFiles/CMakeOutput.log".
    See also "/home/keyikedalube/Source/synfig/_debug/synfig-core/CMakeFiles/CMakeError.log".
    Failed to build synfig-core

    apt show libmng
    returns libmng1 and libmng-dev
    and both are installed before running cmake

  13. ice0 commented on Nov 15, 2019

    @ice0
    CollaboratorAuthor

    @Keyikedalube Which OS you are using?

  14. 2 remaining items

  15. modified the milestones: v1.4.0, 1.6.0 on Nov 25, 2019
  16. Keyikedalube commented on Jan 15, 2020

    @Keyikedalube
    Contributor

    @ice0 Reported the issue to Debian maintainer and it's been a while with no reply from the maintainer.

    Also Ubuntu team fixed that behavior

    Do you use libmng2 on your Debian system? Because I noticed the same package exists on Debian experimental repo.

  17. ice0 commented on Jan 17, 2020

    @ice0
    CollaboratorAuthor

    Today i tried it, and here same problem:

    dpkg-query -L libmng2

    /.
    /usr
    /usr/lib
    /usr/lib/x86_64-linux-gnu
    /usr/lib/x86_64-linux-gnu/libmng.so.2.0.2
    /usr/share
    /usr/share/doc
    /usr/share/doc/libmng2
    /usr/share/doc/libmng2/README
    /usr/share/doc/libmng2/changelog.Debian.gz
    /usr/share/doc/libmng2/changelog.gz
    /usr/share/doc/libmng2/copyright
    /usr/lib/x86_64-linux-gnu/libmng.so.2
    
  18. Keyikedalube commented on Jan 17, 2020

    @Keyikedalube
    Contributor

    I think we have to upgrade libmng-dev too with libmng2:
    apt install -t experimental libmng-dev

    Anyway I was hesitant to try out these packages from experimental repo because just in case my system breaks I'd hate to spend time reinstalling Debian from scratch and setting up all my applications.

    But again I did install 'em anyway and ran your command
    dpkg-query -L libmng-dev

    /.
    /usr
    /usr/include
    /usr/include/libmng.h
    /usr/include/libmng_conf.h
    /usr/include/libmng_types.h
    /usr/lib
    /usr/lib/x86_64-linux-gnu
    /usr/lib/x86_64-linux-gnu/libmng.a
    /usr/lib/x86_64-linux-gnu/pkgconfig
    /usr/lib/x86_64-linux-gnu/pkgconfig/libmng.pc
    /usr/share
    /usr/share/doc
    /usr/share/doc/libmng-dev
    /usr/share/doc/libmng-dev/Plan1.png
    /usr/share/doc/libmng-dev/Plan2.png
    /usr/share/doc/libmng-dev/README
    /usr/share/doc/libmng-dev/README.Debian
    /usr/share/doc/libmng-dev/README.config.gz
    /usr/share/doc/libmng-dev/changelog.Debian.gz
    /usr/share/doc/libmng-dev/changelog.gz
    /usr/share/doc/libmng-dev/copyright
    /usr/share/doc/libmng-dev/libmng.txt.gz
    /usr/share/man
    /usr/share/man/man3
    /usr/share/man/man3/libmng.3.gz
    /usr/share/man/man5
    /usr/share/man/man5/jng.5.gz
    /usr/share/man/man5/mng.5.gz
    /usr/lib/x86_64-linux-gnu/libmng.so
    

    Same fix as the Ubuntu one :)

  19. Keyikedalube commented on Feb 3, 2020

    @Keyikedalube
  20. Keyikedalube commented on Apr 25, 2020

    @Keyikedalube
    Contributor

    # fix incorrect install path for icons
    mkdir ~/synfig-cmake/share/pixmaps/synfigstudio
    mv ~/synfig-cmake/share/pixmaps/*.png ~/synfig-cmake/share/pixmaps/synfigstudio

    @ice0 This portion appears to be fixed
    Built synfig using the above command list just now
    Found out the icon images are installed at the right path

    Time to edit and delete those three lines I think so someone following the steps doesn't encounter cannot create directory or no such file or directory errors

  21. ice0 commented on Apr 26, 2020

    @ice0
    CollaboratorAuthor

    @Keyikedalube Thanks for pointing this out. I updated comment.

  22. Keyikedalube commented on Jul 13, 2020

    @Keyikedalube
    Contributor

    I think

    make all -j4 && make install

    will be much simpler for devs
    Because for first build we have to individually execute build_images, build_pofiles, & plugins_xml target
    Otherwise, make install will fail

    An alternative to running synfig | synfigstudio

    export SYNFIG_ROOT=<your synfig-cmake path> && env LD_LIBRARY_PATH=$SYNFIG_ROOT/lib/ PATH=$PATH:$SYNFIG_ROOT/bin synfigstudio

    With that one line command, it's easier to recursively search and execute synfig built with CMake ;)

  23. ice0 commented on Jul 13, 2020

    @ice0
    CollaboratorAuthor

    Hi!

    Can you check is it still needed?

    env LD_LIBRARY_PATH=$SYNFIG_ROOT/lib/
    
  24. Keyikedalube commented on Jul 13, 2020

    @Keyikedalube
    Contributor

    Without LD_LIBRARY_PATH

    synfigstudio: error while loading shared libraries: libsynfigapp.so: cannot open shared object file: No such file or directory
    

    It's still needed. Contains cmake/, libsynfigapp.so, libsynfig.so, & synfig/

  25. Keyikedalube commented on Aug 26, 2020

    @Keyikedalube
    Contributor

    OK, a little bit of misunderstanding above... running synfigstudio won't need LD_ LIBRARY_PATH to be set. Only if the binary is executed from build-dir/output/bin directory.

    But in my above alternative bash command, you can notice that I'm trying to run synfigstudio after this build & install command was executed:

    make all -j4 && make install

    In that case, we need to set LD_ LIBRARY_PATH path for the installed version of synfigstudio to run without error.

  26. ice0 commented on Aug 26, 2020

    @ice0
    CollaboratorAuthor

    Ok, looks like we forgot some libraries during installation. I will check it later. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions