Static building problem sqlite3

Help
2010-12-22
2013-05-29
  • Henk Schoneveld

    Henk Schoneveld - 2010-12-22

    Downloaded from cvs
    I changed 2 lines in the Makefile
    STATIC_LINKING: LDFLAGS = -static
    STATIC_LINKING: LIBS = -lvorbis -logg -lm -lsqlite3 -lpthread -lexif -ljpeg -lFLAC -lm -lid3tag -lz -lavformat -lavutil -lavcodec -lm
    from their # … status
    and added the # to the dynamic ones.
    On Mandriva 2008, I downloaded, buidl and installed http://www.sqlite.org/sqlite-autoconf-3070400.tar.gz but get following erro when building.
    minidlna.c:253: undefined reference to `sqlite3_open' as 1st error. I found some mentioning of this by googling, on a Italian-site, but I wasn't able to find the solution.

     
  • Justin Maggard

    Justin Maggard - 2010-12-22

    Perhaps it can't find sqlite3.h.  You should find where sqlite3.h is located on your system, and then add that directory to the list of include directories listed with CFLAGS in the Makefile.

     
  • Henk Schoneveld

    Henk Schoneveld - 2010-12-25

    Shouldn't the same problem arise when building shared ? AFAIK sqlite3.h is in a standard location, I'll try with symlinking to several other places and see what happens.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks