Git Product home page Git Product logo

conan-assimp's Introduction

Download

Travis : Build Status

AppVeyor : Build status

conan-assimp

Conan.io package for Assimp

Basic setup

$ conan install Assimp/4.1.0@jacmoe/testing

Project setup

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

    [requires]
    Assimp/4.1.0@jacmoe/testing

    [options]
    Assimp: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-assimp's People

Contributors

cinderblocks avatar jacmoe avatar lasote avatar pvicente avatar shearer12345 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

conan-assimp's Issues

Linking error with static library version

When using Assimp as a dependency with the shared option set to false, trying to link to the library results in the linker complaining about missing symbols:

/usr/bin/ld: /home/kozet/.conan/data/Assimp/4.1.0/jacmoe/stable/package/8563773f3ecfb4c8ffd0ba86a1c2f478424ec3b5/lib/libassimp.a(D3MFOpcPackage.cpp.o): in function `D3MFZipArchive':
/home/kozet/.conan/data/Assimp/4.1.0/jacmoe/stable/build/8563773f3ecfb4c8ffd0ba86a1c2f478424ec3b5/sources/code/D3MFOpcPackage.cpp:254: undefined reference to `unzOpen2'
/usr/bin/ld: /home/kozet/.conan/data/Assimp/4.1.0/jacmoe/stable/package/8563773f3ecfb4c8ffd0ba86a1c2f478424ec3b5/lib/libassimp.a(D3MFOpcPackage.cpp.o): in function `Assimp::D3MF::D3MFZipArchive::mapArchive()':
/home/kozet/.conan/data/Assimp/4.1.0/jacmoe/stable/build/8563773f3ecfb4c8ffd0ba86a1c2f478424ec3b5/sources/code/D3MFOpcPackage.cpp:352: undefined reference to `unzGoToFirstFile'
/usr/bin/ld: /home/kozet/.conan/data/Assimp/4.1.0/jacmoe/stable/build/8563773f3ecfb4c8ffd0ba86a1c2f478424ec3b5/sources/code/D3MFOpcPackage.cpp:358: undefined reference to `unzGetCurrentFileInfo'
/usr/bin/ld: /home/kozet/.conan/data/Assimp/4.1.0/jacmoe/stable/build/8563773f3ecfb4c8ffd0ba86a1c2f478424ec3b5/sources/code/D3MFOpcPackage.cpp:362: undefined reference to `unzOpenCurrentFile'
/usr/bin/ld: /home/kozet/.conan/data/Assimp/4.1.0/jacmoe/stable/build/8563773f3ecfb4c8ffd0ba86a1c2f478424ec3b5/sources/code/D3MFOpcPackage.cpp:365: undefined reference to `unzReadCurrentFile'
/usr/bin/ld: /home/kozet/.conan/data/Assimp/4.1.0/jacmoe/stable/build/8563773f3ecfb4c8ffd0ba86a1c2f478424ec3b5/sources/code/D3MFOpcPackage.cpp:366: undefined reference to `unzCloseCurrentFile'
/usr/bin/ld: /home/kozet/.conan/data/Assimp/4.1.0/jacmoe/stable/build/8563773f3ecfb4c8ffd0ba86a1c2f478424ec3b5/sources/code/D3MFOpcPackage.cpp:372: undefined reference to `unzGoToNextFile'
/usr/bin/ld: /home/kozet/.conan/data/Assimp/4.1.0/jacmoe/stable/package/8563773f3ecfb4c8ffd0ba86a1c2f478424ec3b5/lib/libassimp.a(D3MFOpcPackage.cpp.o): in function `~D3MFZipArchive':
/home/kozet/.conan/data/Assimp/4.1.0/jacmoe/stable/build/8563773f3ecfb4c8ffd0ba86a1c2f478424ec3b5/sources/code/D3MFOpcPackage.cpp:270: undefined reference to `unzClose'
/usr/bin/ld: /home/kozet/.conan/data/Assimp/4.1.0/jacmoe/stable/package/8563773f3ecfb4c8ffd0ba86a1c2f478424ec3b5/lib/libassimp.a(IFCLoader.cpp.o): in function `Assimp::IFCImporter::InternReadFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, aiScene*, Assimp::IOSystem*)':
/home/kozet/.conan/data/Assimp/4.1.0/jacmoe/stable/build/8563773f3ecfb4c8ffd0ba86a1c2f478424ec3b5/sources/code/IFCLoader.cpp:182: undefined reference to `unzOpen'
/usr/bin/ld: /home/kozet/.conan/data/Assimp/4.1.0/jacmoe/stable/build/8563773f3ecfb4c8ffd0ba86a1c2f478424ec3b5/sources/code/IFCLoader.cpp:199: undefined reference to `unzGoToFirstFile'
/usr/bin/ld: /home/kozet/.conan/data/Assimp/4.1.0/jacmoe/stable/build/8563773f3ecfb4c8ffd0ba86a1c2f478424ec3b5/sources/code/IFCLoader.cpp:204: undefined reference to `unzGetCurrentFileInfo'
/usr/bin/ld: /home/kozet/.conan/data/Assimp/4.1.0/jacmoe/stable/build/8563773f3ecfb4c8ffd0ba86a1c2f478424ec3b5/sources/code/IFCLoader.cpp:210: undefined reference to `unzOpenCurrentFile'
/usr/bin/ld: /home/kozet/.conan/data/Assimp/4.1.0/jacmoe/stable/build/8563773f3ecfb4c8ffd0ba86a1c2f478424ec3b5/sources/code/IFCLoader.cpp:211: undefined reference to `unzReadCurrentFile'
/usr/bin/ld: /home/kozet/.conan/data/Assimp/4.1.0/jacmoe/stable/build/8563773f3ecfb4c8ffd0ba86a1c2f478424ec3b5/sources/code/IFCLoader.cpp:218: undefined reference to `unzCloseCurrentFile'
/usr/bin/ld: /home/kozet/.conan/data/Assimp/4.1.0/jacmoe/stable/build/8563773f3ecfb4c8ffd0ba86a1c2f478424ec3b5/sources/code/IFCLoader.cpp:232: undefined reference to `unzClose'
/usr/bin/ld: /home/kozet/.conan/data/Assimp/4.1.0/jacmoe/stable/package/8563773f3ecfb4c8ffd0ba86a1c2f478424ec3b5/lib/libassimp.a(Q3BSPZipArchive.cpp.o): in function `Q3BSPZipArchive':
/home/kozet/.conan/data/Assimp/4.1.0/jacmoe/stable/build/8563773f3ecfb4c8ffd0ba86a1c2f478424ec3b5/sources/code/Q3BSPZipArchive.cpp:183: undefined reference to `unzOpen2'
/usr/bin/ld: /home/kozet/.conan/data/Assimp/4.1.0/jacmoe/stable/package/8563773f3ecfb4c8ffd0ba86a1c2f478424ec3b5/lib/libassimp.a(Q3BSPZipArchive.cpp.o): in function `Assimp::Q3BSP::Q3BSPZipArchive::mapArchive()':
/home/kozet/.conan/data/Assimp/4.1.0/jacmoe/stable/build/8563773f3ecfb4c8ffd0ba86a1c2f478424ec3b5/sources/code/Q3BSPZipArchive.cpp:282: undefined reference to `unzGoToFirstFile'
/usr/bin/ld: /home/kozet/.conan/data/Assimp/4.1.0/jacmoe/stable/build/8563773f3ecfb4c8ffd0ba86a1c2f478424ec3b5/sources/code/Q3BSPZipArchive.cpp:288: undefined reference to `unzGetCurrentFileInfo'
/usr/bin/ld: /home/kozet/.conan/data/Assimp/4.1.0/jacmoe/stable/build/8563773f3ecfb4c8ffd0ba86a1c2f478424ec3b5/sources/code/Q3BSPZipArchive.cpp:292: undefined reference to `unzOpenCurrentFile'
/usr/bin/ld: /home/kozet/.conan/data/Assimp/4.1.0/jacmoe/stable/build/8563773f3ecfb4c8ffd0ba86a1c2f478424ec3b5/sources/code/Q3BSPZipArchive.cpp:295: undefined reference to `unzReadCurrentFile'
/usr/bin/ld: /home/kozet/.conan/data/Assimp/4.1.0/jacmoe/stable/build/8563773f3ecfb4c8ffd0ba86a1c2f478424ec3b5/sources/code/Q3BSPZipArchive.cpp:296: undefined reference to `unzCloseCurrentFile'
/usr/bin/ld: /home/kozet/.conan/data/Assimp/4.1.0/jacmoe/stable/build/8563773f3ecfb4c8ffd0ba86a1c2f478424ec3b5/sources/code/Q3BSPZipArchive.cpp:302: undefined reference to `unzGoToNextFile'
/usr/bin/ld: /home/kozet/.conan/data/Assimp/4.1.0/jacmoe/stable/package/8563773f3ecfb4c8ffd0ba86a1c2f478424ec3b5/lib/libassimp.a(Q3BSPZipArchive.cpp.o): in function `~Q3BSPZipArchive':
/home/kozet/.conan/data/Assimp/4.1.0/jacmoe/stable/build/8563773f3ecfb4c8ffd0ba86a1c2f478424ec3b5/sources/code/Q3BSPZipArchive.cpp:200: undefined reference to `unzClose'

These missing symbols appear to be from the minizip library.

I'm using the following profile:

[settings]
os=Linux
os_build=Linux
arch=x86_64
arch_build=x86_64
compiler=clang
compiler.version=8
compiler.libcxx=libstdc++11
build_type=Release
[options]
[build_requires]
[env]
CC=/usr/bin/clang
CXX=/usr/bin/clang++

Failure to build when used on Windows with Clang

Attempting the "4C" setup, Clion, Cmake, Clang, Conan. Mainly because this allows me to use the same compiler across the 3 OS'es.
For my project I have a few dependencies such as glfw, but also assimp. The project builds just fine on Linux and OSX.

I use the following profile on windows, in a profile I call clang:

os=Windows
os_build=Windows
arch=x86_64
arch_build=x86_64
compiler=clang
compiler.version=8
compiler.libcxx=libstdc++
build_type=Release
[options]
[build_requires]
[env]
CC=C:\msys64\mingw64\bin\clang.exe
CXX=C:\msys64\mingw64\bin\clang++.exe

This is the output of conan info:
https://pastebin.com/caXLDDRx

When I attempt to build the dependencies using
conan install .. --profile clang --build=missing
It seems to build the other dependencies just fine, including IrrXML and zlib.
But near the end while building Assimp, it suddenly fails for no apparent reason (keep in mind that zlib is already built at this point):
https://pastebin.com/c77GxabQ

I am kind of at a loss about what to do here, since even assuming ZLIB_LIB_zlib is not being set, I have no idea what it should be, seeing that I cannot find any documentation referencing it.

Hope this can be fixed.

Windows support

Travis CI does not do Windows, and I don't have a Windows machine.

PRs are welcome!

Depend on a Conan ZLib package

Once the dust has settled after the Conan move to Bintray, it would be prudent to require a Conan package for ZLib instead of a system install.

Travis fails because of zconf.h

Travis cannot find either PkgConfig executable nor zconf.h - which is weird.

Is this a Ubuntu bug?

I spent several hours on this, and I don't know how to fix it :(

OSX support

This is probably just a matter of adding one or more osx tasks to the Travis build matrix.

PRs also accepted!

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.