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

如何在mac m1上解决编译时候openmp找不到问题? #195

Open
MoonBunnyZZZ opened this issue Apr 23, 2024 · 9 comments
Open

如何在mac m1上解决编译时候openmp找不到问题? #195

MoonBunnyZZZ opened this issue Apr 23, 2024 · 9 comments

Comments

@MoonBunnyZZZ
Copy link

MoonBunnyZZZ commented Apr 23, 2024

@bupticybee
cmake 3.27
brew安装了libomp之后,cmake -DOpenMP_CXX_FLAG="-Xclang -fopenmp"
-DOpenMP_CXX_INCLUDE_DIR=/opt/homebrew/opt/libomp/include
-DOpenMP_CXX_LIB_NAMES=libomp -DOpenMP_C_FLAG="-Xclang -fopenmp"
-DOpenMP_C_INCLUDE_DIR=/opt/homebrew/opt/libomp/include
-DOpenMP_C_LIB_NAMES=libomp
-DOpenMP_libomp_LIBRARY=/opt/homebrew/opt/libomp/lib/libomp.dylib
依旧找不到omp库

@bupticybee
Copy link
Owner

@bupticybee cmake 3.27 brew安装了libomp之后,cmake -DOpenMP_CXX_FLAG="-Xclang -fopenmp" -DOpenMP_CXX_INCLUDE_DIR=/opt/homebrew/opt/libomp/include -DOpenMP_CXX_LIB_NAMES=libomp -DOpenMP_C_FLAG="-Xclang -fopenmp" -DOpenMP_C_INCLUDE_DIR=/opt/homebrew/opt/libomp/include -DOpenMP_C_LIB_NAMES=libomp -DOpenMP_libomp_LIBRARY=/opt/homebrew/opt/libomp/lib/libomp.dylib 依旧找不到omp库

不好意思我没有M1苹果,这个真的不太好复现

@MoonBunnyZZZ
Copy link
Author

@bupticybee cmake 3.27 brew安装了libomp之后,cmake -DOpenMP_CXX_FLAG="-Xclang -fopenmp" -DOpenMP_CXX_INCLUDE_DIR=/opt/homebrew/opt/libomp/include -DOpenMP_CXX_LIB_NAMES=libomp -DOpenMP_C_FLAG="-Xclang -fopenmp" -DOpenMP_C_INCLUDE_DIR=/opt/homebrew/opt/libomp/include -DOpenMP_C_LIB_NAMES=libomp -DOpenMP_libomp_LIBRARY=/opt/homebrew/opt/libomp/lib/libomp.dylib 依旧找不到omp库

不好意思我没有M1苹果,这个真的不太好复现

好的,我再摸搜摸搜。解决了的话来回复。
另外,b站视频我看了,还是对软件里三条街的设置不甚明了,有什么文档推荐看看吗?

@bupticybee
Copy link
Owner

@bupticybee cmake 3.27 brew安装了libomp之后,cmake -DOpenMP_CXX_FLAG="-Xclang -fopenmp" -DOpenMP_CXX_INCLUDE_DIR=/opt/homebrew/opt/libomp/include -DOpenMP_CXX_LIB_NAMES=libomp -DOpenMP_C_FLAG="-Xclang -fopenmp" -DOpenMP_C_INCLUDE_DIR=/opt/homebrew/opt/libomp/include -DOpenMP_C_LIB_NAMES=libomp -DOpenMP_libomp_LIBRARY=/opt/homebrew/opt/libomp/lib/libomp.dylib 依旧找不到omp库

不好意思我没有M1苹果,这个真的不太好复现

好的,我再摸搜摸搜。解决了的话来回复。 另外,b站视频我看了,还是对软件里三条街的设置不甚明了,有什么文档推荐看看吗?

可以查一下piosolver的视频,参数什么的都是相通的

@MoonBunnyZZZ
Copy link
Author

@bupticybee cmake 3.27 brew安装了libomp之后,cmake -DOpenMP_CXX_FLAG="-Xclang -fopenmp" -DOpenMP_CXX_INCLUDE_DIR=/opt/homebrew/opt/libomp/include -DOpenMP_CXX_LIB_NAMES=libomp -DOpenMP_C_FLAG="-Xclang -fopenmp" -DOpenMP_C_INCLUDE_DIR=/opt/homebrew/opt/libomp/include -DOpenMP_C_LIB_NAMES=libomp -DOpenMP_libomp_LIBRARY=/opt/homebrew/opt/libomp/lib/libomp.dylib 依旧找不到omp库

不好意思我没有M1苹果,这个真的不太好复现

好的,我再摸搜摸搜。解决了的话来回复。 另外,b站视频我看了,还是对软件里三条街的设置不甚明了,有什么文档推荐看看吗?

可以查一下piosolver的视频,参数什么的都是相通的

大佬和GTO wizard做过对比测试吗

@bupticybee
Copy link
Owner

@bupticybee cmake 3.27 brew安装了libomp之后,cmake -DOpenMP_CXX_FLAG="-Xclang -fopenmp" -DOpenMP_CXX_INCLUDE_DIR=/opt/homebrew/opt/libomp/include -DOpenMP_CXX_LIB_NAMES=libomp -DOpenMP_C_FLAG="-Xclang -fopenmp" -DOpenMP_C_INCLUDE_DIR=/opt/homebrew/opt/libomp/include -DOpenMP_C_LIB_NAMES=libomp -DOpenMP_libomp_LIBRARY=/opt/homebrew/opt/libomp/lib/libomp.dylib 依旧找不到omp库

不好意思我没有M1苹果,这个真的不太好复现

好的,我再摸搜摸搜。解决了的话来回复。 另外,b站视频我看了,还是对软件里三条街的设置不甚明了,有什么文档推荐看看吗?

可以查一下piosolver的视频,参数什么的都是相通的

大佬和GTO wizard做过对比测试吗

没有的,和piosolver必过,差不多

@fmo-mt
Copy link

fmo-mt commented May 10, 2024

M1用Qt打开,修改下TexasSolverGui.pro

加上你 omp.h 的头文件路径
加上 libomp.dylib 的库路径
直接构建就可以了

@MoonBunnyZZZ
Copy link
Author

M1用Qt打开,修改下TexasSolverGui.pro

加上你 omp.h 的头文件路径 加上 libomp.dylib 的库路径 直接构建就可以了

nice
请问知道为什么找不到openmp库的原因吗

@bupticybee
Copy link
Owner

M1用Qt打开,修改下TexasSolverGui.pro
加上你 omp.h 的头文件路径 加上 libomp.dylib 的库路径 直接构建就可以了

nice 请问知道为什么找不到openmp库的原因吗

似乎是自带的编译器没有带openmp吧

@fmo-mt
Copy link

fmo-mt commented May 15, 2024

M1用Qt打开,修改下TexasSolverGui.pro
加上你 omp.h 的头文件路径 加上 libomp.dylib 的库路径 直接构建就可以了

nice 请问知道为什么找不到openmp库的原因吗

装了omp找不到的话可能是环境变量的原因

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants