FLTK logo

Re: [fltk.general] Read Signal from ADC on Raspberry Pi with FLTK

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

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?

Thank you!

Virenfrei. www.avast.com

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.


--
You received this message because you are subscribed to a topic in the Google Groups "fltk.general" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/fltkgeneral/Ygjeyd9FNjI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/0b1ca16f-563b-4a92-b80d-7c32b7e387een%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/CANoiZdCwjb6ng0bpkQ%2Bv6B%2BzOdcvxfFEd53Fxhw1zxBooJXOLA%40mail.gmail.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.