Gentoo Archives: gentoo-user

From: tuxic@××××××.de
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Compilation error with StructureSynth
Date: Wed, 01 Nov 2017 06:40:25
Message-Id: 20171101064002.hlnim3kr266s3qrv@solfire
In Reply to: Re: [gentoo-user] Compilation error with StructureSynth by David Haller
1 On 11/01 05:17, David Haller wrote:
2 > Hello,
3 >
4 > On Wed, 01 Nov 2017, tuxic@××××××.de wrote:
5 > >I am trying to compile this wonderful beast:
6 > >* media-gfx/structure-synth
7 > > Available versions: (~)1.5.0
8 > > Homepage: http://structuresynth.sourceforge.net/
9 > > Description: A program to generate 3D structures by specifying a design grammar
10 > >
11 > >
12 > >and it gives me this:
13 > >
14 > >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
15 > >In file included from StructureSynth/JavaScriptSupport/Debug.cpp:16:0:
16 > >StructureSynth/JavaScriptSupport/../../SyntopiaCore/GLEngine/Sphere.h:25:4: error: 'GLUquadric' does not name a type
17 > > GLUquadric* myQuad;
18 > > ^
19 >
20 > Copy the media-gfx/structure-synth subdir from the portage-tree to
21 > your local overlay and add the attached files as suggested by the
22 > filenames (create the files/ subdir in advance and put the patch there).
23 >
24 > HTH,
25 > -dnh
26 >
27 > --
28 > WANTED: Schroedingers Cat, dead or alive.
29
30 > # Copyright 1999-2013 Gentoo Foundation
31 > # Distributed under the terms of the GNU General Public License v2
32 >
33 > EAPI=4
34 >
35 > inherit eutils qt4-r2
36 >
37 > MY_P="StructureSynth-Source-v${PV}"
38 > DESCRIPTION="A program to generate 3D structures by specifying a design grammar"
39 > HOMEPAGE="http://structuresynth.sourceforge.net/"
40 > SRC_URI="mirror://sourceforge/structuresynth/${MY_P}.zip"
41 >
42 > LICENSE="|| ( LGPL-2.1 GPL-3 )"
43 > SLOT="0"
44 > KEYWORDS="~amd64 ~x86"
45 > IUSE=""
46 >
47 > RDEPEND="virtual/opengl
48 > dev-qt/qtcore:4
49 > dev-qt/qtgui:4
50 > dev-qt/qtopengl:4
51 > dev-qt/qtscript:4"
52 > DEPEND="${RDEPEND}
53 > app-arch/unzip"
54 >
55 > S="${WORKDIR}/Structure Synth Source Code"
56 >
57 > src_prepare() {
58 > epatch "${FILESDIR}/structure-synth-1.5.0-gl.patch"
59 >
60 > qmake -project -o ${PN}.pro -after "CONFIG+=opengl" \
61 > -after "QT+=xml opengl script" \
62 > QMAKE_LIBS_OPENGL="-lGLU -lGL" || die "qmake failed"
63 > }
64 >
65 > src_install() {
66 > dobin ${PN}
67 > dodoc roadmap.txt changelog.txt bugs.txt
68 > domenu ${PN}.desktop
69 > newicon images/structuresynth.png ${PN}.png
70 > }
71
72
73 Hi David,
74
75 thanks a LOT for the patch !!! This is one of the quickestestest :)
76 patch I ever got for a compilation problem! :) Yeah!
77
78 But it seems, that I am doing something wrong with the local
79 overlay...
80
81 I copied (as root)
82
83 cp -a /usr/portage/media-gfx/structur-synth /usr/local/portage/media-gfx/.
84
85 then
86
87 eix structure-synth
88
89 * media-gfx/structure-synth
90 Available versions: (~)1.5.0
91 Homepage: http://structuresynth.sourceforge.net/
92 Description: A program to generate 3D structures by specifying a design grammar
93
94 so no *-r1 version visible.
95
96 layman -l does not show up structure-synth
97
98 Then I tried different permutations of "media-gfx" (w/o) and
99 structur-synth in combination with layman -a in desperation ;)
100 no success
101
102 Previously I successfully added the palemoon overlay and compiled it
103 and compilation failed due to some code problems (which fails, but this a long long and different story).
104
105 So I think, that the layman engine is working correctly so far.
106 But the driver behind the steering wheels needs some instructions it
107 seems.... ;)
108 Where can I get my license?
109
110 Cheers
111 Meino

Replies

Subject Author
Re: [gentoo-user] Compilation error with StructureSynth David Haller <gentoo@×××××××.de>