cepl.examples icon indicating copy to clipboard operation
cepl.examples copied to clipboard

Version problem (classimp again)

Open stacksmith opened this issue 6 years ago • 9 comments

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 avatar Sep 16 '19 19:09 stacksmith

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]

stacksmith avatar Sep 16 '19 20:09 stacksmith

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

metayan avatar Sep 17 '19 12:09 metayan

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

cbaggers avatar Sep 17 '19 16:09 cbaggers

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

stacksmith avatar Sep 17 '19 17:09 stacksmith

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

stacksmith avatar Sep 17 '19 17:09 stacksmith

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 .

metayan avatar Sep 17 '19 19:09 metayan

@metayan: Thanks for the warning!

stacksmith avatar Sep 17 '19 20:09 stacksmith

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 [email protected]:3b/classimp.git

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

metayan avatar Feb 25 '20 18:02 metayan

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

metayan avatar Oct 05 '20 01:10 metayan