[Proj] building, testing from git repository -- 'ctest' failures
Kristian Evers
kreve at sdfe.dk
Thu Aug 30 00:53:57 EST 2018
Greg,
There’s a few things at play here and we’ve not done a particularly good job at helping you get started down the right path. The docs omit a lot of what is needed to run a development build.
Your problem is definitely caused by not having the correct files in PROJ_LIB. From the output below it would seem as if you are missing the contents of nad/ in PROJ_LIB. That is, the epsg file and other init-files. You have two options:
1) dump the contents of proj-datumgrid in nad/
2) Copy the files from nad/ to your PROJ_LIB folder alongside the proj-datumgrid files
It should also be noted that the proj-datumgrid repository is not meant to be used in “development mode" (although it probably can). Generally you are safer to just download the most recent proj-datumgrid archives and unpackage them in your PROJ_LIB folder.
I suggest you take a look at the Travis setup for a written out example of how to set up a development version of PROJ: https://github.com/OSGeo/proj.4/blob/master/travis/install.sh
I hope that helps you move on.
/Kristian
On 30 Aug 2018, at 04:50, Greg Minshall <minshall at acm.org<mailto:minshall at acm.org>> wrote:
hi.
sorry if i missed a step in the README files.
i cloned the current git repository, checked out a recent release (i
tried for both 5.1.0 and 5.0.1), followed the instructions in README.md
----
cd proj
mkdir build
cd build
cmake ..
cmake --build .
----
i then cloned proj-datumgrid, and pointed the environmental variable
PROJ_LIB in its direction
----
bash minshall-apollo: {1195} ls $PROJ_LIB
BETA2007.gsb README.DATUMGRID cmake/ lla/ nzgd2kgrid0005.gsb stpaul
CMakeLists.txt TN conus north-america/ oceania/
FL WI egm96_15.gtx ntf_r93.gsb prvi
HOWTORELEASE WO europe/ ntv1_can.dat stgeorge
MD alaska hawaii null stlrnc
----
then, back in proj.4/build, ran ctest, and came up with lots of
failures. (i tried various things in proj-datumgrid, such as attempts
at cmake, checking out 1.6, etc., to no avail.)
any thoughts on what i might be doing wrong? i'm on lubuntu, relatively
recent. also, for all this, i did *not* run ./autogen.sh, ./configure,
etc. are they still part of the build process?
one thought: do i need to first do (whatever the cmake equivalent of)
"make install"? or, do the tests run out of the build directories?
cheers, Greg
p.s. ctest run, failures:
----
bash minshall-apollo: {1210} ctest
Test project /home/minshall/src/import/osgeo/proj/proj.4/build
Start 1: test27
1/29 Test #1: test27 ........................... Passed 0.31 sec
Start 2: test83
2/29 Test #2: test83 ........................... Passed 0.26 sec
Start 3: testvarious
3/29 Test #3: testvarious ......................***Failed 0.08 sec
Start 4: geodesic-test
4/29 Test #4: geodesic-test .................... Passed 0.00 sec
Start 5: Builtins
5/29 Test #5: Builtins ......................... Passed 0.01 sec
Start 6: Builtins2
6/29 Test #6: Builtins2 ........................***Failed 0.02 sec
Start 7: Axisswap
7/29 Test #7: Axisswap .........................***Failed 0.00 sec
Start 8: Deformation
8/29 Test #8: Deformation ......................***Failed 0.00 sec
Start 9: Ellipsoid
9/29 Test #9: Ellipsoid ........................***Failed 0.00 sec
Start 10: GDA
10/29 Test #10: GDA .............................. Passed 0.00 sec
Start 11: 4D-API-cs2cs-style
11/29 Test #11: 4D-API-cs2cs-style ...............***Failed 0.00 sec
Start 12: DHDN_ETRS89
12/29 Test #12: DHDN_ETRS89 ......................***Failed 0.00 sec
Start 13: GIGS-5101.1-jhs
13/29 Test #13: GIGS-5101.1-jhs ..................***Failed 0.00 sec
Start 14: GIGS-5101.2-jhs
14/29 Test #14: GIGS-5101.2-jhs ..................***Failed 0.00 sec
Start 15: GIGS-5101.3-jhs
15/29 Test #15: GIGS-5101.3-jhs ..................***Failed 0.00 sec
Start 16: GIGS-5101.4-jhs-etmerc
16/29 Test #16: GIGS-5101.4-jhs-etmerc ...........***Failed 0.00 sec
Start 17: GIGS-5102.1
17/29 Test #17: GIGS-5102.1 ......................***Failed 0.00 sec
Start 18: GIGS-5103.1
18/29 Test #18: GIGS-5103.1 ......................***Failed 0.00 sec
Start 19: GIGS-5103.2
19/29 Test #19: GIGS-5103.2 ......................***Failed 0.00 sec
Start 20: GIGS-5103.3
20/29 Test #20: GIGS-5103.3 ......................***Failed 0.00 sec
Start 21: GIGS-5105.2
21/29 Test #21: GIGS-5105.2 ......................***Failed 0.00 sec
Start 22: GIGS-5106
22/29 Test #22: GIGS-5106 ........................***Failed 0.00 sec
Start 23: GIGS-5107
23/29 Test #23: GIGS-5107 ........................***Failed 0.00 sec
Start 24: GIGS-5109
24/29 Test #24: GIGS-5109 ........................***Failed 0.00 sec
Start 25: GIGS-5111.1
25/29 Test #25: GIGS-5111.1 ......................***Failed 0.00 sec
Start 26: GIGS-5112
26/29 Test #26: GIGS-5112 ........................***Failed 0.00 sec
Start 27: GIGS-5113
27/29 Test #27: GIGS-5113 ........................***Failed 0.00 sec
Start 28: GIGS-5201
28/29 Test #28: GIGS-5201 ........................***Failed 0.00 sec
Start 29: GIGS-5208
29/29 Test #29: GIGS-5208 ........................***Failed 0.00 sec
17% tests passed, 24 tests failed out of 29
Total Test time (real) = 0.74 sec
The following tests FAILED:
3 - testvarious (Failed)
6 - Builtins2 (Failed)
7 - Axisswap (Failed)
8 - Deformation (Failed)
9 - Ellipsoid (Failed)
11 - 4D-API-cs2cs-style (Failed)
12 - DHDN_ETRS89 (Failed)
13 - GIGS-5101.1-jhs (Failed)
14 - GIGS-5101.2-jhs (Failed)
15 - GIGS-5101.3-jhs (Failed)
16 - GIGS-5101.4-jhs-etmerc (Failed)
17 - GIGS-5102.1 (Failed)
18 - GIGS-5103.1 (Failed)
19 - GIGS-5103.2 (Failed)
20 - GIGS-5103.3 (Failed)
21 - GIGS-5105.2 (Failed)
22 - GIGS-5106 (Failed)
23 - GIGS-5107 (Failed)
24 - GIGS-5109 (Failed)
25 - GIGS-5111.1 (Failed)
26 - GIGS-5112 (Failed)
27 - GIGS-5113 (Failed)
28 - GIGS-5201 (Failed)
29 - GIGS-5208 (Failed)
Errors while running CTest
_______________________________________________
Proj mailing list
Proj at lists.maptools.org<mailto:Proj at lists.maptools.org>
http://lists.maptools.org/mailman/listinfo/proj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/proj/attachments/20180830/addbfcba/attachment-0001.htm
More information about the Proj
mailing list