euler icon indicating copy to clipboard operation
euler copied to clipboard

Mac上编译源代码遇到的问题

Open njumathdy opened this issue 6 years ago • 7 comments

在mac上编译时遇到图中所报的错误,求解。

-- tensorflow_framework library found: in TF_FRAMEWORK-NOTFOUND CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: TF_FRAMEWORK linked by target "tf_euler" in directory /Users/dysaccount/Desktop/code/library/euler/tf_euler

--Configuring incomplete, errors occurred! See also "/Users/dysaccount/Desktop/code/library/euler/build/CMakeFiles/CMakeOutput.log". See also "/Users/dysaccount/Desktop/code/library/euler/build/CMakeFiles/CMakeError.log".

我的clang版本信息如下:

Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1 Apple LLVM version 10.0.0 (clang-1000.10.44.4) Target: x86_64-apple-darwin18.2.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin

cmake版本信息如下:

cmake version 3.12.4

njumathdy avatar Mar 20 '19 15:03 njumathdy

@njumathdy 你执行python -c "import tensorflow as tf; print(tf.sysconfig.get_lib())"的结果是什么?

yangsiran avatar Mar 20 '19 23:03 yangsiran

我执行上面语句后显示

tf.estimator not installed 更新相关包后该问题已解决,感谢🙏

njumathdy avatar Mar 21 '19 02:03 njumathdy

@njumathdy 你执行python -c "import tensorflow as tf; print(tf.sysconfig.get_lib())"的结果是什么?

我也遇到了这个问题,执行上面语句显示 /home/anaconda3/envs/py27/lib/python2.7/site-packages/tensorflow_core

我使用的是anaconda3中的python2.7虚拟环境,请问如何解决,谢谢

normanShan avatar Dec 26 '19 02:12 normanShan

See https://github.com/alibaba/euler/issues/148

sidazhou avatar Mar 12 '20 13:03 sidazhou

借楼 我这里编译报有个变量未定义 看日志似乎上面一行把下一行的变量注释了 image

liulichao02 avatar Nov 05 '20 11:11 liulichao02

好吧 好像不是上一行定义的 说错了

liulichao02 avatar Nov 05 '20 11:11 liulichao02

我查了下网上解释是切换clang -》 gcc 我切了gcc-10 仍然存在上图的错误

liulichao02 avatar Nov 05 '20 12:11 liulichao02