Giter Site home page Giter Site logo

conan-libpng's Introduction

Build Status

conan-libpng

Conan package for lib libpng library: http://www.libpng.org/pub/png/libpng.html

The packages generated with this conanfile can be found in conan.io.

Build packages

Download conan client from Conan.io and run:

$ python build.py

Upload packages to server

$ conan upload libpng/1.6.32@lasote/stable --all

Reuse the packages

Basic setup

$ conan install libpng/1.6.32@lasote/stable

Project setup

If you handle multiple dependencies in your project is better to add a conanfile.txt

[requires]
libpng/1.6.32@lasote/stable

[options]
libpng:shared=true # false

[generators]
txt
cmake

Complete the installation of requirements for your project running:

conan install . 

Project setup installs the library (and all his dependencies) and generates the files conanbuildinfo.txt and conanbuildinfo.cmake with all the paths and variables that you need to link with your dependencies.

conan-libpng's People

Contributors

croydon avatar lasote avatar sixten-hilborn avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

conan-libpng's Issues

ERROR: Can't find a 'libpng/1.6.21@lasote/stable' package

Hello @lasote.

The installation of libpng v1.6.21 from conan doesn't work on my machine. Any idea why?

$ conan install libpng/1.6.21@lasote/stable 
Requirements
    libpng/1.6.21@lasote/stable from conan.io
    zlib/1.2.8@lasote/stable from conan.io
Packages
    libpng/1.6.21@lasote/stable:26abdc1fc95111934f24b126a5ee2a6e49ac548c
    zlib/1.2.8@lasote/stable:dfaeed675a0f450dbc88fe8262d9d89b3e8509b0

zlib/1.2.8@lasote/stable: Already installed!
libpng/1.6.21@lasote/stable: Installing package 26abdc1fc95111934f24b126a5ee2a6e49ac548c
libpng/1.6.21@lasote/stable: Looking for package 26abdc1fc95111934f24b126a5ee2a6e49ac548c in remote 'conan.io' 
libpng/1.6.21@lasote/stable: WARN: Binary for 26abdc1fc95111934f24b126a5ee2a6e49ac548c not in remote: Package not found!
ERROR: Can't find a 'libpng/1.6.21@lasote/stable' package for the specified options and settings

- Try to build from sources with "--build libpng" parameter
- If it fails, you could try to contact the package author  at 'http://github.com/lasote/conan-libpng', report your configuration and try to collaborate to support it.

Package configuration:
- Settings: arch=x86_64, build_type=Release, compiler=apple-clang, compiler.version=8.0, os=Macos
- Options: fPIC=True, shared=False, zlib:shared=False

Error while using conan package

I need libpng for another package, but when I tried to use it I got an error:

File , line 693, in _load
...
File "C:\Users\user.conan\data\libpng\1.6.21\lasote\ci\export\conanfile.py", line 52
self.run(configure)
^
TabError: inconsistent use of tabs and spaces in indentation

There is a tab on line 52.
Another issue is that version 1.6.21 is moved to older-releases.

config.h should not be packaged

I think the config.h file that is generated by configure should not be packaged.
It can cause conan packages (that are also built with Autoconf) that depend on libpng to fail at compile time, because they can end up including the wrong config.h file (the one from libpng exports).

This problem probably reproduces only if the path to libpng includes appears before the path to the needed config.h in the include paths list.

E.g.: cairo depends on libpng. cairo includes config.h in its sources, but instead of including its own generated config.h, it ends up including libpng's config.h, because the latter is present in it's packaged include directory.

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.