Hello,

On Wed, 01 Nov 2017, tu...@posteo.de wrote:
>I am trying to compile this wonderful beast:
>* media-gfx/structure-synth
>     Available versions:  (~)1.5.0
>     Homepage:            http://structuresynth.sourceforge.net/
>     Description:         A program to generate 3D structures by specifying a 
> design grammar
>
>
>and it gives me this:
>
>x86_64-pc-linux-gnu-g++ -c -march=native -O2 -pipe -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 -I. 
>-IStructureSynth/GUI -ISyntopiaCore/GLEngine -ISyntopiaCore/Math 
>-ISyntopiaCore/Misc -IStructureSynth/Parser -ISyntopiaCore/Exceptions 
>-IStructureSynth/Model/Rendering -IStructureSynth/Model 
>-IThirdPartyCode/MersenneTwister -ISyntopiaCore/Logging 
>-IStructureSynth/JavaScriptSupport -ISyntopiaCore/GLEngine/Raytracer -I. -o 
>JavaScriptParser.o StructureSynth/JavaScriptSupport/JavaScriptParser.cpp
>In file included from StructureSynth/JavaScriptSupport/Debug.cpp:16:0:
>StructureSynth/JavaScriptSupport/../../SyntopiaCore/GLEngine/Sphere.h:25:4: 
>error: 'GLUquadric' does not name a type
>    GLUquadric* myQuad;    
>    ^

Copy the media-gfx/structure-synth subdir from the portage-tree to
your local overlay and add the attached files as suggested by the
filenames (create the files/ subdir in advance and put the patch there).

HTH,
-dnh

-- 
WANTED: Schroedingers Cat, dead or alive.
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=4

inherit eutils qt4-r2

MY_P="StructureSynth-Source-v${PV}"
DESCRIPTION="A program to generate 3D structures by specifying a design grammar"
HOMEPAGE="http://structuresynth.sourceforge.net/";
SRC_URI="mirror://sourceforge/structuresynth/${MY_P}.zip"

LICENSE="|| ( LGPL-2.1 GPL-3 )"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

RDEPEND="virtual/opengl
        dev-qt/qtcore:4
        dev-qt/qtgui:4
        dev-qt/qtopengl:4
        dev-qt/qtscript:4"
DEPEND="${RDEPEND}
        app-arch/unzip"

S="${WORKDIR}/Structure Synth Source Code"

src_prepare() {
        epatch "${FILESDIR}/structure-synth-1.5.0-gl.patch"

        qmake -project -o ${PN}.pro -after "CONFIG+=opengl" \
                -after "QT+=xml opengl script" \
                QMAKE_LIBS_OPENGL="-lGLU -lGL" || die "qmake failed"
}

src_install() {
        dobin ${PN}
        dodoc roadmap.txt changelog.txt bugs.txt
        domenu ${PN}.desktop
        newicon images/structuresynth.png ${PN}.png
}
diff -x '*~' -purN a/SyntopiaCore/GLEngine/Raytracer/Sampler.h b/SyntopiaCore/GLEngine/Raytracer/Sampler.h
--- a/SyntopiaCore/GLEngine/Raytracer/Sampler.h	2010-11-04 20:02:46.000000000 +0100
+++ b/SyntopiaCore/GLEngine/Raytracer/Sampler.h	2017-11-01 04:42:46.320970684 +0100
@@ -1,5 +1,6 @@
 #pragma once
 
+#include <GL/glu.h>
 #include "SyntopiaCore/Math/Random.h"
 #include "SyntopiaCore/Math/Vector3.h"
 
diff -x '*~' -purN a/SyntopiaCore/GLEngine/Raytracer/VoxelStepper.cpp b/SyntopiaCore/GLEngine/Raytracer/VoxelStepper.cpp
--- a/SyntopiaCore/GLEngine/Raytracer/VoxelStepper.cpp	2010-09-08 21:25:30.000000000 +0200
+++ b/SyntopiaCore/GLEngine/Raytracer/VoxelStepper.cpp	2017-11-01 04:46:51.052969311 +0100
@@ -122,7 +122,7 @@ namespace SyntopiaCore {
 						currentT = p;
 
 						// We do not intersect grid.
-						if (!found) return false;
+						if (!found) return 0;
 				}
 
 				stepX = (dir.x() > 0) ? 1 : -1;
diff -x '*~' -purN a/SyntopiaCore/GLEngine/Sphere.h b/SyntopiaCore/GLEngine/Sphere.h
--- a/SyntopiaCore/GLEngine/Sphere.h	2010-08-11 15:12:22.000000000 +0200
+++ b/SyntopiaCore/GLEngine/Sphere.h	2017-11-01 04:42:55.864970632 +0100
@@ -1,5 +1,6 @@
 #pragma once
 
+#include <GL/glu.h>
 #include "SyntopiaCore/Math/Vector3.h"
 #include "Object3D.h"
 

Reply via email to