purpl3F0x / MQA_identifier

Master Quality Authenticated codec reverse engineering, Tool to identify MQA encoding and Master's Sample Rate
Apache License 2.0
114 stars 10 forks source link

Update CMakeLists.txt #9

Closed ktcar214 closed 3 years ago

ktcar214 commented 3 years ago

In Ubuntu 20.09 and Fedora 33, while building, following error occurs:

[ 50%] Linking CXX executable MQA_identifier /usr/bin/ld: cannot find -lOGG collect2: error: ld returned 1 exit status make[2]: [CMakeFiles/MQA_identifier.dir/build.make:103: MQA_identifier] error 1 make[1]: [CMakeFiles/Makefile2:95: CMakeFiles/MQA_identifier.dir/all] erro 2 make: *** [Makefile:103: all] error 2

Even after installing libogg-dev or libogg-devel. This can be fixed by changing OGG into ogg. I think this is a problem related with ogg library name(consisted of lowercase characters). I have little knowledge about cmake, so this may lead to another problem, but at least on my machines it worked fine. Sorry for poor english.

purpl3F0x commented 3 years ago

Seems correct, I will have to check if it also passes windows