我对Linux没有任何经验。
请帮助我解决我在编译这个应用程序时遇到的错误:http://winpe.com/gascop/
pi@raspberrypi:~ $ cd Downloads/gascop
pi@raspberrypi:~/Downloads/gascop $ qmake-qt4
pi@raspberrypi:~/Downloads/gascop $ make
g++ -c -pipe -O2 -D_REENTRANT -Wall -W -DQT_WEBKIT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -
DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -
I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -o mainwin.o mainwin.cpp
In file included from mainwin.cpp:29:0:
mainwin.h:38:27: fatal error: SDL/SDL_mixer.h: No such file or directory
#include "SDL/SDL_mixer.h" ^ compilation terminated.
Makefile:254: recipe for target 'mainwin.o' failed
make: *** [mainwin.o] Error 1我已经安装了libsdl-mixer1.2-dev和SDL2_mixer_devel,但是编译器似乎无法分配它们。
该如何应对呢?
谢谢你的建议!
发布于 2021-01-30 08:15:10
如果有人还在寻找解决方案,下面的方法对我很有效:
sudo apt install libsdl1.2-dev libsdl-mixer1.2-devhttps://stackoverflow.com/questions/35629438
复制相似问题