-
Notifications
You must be signed in to change notification settings - Fork 100
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
Provide artifacts with libtool and pkg-config files #36
Comments
Is this for Linux only? Is it a problem that the These files are very small so we could put them in the main tarballs, i.e. not delete them. Happy to accept a PR if you're able. |
This should be much easier now that we are building a single shared library with all its dependencies statically linked. You only have to include
# Download pre-built libvips binaries
mkdir -p /opt/libvips && cd /opt/libvips
curl -Ls https://github.com/lovell/sharp-libvips/releases/download/v8.15.3/libvips-8.15.3-linux-x64.tar.gz | tar -xzC .
# Download pkgconfig file
mkdir -p lib/pkgconfig && cd lib/pkgconfig
curl -OLs https://gist.github.com/kleisauke/8d93635010b371e154275e376272f8d4/raw/vips-cpp.pc
# Update the PKG_CONFIG_PATH environment variable,
# since libvips is installed in a non-standard prefix
export PKG_CONFIG_PATH=/opt/libvips/lib/pkgconfig
# Ensure dynamic linker finds the pre-built libvips binaries
export LD_LIBRARY_PATH=/opt/libvips/lib Note that if you need to use the string overload of $ readelf -Ws /opt/libvips/lib/libvips-cpp.so.42 | c++filt | grep -qF "new_from_buffer(std::__cxx11::" && echo "C++11 ABI used" || echo "C++03 ABI used"
C++03 ABI used
$ readelf -Ws /usr/lib64/libvips-cpp.so.42 | c++filt | grep -qF "new_from_buffer(std::__cxx11::" && echo "C++11 ABI used" || echo "C++03 ABI used"
C++11 ABI used |
Is this still something that might be useful? I guess the |
It could still be useful, I think. FWIW, I just updated https://gist.github.com/kleisauke/8d93635010b371e154275e376272f8d4 to make |
Hi!
Thanks for maintaining sharp and these native libraries for libvips! They're a great help to get started. 😃
I'd like to use the native libraries provided by this project in https://github.com/criteo/JVips instead of building the libraries and maintaining their build scripts in JVips, too.
Since it's a Java project using JNI to interface with the native libraries, I need to compile a small wrapper which requires the pkg-config (
*.pc
) and libtool (*.la
) files in order to be build.Unfortunately, those files are removed at the end of the Linux build script:
sharp-libvips/build/lin.sh
Lines 284 to 285 in 5007da5
@lovell Do you think it would be possible and sensible to provider an additional artifact with just these files for people to use the pre-built libraries of sharp-libvips and link them to their own C wrappers?
The text was updated successfully, but these errors were encountered: