Troubleshooting appimage build

So I’m trying to build an appimage following the instructions here: https://docs.appimage.org/packaging-guide/from-source/native-binaries.html.

However, when running

make install -DESTDIR=AppDir
.../linuxdeploy-x86_64.AppImage --appdir AppDir

I get an error:

-- Deploying dependencies for existing files in AppDir -- 
Deploying dependencies for ELF file AppDir/usr/bin/FreeCADCmd 
ERROR: Could not find dependency: libFreeCADApp.so 
ERROR: Failed to deploy dependencies for existing files

The result is slightly better when running

cmake . -DCMAKE_INSTALL_PREFIX=/path/to/freecad-install/usr/
make install
.../linuxdeploy-x86_64.AppImage --appdir /path/to/freecad-install/

But that still halts at

ERROR: Could not find dependency: Import.so 
ERROR: Failed to deploy dependencies for existing files

Any help would be appreciated.

you may want to ping looo on this

Hi looo, tagging on Kunda’s suggestion. Do you have any idea what might be happening?

I think looo doesn’t follow this procedure so I don’t know if he would be of much help

If he can get me a step by step process that works for him, I’d be fine with that. (probably) unless that involves downloading a large amount of dependencies.

I think that @looo has published somewhere the script he uses to make the Appimage:

https://github.com/FreeCAD/FreeCAD-Bundle

Regards

Carlo D.