set(VEROVIO_DIR "D:/verovio")
include_directories(
${VEROVIO_DIR}/include/vrv
${VEROVIO_DIR}/include/crc
${VEROVIO_DIR}/include/midi
${VEROVIO_DIR}/include/hum
${VEROVIO_DIR}/include/json
${VEROVIO_DIR}/include/pugi
${VEROVIO_DIR}/include/zip
${VEROVIO_DIR}/include/vrv
${VEROVIO_DIR}/libmei/dist
${VEROVIO_DIR}/libmei/addons
)
target_link_libraries(appMusic_NEA_MSVC PRIVATE "D:/verovio/cmake/build/Release/verovio.lib")
link_directories(${VEROVIO_DIR}/cmake/build/Release)
This is how I am calling out the library in my CMakeLists.txt. I am using QtQuick.
I'm trying to access this 3rd party library called Verovio, but each time I try to call one of their methods (specifically file handling ones) my Qt program always crashes. I have a feeling that I might have initialised the library wrong.
There also exists a verovio.dll file, but I'm not sure how I'm meant to use it.
verovio.dll
This is the code that keeps making the program crash, specifically the toolkit.LoadFile part.
vrv::Toolkit toolkit(false);
qInfo() << toolkit.GetVersion();
toolkit.GetDefaultOptions ();
toolkit.LoadFile (file_path.toStdString()); // file_path is QString, just to convert to std::string
//crashes here every single time
Thank you in advance for any help! I'm doing this music software for my coursework, and I'm not doing too well so I appreciate any help