GithubHelp home page GithubHelp logo

Comments (5)

stoneyang avatar stoneyang commented on May 2, 2024

It seem that you forgot the .. when you build PaddlePaddle under the build directory. Because CMakeLists.txt is under the PaddlePaddle's root directory, which is just outside your current build directory:

cmake -DWITH_GPU=OFF -DWITH_DOC=OFF ..

from paddle.

wangmiao1981 avatar wangmiao1981 commented on May 2, 2024

Yes. Add .. cmake works fine.

Then, I copy "make -j nproc && make install" in the document.

make: *** No targets specified and no makefile found. Stop.

The document should add "cd .." before make? I can build successfully outside build folder.

Or I make another mistake?

from paddle.

gangliao avatar gangliao commented on May 2, 2024

http://www.paddlepaddle.org/doc/build/build_from_source.html

Do you follow the build from source page and set make install path?

git clone https://github.com/baidu/Paddle paddle
cd paddle
mkdir build
cd build

  1. you can add build option here, such as:
    cmake -DWITH_GPU=ON -DWITH_DOC=OFF -DCMAKE_INSTALL_PREFIX=<path to install> ..

make -j 'nproc' && make install

  1. PaddlePaddle installation path

export PATH=<path to install>/bin:$PATH

from paddle.

stoneyang avatar stoneyang commented on May 2, 2024

@wangmiao1981 seems that no Makefile's generated by cmake under the build directory.

You should check against the steps provided by @gangliao with yours, clean the repo, take the building steps again, and mind whether the Makefile's generated after cmake -DWITH_GPU=OFF -DWITH_DOC=OFF .. and under the very build directory, just proceed:

# if one would like to install PaddlePaddle into the system, 
# sudo before make install should be added
make -j `nproc` && make install

from paddle.

wangmiao1981 avatar wangmiao1981 commented on May 2, 2024

Yes. I built successfully once and installed it. Then, I check out a branch and try to play with it.

For that branch, I did compile again without installation. Then, I made once mistake by missing .. in the cmake. After fix that, I type make -jnproc`` inside build fold and saw the error above.

For some reason, Makefile is not generated. I will try again. Thanks for all your reply.

from paddle.

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.