Giter Site home page Giter Site logo

problem compiling about mod_tile HOT 5 CLOSED

openstreetmap avatar openstreetmap commented on August 17, 2024
problem compiling

from mod_tile.

Comments (5)

springmeyer avatar springmeyer commented on August 17, 2024

The problem is that -I/opt/osm/include is not appearing in your compile flags. I'm not familiar personally with mod_tile's build system enough to know why that is. You might be able to do:

export CFLAGS="-I/opt/osm/include"

before trying to build to solve this.

from mod_tile.

Fiyorin avatar Fiyorin commented on August 17, 2024

i think you're my hero for today ;)

for others who might have the same problem compiling mod_tile:

./configure --with-boost=/opt/boost/ --with-libmapnik=/opt/osm/bin/mapnik-config CXXFLAGS="-I/opt/osm/include"

from mod_tile.

springmeyer avatar springmeyer commented on August 17, 2024

even better (mod_tile really should be doing this):

./configure CXXFLAGS=`mapnik-config --includes`

from mod_tile.

apmon avatar apmon commented on August 17, 2024

This is from memory, so I might be entirely wrong. But I think the issue was that mapnik-config in some version added a bunch of extra compiler flags that broke builds. Which is (if I remember correctly) why this was left out.

from mod_tile.

springmeyer avatar springmeyer commented on August 17, 2024

@apmon - 23be036. The problem was that the CXX specific flags were also being added to the targets than need to be compiled as C. The solution is to fix the mod_tile build system so that CXXFLAGS and CFLAGS are handled separately and applied to the right targets. Or at least this is the only solution if mapnik-config --cflags is used. mapnik-config --cflags specifically is a catch all for all compiler flags and to make this more flexible at Mapnik v.2.2.0 you now have access to each type of flag like mapnik-config --includes for just the include paths for all mapnik dependencies (some of which are C like freetype and C++ like boost) and mapnik-config --defines for just -DEFINES.

from mod_tile.

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.