logo separator

[mkgmap-dev] Unable to build splitter

From News news at pointdee.co.uk on Wed Feb 1 11:47:50 GMT 2017

Ok - Will do

I'll update here with any news

Thanks

Paul

On 01/31/2017 02:24 PM, Gerd Petermann wrote:
> Hi,
>
> I suggest to contact the Suse support for this problem. I tried the same with Ubuntu 16.4 and found no
> problems.  My guess is that the ant-junit package doesn't work with the junit version we use for mkgmap and
> splitter.
>
> Gerd
>
> ________________________________________
> Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von Gerd Petermann <GPetermann_muenchen at hotmail.com>
> Gesendet: Montag, 30. Januar 2017 15:22:23
> An: Development list for mkgmap
> Betreff: Re: [mkgmap-dev] Unable to build splitter
>
> I installed Suse Leap 42.2, jdk 1.8, ant, and subversion and got the same problem as Paul.
> Similar changes after installing ant-junit.
> I have no idea what is wrong, one has to modify build.xml so that target build
> doesn't depend on run.tests (line 327) .
>
> Gerd
>
> ________________________________________
> Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von Steve Ratcliffe <steve at parabola.me.uk>
> Gesendet: Montag, 30. Januar 2017 15:16:52
> An: Development list for mkgmap
> Betreff: Re: [mkgmap-dev] Unable to build splitter
>
> Hi
>
> I was very lucky and reproduced the problem.
>
> It happens for me when ANT_HOME is not set and (presumably) ant is
> installed in some non-standard location or is symlinked or something.
>
> ..Steve
>
>> Hi Paul,
>>
>> okay, I'll try to reproduce the problem. In the meantime you can use the splitter.jar
>> that is build with ant dist.
>>
>> Gerd
>>
>>
>>
>> ________________________________________
>> Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von News <news at pointdee.co.uk>
>> Gesendet: Montag, 30. Januar 2017 14:47:03
>> An: mkgmap-dev at lists.mkgmap.org.uk
>> Betreff: Re: [mkgmap-dev] Unable to build splitter
>>
>> Gerd
>>
>> I get the following however "ant dist"  is sucessful
>>
>> Buildfile: /home/bos/Maps/mkgmap/mkgmap/build.xml
>>
>> prepare:
>>
>> ivy-availability:
>>
>> download-ivy:
>>
>> init-ivy:
>> [ivy:configure] :: Ivy 2.2.0 - 20100923230623 ::
>> http://ant.apache.org/ivy/ ::
>> [ivy:configure] :: loading settings :: file =
>> /home/bos/Maps/mkgmap/mkgmap/ivysettings.xml
>>
>> resolve-compile:
>>
>> compile:
>>
>> build:
>>
>> resolve-test:
>>
>> build-test:
>>      [mkdir] Created dir: /home/bos/Maps/mkgmap/mkgmap/build/test
>>      [javac] Compiling 72 source files to
>> /home/bos/Maps/mkgmap/mkgmap/build/test
>>
>> obtain-test-input-files:
>>       [copy] Warning: /opt/data/testinput does not exist.
>>      [mkdir] Created dir: /home/bos/Maps/mkgmap/mkgmap/test/resources/in/img
>>        [get] Getting: http://www.mkgmap.org.uk/testinput/osm/lon1.osm.gz
>>        [get] To:
>> /home/bos/Maps/mkgmap/mkgmap/test/resources/in/osm/lon1.osm.gz
>>        [get] Getting:
>> http://www.mkgmap.org.uk/testinput/osm/uk-test-1.osm.gz
>>        [get] To:
>> /home/bos/Maps/mkgmap/mkgmap/test/resources/in/osm/uk-test-1.osm.gz
>>        [get] Getting:
>> http://www.mkgmap.org.uk/testinput/osm/uk-test-2.osm.gz
>>        [get] To:
>> /home/bos/Maps/mkgmap/mkgmap/test/resources/in/osm/uk-test-2.osm.gz
>>        [get] Getting: http://www.mkgmap.org.uk/testinput/mp/test1.mp
>>        [get] To: /home/bos/Maps/mkgmap/mkgmap/test/resources/in/mp/test1.mp
>>        [get] Getting: http://www.mkgmap.org.uk/testinput/img/63240001.img
>>        [get] To:
>> /home/bos/Maps/mkgmap/mkgmap/test/resources/in/img/63240001.img
>>        [get] Getting: http://www.mkgmap.org.uk/testinput/img/63240002.img
>>        [get] To:
>> /home/bos/Maps/mkgmap/mkgmap/test/resources/in/img/63240002.img
>>        [get] Getting: http://www.mkgmap.org.uk/testinput/img/63240003.img
>>        [get] To:
>> /home/bos/Maps/mkgmap/mkgmap/test/resources/in/img/63240003.img
>>
>> test:
>>      [mkdir] Created dir: /home/bos/Maps/mkgmap/mkgmap/tmp/report
>>
>> BUILD FAILED
>> /home/bos/Maps/mkgmap/mkgmap/build.xml:271: Problem: failed to create
>> task or type junit
>> Cause: the class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask
>> was not found.
>>          This looks like one of Ant's optional components.
>> Action: Check that the appropriate optional JAR exists in
>>          -/usr/share/ant/lib
>>          -/home/bos/.ant/lib
>>          -a directory added on the command line with the -lib argument
>>
>> Do not panic, this is a common problem.
>> The commonest cause is a missing JAR.
>>
>> This is not a bug; it is a configuration problem
>>
>>
>> Total time: 27 seconds
>>
>>
>>
>>
>> Thanks
>>
>> Paul
>>
>>
>> On 30/01/17 13:56, Gerd Petermann wrote:
>>> Hi Paul,
>>>
>>> what happens when you run ant test in the mkgmap directory?
>>>
>>> Gerd
>>>
>>> ________________________________________
>>> Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von News <news at pointdee.co.uk>
>>> Gesendet: Montag, 30. Januar 2017 13:48:35
>>> An: Development list for mkgmap
>>> Betreff: Re: [mkgmap-dev] Unable to build splitter
>>>
>>> Gerd
>>>
>>> I have no problems with mkgmap and until recently have had no problems
>>> with splitter. If I checkout r560 then this compiles without problems.
>>> If I checkout r570 then I get the error I first described
>>>
>>> Without ant-junit installed I get
>>>
>>> compile.tests:
>>>       [javac] Compiling 13 source files to
>>> /home/bos/Maps/tile-splitter/manual/head/trunk/build/test-classes
>>>
>>> run.tests:
>>>       [mkdir] Created dir:
>>> /home/bos/Maps/tile-splitter/manual/head/trunk/tmp/report
>>>
>>> BUILD FAILED
>>> /home/bos/Maps/tile-splitter/manual/head/trunk/build.xml:239: Problem:
>>> failed to create task or type junit
>>> Cause: the class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask
>>> was not found.
>>>           This looks like one of Ant's optional components.
>>> Action: Check that the appropriate optional JAR exists in
>>>           -/usr/share/ant/lib
>>>           -/home/bos/.ant/lib
>>>           -a directory added on the command line with the -lib argument
>>>
>>> Do not panic, this is a common problem.
>>> The commonest cause is a missing JAR.
>>>
>>> This is not a bug; it is a configuration problem
>>>
>>>
>>>
>>>
>>> Thanks
>>>
>>> Paul
>>>
>>>
>>> On 01/30/2017 12:30 PM, Gerd Petermann wrote:
>>>> Hi Paul,
>>>>
>>>> I think there should be no need to install ant-junit, so it seems that the
>>>> download of one or more jar files failed.
>>>> When you run ant dist the first time you should see something like this for target resolve-test:
>>>>
>>>> resolve-test:
>>>> [ivy:retrieve] downloading http://repo1.maven.org/maven2/junit/junit/4.11/junit-4.11.jar ...
>>>> [ivy:retrieve] ....... (239kB)
>>>> [ivy:retrieve] .. (0kB)
>>>> [ivy:retrieve]  [SUCCESSFUL ] junit#junit;4.11!junit.jar (334ms)
>>>> [ivy:retrieve] downloading http://repo1.maven.org/maven2/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar ...
>>>> [ivy:retrieve] ..... (43kB)
>>>> [ivy:retrieve] .. (0kB)
>>>> [ivy:retrieve]  [SUCCESSFUL ] org.hamcrest#hamcrest-core;1.3!hamcrest-core.jar (175ms)
>>>>
>>>> Did you try to compile mkgmap on one of these systems? If that worked I see no reason why splitter would fail.
>>>>
>>>> Gerd
>>>>
>>>>
>>>> ________________________________________
>>>> Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von Paul <paul at pointdee.co.uk>
>>>> Gesendet: Montag, 30. Januar 2017 13:13:24
>>>> An: Development list for mkgmap
>>>> Betreff: [mkgmap-dev] Unable to build splitter
>>>>
>>>> I'm not sure if this is a splitter problem or OS problem but I thought
>>>> I'd ask here first as I think that this problem is likely to have
>>>> started with r570
>>>> (http://www.mkgmap.org.uk/pipermail/mkgmap-dev/2017q1/025847.html). The
>>>> following has been tried on both openSuSE 13.2 and 42.2
>>>>
>>>> I checked out the latest splitter into an empty directory, ran "ant
>>>> dist" and received an error regarding junit.jar. I then installed
>>>> ant-junit and now when running "ant dist" I get
>>>>
>>>> resolve-test:
>>>>
>>>> compile.tests:
>>>>       [javac] Compiling 13 source files to
>>>> /home/bos/Maps/tile-splitter/splitter/build/test-classes
>>>>
>>>> run.tests:
>>>>       [junit] Running uk.me.parabola.splitter.AreaSetTest
>>>>       [junit] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time
>>>> elapsed: 0.042 sec
>>>>       [junit] TEST uk.me.parabola.splitter.AreaSetTest FAILED
>>>>       [junit] Running uk.me.parabola.splitter.ConvertTest
>>>>       [junit] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time
>>>> elapsed: 0.006 sec
>>>>       [junit] TEST uk.me.parabola.splitter.ConvertTest FAILED
>>>>       [junit] Running uk.me.parabola.splitter.RoundingTest
>>>>       [junit] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time
>>>> elapsed: 0.002 sec
>>>>       [junit] TEST uk.me.parabola.splitter.RoundingTest FAILED
>>>>       [junit] Running uk.me.parabola.splitter.geo.CityFinderTest
>>>>       [junit] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time
>>>> elapsed: 0.003 sec
>>>>       [junit] TEST uk.me.parabola.splitter.geo.CityFinderTest FAILED
>>>>       [junit] Running uk.me.parabola.splitter.tools.CustomCollectionsTest
>>>>       [junit] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time
>>>> elapsed: 0.005 sec
>>>>       [junit] TEST uk.me.parabola.splitter.tools.CustomCollectionsTest FAILED
>>>>       [junit] Running uk.me.parabola.splitter.tools.SparseBitSetTest
>>>>       [junit] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time
>>>> elapsed: 0.002 sec
>>>>       [junit] TEST uk.me.parabola.splitter.tools.SparseBitSetTest FAILED
>>>>       [junit] Tests FAILED
>>>> [junitreport] Processing
>>>> /home/bos/Maps/tile-splitter/splitter/tmp/TESTS-TestSuites.xml to
>>>> /tmp/null380785018
>>>> [junitreport] Loading stylesheet
>>>> jar:file:/usr/share/java/ant/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-frames.xsl
>>>> [junitreport] Warning:
>>>> org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property
>>>> 'http://javax.xml.XMLConstants/property/accessExternalDTD' is not
>>>> recognized.
>>>> [junitreport] Warning:
>>>> org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property
>>>> 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not
>>>> recognized.
>>>> [junitreport] Transform time: 303ms
>>>> [junitreport] Deleting: /tmp/null380785018
>>>>
>>>> BUILD FAILED
>>>> /home/bos/Maps/tile-splitter/splitter/build.xml:261: Test failed.  See
>>>> test-reports/index.html
>>>>
>>>> Total time: 5 seconds
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> If I then look in test-reports/index.html and expand the failures I get
>>>> the following
>>>>
>>>> No tests found in uk.me.parabola.splitter.AreaSetTest
>>>>
>>>> junit.framework.AssertionFailedError: No tests found in
>>>> uk.me.parabola.splitter.AreaSetTest
>>>>
>>>> If you need more information please ask
>>>>
>>>> Thanks
>>>>
>>>> Paul
>>>> _______________________________________________
>>>> mkgmap-dev mailing list
>>>> mkgmap-dev at lists.mkgmap.org.uk
>>>> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
>>>> _______________________________________________
>>>> mkgmap-dev mailing list
>>>> mkgmap-dev at lists.mkgmap.org.uk
>>>> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
>>>>
>>> _______________________________________________
>>> mkgmap-dev mailing list
>>> mkgmap-dev at lists.mkgmap.org.uk
>>> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
>>> _______________________________________________
>>> mkgmap-dev mailing list
>>> mkgmap-dev at lists.mkgmap.org.uk
>>> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
>>>
>>
>> _______________________________________________
>> mkgmap-dev mailing list
>> mkgmap-dev at lists.mkgmap.org.uk
>> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
>> _______________________________________________
>> mkgmap-dev mailing list
>> mkgmap-dev at lists.mkgmap.org.uk
>> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
>>
>
> _______________________________________________
> mkgmap-dev mailing list
> mkgmap-dev at lists.mkgmap.org.uk
> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
> _______________________________________________
> mkgmap-dev mailing list
> mkgmap-dev at lists.mkgmap.org.uk
> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
> _______________________________________________
> mkgmap-dev mailing list
> mkgmap-dev at lists.mkgmap.org.uk
> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
>



More information about the mkgmap-dev mailing list