FLTK logo

Re: [fltk.general] incomplete Circle drawn with classes from PPP

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: incomplete Circle drawn with classes from PPP ken williams Apr 27, 2021  
 
> Finally: please don't top-post and trim your citations. Thanks. 
I hope I'm doing it right this time

> OK, here's a revised Makefile template that embraces some of the things discussed:
Thanks Ian, the Makefile works and now I understand how to keep the Graph_lib files on a different path

> $ cmake -D CMAKE_PREFIX_PATH=/home/me/dev/fltk-1.4 <other options>
Thank you Albrecht,  but the CMAKE_PREFIX_PATH doesn't seem to change the default, which remains /usr/local/include and /usr/local/lib:
Here are Ian's checks:

   /home/ken01/repos/fltk-1.4.0/build/bin/fltk-config --version
    1.4.0
    /home/ken01/repos/fltk-1.4.0/build/bin/fltk-config --cxxflags
    -I/usr/local/include -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_THREAD_SAFE -D_REENTRANT

    /home/ken01/repos/fltk-1.4.0/build/bin/fltk-config --ldflags
    -L/usr/local/lib -lfltk -lm -lX11 -lXext -lpthread -lXinerama -lXfixes -lXcursor -lXft -lXrender -lm -lfontconfig -ldl

    /home/ken01/repos/fltk-1.4.0/build/bin/fltk-config --includedir
    /usr/local/include


I tested a couple of variants and find out that CMAKE_INSTALL_PREFIX changes the default /include and /lib path
cmake -D CMAKE_INSTALL_PREFIX=/home/ken01/repos/fltk-1.4.0/build -D 'CMAKE_BUILD_TYPE=Debug' -D FLTK_BUILD_EXAMPLES=ON ..
with the result:

     /home/ken01/repos/fltk-1.4.0/build/bin/fltk-config --cxxflags
     -I/home/ken01/repos/fltk-1.4.0/build/include -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_THREAD_SAFE -D_REENTRANT

    /home/ken01/repos/fltk-1.4.0/build/bin/fltk-config --ldflags
    -L/home/ken01/repos/fltk-1.4.0/build/lib -lfltk -lm -lX11 -lXext -lpthread -lXinerama -lXfixes -lXcursor -lXft -lXrender -lm -lfontconfig -ldl

    /home/ken01/repos/fltk-1.4.0/build/bin/fltk-config --includedir
   /home/ken01/repos/fltk-1.4.0/build/include

But there's no "include" folder in fltk/build
So I created one, where I moved the FL folder with both abi-version.h and all the .H files
I'm not sure if it's the right thing to do, but now it works, the Makefile finds the path to FL and libs.

I tried also like below, but the default path remains /usr/local/include and usr/local/lib

cmake -D CMAKE_INCLUDE_PATH=/home/ken01/repos/fltk-1.4.0 -D CMAKE_INCLUDE_PATH=/home/ken01/repos/fltk-1.4.0/build/ -D CMAKE_LIBRARY_PATH=/home/ken01/repos/fltk-1.4.0/build/lib 
-D 'CMAKE_BUILD_TYPE=Debug' -D FLTK_BUILD_EXAMPLES=ON ..

Thank you all, I finally have something that works :)

--
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/4d01c558-47b2-4701-90c4-cf8afdee1732n%40googlegroups.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'.