December 31, 2015 at 10:43 am #3647
Just a quick one…
I downloaded “Tarts_RaspberryPi_V11_092415” from “http://www.tartssensors.com/libraries/raspberrypi” and ran “sudo ./build all” but was getting the following error:
g++: error: unrecognized command line option “-W1,-soname,libTarts.so”
during the “[Linking (Dynamic)]” stage.
This is due to a typo on line 39 in the “libTarts/Makefile” where the command line gcc option for passing options to the linker is “-W1” instead of “-Wl” – i.e. the Makefile is using a “1” (number 1) instead of an “l” (letter l) – easily done.
If you correct the typo (replace “-W1” with “-Wl”) everything else compiles without error.
June 17, 2016 at 1:55 pm #3745
That was very helpful and sadly this is the only place where it’s mentioned.
Thanks a lot .
November 19, 2016 at 10:47 pm #3940
Now I get this message after your fix. Gets much farther thank you for the tip.
root@raspberrypi:/home/mike/Tarts_RaspberryPi_V11_092415# ./build all
[Cleaning all example object and executable files]
[Tarts library files are not detected — Loading library]
./build: line 35: test: /usr/local/lib/libTarts.so: binary operator expected
[Making Example Applications Now…]
TartsPersistence.cpp: In function ‘void OnSenMsgEv(SensorMessage*)’:
TartsPersistence.cpp:323:40: warning: argument to ‘sizeof’ in ‘char* strncpy(char*, const char*, size_t)’ call is the same expression as the source; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess]
strncpy(thisSensorID, msg->ID, sizeof(msg->ID));
[Linking : TartsBasic]
[Linking : TartsSniffer]
[Linking : TartsAdvanced]
[Linking : TartsBasicControl]
[Linking : TartsPersistence]
When I execute I get this message. So I am not sure if the previous error causes this.
TARTs Sniffer application running…All Event Handlers Registered.
TARTs Gateway Registration Failed!
- This reply was modified 2 years, 4 months ago by Michael.
November 20, 2016 at 2:40 am #3942
Quick note. I changed back to an older PI and that seems to compile much better. I was using Pi3 and that one did not work correctly.
You must be logged in to reply to this topic.