Question proper use of environment variables in Ubuntu

Xarzu

New Member
Joined
Apr 29, 2022
Messages
16
Reaction score
4
Credits
200
In Ubuntu, in my etc/environment file, I have this line:
ANDROD_NDK="/home/william/ndk/android-ndk-r12b"
In a .mk file, I have these lines:
ifeq ($(strip $(ANDROID_NDK)),)
$(error ANDROID_NDK is not set in environment. Set ANDROID_NDK properly.)
endif
That is the first few lines of the file. I don't know what "strip" is assigned to or if it is a system command, I don't know what it is.
When I run a .sh file which runs the .mk script, the ifeq statement is triggered and the output on the terminal is:
target-config/android-x86.mk:3: *** ANDROID_NDK is not set in environment. Set ANDROID_NDK properly.. Stop.
Thiat is the output I have on my screen. So one question is this. Do I use the wront syntax in the enforonment file? Another question is this: In the make file, shoujld it be $ANDROID_NDK instead of $(ANDROID_NDK) ?
 


@Xarzu - It might be because in /etc/environment, you have assigned the path to a variable called ANDROD_NDK.
The variable should be called ANDROID_NDK…. Ha ha!
 


Top