Hi, i have a problem with cross compile to Rasp.3
I did make execute file in Rasp.3. But It it not conclusion what i coding.
I have a two Rasp.3, One is End-device the other is Gateway. In this topic, The goal is that End-device send message and i can monitoring it with console log. I success in End-device(connected with ssh).
I want to cross compile with End-device, so i used Eclipe CDT and Rasp.3 tool chain(arm-linux-gnueabihf). First test is success that make print function execute file to End-device.
and then, i start making a environment in eclipse with libbcm2835.a and bcm2835.h. First step, make project in eclipse and import exist code what i already use. exist code file composition is below.
end_device | -- lib(folder include arduPi, arduPi-api, libraries) | -- end_device.cpp(main function) | -- The other file what i want to do(.h .cpp)
I debug some error like a double main function, example folder in lib\arduPi\bcm2835-1.46\examples, test.cpp etc..
When i build this project, 2 error is appread. first is "cannot open output file end_device: invalid argument". Second is make: ***[end_device] Error1. But when i just run this project, dialog is pop up with "Errors exist in a required project. Continue launch?". i ignore this error and i check the end_device(execute file) exist in Rasp.3
But it didn't work what i did with error message - "Failed to open /dev/mem, try checking permissions. Failed to map the physical GPIO registers into the virtual memory space. bcm2835_init: Unable to open /dev/mem: Permission denied". I doesn't use GPIO pin. But i ignore this error message and the i used sudo command like "sudo ./end_device". But it just finished with no message.
What can i do ... ???
|