<div dir="ltr">Hi Bill,<div><br></div><div>I've managed to get therion and loch to compile on Fedora 25 - see <a href="https://copr.fedorainfracloud.org/coprs/jmbegley/therion/">https://copr.fedorainfracloud.org/coprs/jmbegley/therion/</a></div><div><br></div><div>The makefile that is used for loch is attached - hope this helps :)</div><div><br></div><div>However, whilst xtherion is happy to run, I can't actually get loch to run. I get an error message that states</div><div><br></div><div>"Error: glxCreateContext failed"</div><div><br></div><div>Which is presumably some missing graphics library on my workstation :(</div><div><br></div><div>Cheers,</div><div>James<br><br><div class="gmail_quote"><div dir="ltr">On Sun, 23 Apr 2017 at 15:43 Bill Gee via Therion <<a href="mailto:therion@speleo.sk">therion@speleo.sk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello everyone -<br>
<br>
Once again I am wrestling with the ancient problem of getting loch to compile<br>
on Fedora Linux. Below is the sequence of errors that I get. I think I can<br>
modify the Therion Makefile so that it skips loch, but I would rather not do<br>
that.<br>
<br>
Some versions ago I figured out a set of changes to the loch Makefile that<br>
allowed it to compile. The listing below shows those changes. They do not<br>
work anymore, as seen by the compiler error.<br>
<br>
In the second set of errors it is saying that some libraries cannot be found.<br>
I do not find any files by these exact names. They probably have some<br>
extension, perhaps .so? But I do not find any files with that extension<br>
either. vtkIO.so does not exist.<br>
<br>
Two questions for the group:<br>
<br>
1) Exactly what files are missing? I very likely have them, just not where<br>
the compiler is looking. If I can find them, maybe I can add something to<br>
VTKLIBPATH.<br>
<br>
2) Is there an easier way to deal with this? Why is it that Fedora always has<br>
problems? It should Just Work.<br>
<br>
--<br>
Bill Gee<br>
<br>
<br>
<br>
===== Using the providede Makefile for loch:<br>
make -C ./loch<br>
make[1]: Entering directory '/home/bgee/Installs/therion-5.4.1/loch'<br>
gcc -c -Wall -D_GNU_SOURCE -DLOCH -DLXLINUX -I/usr/lib64/wx/include/gtk3-<br>
unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -<br>
D__WXGTK__ -pthread -O2 -o /home/bgee/Installs/therion.bin/loch/lxR2P.o<br>
lxR2P.c<br>
gcc -c -Wall -D_GNU_SOURCE -DLOCH -DLXLINUX -I/usr/lib64/wx/include/gtk3-<br>
unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -<br>
D__WXGTK__ -pthread -O2 -o /home/bgee/Installs/therion.bin/loch/lxTR.o lxTR.c<br>
c++ -c -Wall -D_GNU_SOURCE -DLOCH -DLXLINUX -I/usr/lib64/wx/include/gtk3-<br>
unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -<br>
D__WXGTK__ -pthread -Wno-deprecated -I/usr/include/freetype2 -I/usr/local/<br>
include/vtk-5.4 -O2 -o /home/bgee/Installs/therion.bin/loch/lxOGLFT.o<br>
lxOGLFT.cxx<br>
c++ -c -Wall -D_GNU_SOURCE -DLOCH -DLXLINUX -I/usr/lib64/wx/include/gtk3-<br>
unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -<br>
D__WXGTK__ -pthread -Wno-deprecated -I/usr/include/freetype2 -I/usr/local/<br>
include/vtk-5.4 -O2 -o /home/bgee/Installs/therion.bin/loch/lxSetup.o<br>
lxSetup.cxx<br>
In file included from lxSetup.h:23:0,<br>
from lxSetup.cxx:38:<br>
lxData.h:34:25: fatal error: vtkPolyData.h: No such file or directory<br>
#include <vtkPolyData.h><br>
^<br>
compilation terminated.<br>
Makefile:147: recipe for target '/home/bgee/Installs/therion.bin/loch/<br>
lxSetup.o' failed<br>
make[1]: *** [/home/bgee/Installs/therion.bin/loch/lxSetup.o] Error 1<br>
make[1]: Leaving directory '/home/bgee/Installs/therion-5.4.1/loch'<br>
Makefile:206: recipe for target 'loch/loch' failed<br>
make: *** [loch/loch] Error 2<br>
bgee ~ Installs therion-5.4.1 <br>
<br>
<br>
=== Modified loch makefile:<br>
#VTKVERSION = $(shell tclsh ./getvtkver.tcl version)<br>
#VTKPATH = $(shell tclsh ./getvtkver.tcl incpath)<br>
#VTKLIBPATH = $(shell tclsh ./getvtkver.tcl libpath)<br>
VTKVERSION=6.3<br>
VTKV6 = $(shell tclsh ./getvtkver.tcl version6)<br>
#ifeq ($(VTKV6),1)<br>
#VTKLIBS = -lvtkCommonExecutionModel-$(VTKVERSION) -lvtkCommonDataModel-$<br>
(VTKVERSION) -lvtkCommonCore-$(VTKVERSION) -lvtkFiltersCore-$(VTKVERSION) -<br>
lvtkFiltersHybrid-$(VTKVERSION) -lvtkIOLegacy-$(VTKVERSION) -lfreetype -lpng -<br>
ljpeg<br>
#else<br>
#VTKLIBS = -lvtkHybrid -lvtkImaging -lvtkIO -lvtkGraphics -lvtkFiltering -<br>
lvtkCommon -lvtkjpeg -lvtkpng -lvtkzlib -lvtksys -lfreetype<br>
#endif<br>
# VTKVERSION = 5.4<br>
# VTKPATH = /usr/local/include/vtk-$(VTKVERSION)<br>
# VTKLIBPATH = /usr/local/lib/vtk-$(VTKVERSION)<br>
VTKPATH=/usr/include/vtk<br>
VTKLIBPATH=/usr/lib64/vtk<br>
<br>
==== Gives this result when compiling:<br>
c++ -o ./loch -Wall ./lxR2P.o ./lxTR.o ./lxOGLFT.o ./lxSetup.o ./lxRender.o<br>
./lxWX.o ./lxImgIO.o ./lxLRUD.o ./lxFile.o ./lxSTree.o ./lxData.o ./lxMath.o<br>
./lxSView.o ./lxSScene.o ./lxGUI.o ./lxGLC.o ./lxOptDlg.o ./lxAboutDlg.o ./<br>
lxPres.o ./img.o -lwx_gtk3u_gl-3.0 -pthread -lwx_gtk3u_xrc-3.0 -<br>
lwx_gtk3u_webview-3.0 -lwx_gtk3u_html-3.0 -lwx_gtk3u_qa-3.0 -lwx_gtk3u_adv-3.0<br>
-lwx_gtk3u_core-3.0 -lwx_baseu_xml-3.0 -lwx_baseu_net-3.0 -lwx_baseu-3.0 -L/<br>
usr/lib64/vtk -lvtkHybrid -lvtkImaging -lvtkIO -lvtkGraphics -lvtkFiltering -<br>
lvtkCommon -lfreetype -lGLU -lGL -lpthread -lX11 -lz -s<br>
/usr/bin/ld: cannot find -lvtkHybrid<br>
/usr/bin/ld: cannot find -lvtkImaging<br>
/usr/bin/ld: cannot find -lvtkIO<br>
/usr/bin/ld: cannot find -lvtkGraphics<br>
/usr/bin/ld: cannot find -lvtkFiltering<br>
/usr/bin/ld: cannot find -lvtkCommon<br>
collect2: error: ld returned 1 exit status<br>
Makefile:165: recipe for target 'loch' failed<br>
make: *** [loch] Error 1<br>
<br>
==== Installed vtk packages:<br>
bgee ~ Installs therion-5.4.1 loch rpm -qa | grep vtk<br>
vtk-python-6.3.0-11.fc25.x86_64<br>
vtk-java-6.3.0-11.fc25.x86_64<br>
vtk-tcl-6.3.0-11.fc25.x86_64<br>
vtk-6.3.0-11.fc25.x86_64<br>
vtk-qt-tcl-6.3.0-11.fc25.x86_64<br>
vtk-devel-6.3.0-11.fc25.x86_64<br>
vtk-qt-6.3.0-11.fc25.x86_64<br>
vtk-qt-python-6.3.0-11.fc25.x86_64<br>
<br>
<br>
<br>
_______________________________________________<br>
Therion mailing list<br>
<a href="mailto:Therion@speleo.sk" target="_blank">Therion@speleo.sk</a><br>
<a href="https://mailman.speleo.sk/listinfo/therion" rel="noreferrer" target="_blank">https://mailman.speleo.sk/listinfo/therion</a><br>
</blockquote></div></div></div>