jasper-software / jasper

Official Repository for the JasPer Image Coding Toolkit
http://www.ece.uvic.ca/~mdadams/jasper
Other
223 stars 101 forks source link

Generate libtool files for static builds #186

Closed fiorix closed 3 years ago

fiorix commented 5 years ago

Building jasper-2.0.14 static, and looking at the lib64 directory there's libjasper.a but no libjasper.la. The result is that projects such as GraphicsMagick which depend on libjasper and use libtool cannot statically link to libjasper due to the lack of libtool's .la file.

I'm no cmake expert but found https://gitlab.kitware.com/cmake/community/wikis/contrib/macros/LibtoolFile and tried to add the .cmake file with the macro definition in build/cmake/modules then call the macro in src/libjasper/CMakeLists.txt but it doesn't work, complains the macro CREATE_LIBTOOL_FILE doesn't exist.

I'd really appreciate if this could be added and I'm willing to help testing.

MaxKellermann commented 4 years ago

What exactly is the problem? You wrote "cannot statically link to libjasper due to the lack of libtool's .la file", but that is very unspecific. It does not describe any problem. Btw. your PR https://github.com/jasper-software/jasper/pull/187 was closed for the wrong reasons (IMHO).

mdadams commented 3 years ago

Since several months have passed without a response to Max's request for more information (so that the problem can be better understood), I am closing this issue.