All tests are now passing: *===============================================================================**All tests passed* (47 assertions in 19 test cases) but I am getting a vtk error during the loch make: make -C ./loch make[1]: Entering directory '/home/user/Downloads/therion-master/loch' gcc -c -Wall -D_GNU_SOURCE -DLOCH -DLXLINUX -I/usr/lib64/wx/include/gtk3-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -O2 -o /home/user/Downloads/therion.bin/loch/lxR2P.o lxR2P.c gcc -c -Wall -D_GNU_SOURCE -DLOCH -DLXLINUX -I/usr/lib64/wx/include/gtk3-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -O2 -o /home/user/Downloads/therion.bin/loch/lxTR.o lxTR.c c++ -c -Wall -D_GNU_SOURCE -DLOCH -DLXLINUX -std=c++11 -I/usr/lib64/wx/include/gtk3-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -Wno-deprecated -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/local/include/vtk-5.4 -O2 -o /home/user/Downloads/therion.bin/loch/lxOGLFT.o lxOGLFT.cxx c++ -c -Wall -D_GNU_SOURCE -DLOCH -DLXLINUX -std=c++11 -I/usr/lib64/wx/include/gtk3-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -Wno-deprecated -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/local/include/vtk-5.4 -O2 -o /home/user/Downloads/therion.bin/loch/lxSetup.o lxSetup.cxx In file included from *lxSetup.h:23*, from *lxSetup.cxx:38*:*lxData.h:34:10:* *fatal error: *vtkPolyData.h: No such file or directory #include *<vtkPolyData.h>* *^~~~~~~~~~~~~~~* compilation terminated. make[1]: *** [Makefile:174: /home/user/Downloads/therion.bin/loch/lxSetup.o] Error 1 make[1]: Leaving directory '/home/user/Downloads/therion-master/loch' make: *** [Makefile:228: loch/loch] Error 2 Is this an error in my VTK installation or the loch files? I had to build VTK from source so there may be something missing or incorrectly configured there. I'm sorry I keep coming back with more questions, but I would really like to get this up and running on this machine, I really appreciate the time and effort you are putting into helping me Martin. Best regards, Þórir Már On Wed, Aug 19, 2020 at 6:09 AM Martin Budaj <m.budaj@gmail.com> wrote:
Hi, check out the latest commit in the master branch. It uses a different approach to labels handling for newer Proj versions. M.
On Mon, Aug 17, 2020 at 10:10 PM Þórir Már Jónsson <thorirmar@gmail.com> wrote:
There is only one line with each of these values:
The last line of the file contains epsg_labels:
map<int, const char *> epsg_labels = {};
and line 738 contains 32634:
{false, true, false, "+init=epsg:32634", "PROJCS[\"WGS_1984_UTM_Zone_34N\",GEOGCS[\"GCS_WGS_1984\",DATUM[\"D_WGS_1984\",SPHEROID[\"WGS_1984\",6378137.0,298.257223563]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Transverse_Mercator\"],PARAMETER[\"False_Easting\",500000.0],PARAMETER[\"False_Northing\",0.0],PARAMETER[\"Central_Meridian\",21.0],PARAMETER[\"Scale_Factor\",0.9996],PARAMETER[\"Latitude_Of_Origin\",0.0],UNIT[\"Meter\",1.0]]", "WGS84 / UTM zone 34N"},
There is no output when I run tclsh thcsdata.tcl. The script seems to exit normally, but without printing anything.
Þórir Már
On Mon, Aug 17, 2020 at 7:38 PM Martin Budaj <m.budaj@gmail.com> wrote:
Hi, check the definition of map<int, const char *> epsg_labels in the file thcsdata.cxx (the file is generated by make). Is there a key/value pair with a key 32634? What's the value associated with the key? There should be a line containing something like {32634, "WGS 84 / UTM zone 34N"},
Also check the terminal output when you run tclsh thcsdata.tcl
Martin
On Mon, Aug 17, 2020 at 4:35 AM Þórir Már Jónsson <thorirmar@gmail.com> wrote:
With some difficulty I've managed to find and install libsqlite-tcl. This package was apparently dropped when CentOs went from version 7 to 8, but it is still built for CloudLinux which happens to be based on CentOs 8, saving me from having to find the source and building it myself. Nevertheless make is still failing on the same test as before:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~utest is a Catch v2.11.3 host application.Run with -? for options
------------------------------------------------------------------------------- projections: EPSG label -------------------------------------------------------------------------------utest-proj.cxx:77............................................................................... utest-proj.cxx:78: *FAILED:* CHECK( (epsg_labels.count(32634) > 0 && strcmp(epsg_labels[32634],"WGS 84 / UTM zone 34N") == 0) ) with expansion:* false* *====*=========================================================================== test cases: 18 | 17 passed | *1 failed* assertions: 44 | 43 passed | *1 failed*
make: *** [Makefile:184: tests] Error 1
I went to through the dependencies listed in the Appendix of the book just to make sure I had not missed anything; here is what I have installed:
- gcc-8.3.1-5.1.el8.x86_64 - gcc-c++-8.3.1-5.1.el8.x86_64 - make-4.2.1-10.el8.x86_64 - Perl (I'm not sure which of these are relevant, but these are the once I have installed): - perl-Carp-1.42-396.el8.noarch - perl-constant-1.33-396.el8.noarch - perl-CPAN-Meta-2.150010-396.el8.noarch - perl-CPAN-Meta-Requirements-2.140-396.el8.noarch - perl-CPAN-Meta-YAML-0.018-397.el8.noarch - perl-Data-Dumper-2.167-399.el8.x86_64 - perl-DBD-MySQL-4.046-3.module_el8.3.0+419+c2dec72b.x86_64 - perl-DBI-1.641-3.module_el8.3.0+413+9be2aeb5.x86_64 - perl-devel-5.26.3-416.el8.x86_64 - perl-Digest-1.17-395.el8.noarch - perl-Digest-MD5-2.55-396.el8.x86_64 - perl-Encode-2.97-3.el8.x86_64 - perl-Encode-Locale-1.05-10.module_el8.3.0+416+dee7bcef.noarch - perl-encoding-2.22-3.el8.x86_64 - perl-Errno-1.28-416.el8.x86_64 - perl-Error-0.17025-2.el8.noarch - perl-Exporter-5.72-396.el8.noarch - perl-ExtUtils-Command-7.34-1.el8.noarch - perl-ExtUtils-Install-2.14-4.el8.noarch - perl-ExtUtils-MakeMaker-7.34-1.el8.noarch - perl-ExtUtils-Manifest-1.70-395.el8.noarch - perl-ExtUtils-ParseXS-3.35-2.el8.noarch - perl-Fedora-VSP-0.001-9.el8.noarch - perl-File-Path-2.15-2.el8.noarch - perl-File-Temp-0.230.600-1.el8.noarch - perl-Filter-1.58-2.el8.x86_64 - perl-generators-1.10-9.el8.noarch - perl-Getopt-Long-2.50-4.el8.noarch - perl-Git-2.27.0-1.el8.noarch - perl-HTTP-Tiny-0.074-1.el8.noarch - perl-interpreter-5.26.3-416.el8.x86_64 - perl-IO-1.38-416.el8.x86_64 - perl-IO-Socket-IP-0.39-5.el8.noarch - perl-IO-Socket-SSL-2.066-4.module_el8.3.0+410+ff426aa3.noarch - perl-JSON-PP-2.97.001-3.el8.noarch - perl-libnet-3.11-3.el8.noarch - perl-libs-5.26.3-416.el8.x86_64 - perl-macros-5.26.3-416.el8.x86_64 - perl-Math-BigInt-1.9998.11-7.el8.noarch - perl-Math-Complex-1.59-416.el8.noarch - perl-MIME-Base64-3.15-396.el8.x86_64 - perl-Mozilla-CA-20160104-7.module_el8.3.0+416+dee7bcef.noarch - perl-Net-SSLeay-1.88-1.module_el8.3.0+410+ff426aa3.x86_64 - perl-open-1.11-416.el8.noarch - perl-parent-0.237-1.el8.noarch - perl-PathTools-3.74-1.el8.x86_64 - perl-Pod-Escapes-1.07-395.el8.noarch - perl-podlators-4.11-1.el8.noarch - perl-Pod-Perldoc-3.28-396.el8.noarch - perl-Pod-Simple-3.35-395.el8.noarch - perl-Pod-Usage-1.69-395.el8.noarch - perl-Scalar-List-Utils-1.49-2.el8.x86_64 - perl-Socket-2.027-3.el8.x86_64 - perl-srpm-macros-1-25.el8.noarch - perl-Storable-3.11-3.el8.x86_64 - perl-Term-ANSIColor-4.06-396.el8.noarch - perl-Term-Cap-1.17-395.el8.noarch - perl-TermReadKey-2.37-7.el8.x86_64 - perl-Test-Harness-3.42-1.el8.noarch - perl-Text-ParseWords-3.30-395.el8.noarch - perl-Text-Tabs+Wrap-2013.0523-395.el8.noarch - perl-Text-Unidecode-1.30-5.el8.noarch - perl-Thread-Queue-3.13-1.el8.noarch - perl-threads-2.21-2.el8.x86_64 - perl-threads-shared-1.58-2.el8.x86_64 - perl-Time-HiRes-1.9758-1.el8.x86_64 - perl-Time-Local-1.280-1.el8.noarch - perl-Unicode-Normalize-1.25-396.el8.x86_64 - perl-URI-1.73-3.el8.noarch - perl-version-0.99.24-1.el8.x86_64 - perl-XML-Parser-2.44-11.el8.x86_64 - perl-XML-XPath-1.42-3.el8.noarch - python36-3.6.8-2.module_el8.3.0+389+6a62c88d.x86_64 - PROJ: - proj-datumgrid-1.8-6.3.2.4.epel8.playground.noarch - proj-datumgrid-north-america-1.4-1.epel8.playground.noarch - proj-datumgrid-europe-1.6-1.epel8.playground.noarch - proj-static-6.3.2-4.epel8.playground.x86_64 - proj-devel-6.3.2-4.epel8.playground.x86_64 - proj-datumgrid-world-1.0-3.epel8.playground.noarch - proj-datumgrid-oceania-1.2-1.epel8.playground.noarch - proj-6.3.2-4.epel8.playground.x86_64 - tcl/tk: - tcl-8.6.8-2.el8.x86_64 - tcl-devel-8.6.8-2.el8.x86_64 - tcllib-1.19-3.el8.noarch - BWidget-1.9.14 I had to manually download this library, I copied the tarball to /usr/lib64/tcl-8.6/ and extracted it there in accordance with the included README file. - sqlite: - sqlite-3.26.0-6.el8.x86_64 - sqlite-devel-3.26.0-6.el8.x86_64 - sqlite-libs-3.26.0-6.el8.x86_64 - sqlite-tcl-3.26.0-6.el8.x86_64 (from CloudLinux repository) - tkImg-1.4.11 I also had to manually download this library. No README was included in the file, and no documentation is to be found on the projects github page, so I did the same as with BWidget and copied the folder into the tk library directory: (/usr/share/lib64/tk8.6/Img1.4.11/). - TeX: - texlive-20180414-17.el8.x86_64 - texlive-metapost-20180414-17.el8.x86_64/pdf - texlive-pdftex-20180414-17.el8.x86_64 - and a host of other texlive packages (211 in total) - LCDF Typetools 2.108 (this one I had to download and build from source, for some reason I was unable to configure it for kpathsea, despite it already being installed. I ended up needing to use the –without-kpathsea option during the configuration to get it work – I hope this is not important for the Therion installation). - ImageMagick: - ImageMagick-perl-6.9.10.86-1.el8.x86_64 - ImageMagick-libs-6.9.10.86-1.el8.x86_64 - ImageMagick-doc-6.9.10.86-1.el8.x86_64 - ImageMagick-6.9.10.86-1.el8.x86_64 - ImageMagick-devel-6.9.10.86-1.el8.x86_64 - ImageMagick-c++-6.9.10.86-1.el8.x86_64 - ghostscript-9.25-7.el8.x86_64 - freetype: - freetype-2.9.1-4.el8.x86_64 - freetype-devel-2.9.1-4.el8.x86_64 - VTK 9.0.1 (built from source) - libjpeg-turbo-1.5.3-10.el8.x86_64 - libjpeg-turbo-devel-1.5.3-10.el8.x86_64 - libpng-1.6.34-5.el8.x86_64 - libpng-devel-1.6.34-5.el8.x86_64 - zlib-1.2.11-15.el8.x86_64 - zlib-devel-1.2.11-15.el8.x86_64
Is there anything obvious that I am missing? I don't know what to try next.
- On Thu, Aug 13, 2020 at 6:35 AM Martin Budaj <m.budaj@gmail.com> wrote:Hi,
just build-time, introduced in 5.4.4. It's used to generate parts of
thcsdata.cxx (esri_labels and epsg_labels). It's used for Proj 6 and newer, which uses sqlite3 format of its database (older versions used plain text files). Martin
On Thu, Aug 13, 2020 at 1:18 AM Wookey <wookey@wookware.org> wrote:
On 2020-08-12 22:01 +0200, Martin Budaj wrote: > Hi, > check if you have libsqlite3-tcl (or equivalent) installed and working. > It's required for correct parsing of projection names from the EPSG > database.
Is this a build-time only dependency or should it also be present at runtime?
It gets pulled in on debian builds but I'm not quite sure why. It should perhaps be explicitly specified. Is this new or has it been true for years?
Wookey -- Principal hats: Linaro, Debian, Wookware, ARM http://wookware.org/ _______________________________________________ Therion mailing list Therion@speleo.sk https://mailman.speleo.sk/listinfo/therion
_______________________________________________ Therion mailing list Therion@speleo.sk https://mailman.speleo.sk/listinfo/therion
_______________________________________________ Therion mailing list Therion@speleo.sk https://mailman.speleo.sk/listinfo/therion
_______________________________________________ Therion mailing list Therion@speleo.sk https://mailman.speleo.sk/listinfo/therion
_______________________________________________ Therion mailing list Therion@speleo.sk https://mailman.speleo.sk/listinfo/therion
_______________________________________________ Therion mailing list Therion@speleo.sk https://mailman.speleo.sk/listinfo/therion