Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

./schema/generate.sh failed #37

Closed
shinexia opened this issue May 9, 2019 · 8 comments
Closed

./schema/generate.sh failed #37

shinexia opened this issue May 9, 2019 · 8 comments

Comments

@shinexia
Copy link

shinexia commented May 9, 2019

Reproduction step:

git clone 
cd path/to/mnn
./schema/generate.sh

Outputs:

$ ./schema/generate.sh
*** building flatc ***
CMake Error: Could not find CMAKE_ROOT !!!
CMake has most likely not been installed correctly.
Modules directory not found in

CMake Error: Error executing cmake::LoadCache(). Aborting.

*** cleaning up ***
*** generating fbs under default ***
xargs: ../../3rd_party/flatbuffers/tmp/flatc: No such file or directory
===> Generating Schema...
*** building flatc ***
CMake Error: Could not find CMAKE_ROOT !!!
CMake has most likely not been installed correctly.
Modules directory not found in

CMake Error: Error executing cmake::LoadCache(). Aborting.

xargs: ../../3rd_party/flatbuffers/tmp/flatc: No such file or directory
./generate_schema.sh: line 39: ../../3rd_party/flatbuffers/tmp/flatc: No such file or directory
===> Done!
*** done ***

Environments

ubuntu 18.04
gcc (Ubuntu 7.4.0-1ubuntu1~18.04) 7.4.0
cmake version 3.10.2
export CMAKE_ROOT=/usr/share/cmake-3.10

@czy2014hust
Copy link
Collaborator

/schema/generate.sh ==> cd schema && ./generate.sh

@shinexia
Copy link
Author

shinexia commented May 9, 2019

/schema/generate.sh ==> cd schema && ./generate.sh

same results

@shinexia
Copy link
Author

shinexia commented May 9, 2019

build succeed on centos 7 (docker), with:
cmake version 2.8.12.2
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-36)

but still failed on ubuntu 18.04

@li-qing
Copy link
Contributor

li-qing commented May 9, 2019

you could try export CMAKE_ROOT=/path/to/where_cmake_installed

but re-installing cmake is more recommended.

@li-qing li-qing closed this as completed May 9, 2019
@shinexia
Copy link
Author

shinexia commented May 9, 2019

fixed after running this:
sudo apt install extra-cmake-modules

@JaySimple
Copy link

Hi, sry to disturb. A similar problem occurs in my case, and the following is the output:

root@6d3edda80bab:~/MNN# ./schema/generate.sh
*** building flatc ***
CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
See also "/root/MNN/3rd_party/flatbuffers/tmp/CMakeFiles/CMakeOutput.log".
*** cleaning up ***
*** generating fbs under default ***
xargs: ../../3rd_party/flatbuffers/tmp/flatc: No such file or directory
===> Generating Schema...
*** building flatc ***
CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
See also "/root/MNN/3rd_party/flatbuffers/tmp/CMakeFiles/CMakeOutput.log".
xargs: ../../3rd_party/flatbuffers/tmp/flatc: No such file or directory
./generate_schema.sh: line 39: ../../3rd_party/flatbuffers/tmp/flatc: No such file or directory
===> Done!
*** done ***

Environments:
linux 16.04(docker)
cmake version 3.13.3
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.11)

I have installed extra-cmake-modules, but no changes. Anybody help me out? Thx.

@li-qing
Copy link
Contributor

li-qing commented May 17, 2019

Unix Makefiles

perhaps make is not installed in your system? try sudo apt-get install make.

@JaySimple
Copy link

Unix Makefiles

perhaps make is not installed in your system? try sudo apt-get install make.

Thx. I have installed the make, but the problem remains. Anyway, I read the script generate.sh, implement the commands one by one, and then success to complete this step. A little strange, there may be some points i missed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants