Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 660542 - media-gfx/meshlab-2016.12-r2 : mainserver.cpp:900:93: error: no matching function for call to asString(int)
Summary: media-gfx/meshlab-2016.12-r2 : mainserver.cpp:900:93: error: no matching func...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Amy Liffey
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-06 18:57 UTC by Toralf Förster
Modified: 2019-01-03 17:17 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,18.61 KB, text/plain)
2018-07-06 18:57 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,338.80 KB, text/plain)
2018-07-06 18:57 UTC, Toralf Förster
Details
environment (environment,58.22 KB, text/plain)
2018-07-06 18:57 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,18.20 KB, application/x-bzip)
2018-07-06 18:57 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,1.96 KB, application/x-bzip)
2018-07-06 18:57 UTC, Toralf Förster
Details
media-gfx:meshlab-2016.12-r2:20180706-184147.log.bz2 (media-gfx:meshlab-2016.12-r2:20180706-184147.log.bz2,34.07 KB, application/x-bzip)
2018-07-06 18:57 UTC, Toralf Förster
Details
-r4 ebuild, including fedora patches (meshlab-2016.12-r4.ebuild,3.54 KB, text/plain)
2019-01-01 00:20 UTC, myoung008
Details
qprintable patch (meshlab-2016.12-qprintable.patch,898 bytes, patch)
2019-01-01 00:21 UTC, myoung008
Details | Diff
qt-includes patch (meshlab-2016.12-qt-includes.patch,521 bytes, patch)
2019-01-01 00:21 UTC, myoung008
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2018-07-06 18:57:28 UTC
                 from mainserver.cpp:25:
mainserver.cpp: In function ‘int main(int, char**)’:
mainserver.cpp:900:93: error: no matching function for call to ‘asString(int)’
  trying to save %i meshes, but only %i available in the project\n", qPrintable(outmeshlist.size()), qPrintable(meshDocument.size()));
                                                                     ^
In file included from /usr/include/qt5/QtCore/qcoreapplication.h:44:0,

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-desktop-plasma-systemd_20180623-161502

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.0 *

Available Python interpreters, in order of preference:
  [1]   python3.5
  [2]   python3.6 (fallback)
  [3]   python2.7 (fallback)
  [4]   pypy3 (fallback)
Available Ruby profiles:
  [1]   ruby23 (with Rubygems) *
  [2]   ruby25 (with Rubygems)
java-config:
The following VMs are available for generation-2:
1)	IcedTea JDK 3.8.0 [icedtea-8]
*)	IcedTea JDK 3.8.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-8 
  [2]   icedtea-bin-8  system-vm

emerge -qpv media-gfx/meshlab
[ebuild  N    ] media-gfx/meshlab-2016.12-r2  USE="-minimal"
Comment 1 Toralf Förster gentoo-dev 2018-07-06 18:57:31 UTC
Created attachment 538620 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-07-06 18:57:34 UTC
Created attachment 538622 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2018-07-06 18:57:37 UTC
Created attachment 538624 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2018-07-06 18:57:40 UTC
Created attachment 538626 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2018-07-06 18:57:42 UTC
Created attachment 538628 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2018-07-06 18:57:45 UTC
Created attachment 538630 [details]
media-gfx:meshlab-2016.12-r2:20180706-184147.log.bz2
Comment 7 Miro Hrončok 2018-09-04 21:16:03 UTC
Here's a Fedora commit that made it build for us. Hope that helps.

https://src.fedoraproject.org/rpms/meshlab/c/e1410053455a497d32b1e896eb7e99a7224b6832?branch=master
Comment 8 Larry the Git Cow gentoo-dev 2018-09-05 05:56:47 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a1e4a213fb6bdf0c313e0a04e5e2327e28679625

commit a1e4a213fb6bdf0c313e0a04e5e2327e28679625
Author:     Amy Liffey <amynka@gentoo.org>
AuthorDate: 2018-09-05 05:46:18 +0000
Commit:     Amy Liffey <amynka@gentoo.org>
CommitDate: 2018-09-05 05:46:18 +0000

    media-gfx/meshlab: fix asString crash
    
    - Added patch from fedora
    Suggested-by: Miro Hrončok <miro@hroncok.cz>
    Closes: https://bugs.gentoo.org/660542
    Package-Manager: Portage-2.3.40, Repoman-2.3.9

 .../files/2016.12/meshlab-2016.12-asString.patch   |  62 ++++++++++++
 media-gfx/meshlab/meshlab-2016.12-r3.ebuild        | 109 +++++++++++++++++++++
 2 files changed, 171 insertions(+)
Comment 9 Juergen Rose 2018-09-05 10:31:40 UTC
Almost the same issue happens now with meshlab-2016.12-r3:

mainserver.cpp: In function ‘int main(int, char**)’:
mainserver.cpp:900:93: error: no matching function for call to ‘asString(int)’
   fprintf(logfp, "Error: trying to save %i meshes, but only %i available in the project\n", qPrintable(outmeshlist.size()), qPrintable(meshDocument.size()));
                                                                                             ^~~~~~~~~~
In file included from /usr/include/qt5/QtCore/qcoreapplication.h:44,
Comment 10 smellyfis 2018-10-02 00:29:07 UTC
I can confirm that there is an issue with 2016.2-r3.

manually ebuilding i did the following between prepare and compile:
I removed the two qPrintable from line 900 and one from 914 in mainserver.cpp and I was able to compile past the error mentioned in comment #9.

char *qPrintable(const QString &str) is the signature of qPrintableand though technically correct it was not compiling.
Comment 11 Juergen Rose 2018-10-02 13:50:57 UTC
(In reply to smellyfis from comment #10)
> I can confirm that there is an issue with 2016.2-r3.
> 
> manually ebuilding i did the following between prepare and compile:
> I removed the two qPrintable from line 900 and one from 914 in
> mainserver.cpp and I was able to compile past the error mentioned in comment
> #9.
> 
> char *qPrintable(const QString &str) is the signature of qPrintableand
> though technically correct it was not compiling.

After performing these changes in in Line 900 and 914 of mainserver.cpp 'emerge meshlab' fails now with:

...
shaderDialog.h:55:21: error: ‘QSlider’ was not declared in this scope                                                                                                                               
   std::map<QString, QSlider*> sliders;                                                                                                                                                             
                     ^~~~~~~                                                                                                                                                                        
shaderDialog.h:55:21: note: suggested alternative: ‘QTimer’                                                                                                                                         
   std::map<QString, QSlider*> sliders;                                                                                                                                                             
                     ^~~~~~~                                                                                                                                                                        
                     QTimer
shaderDialog.h:55:29: error: template argument 2 is invalid
   std::map<QString, QSlider*> sliders;
                             ^
shaderDialog.h:55:29: error: template argument 4 is invalid
shaderDialog.h:56:15: error: ‘QLineEdit’ was not declared in this scope
   std::vector<QLineEdit*> textLineEdits;
...
Comment 12 Dylan Wakefield 2018-10-06 08:52:30 UTC
The Fedora commit linked in comment #7 fixed the build failure for me.
Comment 13 myoung008 2018-12-29 17:32:31 UTC
Fedora commit worked for me too.
Comment 14 Amy Liffey gentoo-dev 2018-12-30 12:01:44 UTC
(In reply to myoung008 from comment #13)
> Fedora commit worked for me too.

Are you saying that the  meshlab-2016.12-r3 works for you fine?
Comment 15 myoung008 2019-01-01 00:19:27 UTC
After adding patch files to match the patches in the fedora commit, changing the ebuild to use those patches, yes.

x86_64, gcc 8.2.0, qt 5.12.0, gentoo 17.0 profile

I made a -r4 ebuild.  I'll attach everything to this post.
Comment 16 myoung008 2019-01-01 00:20:44 UTC
Created attachment 559204 [details]
-r4 ebuild, including fedora patches
Comment 17 myoung008 2019-01-01 00:21:19 UTC
Created attachment 559206 [details, diff]
qprintable patch
Comment 18 myoung008 2019-01-01 00:21:39 UTC
Created attachment 559208 [details, diff]
qt-includes patch
Comment 19 Larry the Git Cow gentoo-dev 2019-01-03 17:17:19 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff0d1adb28af2bd042e1374ba7c16aa87662cb85

commit ff0d1adb28af2bd042e1374ba7c16aa87662cb85
Author:     Amy Liffey <amynka@gentoo.org>
AuthorDate: 2019-01-03 16:49:10 +0000
Commit:     Amy Liffey <amynka@gentoo.org>
CommitDate: 2019-01-03 16:49:10 +0000

    media-gfx/meshlab: Add fedora patches
    
    Closes: https://bugs.gentoo.org/660542
    Submitted-by: <myoung008@yahoo.com>
    Signed-off-by: Amy Liffey <amynka@gentoo.org>
    Package-Manager: Portage-2.3.49, Repoman-2.3.11

 .../files/2016.12/meshlab-2016.12-qprintable.patch |  20 ++++
 .../2016.12/meshlab-2016.12-qt-includes.patch      |  22 ++++
 media-gfx/meshlab/meshlab-2016.12-r4.ebuild        | 111 +++++++++++++++++++++
 3 files changed, 153 insertions(+)