Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 614776 - media-gfx/meshlab-1.3.3 : ssynth/.../VoxelStepper.cpp:125:26: error: cannot convert ‘bool’ to ‘QList<SyntopiaCore::GLEngine::Object3D*>*’ in return
Summary: media-gfx/meshlab-1.3.3 : ssynth/.../VoxelStepper.cpp:125:26: error: cannot c...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Amy Liffey
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-05 15:34 UTC by Toralf Förster
Modified: 2017-08-11 12:47 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,6.15 KB, text/plain)
2017-04-05 15:34 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,422.03 KB, text/plain)
2017-04-05 15:34 UTC, Toralf Förster
Details
environment (environment,86.78 KB, text/plain)
2017-04-05 15:34 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,37.65 KB, application/x-bzip)
2017-04-05 15:34 UTC, Toralf Förster
Details
media-gfx:meshlab-1.3.3:20170405-024229.log (media-gfx:meshlab-1.3.3:20170405-024229.log,53.59 KB, text/plain)
2017-04-05 15:34 UTC, Toralf Förster
Details
Unapplicable patch for VoxelStepper.cpp (voxelstepper2.patch,466 bytes, patch)
2017-08-11 07:28 UTC, CaptainBlood
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 2017-04-05 15:34:44 UTC
g++ -c -pipe -O2 -fPIC -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_SCRIPT_LIB -DQT_XML_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtScript -I/usr/include/qt4 -Issynth -I. -o VoxelStepper.o ssynth/SyntopiaCore/GLEngine/Raytracer/VoxelStepper.cpp
ssynth/SyntopiaCore/GLEngine/Raytracer/VoxelStepper.cpp: In member function ‘QList<SyntopiaCore::GLEngine::Object3D*>* SyntopiaCore::GLEngine::VoxelStepper::setupRay(SyntopiaCore::Math::Vector3f, SyntopiaCore::Math::Vector3f, double&)’:
ssynth/SyntopiaCore/GLEngine/Raytracer/VoxelStepper.cpp:125:26: error: cannot convert ‘bool’ to ‘QList<SyntopiaCore::GLEngine::Object3D*>*’ in return
       if (!found) return false;
                          ^~~~~
make[1]: *** [Makefile.structuresynth:615: VoxelStepper.o] Error 1

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

  This is an unstable amd64 chroot image (named plasma-abi32+64_20170325-144619) at a hardened host acting as a tinderbox.

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

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

Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python2.7 (fallback)
  [3]   jython2.7 (fallback)
Available Ruby profiles:
  [1]   ruby21 (with Rubygems) *
java-config:
The following VMs are available for generation-2:
1)	IcedTea JDK 7.2.6.9 [icedtea-bin-7]
*)	IcedTea JDK 3.3.0 [icedtea-bin-8]
3)	JamVM JDK 2.0.0 [jamvm]
Available Java Virtual Machines:
  [1]   icedtea-bin-7 
  [2]   icedtea-bin-8  system-vm
  [3]   jamvm
Comment 1 Toralf Förster gentoo-dev 2017-04-05 15:34:47 UTC
Created attachment 469262 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-04-05 15:34:50 UTC
Created attachment 469264 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2017-04-05 15:34:54 UTC
Created attachment 469266 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2017-04-05 15:34:56 UTC
Created attachment 469268 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2017-04-05 15:34:59 UTC
Created attachment 469270 [details]
media-gfx:meshlab-1.3.3:20170405-024229.log
Comment 6 CaptainBlood 2017-08-11 05:08:30 UTC
Same here,
Big problem is that VoxelStepper.cpp is in dos format:
AFAIK patches can not be applied on dos formated file.

The only solution I can think of is manual building...
And it also what I'm about to do!
Comment 7 CaptainBlood 2017-08-11 07:28:06 UTC
Created attachment 488566 [details, diff]
Unapplicable patch for VoxelStepper.cpp

ATEOTD here's how to do it manually with minimal efforts:
1) emerge -1 =media-gfx/meshlab-1.3.3

2) ^C the emerge process after src-prepare() has achieved to have all files unpacked but also soon enough before that compile bug occurs.

3) Patch manually as described in the attached patch (which should not be applied straight forward) as in:

nano -w /var/tmp/portage/media-gfx/meshlab-1.3.3/work/meshlab/src/external/structuresynth-1.5/ssynth/SyntopiaCore/GLEngine/Raytracer/VoxelStepper.cpp

4) Resume the emerge process:
FEATURES=keepwork emerge --resume

Et voilà!
Comment 8 CaptainBlood 2017-08-11 07:49:22 UTC
Forgotten point:
'-std=c++11' is required in CXXFLAGS because of >gcc:5
Comment 9 CaptainBlood 2017-08-11 08:15:31 UTC
(In reply to CaptainBlood from comment #8)
> Forgotten point:
> '-std=c++11' is required in CXXFLAGS because of >gcc:5

Doesn't seem required here finally... Sorry!
Comment 10 Amy Liffey gentoo-dev 2017-08-11 12:47:30 UTC
commit 63a246e7653f2940e57e4c8a2cfb7394aca6269a
Author: Amy Liffey <amynka@gentoo.org>
Date:   Fri Aug 11 14:41:07 2017 +0200

    media-gfx/meshlab: EAPI 6 bump ,fix bug #614776
    
    - Add patch structuresynth build failure
    Submitted-by: CaptainBlood <luc_pierard_de_maujouy@yahoo.fr>
    
    - Fix slot glew

Should work now can you confirm?

Thank you