Git Product home page Git Product logo

Comments (5)

aleks-f avatar aleks-f commented on April 19, 2024

$(SYSLIBS) should include "-lz -lpcre -lexpat" when building unbundled/shared on Linux, but doesn't.

https://github.com/pocoproject/poco/blob/develop/Foundation/Makefile

ifdef POCO_UNBUNDLED
    SYSLIBS += -lpcre -lz
else
    objects += $(zlib_objects) $(pcre_objects) $(pcre_utf8_objects)
endif

https://github.com/pocoproject/poco/blob/develop/XML/Makefile

ifdef POCO_UNBUNDLED
    SYSLIBS += -lexpat
else
    objects += $(expat_objects)
endif

from poco.

pprindeville avatar pprindeville commented on April 19, 2024

Here's what I'm seeing:

g++  -DPOCO_BUILD_HOST=gwtest -DPOCO_UNBUNDLED  -D_XOPEN_SOURCE=500 -D_REENTRANT -D_THREAD_SAFE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DPOCO_HAVE_FD_EPOLL  -g -static -o /home/philipp/poco.mine/PageCompiler/bin/Linux/x86_64/static/cpspcd /home/philipp/poco.mine/PageCompiler/obj/Linux/x86_64/debug_static/Page.o /home/philipp/poco.mine/PageCompiler/obj/Linux/x86_64/debug_static/PageReader.o 
... [cut off]
make[1]: *** [/home/philipp/poco.mine/PageCompiler/bin/Linux/x86_64/static/cpspcd] Error 1
make[1]: Leaving directory `/home/philipp/poco.mine/PageCompiler'
make: *** [PageCompiler-libexec] Error 2

from poco.

aleks-f avatar aleks-f commented on April 19, 2024

While ago, we discussed and found out the reasons why static builds on linux fail:

https://sourceforge.net/p/poco/bugs/537/
http://sourceforge.net/mailarchive/message.php?msg_id=29510837
http://sourceforge.net/p/poco/bugs/527/

As for unbundled builds, different distros have files in different directories and there is a way to provide additional include and library directories through configure script. Please look at your system/environment/build config and see exactly where and why it fails. If there is a problem and a reasonable way to fix it and you clearly point to it, we will. Clogging forum with large amounts of build output copy/paste is not productive.

from poco.

pprindeville avatar pprindeville commented on April 19, 2024

I pushed a fix as c02cf81 in pprindeville/pocoproject in the "develop" branch.

from poco.

aleks-f avatar aleks-f commented on April 19, 2024

Fixed

79838aa

from poco.

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.