Comments (8)
Great, thanks. I must have got things in a twist when I installed fltk because I have since scrubbed everything (including removing the '.a' files in /usr/local/lib/ and the fltk-config binary), reinstalled fltk-dev from the repo and its all fine now. Now there are no '.a' files in /usr/local/lib/ after the re-install, so I do not know where they came from originally. For some reason the old fltk-config was making the linker use them instead of the files in /usr/lib/x86_64-linux-gnu/ where the '.a' and '.so' files now happily coexist.
from moonfltk.
Try changing -fpic
to -fPIC
in /src/Makefile
at line 87 .
from moonfltk.
Forget mmy last comment. I just noticed from your error message that the linker is attempting to link against the FLTK static library (libfltk.a). Are you sure the FLTK shared objects (.so) are installed on your system?
from moonfltk.
from moonfltk.
Hello, yes, the .so files are there. I managed to sort it out with a bodge. I renamed the files:
/usr/local/lib/libfltk_gl.a
/usr/local/lib/libfltk_images.a
/usr/local/lib/libfltk.a
with a different extension so that they are ignored during linking (I hope) and the makefile ran OK, apparently. I renamed them back to '.a' afterwards for luck. My lua scripts run with moonfltk fine now.
Thanks for helping - happy to try a better solution.
from moonfltk.
Are the .so files in a different directory? As far as I know, the linker should choose the .so over the .a if it finds both.
from moonfltk.
from moonfltk.
Ah, ok. If that's the case, creating soft links to the .so files in /usr/local/lib should fix the issue.
from moonfltk.
Related Issues (13)
- callbacks, lua states & coroutines HOT 5
- crash at program termination after using gtk native file chooser HOT 4
- MSYS2 (MinGW-W64) Error occurs on while compile "tree.cc" HOT 1
- Adding compatibility to Mac OS X HOT 19
- Why search for userdata in a separate data structure? HOT 2
- Cannot build in G++ (aarch64) with this errors. HOT 2
- Wrong information in documentation HOT 1
- Can't persuade lua to release memory using moonfltk and oocairo - probably my incompetence rather than a bug. HOT 5
- $ make LUAVER=5.4 HOT 2
- RFC: Fluid exporter for Lua HOT 5
- FreeBSD build error HOT 2
- Lua 5.1 HOT 1
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 moonfltk.