Hello everyone, I have some problems with the example of the ir receiver on a Nanopi M1, I decided to modify the original demo program to match de embedded ir receiver but when I try to ececute the program, the information that I have until now is:
The version of geany is: 1.24.1
The response of the console when I try to run the program is:
after that I press Enter and the terminal closes.
As you can see, I couldn't run the executable as root user, after that I saw properties of the program and noted that the permissions was set to "fa" on group "fa", changed all to root on group root it says:
when I see the properties of the executable, it doesn't say "executable" in the file type but "object code" file type.
My commands are:
Compile:
Build:
before that the command Build isn't had the -c option, it was added because the build command was giving me a lot of errors of the type "don't recognize several functions related to the I/O ports"
The version of geany is: 1.24.1
The response of the console when I try to run the program is:
Code: Select all
./geany_run_script.sh: 5: ./geany_run_script.sh: ./Matrix-ir_receiver: Permission denied
------------------
(Program exited with code: 126)
Press return to continue
after that I press Enter and the terminal closes.
As you can see, I couldn't run the executable as root user, after that I saw properties of the program and noted that the permissions was set to "fa" on group "fa", changed all to root on group root it says:
Code: Select all
root@friendlyELEC:/matrix/demo/matrix-ir_receiver# ./Matrix-ir_receiver
bash: ./Matrix-ir_receiver: cannot execute binary file: Exec format error
when I see the properties of the executable, it doesn't say "executable" in the file type but "object code" file type.
My commands are:
Compile:
Code: Select all
gcc -Wall -c "%f"
Build:
Code: Select all
gcc -Wall -c -o "%f" "%e"
before that the command Build isn't had the -c option, it was added because the build command was giving me a lot of errors of the type "don't recognize several functions related to the I/O ports"