New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing libmypaint Linux build instructions #1384

Closed
ideasman42 opened this Issue Aug 7, 2017 · 8 comments

Comments

Projects
None yet
7 participants
@ideasman42
Collaborator

ideasman42 commented Aug 7, 2017

Even after installing libmypaint I get the error that libmypaint is not found:

-- Checking for module 'libmypaint'
--   No package 'libmypaint' found

Could the Linux build instructions be updated?

@ericandre615

This comment has been minimized.

Show comment
Hide comment
@ericandre615

ericandre615 Aug 12, 2017

Same here. I tried libmypaint 1.3 and libmypaint2 it's in /usr/lib/. I had recently built opentoonz on another machine awhile back and it worked great. I've been looking around to see where it's looking for the lib, but haven't found anything yet.

here is the check for it https://github.com/opentoonz/opentoonz/blob/master/toonz/sources/CMakeLists.txt#L444

I saw where it is trying to set it here:
https://github.com/opentoonz/opentoonz/blob/master/toonz/sources/CMakeLists.txt#L332

I checked the path and it's correct. Unless on linux it's just skipping over this if block. Not sure. Well,with my very limited knowledge I was able to get it to build to about 38% but then libmypaint.lib is not a recognized format. Looks like this may be set for windows.

started getting further and further in the build as I checked out different CMakeList.txt files from the commit before this 429ee8c#diff-667354b7cdae8fec283ba1d6b2af9cee.
If I reset to the commit before this one everything builds fine.

ericandre615 commented Aug 12, 2017

Same here. I tried libmypaint 1.3 and libmypaint2 it's in /usr/lib/. I had recently built opentoonz on another machine awhile back and it worked great. I've been looking around to see where it's looking for the lib, but haven't found anything yet.

here is the check for it https://github.com/opentoonz/opentoonz/blob/master/toonz/sources/CMakeLists.txt#L444

I saw where it is trying to set it here:
https://github.com/opentoonz/opentoonz/blob/master/toonz/sources/CMakeLists.txt#L332

I checked the path and it's correct. Unless on linux it's just skipping over this if block. Not sure. Well,with my very limited knowledge I was able to get it to build to about 38% but then libmypaint.lib is not a recognized format. Looks like this may be set for windows.

started getting further and further in the build as I checked out different CMakeList.txt files from the commit before this 429ee8c#diff-667354b7cdae8fec283ba1d6b2af9cee.
If I reset to the commit before this one everything builds fine.

@jvault

This comment has been minimized.

Show comment
Hide comment
@jvault

jvault commented Aug 29, 2017

i

@laher

This comment has been minimized.

Show comment
Hide comment
@laher

laher Sep 10, 2017

Thanks for the heads-up. I checked out the parent commit with git checkout 14f0fd28bbeec42dfcebcebe59b858931eaeb881 and it built OK

laher commented Sep 10, 2017

Thanks for the heads-up. I checked out the parent commit with git checkout 14f0fd28bbeec42dfcebcebe59b858931eaeb881 and it built OK

@retrotails

This comment has been minimized.

Show comment
Hide comment
@retrotails

retrotails Sep 15, 2017

If I change https://github.com/opentoonz/opentoonz/blob/master/toonz/sources/CMakeLists.txt#L445
from this
pkg_check_modules(MYPAINT_LIB REQUIRED libmypaint)
to this
pkg_check_modules(MYPAINT_LIB REQUIRED libmypaint-1.3)
I can get it to compile fine on arch linux, though I still get
/usr/bin/ld: warning: libgfortran.so.3, needed by /usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../lib/libsuperlu.so, not found (try using -rpath or -rpath-link)
when trying to run the binary.
pretty sure superlu is out of date and needs rebuilt for libgfortran.so.4
if I manually copy over the old libgfortran.so.3 to /usr/lib it works

retrotails commented Sep 15, 2017

If I change https://github.com/opentoonz/opentoonz/blob/master/toonz/sources/CMakeLists.txt#L445
from this
pkg_check_modules(MYPAINT_LIB REQUIRED libmypaint)
to this
pkg_check_modules(MYPAINT_LIB REQUIRED libmypaint-1.3)
I can get it to compile fine on arch linux, though I still get
/usr/bin/ld: warning: libgfortran.so.3, needed by /usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../lib/libsuperlu.so, not found (try using -rpath or -rpath-link)
when trying to run the binary.
pretty sure superlu is out of date and needs rebuilt for libgfortran.so.4
if I manually copy over the old libgfortran.so.3 to /usr/lib it works

@jvault

This comment has been minimized.

Show comment
Hide comment
@jvault

jvault Sep 18, 2017

Arch Linux.

Well, finely I can work this out. My solution was to manually move
opentoonz/thirdparty/libmypaint/dist/32/include/libmypaint/mypaint-brush.h
(along with the other scripts in the directory) to
opentoonz/toonz/sources/include
during building. That works is independent of global libmypaint installed.

Just as retrotails have mentioned to run the binary a copy of /usr/lib/libgfortran.so.4 must be renamed.

jvault commented Sep 18, 2017

Arch Linux.

Well, finely I can work this out. My solution was to manually move
opentoonz/thirdparty/libmypaint/dist/32/include/libmypaint/mypaint-brush.h
(along with the other scripts in the directory) to
opentoonz/toonz/sources/include
during building. That works is independent of global libmypaint installed.

Just as retrotails have mentioned to run the binary a copy of /usr/lib/libgfortran.so.4 must be renamed.

ideasman42 added a commit that referenced this issue Nov 30, 2017

@ideasman42

This comment has been minimized.

Show comment
Hide comment
@ideasman42

ideasman42 Nov 30, 2017

Collaborator

Committed change to CMake so this works in ArchLinux (libmypaint package added to readme),
now other distros need to have their readme updated too (noted as TODO's)

Collaborator

ideasman42 commented Nov 30, 2017

Committed change to CMake so this works in ArchLinux (libmypaint package added to readme),
now other distros need to have their readme updated too (noted as TODO's)

@ideasman42

This comment has been minimized.

Show comment
Hide comment
@ideasman42

ideasman42 Dec 6, 2017

Collaborator

Closing, we can accept changes to build instruction PR's as they are submitted.

Collaborator

ideasman42 commented Dec 6, 2017

Closing, we can accept changes to build instruction PR's as they are submitted.

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