这是我第一次使用Cmake,一切都很顺利,直到我用最后的命令开始构建我的环境。如果有人可以请告诉我这条消息的含义以及如何解决它。
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -ljasper
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lwebp
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lwebp
collect2.exe: error: ld returned 1 exit status
heimdall-frontend/CMakeFiles/heimdall-frontend.dir/build.make:338: recipe for target 'bin/heimdall-frontend.exe' failed
make[2]: *** [bin/heimdall-frontend.exe] Error 1
CMakeFiles/Makefile2:198: recipe for target 'heimdall-frontend/CMakeFiles/heimdall-frontend.dir/all' failed
make[1]: *** [heimdall-frontend/CMakeFiles/heimdall-frontend.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
答案 0 :(得分:2)
我只是想在Windows 8上编译Heimdall,并得到同样的错误。
我失踪了Jasper和Webp,并让那些与packman联系起来。尝试运行此行:
pacman -S mingw-w64-x86_64-libwebp mingw-w64-x86_64-jasper
这为我解决了这个问题。