realthunder / FreeCADMakeImage

Scripts for making FreeCAD AppImage and more.
BSD 3-Clause "New" or "Revised" License
13 stars 11 forks source link

dh_install can not find some files #5

Open ceremcem opened 3 years ago

ceremcem commented 3 years ago

Following error is thrown nearly at the very end of the compilation process, on both Debian Buster and Ubuntu Bionic:

...
dh_install: Cannot find (any matches for) "usr/share/freecad-daily/Mod/Fem/femtest/utilstest.py" (tried in ., debian/tmp)

dh_install: freecad-daily-runtime missing files: usr/share/freecad-daily/Mod/Fem/femtest/utilstest.py
dh_install: Cannot find (any matches for) "usr/share/freecad-daily/Mod/Fem/femtest/testfiles/ccx/__init__.py" (tried in ., debian/tmp)

dh_install: freecad-daily-runtime missing files: usr/share/freecad-daily/Mod/Fem/femtest/testfiles/ccx/__init__.py
dh_install: Cannot find (any matches for) "usr/share/freecad-daily/Mod/Fem/femtest/testfiles/ccx/cube_mesh.py" (tried in ., debian/tmp)

dh_install: freecad-daily-runtime missing files: usr/share/freecad-daily/Mod/Fem/femtest/testfiles/ccx/cube_mesh.py
dh_install: Cannot find (any matches for) "usr/share/freecad-daily/Mod/Fem/femtest/testfiles/ccx/spine_mesh.py" (tried in ., debian/tmp)

dh_install: freecad-daily-runtime missing files: usr/share/freecad-daily/Mod/Fem/femtest/testfiles/ccx/spine_mesh.py
dh_install: Cannot find (any matches for) "usr/share/freecad-daily/Mod/Fem/femtest/testfiles/ccx/multimat_mesh.py" (tried in ., debian/tmp)

dh_install: freecad-daily-runtime missing files: usr/share/freecad-daily/Mod/Fem/femtest/testfiles/ccx/multimat_mesh.py
dh_install: Cannot find (any matches for) "usr/share/freecad-daily/Mod/Fem/femtest/testfiles/ccx/Flow1D_mesh.py" (tried in ., debian/tmp)

dh_install: freecad-daily-runtime missing files: usr/share/freecad-daily/Mod/Fem/femtest/testfiles/ccx/Flow1D_mesh.py
dh_install: Cannot find (any matches for) "usr/share/freecad-daily/Mod/Fem/femexamples/ccx_cantilever_std.py" (tried in ., debian/tmp)

dh_install: freecad-daily-runtime missing files: usr/share/freecad-daily/Mod/Fem/femexamples/ccx_cantilever_std.py
Failed to copy 'usr/share/freecad-daily/freecad-icon-16.png': No such file or directory at /usr/share/dh-exec/dh-exec-install-rename line 51, <> line 2.
dh_install: debian/freecad-daily-common.install (executable config) returned exit code 127
make: *** [debian/rules:3: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
debuild: fatal error at line 1182:
dpkg-buildpackage -us -uc -ui -b failed
ceremcem commented 3 years ago

Reproduction

I created the LXC container with the following command:

sudo lxc-create -n fc3 -t ubuntu -B btrfs -- -r bionic

Then logged into LXC container and typed:

ubuntu@fc3:~/build-fc-image/FreeCADMakeImage$ cd docker/
ubuntu@fc3:~/build-fc-image/FreeCADMakeImage/docker$ sudo ./setup.sh bionic_deps.sh 
[sudo] password for ubuntu: 
Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]    
Get:3 http://ppa.launchpad.net/freecad-maintainers/freecad-daily/ubuntu bionic InRelease [15.4 kB]
Get:4 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]      
Get:5 http://ppa.launchpad.net/freecad-maintainers/freecad-daily/ubuntu bionic/main amd64 Packages [18.5 kB]
Get:6 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [1,693 kB]
Fetched 1,904 kB in 4s (440 kB/s)                          
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
software-properties-common is already the newest version (0.96.24.32.14).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Hit:1 http://ppa.launchpad.net/freecad-maintainers/freecad-daily/ubuntu bionic InRelease
Hit:2 http://archive.ubuntu.com/ubuntu bionic InRelease                        
Hit:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease                
Hit:4 http://security.ubuntu.com/ubuntu bionic-security InRelease       
Reading package lists... Done                     
Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://ppa.launchpad.net/freecad-maintainers/freecad-daily/ubuntu bionic InRelease
Hit:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease            
Hit:4 http://security.ubuntu.com/ubuntu bionic-security InRelease       
Reading package lists... Done                      
Building dependency tree       
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
build-essential is already the newest version (12.4ubuntu1).
dh-exec is already the newest version (0.23build1).
dh-python is already the newest version (3.20180325ubuntu2).
doxygen is already the newest version (1.8.13-10).
fakeroot is already the newest version (1.22-2ubuntu1).
libboost-dev is already the newest version (1.65.1.0ubuntu1).
libboost-filesystem-dev is already the newest version (1.65.1.0ubuntu1).
libboost-program-options-dev is already the newest version (1.65.1.0ubuntu1).
libboost-thread-dev is already the newest version (1.65.1.0ubuntu1).
libdouble-conversion-dev is already the newest version (2.0.1-4ubuntu1).
liblz4-dev is already the newest version (0.0~r131-2ubuntu3).
libmetis-dev is already the newest version (5.1.0.dfsg-5).
libqt5svg5-dev is already the newest version (5.9.5-0ubuntu1).
lsb-release is already the newest version (9.20170808ubuntu1).
python-dev is already the newest version (2.7.15~rc1-1).
python-ply is already the newest version (3.11-1).
python3-ply is already the newest version (3.11-1).
libboost-date-time-dev is already the newest version (1.65.1.0ubuntu1).
libboost-graph-dev is already the newest version (1.65.1.0ubuntu1).
libboost-iostreams-dev is already the newest version (1.65.1.0ubuntu1).
libboost-python-dev is already the newest version (1.65.1.0ubuntu1).
libboost-regex-dev is already the newest version (1.65.1.0ubuntu1).
libboost-serialization-dev is already the newest version (1.65.1.0ubuntu1).
libboost-signals-dev is already the newest version (1.65.1.0ubuntu1).
libeigen3-dev is already the newest version (3.3.4-4).
libglew-dev is already the newest version (2.0.0-5).
libgts-bin is already the newest version (0.7.6+darcs121130-4).
libgts-dev is already the newest version (0.7.6+darcs121130-4).
libkdtree++-dev is already the newest version (0.7.1+git20101123-4build5).
libmedc-dev is already the newest version (3.0.6-11build1).
libproj-dev is already the newest version (4.9.3-2).
libqt5webkit5-dev is already the newest version (5.212.0~alpha2-7ubuntu1).
libqt5x11extras5-dev is already the newest version (5.9.5-0ubuntu1).
libqt5xmlpatterns5-dev is already the newest version (5.9.5-0ubuntu1).
libspnav-dev is already the newest version (0.2.3-1).
libvtk7-dev is already the newest version (7.1.1+dfsg1-2).
libxerces-c-dev is already the newest version (3.2.0+debian-2).
qttools5-dev is already the newest version (5.9.5-0ubuntu1).
swig is already the newest version (3.0.12-1).
apt-utils is already the newest version (1.6.12ubuntu0.1).
cmake is already the newest version (3.10.2-1ubuntu2.18.04.1).
debhelper is already the newest version (11.1.6ubuntu2).
desktop-file-utils is already the newest version (0.23-1ubuntu3.18.04.2).
devscripts is already the newest version (2.17.12ubuntu1.1).
gdb is already the newest version (8.1.1-0ubuntu1).
git is already the newest version (1:2.17.1-1ubuntu0.7).
libqt5opengl5-dev is already the newest version (5.9.5+dfsg-0ubuntu2.5).
libx11-dev is already the newest version (2:1.6.4-3ubuntu0.3).
python3-dev is already the newest version (3.6.7-1~18.04).
qtbase5-dev is already the newest version (5.9.5+dfsg-0ubuntu2.5).
wget is already the newest version (1.19.4-1ubuntu2.2).
libopencv-dev is already the newest version (3.2.0+dfsg-4ubuntu0.1).
libzipios++-dev is already the newest version (0.1.5.9+cvs.2007.04.28-10ubuntu0.18.04.1).
libcoin-dev is already the newest version (4.0.0~CMake~6f54f1602475+ds1-0ppa1~ubuntu18.04).
libocct-data-exchange-dev is already the newest version (7.3.0+dfsg1-5~ubuntu18.04.1).
libocct-ocaf-dev is already the newest version (7.3.0+dfsg1-5~ubuntu18.04.1).
libocct-visualization-dev is already the newest version (7.3.0+dfsg1-5~ubuntu18.04.1).
libpyside2-dev is already the newest version (5.11.2-0ppa2~ubuntu18.04).
libshiboken2-dev is already the newest version (5.11.2-0ppa2~ubuntu18.04).
netgen is already the newest version (6.2.1905+dfsg1-1~ubuntu18.04.1).
netgen-headers is already the newest version (6.2.1905+dfsg1-1~ubuntu18.04.1).
occt-draw is already the newest version (7.3.0+dfsg1-5~ubuntu18.04.1).
pybind11-dev is already the newest version (2.4.3-1~ubuntu18.04.1).
pyside2-tools is already the newest version (5.11.2-0ppa2~ubuntu18.04).
python-pyside2.qtcore is already the newest version (5.11.2-0ppa2~ubuntu18.04).
python-pyside2.qtgui is already the newest version (5.11.2-0ppa2~ubuntu18.04).
python-pyside2.qtsvg is already the newest version (5.11.2-0ppa2~ubuntu18.04).
python-pyside2.qtuitools is already the newest version (5.11.2-0ppa2~ubuntu18.04).
python-pyside2.qtwidgets is already the newest version (5.11.2-0ppa2~ubuntu18.04).
python-pyside2.qtxml is already the newest version (5.11.2-0ppa2~ubuntu18.04).
python3-pyside2.qtcore is already the newest version (5.11.2-0ppa2~ubuntu18.04).
python3-pyside2.qtgui is already the newest version (5.11.2-0ppa2~ubuntu18.04).
python3-pyside2.qtsvg is already the newest version (5.11.2-0ppa2~ubuntu18.04).
python3-pyside2.qtuitools is already the newest version (5.11.2-0ppa2~ubuntu18.04).
python3-pyside2.qtwidgets is already the newest version (5.11.2-0ppa2~ubuntu18.04).
python3-pyside2.qtxml is already the newest version (5.11.2-0ppa2~ubuntu18.04).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
ubuntu@fc3:~/build-fc-image/FreeCADMakeImage/docker$ cd ..
ubuntu@fc3:~/build-fc-image/FreeCADMakeImage/$ ./mkasm3.sh
...
realthunder commented 3 years ago

I didn't realise you are using my script to compile for ubuntu. What I mean by that post is for you to manually checkout my github repo in your lxc container. Install the build dependency, and do cmake. The FreeCADMakeImage scripts are for building release images. The bionic target there uses docker, which defeats the purpose of lxc. Besides, it uses a more complex making procedure to build both Python2 and Python3 binaries.

To install build dependency

sudo apt build-dep freecad

cmake command line. Assuming you checkout the repo in directory freecad-source

mkdir freecad-build
cd freecad-build
cmake ../freecad-source -DBUILD_QT5=ON -DPYTHON_EXECUTABLE=/usr/bin/python3