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 Ian MacArthur Apr 27, 2021  
 
On 27 Apr 2021, at 17:03, ken williams wrote:
> 
> 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


Ah, no - that’s the “wrong” fltk-config. It is confusing...

The cmake build actually generates *two* slightly different fltk-config versions: one is meant to be used *only once the lib is installed* and one is meant to be used from the build tree.
The one you are calling is the “install-use” one, but you have not installed (so it doesn’t work). The one you *want* will be at:

   /home/ken01/repos/fltk-1.4.0/build/fltk-config      <- use this one!
   /home/ken01/repos/fltk-1.4.0/build/bin/fltk-config  <- NOT this one


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

No, that was the wrong thing to do, sorry.

If you call the right version of fltk-config, then the --cxxflags option will return all the include paths you need for fltk to build, without you having to move or copy any files.



-- 
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/B6F5E620-9105-4815-AEFB-C85C77229B68%40gmail.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'.