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 Albrecht Schlosser Oct 21, 2020  
 
On 10/21/20 4:48 PM LosCelos wrote:
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

The "easiest" way to do this is to use `fltk-config --compile app.cxx`, copy the command line you see and run the entire command on a new command (copy and paste). Then "go back" one line in your shell (typically by using the uparrow key) and edit the command line, i.e. put '-lwiringPi' before or after '-lfltk' or at another appropriate place.

OTOH, I'd likely save the command file in a shell script and edit this script for my build so I can easily repeat it. If you like you can also use a combination of a simple Makefile that uses `fltk-config --cxxflags' and `fltk-config --ld[static]flags' to get the proper FLTK flags.

Given your command above, you could probably build your app using:

$ gcc `fltk-config --cxxflags` app.cxx -o app -lwiringPi `fltk-config --ldstaticflags`

Copy and paste this line including the backticks (`) but w/o the '$' sign and this should probably work.

--
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/b99c6f94-f4d2-b32b-fc30-ccf0ea4d71d5%40online.de.
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'.