bobrofon / easysshfs

SSHFS for Android
MIT License
106 stars 16 forks source link

./build.sh: not found #16

Closed Rudloff closed 5 years ago

Rudloff commented 5 years ago

Hello,

I am trying to build 0.5.1 for F-Droid (https://github.com/bobrofon/easysshfs/issues/7). I did not find any build instructions so I am following these steps: https://github.com/bobrofon/easysshfs/blob/1a4e5f27da74422827213dae25a966422d686bcf/.travis.yml#L16

But make fails with the following error:

/usr/bin/cmake -S/home/pierre/www/easysshfs -B/home/pierre/www/easysshfs/build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /home/pierre/www/easysshfs/build/CMakeFiles /home/pierre/www/easysshfs/build/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1] : on entre dans le répertoire « /home/pierre/www/easysshfs/build »
make -f sshfs-world/CMakeFiles/sshfs-world.dir/build.make sshfs-world/CMakeFiles/sshfs-world.dir/depend
make[2] : on entre dans le répertoire « /home/pierre/www/easysshfs/build »
cd /home/pierre/www/easysshfs/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/pierre/www/easysshfs /home/pierre/www/easysshfs/sshfs-world /home/pierre/www/easysshfs/build /home/pierre/www/easysshfs/build/sshfs-world /home/pierre/www/easysshfs/build/sshfs-world/CMakeFiles/sshfs-world.dir/DependInfo.cmake --color=
make[2] : on quitte le répertoire « /home/pierre/www/easysshfs/build »
make -f sshfs-world/CMakeFiles/sshfs-world.dir/build.make sshfs-world/CMakeFiles/sshfs-world.dir/build
make[2] : on entre dans le répertoire « /home/pierre/www/easysshfs/build »
[ 12%] Generating arm-container.stamp
cd /home/pierre/www/easysshfs/sshfs-world/build-universe && ./build.sh arm
/bin/sh: 1: ./build.sh: not found
sshfs-world/CMakeFiles/sshfs-world.dir/build.make:103 : la recette pour la cible « sshfs-world/arm-container.stamp » a échouée
make[2]: *** [sshfs-world/arm-container.stamp] Erreur 127
make[2] : on quitte le répertoire « /home/pierre/www/easysshfs/build »
CMakeFiles/Makefile2:127 : la recette pour la cible « sshfs-world/CMakeFiles/sshfs-world.dir/all » a échouée
make[1]: *** [sshfs-world/CMakeFiles/sshfs-world.dir/all] Erreur 2
make[1] : on quitte le répertoire « /home/pierre/www/easysshfs/build »
Makefile:83 : la recette pour la cible « all » a échouée
make: *** [all] Erreur 2

Am I missing something?

bobrofon commented 5 years ago

At least on travis it builds fine now (except one issue with lost tag in one of the git submodules).

[ 12%] Generating arm-container.stamp cd /home/pierre/www/easysshfs/sshfs-world/build-universe && ./build.sh arm /bin/sh: 1: ./build.sh: not found

There are only two things that sh could 'not found':

  1. ./build.sh if submodule build-universe is not initialized
  2. interpreter in shebang but it is the #! /bin/sh itself

Most likely git submodule update --init --recursive should fix the problem.

Rudloff commented 5 years ago

Oh sorry, I totally forgot that git submodule update is not recursive by default. It finds it now.