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

编译c-api源码出错 #4302

Closed
ThomasLWang opened this issue Sep 21, 2017 · 6 comments
Closed

编译c-api源码出错 #4302

ThomasLWang opened this issue Sep 21, 2017 · 6 comments
Labels
User 用于标记用户问题

Comments

@ThomasLWang
Copy link

running build_scripts
error: file '/home/tom/workspace/paddle/build/paddle/trainer/paddle_trainer' does not exist
make[2]: *** [python/build/.timestamp] Error 1
make[1]: *** [python/CMakeFiles/paddle_python.dir/all] Error 2
make: *** [all] Error 2

@typhoonzero typhoonzero added Need More Details User 用于标记用户问题 labels Sep 21, 2017
@typhoonzero
Copy link
Contributor

typhoonzero commented Sep 21, 2017

请补充:

  1. paddle版本
  2. gcc版本
  3. 操作系统版本
  4. 编译命令

等信息。

@ThomasLWang
Copy link
Author

Ubuntu 14.04.3 amd64
paddle develop 最新
cmake -DWITH_C_API=ON -DWITH_SWIG_PY=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/home/paddle ..

@Xreki
Copy link
Contributor

Xreki commented Sep 21, 2017

  • 设置WITH_PYTHON=OFF
    设置了WITH_C_API=ON,在执行cmake命令时,应该有如下的警告输出:
It is suggest not embedded a python interpreter in Paddle 
    when using C-API. It will give an unpredictable behavior when using a 
    different Python interpreter from compiling.
  • 错误信息不全,请贴出执行make命令时最早出错的地方

@luotao1 luotao1 changed the title 编译源码出错 编译c-api源码出错 Sep 21, 2017
@ThomasLWang
Copy link
Author

就是这个问题,加了WITH_PYTHON=OFF之后就解决了。

@gongweibao
Copy link
Contributor

gongweibao commented Sep 22, 2017

不是很清楚为什么要自己编译?
然后,有没有看到内网的wiki页面?
@ThomasLWang

@ThomasLWang
Copy link
Author

需要个在ubuntu上用的binary

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
User 用于标记用户问题
Projects
None yet
Development

No branches or pull requests

4 participants