From: Bart S. <rhi...@gm...> - 2009-06-16 09:56:08
|
Hi there, I tried to compile guidolib 1.37 on 64bit Linux today, but ran into some problems: In src/graphic/GRSingleNote.cpp: ../src/graphic/GRSingleNote.cpp: In member function ‘virtual char* GRSingleNote::getGGSInfo(int) const’: ../src/graphic/GRSingleNote.cpp:143: error: cast from ‘const GRSpring*’ to ‘int’ loses precision ../src/graphic/GRSingleNote.cpp:145: error: cast from ‘const GRSpring*’ to ‘int’ loses precision ../src/graphic/GRSingleNote.cpp: In member function ‘virtual void GRSingleNote::GGSOutput() const’: ../src/graphic/GRSingleNote.cpp:180: error: cast from ‘const GRSingleNote*’ to ‘int’ loses precision ../src/graphic/GRSingleNote.cpp:190: error: cast from ‘const GRSingleNote*’ to ‘int’ loses precision Line 143, 145: prevspring and nextspring should be casted to long int instead of int. Furthermore, snprintf's format string should use %ld instead of %d. Line 180, 190: el->setID should both cast to long int instead of int. In ../src/graphic/GRTempo.cpp: ../src/graphic/GRTempo.cpp: In member function ‘void GRTempo::DrawText(VGDevice&, const char*, float, float, float*) const’: ../src/graphic/GRTempo.cpp:237: error: ‘strlen’ was not declared in this scope This file should include string.h After fixing this compilation of the static library went fine, but I was looking for a dynamic library (to load from within Python). Some changes in the Makefile gave me one eventually, but when I tried to load it, it immediately segfaulted. I'm not sure if this was also a 64 bit related issue or that I screwed something up, but it did raise some questions regarding the cross-platformness of it all. My question is basically: is 64 bit supported or should I stop trying to get it to run and try to compile it with 32 bit libs? I was recommended to try out this library, because we are looking for cross platform functions that can draw music notation in real-time (say, for use in applications like music editors) and this library could supposedly do it. It would be great if it did, but at this point I unfortunately can't test this premise. Would this be possible and if so are there some docs available regarding GUIDOLib's internals? Thanks in advance Best regards, Bart Spaans |