Menu

#27 false order in the DEPS_LIBS in Makefile

v1.0 (example)
closed
nobody
library (1)
1
2016-11-02
2016-08-05
No

I had difficulties to build it on a fresh ubuntu 16.04. I then put -lglib-2.0 in the DEPS_LIBS section of the Makefile on the very beginning.. then it worked..

Discussion

  • Miha Jemec

    Miha Jemec - 2016-08-08

    What errors do you get? Which version are you using?

    If you get:
    /usr/bin/ld: src/callbacks.o: undefined reference to symbol 'roundf@@GLIBC_2.2.5'
    //lib/x86_64-linux-gnu/libm.so.6: error adding symbols: DSO missing from command line

    then the problem in 1.8 version is the Math lib (-lm). This is all resolved in version 1.8.1 and should compile fine. If you want to compile the 1.8 version you need to:

    open the Makefile and change line LIBS = $(DEPS_LIBS) to LIBS = $(DEPS_LIBS) -lm

    (or in general, do the same in Makefile.am and then run aclocal, automake, ./configure)

    this is described here:
    http://packeth.sourceforge.net/packeth/Installation.html (take a look under compile errors)

    Regards, Miha

     

    Last edit: Miha Jemec 2016-08-08
  • El Loco Ardilla

    El Loco Ardilla - 2016-08-08

    Indeed, I got
    /usr/bin/ld: src/callbacks.o: undefined reference to symbol 'roundf@@GLIBC_2.2.5'

    Version 1.8.1 compiles fines, I got the wrong version on downloading. ("Looking for the latest version? " from the sourceforge page leeds you to 1.8... that was my error.

    Thanks for your support. great app!

     
  • Miha Jemec

    Miha Jemec - 2016-11-02
    • status: open --> closed
     

Log in to post a comment.