Coder Social home page Coder Social logo

Comments (7)

hzeller avatar hzeller commented on May 18, 2024

So timg never refers to that symbol directly, so it might be an issue with the way GraphicsMagick++-config considers which libraries to link and probably misses one ?

If you do a git pull for a recent version of timg (changed the Makefile), you better see what GraphicsMagick++-config expands to, maybe you see a missing library ?

from timg.

sebelk avatar sebelk commented on May 18, 2024

I use the last commit to date:

git show --shortstat 
commit 95708eaca47c4651545817fc5ccf3cc3346570b2
Author: Henner Zeller <[email protected]>
Date:   Sun Mar 19 08:50:01 2017 -0700

    o Better detect failure to determine screen size.

 1 file changed, 7 insertions(+), 7 deletions(-)

Output of GraphicsMagick-config :

-lGraphicsMagick++

It blames to /usr/lib64/libGraphicsMagick-Q16.so.3, but:

rpm -qf /usr/lib64/libGraphicsMagick-Q16.so.3
GraphicsMagick-1.3.25-6.fc25.x86_64

Any ideas?

Thanks in advance!

from timg.

hzeller avatar hzeller commented on May 18, 2024

What you want to check is how the output of
GraphicsMagick++-config --ldflags --libs looks like.
On debian for instance it is

-L/usr/lib -L/usr/lib/X11 -L/usr/lib/x86_64-linux-gnu
-lGraphicsMagick++ -lGraphicsMagick -ljbig -lwebp -llcms2 -ltiff -lfreetype -ljpeg -lpng16 -lwmflite -lXext -lSM -lICE -lX11 -llzma -lbz2 -lxml2 -lz -lm -lgomp -lpthread

including all libraries that the graphics magic is depending on. If there is one missing, it might well be that you get a linking error.

If so, this looks like a misconfiguration in the Fedora package, which I suggest to figure out with them.

from timg.

sebelk avatar sebelk commented on May 18, 2024

@hzeller

Yes, you're right

GraphicsMagick++-config --ldflags --libs

-lGraphicsMagick++

I've managed to compile with:

g++ -o timg timg.o terminal-canvas.o -lGraphicsMagick++ -lGraphicsMagick

Thanks!

from timg.

grene78 avatar grene78 commented on May 18, 2024

adding -lGraphicsMagick solved my very similar issue attempting to compile with VisualGDB on stretch.

from timg.

TragicWarrior avatar TragicWarrior commented on May 18, 2024

Adding -lGraphicsMagick fixed it for me. Anyone who tries to compile on Fedora 31 is going to run into this.

from timg.

hzeller avatar hzeller commented on May 18, 2024

can you file a bug with them to fix the config output?

from timg.

Related Issues (20)

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.