cbaggers / cepl.examples

Some examples for the CEPL library
GNU General Public License v3.0
44 stars 14 forks source link

Version problem (classimp again) #14

Open stacksmith opened 5 years ago

stacksmith commented 5 years ago

SBCL 1.5.3 on linux. Loaded CEPL via quicklisp. cloned cepl-master version of cepl.examples repo. quickloading cepl.examples does not like classimp:

trying to link against unsupported version of assimp. 3.0-3.3.x supported, got version 4.1
   [Condition of type SIMPLE-ERROR]
stacksmith commented 5 years ago

Oh, I see, it's the installed foreign library that's the problem... Hmm. How the heck do I downgrade XUbuntu to 3.3.1... Of course, that does not build from source on my system

/home/stack/software/assimp-3.3.1/code/D3MFImporter.cpp:230:29: error: invalid
      operands to binary expression ('float (const char *, const char *)' and
      'nullptr_t')
  ...ai_strtof>(xmlReader->getAttributeValue(D3MF::XmlTag::z.c_str()), nullptr);

And the authors claim to not speak English. Great. This is like the tenth thing I touched in the last couple of days that does not work at all with no sensible workaround. The universe is speaking to me, I think. Or maybe nothing actually works except for a couple of web browsers, maintained only to spy on me personally. Is it all a conspiracy? I need a padded room. [edit: fixed typos]

metayan commented 5 years ago

No need to downgrade XUbuntu or get a padded room (but I do recognise the feeling). https://github.com/metayan/classimp/tree/assimp4 might help.

Edit: Not needed anymore - use the dev branch of classimp

cbaggers commented 5 years ago

Oh hey stacksmith! This might be of help https://github.com/cbaggers/classimp-fallback-libs just quickload that first and see if it works

stacksmith commented 5 years ago

Thanks! I will try these. I am happy to see you are plugging away at CEPL!

stacksmith commented 5 years ago

OK - assimp4 seems to work. Please make a note in readme - the assimp4 branch off classimp is required: git clone -b assimp4 git@github.com:metayan/classimp.git Thank you again. PS. Am I just getting old - or is bitrot accelerating?

metayan commented 5 years ago

A word of caution regarding the classimp assimp4 branch solution: It's just overriding the version check, and might break somewhere due to incompatibilities between assimp3 and assimp4. However, I've successfully used it for following Pushing Pixels with Lisp / https://github.com/cbaggers/play-with-verts .

stacksmith commented 5 years ago

@metayan: Thanks for the warning!

metayan commented 4 years ago

The dev branch of classimp has added support for assimp 4.x and 5.0. https://github.com/3b/classimp/commit/4adb5f0b88427ec2d74aa5adbc581064b124b446

git clone -b dev git@github.com:3b/classimp.git

I have removed the metayan/assimp4 branch, because it serves no purpose now.

metayan commented 3 years ago

https://github.com/3b/classimp now handles all versions of assimp nicely, so this issue can be closed.