Previous Thread
Next Thread
Print Thread
Page 1 of 2 1 2
Installation error - Ubuntu 18.04 #116277 10/26/19 12:14 AM
Joined: Nov 2017
Posts: 14
alexb3d Offline OP
Member
OP Offline
Member
Joined: Nov 2017
Posts: 14
Hi. I am trying to compile and it gives me the following error:

Code
romalyzer.cpp:3638:172: error: too many arguments to function ‘int zipOpenNewFileInZip(zipFile, const char*, const zip_fileinfo*, const void*, uInt, const void*, uInt, const char*, int, int)’
 pInfo, file.toUtf8().constData(), file.length(), 0, 0, 0, Z_DEFLATED, spinBoxSetRewriterZipLevel->value(), 0) == ZIP_OK ) {
                                                                                                             ^
In file included from romalyzer.cpp:31:0:
minizip/zip.h:119:20: note: declared here
 extern int ZEXPORT zipOpenNewFileInZip OF((zipFile file, const char* filename, const zip_fileinfo* zipfi,
                    ^~~~~~~~~~~~~~~~~~~
Makefile.qmake:2425: recipe for target 'romalyzer.o' failed
make[1]: *** [romalyzer.o] Error 1
make[1]: Leaving directory '/home/lex/.src/qmc2'
Makefile:1042: recipe for target 'qmc2-bin' failed
make: *** [qmc2-bin] Error 2


[ ...pensando en imágenes ]
Re: Installation error - Ubuntu 18.04 [Re: alexb3d] #116278 10/26/19 12:17 AM
Joined: Feb 2004
Posts: 2,080
Vas Crabb Online Content
Very Senior Member
Online Content
Very Senior Member
Joined: Feb 2004
Posts: 2,080
Eventually the community is going to have to pick up the project.

Re: Installation error - Ubuntu 18.04 [Re: alexb3d] #116281 10/26/19 11:30 AM
Joined: Mar 2004
Posts: 647
belegdol Online Content
Senior Member
Online Content
Senior Member
Joined: Mar 2004
Posts: 647

Re: Installation error - Ubuntu 18.04 [Re: belegdol] #116357 11/06/19 03:32 AM
Joined: Nov 2017
Posts: 14
alexb3d Offline OP
Member
OP Offline
Member
Joined: Nov 2017
Posts: 14
belegdol, I do not understand. eek


[ ...pensando en imágenes ]
Re: Installation error - Ubuntu 18.04 [Re: alexb3d] #116358 11/06/19 04:09 AM
Joined: Mar 2001
Posts: 16,371
R
R. Belmont Online Content
Very Senior Member
Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,371
Belegdol's patch makes QMC2 compile with the current version of the minizip package. If you apply it, it should solve your compile problem.

Re: Installation error - Ubuntu 18.04 [Re: R. Belmont] #116369 11/08/19 04:37 AM
Joined: Nov 2017
Posts: 14
alexb3d Offline OP
Member
OP Offline
Member
Joined: Nov 2017
Posts: 14
Yes, I am looking for the way but I don't understand how it is done. How is the patch applied?


[ ...pensando en imágenes ]
Re: Installation error - Ubuntu 18.04 [Re: alexb3d] #116370 11/08/19 06:32 AM
Joined: Mar 2004
Posts: 647
belegdol Online Content
Senior Member
Online Content
Senior Member
Joined: Mar 2004
Posts: 647
You need to download the patch:
https://src.fedoraproject.org/rpms/...a017b468a1f4c5b174b/f/qmc2-minizip.patch
then go into the qmc2 source dir and run
Code
$ patch -p1 < wherever/you/saved/it/qmc2-minizip.patch

and then compile as normal.

Re: Installation error - Ubuntu 18.04 [Re: belegdol] #116372 11/08/19 08:45 PM
Joined: Nov 2017
Posts: 14
alexb3d Offline OP
Member
OP Offline
Member
Joined: Nov 2017
Posts: 14
I download the source: $ mkdir ~/src; cd ~/src; svn co https://svn.code.sf.net/p/qmc2/code/trunk qmc2; cd qmc2

I run the patch: $ patch -p1 < /home/lex/qmc2-minizip.patch

I have mistakes:
patching file arcade/imageprovider.h
patching file collectionrebuilder.cpp
patching file filesystemmodel.h
patching file imagechecker.cpp
patching file imagechecker.h
patching file imagewidget.h
patching file machinelist.cpp
patching file options.cpp
patching file qmc2main.cpp
Hunk #1 succeeded at 59 (offset -1 lines).
patching file romalyzer.cpp
Hunk #3 FAILED at 3636.
1 out of 3 hunks FAILED -- saving rejects to file romalyzer.cpp.rej
patching file softwarelist.h

Make gives me a fatal error... make DISTCFG=1
imagewidget.h:13:10: fatal error: mz_compat.h: No such file or directory
#include "mz_compat.h"
^~~~~~~~~~~~~
compilation terminated.
Makefile.qmake:2004: recipe for target 'qmc2main.o' failed
make[1]: *** [qmc2main.o] Error 1
make[1]: Leaving directory '/home/lex/src/qmc2'
Makefile:1042: recipe for target 'qmc2-bin' failed
make: *** [qmc2-bin] Error 2

Make install also gives me the fatal error... sudo make install DISTCFG=1
imagewidget.h:13:10: fatal error: mz_compat.h: No such file or directory
#include "mz_compat.h"
^~~~~~~~~~~~~
compilation terminated.
Makefile.qmake:2004: recipe for target 'qmc2main.o' failed
make[1]: *** [qmc2main.o] Error 1
make[1]: Leaving directory '/home/lex/src/qmc2'
Makefile:1042: recipe for target 'qmc2-bin' failed
make: *** [qmc2-bin] Error 2


[ ...pensando en imágenes ]
Re: Installation error - Ubuntu 18.04 [Re: alexb3d] #116375 11/09/19 09:35 AM
Joined: Mar 2004
Posts: 647
belegdol Online Content
Senior Member
Online Content
Senior Member
Joined: Mar 2004
Posts: 647
The patch is for 0.195, not for trunk, this is why you are getting errors. You need to fix them manually before building or the success cannot be guaranteed.
Regarding the other issue: in fedora mz_compat.h is provided by minizip-devel package:
https://koji.fedoraproject.org/koji/rpminfo?rpmID=19209559
Can you check which package provides it on Ubuntu and install it?

Re: Installation error - Ubuntu 18.04 [Re: alexb3d] #116376 11/09/19 09:51 AM
Joined: Mar 2004
Posts: 647
belegdol Online Content
Senior Member
Online Content
Senior Member
Joined: Mar 2004
Posts: 647
Please ignore all my previous posts. Checkout the trunk and remove the last ,0 from the romalyzer.cpp which fails to compile.
Turns out I broke the trunk by accident and you are the first one who noticed. I will fix it later today.

Page 1 of 2 1 2

Moderated by  qmc2 

Who's Online Now
5 registered members (Sune, Fake Shemp, Vas Crabb, 2 invisible), 143 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics8,710
Posts114,489
Members4,869
Most Online510
Aug 26th, 2019
Powered by UBB.threads™ PHP Forum Software 7.7.3