Re: Read Signal from ADC on Raspberry Pi with FLTK
LosCelos
Oct 21, 2020
mistake from my side:
i dont need the makefile. I can compile the shown adc program in terminal with: gcc testADC.c -o testADC -lwiringPi
i compile the fltk App with: fltk-config --compile app.cxx
the problem is that i cant put the needed -lwiringPi in the compile line from the fltk
is it possible to put the ADC code from above in my fltk App code, and it should some how know the reference, so that it dousnt throw: undefined reference to wiringPiSetup ?
or do i have to start the ADC programm from my App with treads as you say before? If so, how i make my App knowing the ADC program to start it?
Am Mi., 21. Okt. 2020 um 16:30 Uhr schrieb Greg Ercolano <erco@seriss.com>:
> it just works with a make-file.
You'll need to merge the contents of your ADC app's Makefile with your
FLTK app so that building the FLTK app can find the libraries your ADC function calls need, otherwise the linker can't know which library supplies the ADC functions.
If you're not sure, (1) show us the contents of your ADC app's Makefile by attaching it here, (2) show us the commands/Makefile/whatever you're using to compile the FLTK app, and we can probably show you how to merge the two.
Comments are owned by the poster. All other content is copyright 1998-2025 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.