Giter Site home page Giter Site logo

./schema/generate.sh failed about mnn HOT 8 CLOSED

alibaba avatar alibaba commented on May 21, 2024
./schema/generate.sh failed

from mnn.

Comments (8)

czy2014hust avatar czy2014hust commented on May 21, 2024

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

from mnn.

shinexia avatar shinexia commented on May 21, 2024

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

same results

from mnn.

shinexia avatar shinexia commented on May 21, 2024

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

from mnn.

li-qing avatar li-qing commented on May 21, 2024

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

but re-installing cmake is more recommended.

from mnn.

shinexia avatar shinexia commented on May 21, 2024

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

from mnn.

JaySimple avatar JaySimple commented on May 21, 2024

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.

from mnn.

li-qing avatar li-qing commented on May 21, 2024

Unix Makefiles

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

from mnn.

JaySimple avatar JaySimple commented on May 21, 2024

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.

from mnn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.