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

在Linux环境下定义了HPM_SDK_BASE但是hpm-sdk-config.cmake依然报错 #29

Open
cjkzwe opened this issue Apr 10, 2024 · 3 comments

Comments

@cjkzwe
Copy link

cjkzwe commented Apr 10, 2024

CMake 环境:

$ cmake --version
cmake version 3.25.1

CMake suite maintained and supported by Kitware (kitware.com/cmake).

相关代码

if(NOT DEFINED $ENV{HPM_SDK_BASE})
message(FATAL_ERROR "HPM_SDK_BASE is not set yet")
endif()
经过测试,删除'$ENV'的'$'即可通过,不知是CMake的什么特性

@helloeagleyang
Copy link

请提供一下Linux的发行版(如Ubuntu20.04, Ubuntu22.04等),使用的Terminal

目前在Ubuntu,使用系统默认的Terminal无法复现这个问题

@cjkzwe
Copy link
Author

cjkzwe commented Apr 15, 2024

请提供一下Linux的发行版(如Ubuntu20.04, Ubuntu22.04等),使用的Terminal

目前在Ubuntu,使用系统默认的Terminal无法复现这个问题

系统为Ubuntu 22.04 虚拟机 默认bash 使用CLion 2024.1 linux #CL-241.14494.288 进行开发 同时在CMake设置中和环境变量中都声明了HPM_SDK_BASE 均报错

image

这个是报错提示

image

@jhqian
Copy link
Contributor

jhqian commented Apr 17, 2024

感觉像是环境变量没有设置成功,参考一下这个知乎的帖子:https://zhuanlan.zhihu.com/p/564229673。

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