Home Page

Installation error - Ubuntu 18.04

Posted By: alexb3d

Installation error - Ubuntu 18.04 - 10/26/19 12:14 AM

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
Posted By: Vas Crabb

Re: Installation error - Ubuntu 18.04 - 10/26/19 12:17 AM

Eventually the community is going to have to pick up the project.
Posted By: belegdol

Re: Installation error - Ubuntu 18.04 - 10/26/19 11:30 AM

https://src.fedoraproject.org/rpms/qmc2/c/4adcce583b085bbe9c6b3a017b468a1f4c5b174b?branch=master
Posted By: alexb3d

Re: Installation error - Ubuntu 18.04 - 11/06/19 03:32 AM

belegdol, I do not understand. eek
Posted By: R. Belmont

Re: Installation error - Ubuntu 18.04 - 11/06/19 04:09 AM

Belegdol's patch makes QMC2 compile with the current version of the minizip package. If you apply it, it should solve your compile problem.
Posted By: alexb3d

Re: Installation error - Ubuntu 18.04 - 11/08/19 04:37 AM

Yes, I am looking for the way but I don't understand how it is done. How is the patch applied?
Posted By: belegdol

Re: Installation error - Ubuntu 18.04 - 11/08/19 06:32 AM

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.
Posted By: alexb3d

Re: Installation error - Ubuntu 18.04 - 11/08/19 08:45 PM

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
Posted By: belegdol

Re: Installation error - Ubuntu 18.04 - 11/09/19 09:35 AM

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?
Posted By: belegdol

Re: Installation error - Ubuntu 18.04 - 11/09/19 09:51 AM

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.
Posted By: belegdol

Re: Installation error - Ubuntu 18.04 - 11/09/19 01:20 PM

Trunk is now fixed, apologies for the trouble. You should be able to checkout the latest source and compile without needing any patches.
Posted By: alexb3d

Re: Installation error - Ubuntu 18.04 - 11/09/19 09:46 PM

Installed and works perfect. Thank you!

I'm glad to have served something, because I don't know how to program anything. eek

[img]https://yadi.sk/i/u7sjMPh8EKzRGw[/img]
Posted By: oddi

Re: Installation error - Ubuntu 18.04 - 11/11/19 04:20 PM

Please, upload anyhere the last compiled executable for win10 x64, thank you smile
© 2020 Forums