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

Generation Error #1

Closed
SilkSong opened this issue Feb 22, 2022 · 7 comments
Closed

Generation Error #1

SilkSong opened this issue Feb 22, 2022 · 7 comments

Comments

@SilkSong
Copy link

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

Screen Shot 2022-02-22 at 19 05 34

@nepluno
Copy link
Owner

nepluno commented Feb 22, 2022 via email

@SilkSong
Copy link
Author

This is one of the step you mentioned in the readme. I think I have followed it before. And I just did it once again but the error is still there. I got the same verification result as the webpage. Is there anything I did wrong?
Screen Shot 2022-02-22 at 20 04 08

@nepluno
Copy link
Owner

nepluno commented Feb 22, 2022

So you have set the variable IOMP5LIB in CMake to this path (/usr/local/lib/libomp.dylib) and there's still the error?

@SilkSong
Copy link
Author

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.

@nepluno
Copy link
Owner

nepluno commented Feb 22, 2022

You can type the path of libomp.dylib into the "value" column of the line with name IOMP5LIB.

@SilkSong
Copy link
Author

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.
Tbh, I am really a beginner on C/C++ programming. Can I just do sth to make it run ? or I need to learn more first then figure out how to run it by myself.

many thanks

@nepluno
Copy link
Owner

nepluno commented Feb 23, 2022

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.

@nepluno nepluno closed this as completed Feb 23, 2022
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

2 participants