|
|
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 ] | |
|
| |