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 firstname.lastname@example.org.
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 ]