|
|
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/64f444b2-4a05-a3ea-d134-18999f49d6a9%40online.de.
[ Direct Link to Message ] | |
|
| |