helios icon indicating copy to clipboard operation
helios copied to clipboard

Issue when building Docker images using build-image.sh script

Open myermo opened this issue 1 year ago • 0 comments

The problem @han16nah pointed out to me that the image builder script is not properly working with python3.6. The Helios compilation stage reports a linking error of the GDAL library.

How to reproduce ./build-image.sh -v 3.6 -b main

The linking process does not complete. The problem is that libgdal.so is trying to link against the libcurl.so.4 installed under /lib/x86_64-linux-gnu directory. The installed libcurl in the Dockerfile is located under /usr/lib/x86_64-linux-gnu directory. Note the /usr prefix.

We can fix that using patchelf:

patchelf --replace-needed libcurl.so.4 /usr/lib/x86_64-linux-gnu/libcurl.so lib/gdal/lib/libgdal.so

After that, GDAL is unable to link against the installed TIFF library.

I don't know what the problem may be, but what I know for sure is that working with GDAL is a headache.

I'll keep investigating the issue, I just leave the issue as a reminder to my future self.

myermo avatar Nov 25 '23 12:11 myermo