dh4 / mupen64plus-qt

A customizable launcher for Mupen64Plus
BSD 3-Clause "New" or "Revised" License
95 stars 10 forks source link

src/common.cpp:43:27: fatal error: quazip/quazip.h: No existe el fichero o el directorio #33

Closed sakunix closed 6 years ago

sakunix commented 6 years ago
make
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/default -I. -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtXml -I/usr/include/QtSql -I/usr/include -I. -I. -o common.o src/common.cpp                                                                                                                                             
src/common.cpp:43:27: fatal error: quazip/quazip.h: No existe el fichero o el directorio                                                                                                                                                    
 #include <quazip/quazip.h>                                                                                                                                                                                                                 
                           ^                                                                                                                                                                                                                
compilation terminated.                                                                                                                                                                                                                     
Makefile:337: recipe for target 'common.o' failed                                                                                                                                                                                           
make: *** [common.o] Error 1 

openSUSE leap 42.2

dh4 commented 6 years ago

Make sure you have libquazip-qt5-devel installed and then change #include <quazip/quazip.h> to #include <quazip5/quazip.h> in: src/common.cpp src/emulation/emulatorhandler.cpp

Then try building again. OpenSUSE places the quazip headers in a different directory than Debian.

sakunix commented 6 years ago
make
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/default -I. -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtXml -I/usr/include/QtSql -I/usr/include -I. -I. -o common.o src/common.cpp
src/common.cpp:45:31: fatal error: quazip/quazipfile.h: No existe el fichero o el directorio
 #include <quazip/quazipfile.h>
                               ^
compilation terminated.
Makefile:337: recipe for target 'common.o' failed
make: *** [common.o] Error 1

new similar error, resolved by changing the code:

//#include <quazip/quazip.h>
#include <quazip5/quazip.h>
//#include <quazip/quazipfile.h>
#include <quazip5/quazipfile.h>

gracias

dh4 commented 6 years ago

Forgot about the quazipfile.h header. Glad it's working now.

jnumm commented 6 years ago

Failure to build in Debian: https://bugs.debian.org/887576

Debian too has moved the headers to quazip5/ for libquazip5-dev (Qt5). I think that the headers in quazip/ are for libquazip-dev (Qt4).

dh4 commented 6 years ago

Version 1.11 is released and should fix that issue.