Giter VIP home page Giter VIP logo

Comments (8)

bogbasic avatar bogbasic commented on May 30, 2024 1

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.

stetre avatar stetre commented on May 30, 2024

Try changing -fpic to -fPIC in /src/Makefile at line 87 .

from moonfltk.

stetre avatar stetre commented on May 30, 2024

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.

bogbasic avatar bogbasic commented on May 30, 2024

from moonfltk.

bogbasic avatar bogbasic commented on May 30, 2024

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.

stetre avatar stetre commented on May 30, 2024

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.

bogbasic avatar bogbasic commented on May 30, 2024

from moonfltk.

stetre avatar stetre commented on May 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.