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

compile error in ubuntu23.04 #15

Open
cloudQuant opened this issue Jun 11, 2024 · 2 comments
Open

compile error in ubuntu23.04 #15

cloudQuant opened this issue Jun 11, 2024 · 2 comments

Comments

@cloudQuant
Copy link

/home/yun/Documents/cpp_img_demos/implot_demos/common/App.cpp: In constructor ‘App::App(std::string, int, int, int, const char**)’:
/home/yun/Documents/cpp_img_demos/implot_demos/common/App.cpp:152:5: error: ‘NvOptimusEnablement’ was not declared in this scope
  152 |     NvOptimusEnablement = AmdPowerXpressRequestHighPerformance = result["gpu"].as<bool>();
      |     ^~~~~~~~~~~~~~~~~~~
/home/yun/Documents/cpp_img_demos/implot_demos/common/App.cpp:152:27: error: ‘AmdPowerXpressRequestHighPerformance’ was not declared in this scope
  152 |     NvOptimusEnablement = AmdPowerXpressRequestHighPerformance = result["gpu"].as<bool>();
      |                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gmake[2]: *** [CMakeFiles/app.dir/build.make:76:CMakeFiles/app.dir/common/App.cpp.o] 错误 1
gmake[1]: *** [CMakeFiles/Makefile2:690:CMakeFiles/app.dir/all] 错误 2
gmake: *** [Makefile:136:all] 错误 2
@mithgil
Copy link

mithgil commented Aug 25, 2024

Hi cloudQunat,

I actually have the same issue as you. It looks like you are using linux as I do.

And I check other posts. It looks like this issue is similar to one discussed in another GitHub issue. You might find a solution or workaround there. Check out the the issue#5 for more details:

I hope this helps!

@TheOnlyJoey
Copy link

This error has been fixed by pr #11 but it seems the project maintainers have been inactive for a while so we are still waiting for merge.

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