Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
system environment configure
small_bird last edited by aha_1980
/home/cobot/Desktop/cobotsys_sdk/install/x86-64-install/devel/include/Tiger.Common/logger/Logger.h:21: error: ‘__COBOTSYS_MODULE_NAME__’ was not declared in this scope #define LOG_INFO google::LogMessage(__COBOTSYS_MODULE_NAME__, __FILE__, __LINE__, google::GLOG_INFO).stream() ^
hello everyone, in one qt-project, I came across this problem. However, the env has been set like the following pic:
could any one offer me a hand? thanks in advance!
You have underscores as prefix and postfix.
@jsulm yes, I ignore the prefix and postfix and set it as system env var like this :
however, the errors are the same!!
@jsulm adding the prefix and postfix or not does not affect the result
@small_bird What I mean is: you should use same name for the variable, either both (in env and code) with underscores or both without.
@jsulm yes, I copy the variable into the env configure dialog. result remains the same!
@small_bird One moment - what you're trying works only for defines (-DCOBOTSYS_MODULE_NAME ...), not for env variables!
If you want to use env variables, you need to check their values in qmake and set the define accordingly.
@jsulm no, I want to define the var to eliminate the output error.
@small_bird As I said if you want env variable then you have to read it at runtime...