-
Notifications
You must be signed in to change notification settings - Fork 3
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
Generation Error #1
Comments
Hello Zixin!
From the error message, it seems CMake is asking for the IOMP5LIB, which is
the core of OpenMP that you may find here: https://mac.r-project.org/openmp/
Link that library and it should work.
…On Tue, Feb 22, 2022 at 11:06 AM Zixin SONG ***@***.***> wrote:
Hi there,
I encountered a generation error when following the steps.
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: IOMP5LIB linked by target "TestOMP" in
directory /Users/Song/Developer/cmake-xcode-openmp
Configuration can be done correct. I think I have followed the steps
correctly.
Really appreciate if you can solve the error.
Thanks in advance
[image: Screen Shot 2022-02-22 at 19 05 34]
<https://user-images.githubusercontent.com/12102526/155201268-e56a3fe1-1223-43f4-b35f-55f2924567c2.png>
—
Reply to this email directly, view it on GitHub
<#1>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABJCVU3G3HCKP43SPPSG5ZLU4PNEVANCNFSM5PCIPOXQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
--
*Raymond Yun Fei*
Computer Scientist
3D & Immersive Tech Transfer Team
Adobe San Francisco
*Portfolio: yunfei.work <http://yunfei.work/>*
|
So you have set the variable IOMP5LIB in CMake to this path (/usr/local/lib/libomp.dylib) and there's still the error? |
Sorry that I am not sure which step is related with "set the variable IOMP5LIB in CMake to the path". Basically, I just followed all the steps in the readme including this webpage https://mac.r-project.org/openmp/. It can configure without error but generate with error just like above. |
You can type the path of libomp.dylib into the "value" column of the line with name IOMP5LIB. |
Thank you for the timely reply. It built without error! I can see the C++ project on Xcode. I need to write in C. I tried to add a C file to the project. Both the C++ and C file can be built without error but I can't run them. Both the Run button on menu bar and Cmd + R did not work. many thanks |
You can choose which executable to run in the Product -> Scheme menu. There might be multiple projects but one of them should be a runnable executable. |
Hi there,
I encountered a generation error when following the steps.
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: IOMP5LIB linked by target "TestOMP" in directory /Users/Song/Developer/cmake-xcode-openmp
Configuration can be done correct. I think I have followed the steps correctly.
Really appreciate if you can solve the error.
Thanks in advance
The text was updated successfully, but these errors were encountered: