digego / extempore

A cyber-physical programming environment
1.4k stars 127 forks source link

Debug build fails (typo?) #277

Closed kroll-j closed 8 years ago

kroll-j commented 8 years ago

When trying to build with Debug configuration:

sudo checkinstall --backup=no --pkgname=extempore --pkgversion=1234-debug make VERBOSE=1 -j4 install

Tries to copy 'libassimp.so' which isn't there:

[100%] moving shared libs into /home/johannesk/src/extempore/libs/platform-shlibs
cd /home/johannesk/src/extempore/cmake-build-debug/deps-install/lib && /usr/bin/cmake -E make_directory /home/johannesk/src/extempore/libs/platform-shlibs
cd /home/johannesk/src/extempore/cmake-build-debug/deps-install/lib && /usr/bin/cmake -E copy libassimp.so /home/johannesk/src/extempore/libs/platform-shlibs
Error copying file "libassimp.so" to "/home/johannesk/src/extempore/libs/platform-shlibs".
CMakeFiles/extended_deps.dir/build.make:57: recipe for target 'CMakeFiles/extended_deps' failed
make[2]: *** [CMakeFiles/extended_deps] Error 1
make[2]: Leaving directory '/home/johannesk/src/extempore/cmake-build-debug'
CMakeFiles/Makefile2:889: recipe for target 'CMakeFiles/extended_deps.dir/all' failed
make[1]: *** [CMakeFiles/extended_deps.dir/all] Error 2
make[1]: Leaving directory '/home/johannesk/src/extempore/cmake-build-debug'
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2

'libassimpd.so' exists.

benswift commented 8 years ago

I've pushed up a fix for this in ae805f6, so that the libassimp.so will get the same name under both configurations. Having said that, there's a good chance that using the assimp library will crash due to struct layout issues - we manually map the assimp classes into xtlang named types, but it's fragile and we prioritise getting it working for the Release config.

Sorry if this is unsatisfying - I feel your pain. It's just part of the impedance mismatch with externally-compiled object files and their dynamic interactive use in Extempore.

kroll-j commented 8 years ago

I see. It's better than no debug build at all, thanks.

benswift commented 8 years ago

Yep. Slightly :)

Closes GH-277

j. kroll notifications@github.com writes:

I see. It's better than no debug build at all, thanks.


You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/digego/extempore/issues/277#issuecomment-230841259