I am using Debian 9, python 3.7.3 and cx_Freeze 6.0b1. I spent some time installing cx_Freeze on Windows 7 and Debian, I managed to compile the script on both platforms.
Try to manually copy all the lib*.so.*
files into the lib
subdirectory of the frozen application before sharing. Does this solve your problem? If yes, you could automatize this step using shutil.copy2
at the end of your setup.py
script for example.
Regarding your comment:
The app is still looking for the files in the absolute path, and I don't understand why
I guess you refer to the paths appearing in the tracebacks. These are filenames attached to code objects which presumably do not get actualized when the frozen application is moved. You can let cx_Freeze replace these absolute paths through relative ones by adding an entry
'replace_paths': [("*", "")]
to the build_exe
option dictionary in the setup.py
script. See issue #247 on the cx_Freeze repository and the links therein.