Giter Site home page Giter Site logo

build-and-run 运行报错 about simple HOT 3 CLOSED

wangfenjin avatar wangfenjin commented on May 20, 2024
build-and-run 运行报错

from simple.

Comments (3)

zrina1314 avatar zrina1314 commented on May 20, 2024

手动编译也报错

zyf@zyfdeiMac ~ % cd /Users/zyf/Desktop/Project/simple-master
zyf@zyfdeiMac simple-master % mkdir build
zyf@zyfdeiMac simple-master % cd build
zyf@zyfdeiMac build % cmake ..
-- The C compiler identification is AppleClang 12.0.0.12000032
-- The CXX compiler identification is AppleClang 12.0.0.12000032
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/zyf/Desktop/Project/simple-master/build/test/googletest-download
Scanning dependencies of target googletest
[ 11%] Creating directories for 'googletest'
[ 22%] Performing download step (download, verify and extract) for 'googletest'
-- Downloading...
dst='/Users/zyf/Desktop/Project/simple-master/build/test/googletest-download/googletest-prefix/src/release-1.10.0.zip'
timeout='none'
-- Using src='https://github.com/google/googletest/archive/release-1.10.0.zip'
-- [download 100% complete]
-- Downloading... done
-- extracting...
src='/Users/zyf/Desktop/Project/simple-master/build/test/googletest-download/googletest-prefix/src/release-1.10.0.zip'
dst='/Users/zyf/Desktop/Project/simple-master/build/test/googletest-src'
-- extracting... [tar xfz]
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done
[ 33%] No patch step for 'googletest'
[ 44%] No update step for 'googletest'
[ 55%] No configure step for 'googletest'
[ 66%] No build step for 'googletest'
[ 77%] No install step for 'googletest'
[ 88%] No test step for 'googletest'
[100%] Completed 'googletest'
[100%] Built target googletest
-- Found PythonInterp: /usr/bin/python (found version "2.7.16")
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE
CMake Warning (dev) at /Users/zyf/Library/Android/sdk/cmake/3.10.2.4988404/share/cmake-3.10/Modules/GoogleTest.cmake:254 (if):
Policy CMP0057 is not set: Support new IN_LIST if() operator. Run "cmake
--help-policy CMP0057" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.

IN_LIST will be interpreted as an operator when the policy is set to NEW.
Since the policy is not set the OLD behavior will be used.
Call Stack (most recent call first):
test/CMakeLists.txt:44 (gtest_add_tests)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Error at /Users/zyf/Library/Android/sdk/cmake/3.10.2.4988404/share/cmake-3.10/Modules/GoogleTest.cmake:254 (if):
if given arguments:

"TARGET" "IN_LIST" "allKeywords"

Unknown arguments specified
Call Stack (most recent call first):
test/CMakeLists.txt:44 (gtest_add_tests)

-- Configuring incomplete, errors occurred!
See also "/Users/zyf/Desktop/Project/simple-master/build/CMakeFiles/CMakeOutput.log".

from simple.

wangfenjin avatar wangfenjin commented on May 20, 2024

第一个错是因为你的机器连不上 github: curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused。

这个脚本会去 github 下载一个 bash 的脚本,不过只是为了好看

from simple.

wangfenjin avatar wangfenjin commented on May 20, 2024

第二个错是因为你的 cmake 版本有点旧有个 bug,参考 maps-gpu/MAPS#7 (comment)

不过我已经按照它的建议做了一个 fix, 你可以再试试

from simple.

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.