Could you post your script here?
There are differences between Debian Jessie and Stretch. It seems to me that Deepin is based on the Stretch.
I have built FreeCAD on Jessie and Xenial but with Stretch there is still something missing.
Actually I can compile and run FreeCAD in the start module, but when I change shape (part for example or any other) it gives an error like:
libTKCAF.so.7: can not open shared object file: No such file or directory