Error while compiling Therion 5.5.x (proj issue?) on MacosX
Dear all, I am trying to compile the last Therion version on my Macos 10.14.6. The compilation fails with the ./utest with the error: ./utest proj_create: cannot build projectedCRS 32634: cannot build geodeticCRS 4326: SQLite error on SELECT name, ellipsoid_auth_name, ellipsoid_code, prime_meridian_auth_name, prime_meridian_code, area_of_use_auth_name, area_of_use_code, publication_date, deprecated FROM geodetic_datum WHERE auth_name = ? AND code = ?: no such column: publication_date (null): error -- PROJ library: -61 (generic error of unknown origin): epsg:32634 make: *** [tests] Error 1 Versions 5.5.0, 5.5.1, 2020-09-08-master (57fce14) and the today’s master (6c41c82) are raising the same error. With the master (6c41c82) version: A « tclsh thcdata.tcl » gives « No PROJ system definitions imported ». If I do a search for « 32634 » in thcsdata.cxx, I find only 1 line: {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"}, I tried the compilation with 2 proj versions: 6.3.2 (proj) and 7.1.1 (osgeo-proj). The compilation stops with the same error. I also have the sqlite3 from Anaconda installed. On the other side, I also tried to recompile the 5.4.4 version (that I already have and that is running fine), and I could recompile it without any errors (with proj 6.3.2, I did not tried with proj 7). Does anyone have faced the same problem and have solved the issue ? Cheers, Xavier
On Thu, Sep 10, 2020 at 12:21 PM Xavier Robert < xavier.robert@univ-grenoble-alpes.fr> wrote:
I am trying to compile the last Therion version on my Macos 10.14.6. The compilation fails with the ./utest with the error: ./utest proj_create: cannot build projectedCRS 32634: cannot build geodeticCRS 4326: SQLite error on SELECT name, ellipsoid_auth_name, ellipsoid_code, prime_meridian_auth_name, prime_meridian_code, area_of_use_auth_name, area_of_use_code, publication_date, deprecated FROM geodetic_datum WHERE auth_name = ? AND code = ?: no such column: publication_date (null): error -- PROJ library: -61 (generic error of unknown origin): epsg:32634 make: *** [tests] Error 1
Hi, this looks like a Proj version mismatch (Proj compiled into Therion trying to open a database belonging to another version of Proj installed in the system). Check if Proj command line utilities work (run e.g. "projinfo EPSG:32634"), check the version and check if the version matches the version of Proj used in Therion.
With the master (6c41c82) version:
- A « tclsh thcdata.tcl » gives « No PROJ system definitions imported ». - If I do a search for « 32634 » in thcsdata.cxx, I find only 1 line:
This is expected as the latest commits call Proj API to get the definitions instead of preprocessing them.
I also have the sqlite3 from Anaconda installed.
The sqlite error is produced by sqlite linked to Proj directly, it doesn't use external/system sqlite3.
On the other side, I also tried to recompile the 5.4.4 version (that I already have and that is running fine), and I could recompile it without any errors (with proj 6.3.2, I did not tried with proj 7).
5.4.4 used different handling of Proj definitions (they were compiled into therion binary). Martin
10. 9. 2020 v 20:07, Martin Budaj <m.budaj@gmail.com>:
Hi, this looks like a Proj version mismatch (Proj compiled into Therion trying to open a database belonging to another version of Proj installed in the system). Check if Proj command line utilities work (run e.g. "projinfo EPSG:32634"), check the version and check if the version matches the version of Proj used in Therion.
Today’s successful compilation of last snapshot on MacOSX 10.13.6. Martin S. This is part of compilation where is version of proj used. Project is listed in lines 91-218 of compilation log.
Hi, Thanks a lot for your answers! They help me a lot to find the problem. You were right, I had a Proj version mismatch because Anaconda3 changed my PATH… After removing the link to Anaconda in my PATH, I could compile Therion and execute the tests. Meanwhile, I upgraded all my homebrew binaries among which VTK that is changing from version 8.2 to 9.0 (released today…)… and it causes a crash while compiling Loch. I will open a new discussion for that. Xav
Le 11 sept. 2020 à 11:24, Martin Sluka via Therion <therion@speleo.sk> a écrit :
10. 9. 2020 v 20:07, Martin Budaj <m.budaj@gmail.com <mailto:m.budaj@gmail.com>>:
Hi, this looks like a Proj version mismatch (Proj compiled into Therion trying to open a database belonging to another version of Proj installed in the system). Check if Proj command line utilities work (run e.g. "projinfo EPSG:32634"), check the version and check if the version matches the version of Proj used in Therion.
Today’s successful compilation of last snapshot on MacOSX 10.13.6.
Martin S.
This is part of compilation where is version of proj used. Project is listed in lines 91-218 of compilation log.
participants (3)
-
Martin Budaj -
Martin Sluka -
Xavier Robert