-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compiling issues #1
Comments
Honestly, it's been so long since I've had to deal with make files that I've forgotten how to use them properly. I used Netbeans to set up this project, which created a whole bunch of files unrelated to the core code. I decided not to commit those files since they weren't really relevant, but I must have not noticed the reference to the project folder in the makefile. For my projects that use this "library", I have been referencing the source files directly. I have not configured it to compile into any sort of true library file to link against. Now for getting it to run on a Pi, I have set up Netbeans to use the Pi as a build and run target. Here's an article I found that should get you started. It looks pretty close to the setup I have. https://pirobotblog.wordpress.com/2017/03/18/setting-up-netbeans-for-the-raspberry-pi/ You will need to link with the wiringPi library (-lwiringPi). With the basic setup I have, the built executable gets placed in ./home/pi/.netbeans/remote/{RPi IP Address}/{Host name of machine with Netbeans}/{path to project folder}/dist/Release/GNU-Linux. It's a long and complicated path, but it works and I haven't spent the time to simplify it. Hopefully this helps. |
I'm also struggling to get the example to compile:
|
@zinefer It looks like the compiler isn't seeing the PiLED/FastLED source. Make sure it's been added to your project properly. I'm afraid I can't be much help other than that since there are so many ways to set up a project and I'm not even that familiar with how it works inside NetBeans, which is the IDE I used. |
It is finding the files. If I change the path it throws a different error about that. It's alright - I am worried this isn't going to work outside netbeans and that's not something I am interested in using for this project. Thanks anyway! :) |
Understood. I have no particular ties to NetBeans. It just happens to be the thing I found instructions for compiling code remotely on the Pi and my first attempt worked, so I never went looking for anything else. The code itself has nothing that relies on a particular IDE/compiler though. |
@twenta @zinefer @ahettlin: If you need to compile it by yourself without any IDE you need to add any(?) .cpp file by your own. So for the DemoReel100.cpp in the examples folder try following: Btw: An information on which version of FastLED it's based would be good. Would also make it easier to keep it up to date. Best regards, |
Great job figuring that out. Looks like a simple enough command too. I haven't updated the FastLED code since my initial commit here, so It may be a bit out-of-date. I can check in the next few days to see if I can find what version I downloaded from their repository and add that info to the readme. |
Hi,
thanks for sharing. Can you provide more detail on how to get this running on a pi?
Running "make" results in errors due to missing references in the Makefile (nbprojects folder)
The text was updated successfully, but these errors were encountered: