|
|
Thank you Albrecht!
FLTK 1.4 from Git on Manjaro Linux with GCC 10.2.0
After reading the Readme files you mentioned here's what I tried:
cmake -D OPTION_ABI_VERSION:STRING=10401 -D 'CMAKE_BUILD_TYPE=Debug' ../.. (as I have the tree like this: fltk-1.4/build/manjaro) make
And the result is: - the FL folder from the fltk-1.4 folder still doesn't have abi-version.h file but has all the other .h files - the FL folder from fltk-1.4/build/manjaro/ has only the abi-version.h file
I was expecting all the .h files to be in fltk-1.4/build/manjaro/FL or I'm getting this completely wrong? Thanks again for your patience!
On Sunday, March 7, 2021 at 12:58:06 PM UTC+1 Albrecht Schlosser wrote:
On 3/7/21 12:30 PM ken williams wrote:
> Hi everyone!
Hi Ken, welcome to the FLTK community!
> I successfully build and run the first FLTK example from Programming
> Principles and Practice with the commands:
>
> cmake ..
> make
> make install
Great!
Please tell us your FLTK version (1.3.x, 1.4 snapshot, Git download?),
build platform and compiler + version when you're asking for help, just
in case it matters.
Since you run 'cmake ..' and 'make' I assume you're using either
Linux/Unix or Windows with MinGW and friends.
> However, before using "make install" the FL folder did not have a file
> named "abi-version.h" which is required by some of the files from the
> book's graphical library.
That's true, abi-version.h is generated during the build process in your
build/FL directory.
> I understand that "make install" moves the FL folder from the download
> location to the /usr/local/include and the static libraries (.a files)
> to /usr/local/lib ...
Not only that. It copies everything needed which includes abi-version.h
from the build folder to the installation folder. Did you check if
abi-version.h was in your /usr/local/include/FL/ folder after installation?
> So I wonder why I don't have the "abi-version.h" file when only building
> FLTK and not installing it.
See above. If you want to build your project directly with the FLTK
build folder (w/o installing it) you need to specify this build folder
in your compiler's "-I /path-to-fltk/build/" flag, for instance (or in
your CMake build files, see README files below).
> I downloaded FLTK 1.4 from the site and from Git and the abi file is
> still missing.
Yep, it's not in the distribution tarballs, snapshot or in the Git
repository.
> Or maybe I did something else wrong?
I suggest to read the README* files in the FLTK distribution, at least
those having something to do with your build, e.g. README.CMake.txt and
README.abi-version.txt. These names are from FLTK 1.4 (git), they may be
different in 1.3.x (w/o .txt suffix).
> Thanks for taking the time!
Welcome!
--
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/ade3cd86-0126-48d2-bfc7-3adde17ac2ben%40googlegroups.com.
[ Direct Link to Message ] | |
|
| |