ashtuchkin / vive-diy-position-sensor

Code & schematics for position tracking sensor using HTC Vive's Lighthouse system and a Teensy board.
MIT License
912 stars 110 forks source link

Problem with the Particle Photon platform #44

Open Wyldix opened 6 years ago

Wyldix commented 6 years ago

I've been successfully using your program for a Teensy 3.6 platform and everything works fine. I tried to build the firmware for the Particle photon platform but it doesn't compile. The compiler shows an error at the "make all" command of the make file. As far as I know you did not provide any documentation about the Particle photon platform. Would it be possible to have some explications about the command you used to build the firmware like you did for the Teensy?

Tanks, Olivier

thomasgauthier commented 6 years ago

I had the same problem. Seems like it has to do with GCC. I was able to successfully compile it by downgrading gcc-arm-embedded from 7-2017-q4 to 5.4.

To do it on MacOS

brew cask uninstall --force gcc-arm-embedded
brew cask install https://raw.githubusercontent.com/caskroom/homebrew-cask/ed1b2f3a4182f8512dfe88102ed79b4deb770faa/Casks/gcc-arm-embedded.rb

mkdir build && cd build
cmake .. -DPLATFORM=Particle
make
Wyldix commented 6 years ago

Thank you Thomas!

I was also having some errors when compiling the Particle firmware but i didn't try to downgrade GCC. I will try that! Thanks.

alexhgian commented 6 years ago

I'm also have this issue with Ubuntu 17.10 on 5.4 and latest

Wyldix commented 6 years ago

I tried again on W10 and Ubuntu 16.04 both with GCC 5.4 and it still didn't compile for the Particle platform. It works for Teensy. It's getting weird since it works on MacOS...

shwetankshrey commented 6 years ago

Hi Did anyone successfully compile the code for Particle Photon. If yes, could you please share how you did that? I am working with Linux and have tried it on MacOS as well. However it didn't compile for me even after downgrading. On Linux, the error I get is : make[3]: *** No rule to make target 'all'. Stop. platform-particle/CMakeFiles/sensor-firmware.dir/build.make:57: recipe for target 'platform-particle/CMakeFiles/sensor-firmware' failed make[2]: *** [platform-particle/CMakeFiles/sensor-firmware] Error 2 CMakeFiles/Makefile2:121: recipe for target 'platform-particle/CMakeFiles/sensor-firmware.dir/all' failed make[1]: *** [platform-particle/CMakeFiles/sensor-firmware.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2

shwetankshrey commented 6 years ago

@thomasgauthier @ashtuchkin Please help me out here. Thanks.