-
Notifications
You must be signed in to change notification settings - Fork 461
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
LINUX install doesn't work when building shared libraries is disabled #1155
Comments
Pardon my ignorance.....
Can you share more what you mean by try master and/or apply 66297f0?
I downloaded the package from the openjpeg.org site. I'm speculating that you're asking that I do a github pull?
John Rocha
From: Even Rouault [mailto:notifications@github.com]
Sent: Wednesday, October 17, 2018 1:40 PM
To: uclouvain/openjpeg <openjpeg@noreply.github.com>
Cc: John Rocha <rocha@stratovan.com>; Author <author@noreply.github.com>
Subject: Re: [uclouvain/openjpeg] LINUX install doesn't work when building shared libraries is disabled (#1155)
I believe this is a duplicate of #1019<#1019> ? Could you try master and/or apply 66297f0<66297f0> ?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#1155 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AmshFGz4iJRFMlvkMT4N7Y8LYG8DZSvYks5ul5WYgaJpZM4Xld57>.
|
@RochaStratovan Yes, "git clone https://github.com/uclouvain/openjpeg", or just download https://github.com/uclouvain/openjpeg/archive/master.zip |
@RochaStratovan , @rouault , #!/bin/sh root: ls INSTALL/lib/ root: ls INSTALL/bin winfried |
@RochaStratovan , @rouault ,
|
Hello @rouault , I retested with the master.zip as you instructed and it now works as expected. Thank you for your help. John
|
cmake error.
If we use cmake on Linux and disable shared libraries and do not build the codec then the install logic for the generated library fails. And causes an error message of:
CMake Error: INSTALL(EXPORT) given unknown export "OpenJPEGTargets"
Moreover when
make install
is invoked, it will not copy the static .a library file to the desired target.Below is an example reproduction:
`cmake .. \
I've root caused the problem to
src/lib/openjp2/CMakeLists.txt
.The logic for installing the library:
# Install library install(TARGETS ${INSTALL_LIBS} EXPORT OpenJPEGTargets RUNTIME DESTINATION ${OPENJPEG_INSTALL_BIN_DIR} COMPONENT Applications LIBRARY DESTINATION ${OPENJPEG_INSTALL_LIB_DIR} COMPONENT Libraries ARCHIVE DESTINATION ${OPENJPEG_INSTALL_LIB_DIR} COMPONENT Libraries )
uses the variable
${INSTALL_LIBS}
, however this variable is only set for LINUX ifBUILD_SHARED_LIBS
andBUILD_STATIC_LIBS
are both true. However I have shared libraries turned off.The workaround I've found is to just set INSTALL_LIBS to openjp2.
The text was updated successfully, but these errors were encountered: