Comments (10)
From the output it looks like you might have the wrong version of fltk
installed. What is the output of fltk-config --version
? If it is 1.3.3
can you post the output of ls <your-lib-directory>/libfltk*
?
from fltkhs.
The fltk
version is 1.3.3
, as your instructions specify.
Gentoo installs the .so & .a files of fltk
in a dedicated directory:
# ls -lh /usr/lib/fltk
total 4.9M
-rwxr-xr-x 1 root root 3.1M Mar 4 23:03 libfltk.a
-rwxr-xr-x 1 root root 5.8K Mar 4 23:03 libfltk_cairo.a
lrwxrwxrwx 1 root root 20 Mar 4 23:03 libfltk_cairo.so -> libfltk_cairo.so.1.3
-rwxr-xr-x 1 root root 9.8K Mar 4 23:03 libfltk_cairo.so.1.3
-rwxr-xr-x 1 root root 60K Mar 4 23:03 libfltk_forms.a
lrwxrwxrwx 1 root root 20 Mar 4 23:03 libfltk_forms.so -> libfltk_forms.so.1.3
-rwxr-xr-x 1 root root 27K Mar 4 23:03 libfltk_forms.so.1.3
-rwxr-xr-x 1 root root 359K Mar 4 23:03 libfltk_gl.a
lrwxrwxrwx 1 root root 17 Mar 4 23:03 libfltk_gl.so -> libfltk_gl.so.1.3
-rwxr-xr-x 1 root root 114K Mar 4 23:03 libfltk_gl.so.1.3
-rwxr-xr-x 1 root root 110K Mar 4 23:03 libfltk_images.a
lrwxrwxrwx 1 root root 21 Mar 4 23:03 libfltk_images.so -> libfltk_images.so.1.3
-rwxr-xr-x 1 root root 56K Mar 4 23:03 libfltk_images.so.1.3
lrwxrwxrwx 1 root root 14 Mar 4 23:03 libfltk.so -> libfltk.so.1.3
-rwxr-xr-x 1 root root 1.1M Mar 4 23:03 libfltk.so.1.3
The location of the libraries seems to be the problem. If I manually copy them to /usr/lib
then everything works fine.
from fltkhs.
What is the output of fltk-config --ldstaticflags --use-gl --use-images --use-glut
? That is the command fltkhs
uses to determine the location of the libraries.
from fltkhs.
$ fltk-config --ldstaticflags --use-gl --use-images --use-glut
/usr/lib64/fltk/libfltk_images.a -lpng -lz -ljpeg /usr/lib64/fltk/libfltk_gl.a -lGLU -lGL /usr/lib64/fltk/libfltk.a -lXcursor -lXfixes -lXext -lXft -lfontconfig -lXinerama -lpthread -ldl -lm -lX11
so it reports the correct paths (i.e. in /usr/lib/fltk
).
from fltkhs.
Yes, I think I see the problem. This is a bug. When building it expects fltk_gl
etc. to be in a place that can be found using AC_CHECK_LIB
but this doesn't make much sense when fltk-config
already has that information. I'll fix it. Thanks for the report!
from fltkhs.
I'm seeing this in x86_64 Arch Linux, too, when trying to compile fltkhs
as a project dependency using stack. Tons of output complaining about undefined references from the cpp files.
$ fltk-config --version
1.3.3
$ ls /usr/lib/libfltk*
/usr/lib/libfltk_forms.so
/usr/lib/libfltk_forms.so.1.3
/usr/lib/libfltk_gl.s0
/usr/lib/libfltk_gl.so.1.3
/usr/lib/libfltk_images.so
/usr/lib/libfltk_images.so.1.3
/usr/lib/libfltk.so
/usr/lib/libfltk.so.1.3
$ fltk-config --ldstaticflags --use-gl --use-images --use-glut
-Wl,-O1,--sort-common,--as-needed,-z,relro
:(
from fltkhs.
This is happening because the Arch package isn't installing the statically linked versions of those libs which are required by fltkhs
. That's why the installation instructions suggest building from source (https://github.com/deech/fltkhs#linux-and-bsd). I just did that on Arch and fltkhs
worked.
from fltkhs.
@redneb, I fixed your issue sometime ago. Would you mind reviewing and closing? @mrak, did that work for you?
from fltkhs.
Nope, unfortunately I still cannot compile the latest fltkhs from git in my system because of linking problems.
from fltkhs.
@deech after changing !staticlibs
to staticlibs
in /etc/makepkg.conf
it all compiles correctly :) Thanks for pointing out the static linking requirement.
from fltkhs.
Related Issues (20)
- Return function pointer from `openCallback` so it can be freed. HOT 1
- Crash in FL.eventKey on special key HOT 8
- GL causes c2hs error on Mac due to missing type HOT 4
- after using setIcon on window it doesn't display application HOT 4
- Adding a Scrolled via FLUID generates wrong "scrollNew" call instead of "scrolledNew" HOT 1
- How to enable modern OpenGL? HOT 11
- unable to run basic example under nix HOT 1
- Fltkhs as stack dependency linking error on Windows 10 HOT 1
- install gotchas
- Build error in Setup.hs HOT 2
- Error building bundled fltkhs in custom Setup.hs HOT 1
- fltkhs-fluidtohs generates incorrect module names for nested modules
- addAndGetMenuItem is suprisingly slow HOT 8
- How to call findClicked?
- GHC 8.10.3 linking issue HOT 1
- Syntax error while installing with bundled fltkhs HOT 1
- Build fails with autoconf 2.70 and up HOT 8
- New branch's build artifacts stored in /tmp get erased
- Updating for base-4.14 (ghc 8.10) HOT 2
- cabal-install 3.4.0.0 breaks installation HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fltkhs.