我正在尝试为树莓派安装TIC-80,我已经获取了所有文件,并且我成功执行了cmake,但是当我使用make命令时,它会出现以下错误:
/usr/bin/ld: cannot find -lbcm_host collect2: error: ld returned 1 exit status make[2]: *** [CMakeFiles/player-sdl.dir/build.make:93: bin/player-sdl] Error 1 make[1]: *** [CMakeFiles/Makefile2:200: CMakeFiles/player- sdl.dir/all] Error 2 make: *** [Makefile:130: all] Error 2
我在这里发现了类似的问题: https://github.com/nesbox/TIC-80/issues/794 但我尝试将link_directories(/ opt / vc / lib)插入到cmake文件中,特别是第4行https://github.com/nesbox/TIC-80/blob/master/CMakeLists.txt,但是随后出现此错误:
/ usr / bin / ld:lib / libSDL2.a(SDL_dynapi.c.o):未定义 引用符号“ dlopen @@ GLIBC_2.4” / usr / bin / ld://lib/arm-linux-gnueabihf/libdl.so.2:错误 添加符号:命令行缺少DSO collect2:错误:ld返回1退出状态 make [2]:[CMakeFiles / player-sdl.dir / build.make:93: bin / player-sdl]错误1 制作[1]:[CMakeFiles / Makefile2:200:CMakeFiles / player- sdl.dir / all]错误2 make:[Makefile:130:全部]错误2
我在做什么错,以及有关如何解决它的任何线索?