Code Monkey home page Code Monkey logo

Comments (2)

aabbtree77 avatar aabbtree77 commented on August 15, 2024

Similarly here on Ubuntu 20.04:

tokyo@tokyo-Z87-DS3H:~/assimp2json/build$ make [ 20%] Building CXX object CMakeFiles/assimp2json.dir/assimp2json/json_exporter.cpp.o /home/tokyo/assimp2json/assimp2json/json_exporter.cpp:23:10: fatal error: assimp/../../code/BoostWorkaround/boost/scoped_ptr.hpp: No such file or directory 23 | #include <assimp/../../code/BoostWorkaround/boost/scoped_ptr.hpp> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [CMakeFiles/assimp2json.dir/build.make:76: CMakeFiles/assimp2json.dir/assimp2json/json_exporter.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:96: CMakeFiles/assimp2json.dir/all] Error 2 make: *** [Makefile:130: all] Error 2

Does anyone know how to fix this? Assimp homepage, building without Boost mentions this:
``
These implementations are very limited and are not intended for use outside assimp. A compiler with full support for partial template specializations is required. To enable the workaround, put the following in your compiler's list of predefined macros:

#define ASSIMP_BUILD_BOOST_WORKAROUND
``

Where exactly does this line need to be placed in order to compile assimp without Boost, why does assimp2json use this non-intended case of assimp?

from assimp2json.

aabbtree77 avatar aabbtree77 commented on August 15, 2024

In case someone makes this mistake, I forgot to git clone assimp2json recursively, i.e. use "git clone --recurse-submodules" or "git clone" followed by "git submodule init && git submodule update" as Readme.md indicates. This seems to be an old code base that uses assimp v3 provided with it, the error above is the case when I try to use assimp2json with the assimp version 5.0.0 supplied by default on Ubuntu 20.04.

The compilation via direct "make" fails indeed on gtest as indicated at issue #17, but fortunately this is just some testing phase irrelevant to the program binary produced correctly as indicated there, "make assimp2json" works fine.

from assimp2json.

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.