i have copy bboxes.c into jni folder on ubuntu 11.10, but when i compile it.I got error like bellow :<div><br></div><div><div>$make</div><div>g++ -DCHILDREN=16 -O2 -DRES_DIR=\"/usr/local/share/gosmore/\" -W -Wall `pkg-config --cflags libxml-2.0 || echo -I /usr/include/libxml2` `pkg-config --libs libxml-2.0 || echo -l xml2 -lm` \</div>
<div>                  jni/gosmore.cpp jni/libgosm.cpp jni/openglespolygon.h \</div><div>                  jni/openglespolygon.cpp -o gosmore `pkg-config --cflags --libs gtk+-2.0 || echo -D HEADLESS` `pkg-config --libs libcurl` `[ -e /usr/include/gps.h ] && echo -DUSE_GPSD -lgps ` `pkg-config --libs pkg-config --libs gthread-2.0`</div>
<div>jni/gosmore.cpp: In function ‘void* UpdateMapThread(void*)’:</div><div>jni/gosmore.cpp:1339:12: warning: variable ‘res’ set but not used [-Wunused-but-set-variable]</div><div>jni/gosmore.cpp: At global scope:</div><div>
jni/gosmore.cpp:1655:5: warning: unused parameter ‘event’ [-Wunused-parameter]</div><div>jni/gosmore.cpp:1655:5: warning: unused parameter ‘ex’ [-Wunused-parameter]</div><div>jni/gosmore.cpp:1655:5: warning: unused parameter ‘ey’ [-Wunused-parameter]</div>
<div>jni/gosmore.cpp:2102:6: warning: unused parameter ‘width’ [-Wunused-parameter]</div><div>jni/gosmore.cpp: In function ‘gint DrawExpose()’:</div><div>jni/gosmore.cpp:2997:40: warning: field precision specifier ‘.*’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat]</div>
<div>jni/gosmore.cpp: In function ‘gint Drag(GtkWidget*, GdkEventMotion*, void*)’:</div><div>jni/gosmore.cpp:3089:1: warning: no return statement in function returning non-void [-Wreturn-type]</div><div>jni/gosmore.cpp: In function ‘int Click(GtkWidget*, GdkEventButton*, void*)’:</div>
<div>jni/gosmore.cpp:3094:1: warning: no return statement in function returning non-void [-Wreturn-type]</div><div>jni/gosmore.cpp: In function ‘int UserInterface(int, char**, const char*, const char*)’:</div><div>jni/gosmore.cpp:3586:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]</div>
<div>jni/gosmore.cpp:3350:26: warning: ignoring return value of ‘int chdir(const char*)’, declared with attribute warn_unused_result [-Wunused-result]</div><div>jni/gosmore.cpp: In function ‘void* UpdateMapThread(void*)’:</div>
<div>jni/gosmore.cpp:1359:29: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]</div><div>jni/gosmore.cpp: In function ‘void DoFollowThing(gpsNewStruct*)’:</div>
<div>jni/gosmore.cpp:878:67: warning: ‘n2Left’ may be used uninitialized in this function [-Wuninitialized]</div><div>jni/gosmore.cpp: At global scope:</div><div>jni/gosmore.cpp:2070:14: warning: ‘casing’ defined but not used [-Wunused-variable]</div>
<div>jni/gosmore.cpp:3122:17: warning: ‘gboolean DropOnDraw(GtkWidget*, GdkDragContext*, gint, gint, guint, gpointer)’ defined but not used [-Wunused-function]</div><div>jni/openglespolygon.cpp: In function ‘void Delete(PolygonEdge*)’:</div>
<div>jni/openglespolygon.cpp:163:34: warning: variable ‘tmp’ set but not used [-Wunused-but-set-variable]</div><div>jni/openglespolygon.cpp: In function ‘void Check(PolygonEdge*)’:</div><div>jni/openglespolygon.cpp:243:3: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]</div>
<div>jni/openglespolygon.cpp: In function ‘void AddPolygon(std::vector<PolygonEdge>&, FixedPoint*, int)’:</div><div>jni/openglespolygon.cpp:312:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]</div>
<div>jni/openglespolygon.cpp: In function ‘void Fill(std::vector<PolygonEdge>&, int, GdkWindow*, GdkGC*)’:</div><div>jni/openglespolygon.cpp:367:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]</div>
<div>/tmp/cctCrIBO.o: In function `LoadElemstyles(char const*, char const*, styleStruct*, elemstyleMapping*)':</div><div>libgosm.cpp:(.text+0x2e05): undefined reference to `xmlNewTextReaderFilename'</div><div>libgosm.cpp:(.text+0x30fe): undefined reference to `xmlTextReaderRead'</div>
<div>libgosm.cpp:(.text+0x3110): undefined reference to `xmlTextReaderName'</div><div>libgosm.cpp:(.text+0x311f): undefined reference to `xmlTextReaderNodeType'</div><div>libgosm.cpp:(.text+0x3172): undefined reference to `xmlTextReaderMoveToNextAttribute'</div>
<div>libgosm.cpp:(.text+0x3186): undefined reference to `xmlTextReaderName'</div><div>libgosm.cpp:(.text+0x3193): undefined reference to `xmlTextReaderValue'</div><div>libgosm.cpp:(.text+0x33ba): undefined reference to `xmlTextReaderName'</div>
<div>libgosm.cpp:(.text+0x33c7): undefined reference to `xmlStrcmp'</div><div>libgosm.cpp:(.text+0x33d5): undefined reference to `xmlTextReaderRead'</div><div>libgosm.cpp:(.text+0x33e3): undefined reference to `xmlTextReaderValue'</div>
<div>libgosm.cpp:(.text+0x3448): undefined reference to `xmlFree'</div><div>libgosm.cpp:(.text+0x3451): undefined reference to `xmlFree'</div><div>libgosm.cpp:(.text+0x345b): undefined reference to `xmlTextReaderMoveToNextAttribute'</div>
<div>libgosm.cpp:(.text+0x346e): undefined reference to `xmlFree'</div><div>libgosm.cpp:(.text+0x36cd): undefined reference to `xmlTextReaderNodeType'</div><div>libgosm.cpp:(.text+0x384c): undefined reference to `xmlFree'</div>
<div>libgosm.cpp:(.text+0x3a96): undefined reference to `xmlFreeTextReader'</div><div>/tmp/cctCrIBO.o: In function `SortRelations()':</div><div>libgosm.cpp:(.text+0x3f26): undefined reference to `xmlReaderForIO'</div>
<div>libgosm.cpp:(.text+0x3f74): undefined reference to `xmlTextReaderRead'</div><div>libgosm.cpp:(.text+0x3f85): undefined reference to `xmlTextReaderNodeType'</div><div>libgosm.cpp:(.text+0x3f92): undefined reference to `xmlTextReaderName'</div>
<div>libgosm.cpp:(.text+0x4034): undefined reference to `xmlTextReaderName'</div><div>libgosm.cpp:(.text+0x4050): undefined reference to `xmlTextReaderValue'</div><div>libgosm.cpp:(.text+0x40c6): undefined reference to `xmlFree'</div>
<div>libgosm.cpp:(.text+0x40cf): undefined reference to `xmlFree'</div><div>libgosm.cpp:(.text+0x40d7): undefined reference to `xmlTextReaderMoveToNextAttribute'</div><div>libgosm.cpp:(.text+0x416d): undefined reference to `xmlFree'</div>
<div>libgosm.cpp:(.text+0x4175): undefined reference to `xmlTextReaderMoveToNextAttribute'</div><div>libgosm.cpp:(.text+0x4185): undefined reference to `xmlTextReaderName'</div><div>libgosm.cpp:(.text+0x4190): undefined reference to `xmlTextReaderValue'</div>
<div>libgosm.cpp:(.text+0x4265): undefined reference to `xmlFree'</div><div>libgosm.cpp:(.text+0x4294): undefined reference to `xmlFree'</div><div>/tmp/cctCrIBO.o: In function `RebuildPak(char const*, char const*, char const*, char const*, int const*)':</div>
<div>libgosm.cpp:(.text+0x7147): undefined reference to `xmlReaderForFd'</div><div>libgosm.cpp:(.text+0x7714): undefined reference to `xmlTextReaderRead'</div><div>libgosm.cpp:(.text+0x7727): undefined reference to `xmlTextReaderName'</div>
<div>libgosm.cpp:(.text+0x7739): undefined reference to `xmlTextReaderNodeType'</div><div>libgosm.cpp:(.text+0x77ba): undefined reference to `xmlFree'</div><div>libgosm.cpp:(.text+0x77c4): undefined reference to `xmlTextReaderMoveToNextAttribute'</div>
<div>libgosm.cpp:(.text+0x77d6): undefined reference to `xmlTextReaderName'</div><div>libgosm.cpp:(.text+0x77e3): undefined reference to `xmlTextReaderValue'</div><div>libgosm.cpp:(.text+0x7d2d): undefined reference to `xmlFree'</div>
<div>libgosm.cpp:(.text+0x7edc): undefined reference to `xmlFree'</div><div>libgosm.cpp:(.text+0x7fa8): undefined reference to `xmlTextReaderNodeType'</div><div>libgosm.cpp:(.text+0x8236): undefined reference to `xmlFree'</div>
<div>libgosm.cpp:(.text+0x8248): undefined reference to `xmlFree'</div><div>libgosm.cpp:(.text+0x829e): undefined reference to `xmlFree'</div><div>libgosm.cpp:(.text+0x82b0): undefined reference to `xmlFree'</div>
<div>libgosm.cpp:(.text+0x830d): undefined reference to `xmlFree'</div><div>libgosm.cpp:(.text+0xc1fc): undefined reference to `xmlStrdup'</div><div>collect2: ld returned 1 exit status</div><div>make: *** [gosmore] Error 1</div>
<div><br></div><div><br></div><div>What should i do to solve this ?</div><br><div class="gmail_quote">2011/12/26 Nic Roets <span dir="ltr"><<a href="mailto:nroets@gmail.com">nroets@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Yes, I see you have problems after upgrading to 11.10. I don't have access to my 11.10 right now, but I can give you a few things to try.</span><div>

<font color="#222222" face="arial, sans-serif"><br></font></div><div><font color="#222222" face="arial, sans-serif">Density.c is used to generate jni/bboxes.c You can bypass density.c by copying bboxes from your 10.10 installation and then 'touch' is.<br>

</font><br>Also, are you aware of the Osm.org Routing Demo ? I fixed many bugs in YOURS and added a few features, like draggable routes and JSONP support. It's still not easy to adapt it incorporate it in a new website and there are still a few bugs, but I think it's a worthwhile alternative.<br>

<br>Regards,</div><div>Nic<div><div></div><div class="h5"><br><br><div class="gmail_quote">On Mon, Dec 26, 2011 at 7:34 AM, Anwar Azulfa <span dir="ltr"><<a href="mailto:anwar@troyans.net" target="_blank">anwar@troyans.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Cartinus,<br><br><br><br>Now i use German.pak which i downloaded from <a href="http://dev.openstreetmap.de/gosmore/" target="_blank">http://dev.openstreetmap.de/gosmore/</a><br>Firstly when i try routing with accessing localhost on browser it doesn't work, becuase of this code i think:<br>


<br><b>/*switch ($layer) {
<br>case 'cn':
<br>    $gosmore = '/normal';
<br>    $style = 'cyclestyles.xml';
<br>    break;
<br>case 'test':
<br>    $gosmore = '/test';
<br>    $style = 'elemstyles.xml';
<br>    break;
<br>default:
<br>    $gosmore = '/normal';
<br>    $style = 'genericstyles.xml';
<br>    break;
<br>}<br> <br>$dir = $yours_dir.$gosmore;</b><br><br><br>when i check on some folders, i can't get some xml file include gosmore.i  found  <b>elemstyles.xml</b> only.<br>After i commented these line and change<br><br>


<b>$dir = $yours_dir.$gosmore;</b> <br><br>be <br><br><b>$dir = $yours_dir;</b><br><br>Now my routing works well.I can create route on Germany map. :) .Its running on ubuntu 10.10<br><br><br>But now i try using it on Ubuntu 11.10 server.<br>


<br>After i checkout source then  i got error when execute :<br><br><b>$ make<br>gcc -lm density.c -o density<br>/tmp/ccNQSatu.o: In function `main':<br>density.c:(.text+0x21f): undefined reference to `exp'<br>density.c:(.text+0x224): undefined reference to `atan'<br>


density.c:(.text+0x2c3): undefined reference to `exp'<br>density.c:(.text+0x2c8): undefined reference to `atan'<br>density.c:(.text+0x5d3): undefined reference to `exp'<br>density.c:(.text+0x5d8): undefined reference to `atan'<br>


density.c:(.text+0x67a): undefined reference to `exp'<br>density.c:(.text+0x67f): undefined reference to `atan'<br>density.c:(.text+0x723): undefined reference to `exp'<br>density.c:(.text+0x728): undefined reference to `atan'<br>


density.c:(.text+0x793): undefined reference to `exp'<br>density.c:(.text+0x798): undefined reference to `atan'<br>collect2: ld returned 1 exit status<br>make: *** [jni/bboxes.c] Error 1</b><br><br><br><br>is it bug of gosmore or what is this ?<br>


<br><br>Thks<div><div><br><br><div class="gmail_quote">2011/12/26 Cartinus <span dir="ltr"><<a href="mailto:cartinus@xs4all.nl" target="_blank">cartinus@xs4all.nl</a>></span><br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">


Hello,<br>
<br>
It doesn't find a route because the start point and the end point of your query are somewhere in Europe.<br>
<br>
flat and flon are the latitude and longitude of the start point.<br>
tlat and tlon are the latitude and longitude of the end point.<br>
<br>
Try these values. They should be somewhere in Bandung<br>
flat=-6.91469526290894&flon=<u></u>107.634368896484&tlat=-6.<u></u>91350746154785tlon=107.<u></u>643768310547&<br>
<br>
---<br>
m.v.g.,<br>
Cartinus<div><br>
<br>
On 12/26/2011 03:25 AM, Anwar Azulfa wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>
I have configure and make this source, but when i try to execute :<br>
<br></div>
*QUERY_STRING="flat=52.396545&<u></u>flon=4.915714&tlat=52.373075&<u></u>tlon=4.901638&fast=0&v=<u></u>motorcar"<br>
./gosmore*<br>
*<div><br>
*<br>
[this is output]<br>
maple@maple:~/src/gosmore$<br>
QUERY_STRING="flat=52.396545&<u></u>flon=4.915714&tlat=52.373075&<u></u>tlon=4.901638&fast=0&v=<u></u>motorcar"<br>
./gosmore<br>
Content-Type: text/plain<br>
<br></div>
*No route found*<div><br>
<br>
<br>
this is log when i configure, make and make install :<br>
<a href="http://pastebin.com/qQPj1C0f" target="_blank">http://pastebin.com/qQPj1C0f</a><br>
<br>
note:<br>
I only rebuild Indonesia.osm.bz2 use gosmore,<br>
<br>
<br>
Help me,please<br>
<br>
<br></div>
2011/12/24 Nic Roets <<a href="mailto:nroets@gmail.com" target="_blank">nroets@gmail.com</a> <mailto:<a href="mailto:nroets@gmail.com" target="_blank">nroets@gmail.com</a>>><div><br>
<br>
<br>
<br>
    On Thu, Dec 22, 2011 at 5:36 PM, Anwar Azulfa <<a href="mailto:anwar@troyans.net" target="_blank">anwar@troyans.net</a><br></div><div>
    <mailto:<a href="mailto:anwar@troyans.net" target="_blank">anwar@troyans.net</a>>> wrote:<br>
<br>
        i have checkout from<br>
        <a href="http://svn.openstreetmap.org/applications/routing/yours/branches/version-1.0-via" target="_blank">http://svn.openstreetmap.org/<u></u>applications/routing/yours/<u></u>branches/version-1.0-via</a><br>
<br>
        now, map is appear. but when i try to make routing, i get error<br>
        again<br>
<br>
<br>
        this is step which i did :<br>
<br>
        1. i following reference from<br>
        <a href="http://wiki.openstreetmap.org/wiki/YOURS" target="_blank">http://wiki.openstreetmap.org/<u></u>wiki/YOURS</a> and checkout from<br>
        <a href="http://svn.openstreetmap.org/applicatio" target="_blank">http://svn.openstreetmap.org/<u></u>applicatio</a> … on-1.0-via<br></div>
        <<a href="http://svn.openstreetmap.org/applications/routing/yours/branches/version-1.0-via" target="_blank">http://svn.openstreetmap.org/<u></u>applications/routing/yours/<u></u>branches/version-1.0-via</a>><div>


<br>
<br>
        2. i checkout gosmore source from<br>
        <a href="http://svn.openstreetmap.org/applicatio" target="_blank">http://svn.openstreetmap.org/<u></u>applicatio</a> … ng/gosmore<br></div>
        <<a href="http://svn.openstreetmap.org/applications/rendering/gosmore" target="_blank">http://svn.openstreetmap.org/<u></u>applications/rendering/gosmore</a><u></u>><div><br>
<br>
        3.download file .pak and rename to gosmore.pak.i put this file<br>
        inside gosmore folder<br>
<br>
        4. i put YOURS/* to /var/www so i can acces it via browser with<br>
        <a href="http://localhost" target="_blank">http://localhost</a><br>
        now i can access map, but when i make a route from one location<br>
        to another location and click find route, error message :Status:<br>
        An unexpected error occured in Gosmore: appear<br>
<br>
        i check on /var/log/apache2/error.log and i get this error message :<br>
<br></div>
        *[Thu Dec 22 22:29:48 2011] [error] [client 127.0.0.1] PHP<div><br>
        Notice:  Undefined index: format in<br>
        /home/maple/yours/api/1.0/<u></u>gosmore.php on line 105, referer:<br></div>
        <a href="http://localhost/*" target="_blank">http://localhost/*</a><br>
<br>
        *nice: ./gosmore: No such file or directory*<br>
<br>
        *<div><br>
        *<br>
<br>
        What should i do to solve this ?<br>
<br>
<br>
    Inside the gosmore folder, you should run<br>
<br>
      ./configure<br>
      make<br>
<br>
    Currently, gosmore will not compile with HEADLESS. I suggest you<br>
    compile with gtk+2 includes and libraries installed. Or you can<br>
    check out a version what is more than 3 months old.<br>
<br>
    It is also a good idea to test routing from the command line before<br>
    you test YOURS e.g.<br>
    QUERY_STRING="flat=52.396545&<u></u>flon=4.915714&tlat=52.373075&<u></u>tlon=4.901638&fast=0&v=<u></u>motorcar"<br>
    ./gosmore<br>
<br>
    Regards,<br>
    Nic<br>
</div></blockquote>
<br><div><div></div><div>
______________________________<u></u>_________________<br>
dev mailing list<br>
<a href="mailto:dev@openstreetmap.org" target="_blank">dev@openstreetmap.org</a><br>
<a href="http://lists.openstreetmap.org/listinfo/dev" target="_blank">http://lists.openstreetmap.<u></u>org/listinfo/dev</a><br>
</div></div></blockquote></div><br><br clear="all"><br></div></div><span><font color="#888888">-- <br>Regards,<div>M.Iftakhul Anwar</div><div><br></div><br>
</font></span><br>_______________________________________________<br>
dev mailing list<br>
<a href="mailto:dev@openstreetmap.org" target="_blank">dev@openstreetmap.org</a><br>
<a href="http://lists.openstreetmap.org/listinfo/dev" target="_blank">http://lists.openstreetmap.org/listinfo/dev</a><br>
<br></blockquote></div><br></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Regards,<div>M.Iftakhul Anwar</div><div><br></div><br>
</div>