Giter Club home page Giter Club logo

Comments (7)

luminocean avatar luminocean commented on May 21, 2024
$ brew install cmake
$ cd github/json-tutorial/tutorial01
$ mkdir build
$ cd build
$ cmake -DCMAKE_BUILD_TYPE=Debug ..
$ make

注意示例里面是先创建了build目录以后,cd到这个build目录里面再执行cmake的。你执行命令的位置不对。
cmake要求指定的目录里面有CMakeLists.txt文件。

from json-tutorial.

yangruihan avatar yangruihan commented on May 21, 2024

cmake -DCMAKE_BUILD_TYPE=Debug ..

Debug 后面跟的是路径,..表示上一级目录

from json-tutorial.

KivyGogh avatar KivyGogh commented on May 21, 2024

我确实没进到build里面……但是刚才cd build了一下,然后cmake -DCMAKE_BUILD_TYPE=Debug ..还是不行,目录里没CMakeLists.txt文件。但是我确实很认真的brew install cmake了啊 😢

from json-tutorial.

miloyip avatar miloyip commented on May 21, 2024

你在哪个目录?键入pwd 看看,再 ls .. 看看有没有 CMakeLists.txt

from json-tutorial.

KivyGogh avatar KivyGogh commented on May 21, 2024
goudandeMacBook-Pro:~ goudan$ cd mini-json
goudandeMacBook-Pro:mini-json goudan$ pwd
/Users/kivygogh/mini-json
goudandeMacBook-Pro:mini-json goudan$ cd build
goudandeMacBook-Pro:build goudan$ pwd
/Users/kivygogh/mini-json/build
goudandeMacBook-Pro:build goudan$ ls ..
build
goudandeMacBook-Pro:build goudan$ cd CMakeLists.txt
-bash: cd: CMakeLists.txt: No such file or directory
goudandeMacBook-Pro:build goudan$ cd ..
goudandeMacBook-Pro:mini-json goudan$ cd CMakeLists.txt
-bash: cd: CMakeLists.txt: No such file or directory

...是我没装好么T-T

from json-tutorial.

miloyip avatar miloyip commented on May 21, 2024

你好像没有下载或 clone 这个项目的源文件。
简单一点的话,在主面右方找绿色的 Clone or download 按钮,或直接点 https://github.com/miloyip/json-tutorial/archive/master.zip

from json-tutorial.

KivyGogh avatar KivyGogh commented on May 21, 2024

啊……抱歉🙈谢谢

from json-tutorial.

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.