i have follow refernce from : http://wiki.openstreetmap.org/wiki/Gosmore
include install some package : sudo apt-get install libxml2-dev libgtk2.0-dev g++ make subversion libcurl4-gnutls-dev libgps-dev but, gosmore still error when i try make source 2011/12/28 Nic Roets <[email protected]> > The correct package name is libxml2-dev > > On Tue, Dec 27, 2011 at 5:08 PM, Anwar Azulfa <[email protected]> wrote: > >> i cannot get libxml-2.0-dev from package >> >> >> user@ubuntu:~/Map/src/gosmore$ sudo apt-get install libxml-2.0-dev >> Reading package lists... Done >> Building dependency tree >> Reading state information... Done >> E: Unable to locate package libxml-2.0-dev >> E: Couldn't find any package by regex 'libxml-2.0-dev' >> >> >> >> 2011/12/27 Nic Roets <[email protected]> >> >>> Hello Anwar, >>> >>> It looks like you don't have libxml-2.0-dev installed. >>> >>> >>> On Tue, Dec 27, 2011 at 3:32 AM, Anwar Azulfa <[email protected]> wrote: >>> >>>> i have copy bboxes.c into jni folder on ubuntu 11.10, but when i >>>> compile it.I got error like bellow : >>>> >>>> $make >>>> 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` \ >>>> jni/gosmore.cpp jni/libgosm.cpp jni/openglespolygon.h >>>> \ >>>> 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` >>>> jni/gosmore.cpp: In function ‘void* UpdateMapThread(void*)’: >>>> jni/gosmore.cpp:1339:12: warning: variable ‘res’ set but not used >>>> [-Wunused-but-set-variable] >>>> jni/gosmore.cpp: At global scope: >>>> jni/gosmore.cpp:1655:5: warning: unused parameter ‘event’ >>>> [-Wunused-parameter] >>>> jni/gosmore.cpp:1655:5: warning: unused parameter ‘ex’ >>>> [-Wunused-parameter] >>>> jni/gosmore.cpp:1655:5: warning: unused parameter ‘ey’ >>>> [-Wunused-parameter] >>>> jni/gosmore.cpp:2102:6: warning: unused parameter ‘width’ >>>> [-Wunused-parameter] >>>> jni/gosmore.cpp: In function ‘gint DrawExpose()’: >>>> jni/gosmore.cpp:2997:40: warning: field precision specifier ‘.*’ >>>> expects argument of type ‘int’, but argument 3 has type ‘long int’ >>>> [-Wformat] >>>> jni/gosmore.cpp: In function ‘gint Drag(GtkWidget*, GdkEventMotion*, >>>> void*)’: >>>> jni/gosmore.cpp:3089:1: warning: no return statement in function >>>> returning non-void [-Wreturn-type] >>>> jni/gosmore.cpp: In function ‘int Click(GtkWidget*, GdkEventButton*, >>>> void*)’: >>>> jni/gosmore.cpp:3094:1: warning: no return statement in function >>>> returning non-void [-Wreturn-type] >>>> jni/gosmore.cpp: In function ‘int UserInterface(int, char**, const >>>> char*, const char*)’: >>>> jni/gosmore.cpp:3586:5: warning: cast to pointer from integer of >>>> different size [-Wint-to-pointer-cast] >>>> jni/gosmore.cpp:3350:26: warning: ignoring return value of ‘int >>>> chdir(const char*)’, declared with attribute warn_unused_result >>>> [-Wunused-result] >>>> jni/gosmore.cpp: In function ‘void* UpdateMapThread(void*)’: >>>> jni/gosmore.cpp:1359:29: warning: ignoring return value of ‘int >>>> system(const char*)’, declared with attribute warn_unused_result >>>> [-Wunused-result] >>>> jni/gosmore.cpp: In function ‘void DoFollowThing(gpsNewStruct*)’: >>>> jni/gosmore.cpp:878:67: warning: ‘n2Left’ may be used uninitialized in >>>> this function [-Wuninitialized] >>>> jni/gosmore.cpp: At global scope: >>>> jni/gosmore.cpp:2070:14: warning: ‘casing’ defined but not used >>>> [-Wunused-variable] >>>> jni/gosmore.cpp:3122:17: warning: ‘gboolean DropOnDraw(GtkWidget*, >>>> GdkDragContext*, gint, gint, guint, gpointer)’ defined but not used >>>> [-Wunused-function] >>>> jni/openglespolygon.cpp: In function ‘void Delete(PolygonEdge*)’: >>>> jni/openglespolygon.cpp:163:34: warning: variable ‘tmp’ set but not >>>> used [-Wunused-but-set-variable] >>>> jni/openglespolygon.cpp: In function ‘void Check(PolygonEdge*)’: >>>> jni/openglespolygon.cpp:243:3: warning: suggest parentheses around ‘&&’ >>>> within ‘||’ [-Wparentheses] >>>> jni/openglespolygon.cpp: In function ‘void >>>> AddPolygon(std::vector<PolygonEdge>&, FixedPoint*, int)’: >>>> jni/openglespolygon.cpp:312:31: warning: comparison between signed and >>>> unsigned integer expressions [-Wsign-compare] >>>> jni/openglespolygon.cpp: In function ‘void >>>> Fill(std::vector<PolygonEdge>&, int, GdkWindow*, GdkGC*)’: >>>> jni/openglespolygon.cpp:367:26: warning: comparison between signed and >>>> unsigned integer expressions [-Wsign-compare] >>>> /tmp/cctCrIBO.o: In function `LoadElemstyles(char const*, char const*, >>>> styleStruct*, elemstyleMapping*)': >>>> libgosm.cpp:(.text+0x2e05): undefined reference to >>>> `xmlNewTextReaderFilename' >>>> libgosm.cpp:(.text+0x30fe): undefined reference to `xmlTextReaderRead' >>>> libgosm.cpp:(.text+0x3110): undefined reference to `xmlTextReaderName' >>>> libgosm.cpp:(.text+0x311f): undefined reference to >>>> `xmlTextReaderNodeType' >>>> libgosm.cpp:(.text+0x3172): undefined reference to >>>> `xmlTextReaderMoveToNextAttribute' >>>> libgosm.cpp:(.text+0x3186): undefined reference to `xmlTextReaderName' >>>> libgosm.cpp:(.text+0x3193): undefined reference to `xmlTextReaderValue' >>>> libgosm.cpp:(.text+0x33ba): undefined reference to `xmlTextReaderName' >>>> libgosm.cpp:(.text+0x33c7): undefined reference to `xmlStrcmp' >>>> libgosm.cpp:(.text+0x33d5): undefined reference to `xmlTextReaderRead' >>>> libgosm.cpp:(.text+0x33e3): undefined reference to `xmlTextReaderValue' >>>> libgosm.cpp:(.text+0x3448): undefined reference to `xmlFree' >>>> libgosm.cpp:(.text+0x3451): undefined reference to `xmlFree' >>>> libgosm.cpp:(.text+0x345b): undefined reference to >>>> `xmlTextReaderMoveToNextAttribute' >>>> libgosm.cpp:(.text+0x346e): undefined reference to `xmlFree' >>>> libgosm.cpp:(.text+0x36cd): undefined reference to >>>> `xmlTextReaderNodeType' >>>> libgosm.cpp:(.text+0x384c): undefined reference to `xmlFree' >>>> libgosm.cpp:(.text+0x3a96): undefined reference to `xmlFreeTextReader' >>>> /tmp/cctCrIBO.o: In function `SortRelations()': >>>> libgosm.cpp:(.text+0x3f26): undefined reference to `xmlReaderForIO' >>>> libgosm.cpp:(.text+0x3f74): undefined reference to `xmlTextReaderRead' >>>> libgosm.cpp:(.text+0x3f85): undefined reference to >>>> `xmlTextReaderNodeType' >>>> libgosm.cpp:(.text+0x3f92): undefined reference to `xmlTextReaderName' >>>> libgosm.cpp:(.text+0x4034): undefined reference to `xmlTextReaderName' >>>> libgosm.cpp:(.text+0x4050): undefined reference to `xmlTextReaderValue' >>>> libgosm.cpp:(.text+0x40c6): undefined reference to `xmlFree' >>>> libgosm.cpp:(.text+0x40cf): undefined reference to `xmlFree' >>>> libgosm.cpp:(.text+0x40d7): undefined reference to >>>> `xmlTextReaderMoveToNextAttribute' >>>> libgosm.cpp:(.text+0x416d): undefined reference to `xmlFree' >>>> libgosm.cpp:(.text+0x4175): undefined reference to >>>> `xmlTextReaderMoveToNextAttribute' >>>> libgosm.cpp:(.text+0x4185): undefined reference to `xmlTextReaderName' >>>> libgosm.cpp:(.text+0x4190): undefined reference to `xmlTextReaderValue' >>>> libgosm.cpp:(.text+0x4265): undefined reference to `xmlFree' >>>> libgosm.cpp:(.text+0x4294): undefined reference to `xmlFree' >>>> /tmp/cctCrIBO.o: In function `RebuildPak(char const*, char const*, char >>>> const*, char const*, int const*)': >>>> libgosm.cpp:(.text+0x7147): undefined reference to `xmlReaderForFd' >>>> libgosm.cpp:(.text+0x7714): undefined reference to `xmlTextReaderRead' >>>> libgosm.cpp:(.text+0x7727): undefined reference to `xmlTextReaderName' >>>> libgosm.cpp:(.text+0x7739): undefined reference to >>>> `xmlTextReaderNodeType' >>>> libgosm.cpp:(.text+0x77ba): undefined reference to `xmlFree' >>>> libgosm.cpp:(.text+0x77c4): undefined reference to >>>> `xmlTextReaderMoveToNextAttribute' >>>> libgosm.cpp:(.text+0x77d6): undefined reference to `xmlTextReaderName' >>>> libgosm.cpp:(.text+0x77e3): undefined reference to `xmlTextReaderValue' >>>> libgosm.cpp:(.text+0x7d2d): undefined reference to `xmlFree' >>>> libgosm.cpp:(.text+0x7edc): undefined reference to `xmlFree' >>>> libgosm.cpp:(.text+0x7fa8): undefined reference to >>>> `xmlTextReaderNodeType' >>>> libgosm.cpp:(.text+0x8236): undefined reference to `xmlFree' >>>> libgosm.cpp:(.text+0x8248): undefined reference to `xmlFree' >>>> libgosm.cpp:(.text+0x829e): undefined reference to `xmlFree' >>>> libgosm.cpp:(.text+0x82b0): undefined reference to `xmlFree' >>>> libgosm.cpp:(.text+0x830d): undefined reference to `xmlFree' >>>> libgosm.cpp:(.text+0xc1fc): undefined reference to `xmlStrdup' >>>> collect2: ld returned 1 exit status >>>> make: *** [gosmore] Error 1 >>>> >>>> >>>> What should i do to solve this ? >>>> >>>> 2011/12/26 Nic Roets <[email protected]> >>>> >>>>> 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. >>>>> >>>>> 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. >>>>> >>>>> 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. >>>>> >>>>> Regards, >>>>> Nic >>>>> >>>>> >>>>> On Mon, Dec 26, 2011 at 7:34 AM, Anwar Azulfa <[email protected]>wrote: >>>>> >>>>>> Hi Cartinus, >>>>>> >>>>>> >>>>>> >>>>>> Now i use German.pak which i downloaded from >>>>>> http://dev.openstreetmap.de/gosmore/ >>>>>> Firstly when i try routing with accessing localhost on browser it >>>>>> doesn't work, becuase of this code i think: >>>>>> >>>>>> */*switch ($layer) { >>>>>> case 'cn': >>>>>> $gosmore = '/normal'; >>>>>> $style = 'cyclestyles.xml'; >>>>>> break; >>>>>> case 'test': >>>>>> $gosmore = '/test'; >>>>>> $style = 'elemstyles.xml'; >>>>>> break; >>>>>> default: >>>>>> $gosmore = '/normal'; >>>>>> $style = 'genericstyles.xml'; >>>>>> break; >>>>>> } >>>>>> >>>>>> $dir = $yours_dir.$gosmore;* >>>>>> >>>>>> >>>>>> when i check on some folders, i can't get some xml file include >>>>>> gosmore.i found *elemstyles.xml* only. >>>>>> After i commented these line and change >>>>>> >>>>>> *$dir = $yours_dir.$gosmore;* >>>>>> >>>>>> be >>>>>> >>>>>> *$dir = $yours_dir;* >>>>>> >>>>>> Now my routing works well.I can create route on Germany map. :) .Its >>>>>> running on ubuntu 10.10 >>>>>> >>>>>> >>>>>> But now i try using it on Ubuntu 11.10 server. >>>>>> >>>>>> After i checkout source then i got error when execute : >>>>>> >>>>>> *$ make >>>>>> gcc -lm density.c -o density >>>>>> /tmp/ccNQSatu.o: In function `main': >>>>>> density.c:(.text+0x21f): undefined reference to `exp' >>>>>> density.c:(.text+0x224): undefined reference to `atan' >>>>>> density.c:(.text+0x2c3): undefined reference to `exp' >>>>>> density.c:(.text+0x2c8): undefined reference to `atan' >>>>>> density.c:(.text+0x5d3): undefined reference to `exp' >>>>>> density.c:(.text+0x5d8): undefined reference to `atan' >>>>>> density.c:(.text+0x67a): undefined reference to `exp' >>>>>> density.c:(.text+0x67f): undefined reference to `atan' >>>>>> density.c:(.text+0x723): undefined reference to `exp' >>>>>> density.c:(.text+0x728): undefined reference to `atan' >>>>>> density.c:(.text+0x793): undefined reference to `exp' >>>>>> density.c:(.text+0x798): undefined reference to `atan' >>>>>> collect2: ld returned 1 exit status >>>>>> make: *** [jni/bboxes.c] Error 1* >>>>>> >>>>>> >>>>>> >>>>>> is it bug of gosmore or what is this ? >>>>>> >>>>>> >>>>>> Thks >>>>>> >>>>>> >>>>>> 2011/12/26 Cartinus <[email protected]> >>>>>> >>>>>>> Hello, >>>>>>> >>>>>>> It doesn't find a route because the start point and the end point of >>>>>>> your query are somewhere in Europe. >>>>>>> >>>>>>> flat and flon are the latitude and longitude of the start point. >>>>>>> tlat and tlon are the latitude and longitude of the end point. >>>>>>> >>>>>>> Try these values. They should be somewhere in Bandung >>>>>>> flat=-6.91469526290894&flon=**107.634368896484&tlat=-6.** >>>>>>> 91350746154785tlon=107.**643768310547& >>>>>>> >>>>>>> --- >>>>>>> m.v.g., >>>>>>> Cartinus >>>>>>> >>>>>>> >>>>>>> On 12/26/2011 03:25 AM, Anwar Azulfa wrote: >>>>>>> >>>>>>>> I have configure and make this source, but when i try to execute : >>>>>>>> >>>>>>>> *QUERY_STRING="flat=52.396545&**flon=4.915714&tlat=52.373075&** >>>>>>>> tlon=4.901638&fast=0&v=**motorcar" >>>>>>>> ./gosmore* >>>>>>>> * >>>>>>>> >>>>>>>> * >>>>>>>> [this is output] >>>>>>>> maple@maple:~/src/gosmore$ >>>>>>>> QUERY_STRING="flat=52.396545&**flon=4.915714&tlat=52.373075&** >>>>>>>> tlon=4.901638&fast=0&v=**motorcar" >>>>>>>> ./gosmore >>>>>>>> Content-Type: text/plain >>>>>>>> >>>>>>>> *No route found* >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> this is log when i configure, make and make install : >>>>>>>> http://pastebin.com/qQPj1C0f >>>>>>>> >>>>>>>> note: >>>>>>>> I only rebuild Indonesia.osm.bz2 use gosmore, >>>>>>>> >>>>>>>> >>>>>>>> Help me,please >>>>>>>> >>>>>>>> >>>>>>>> 2011/12/24 Nic Roets <[email protected] <mailto:[email protected]>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> On Thu, Dec 22, 2011 at 5:36 PM, Anwar Azulfa <[email protected] >>>>>>>> <mailto:[email protected]>> wrote: >>>>>>>> >>>>>>>> i have checkout from >>>>>>>> http://svn.openstreetmap.org/**applications/routing/yours/** >>>>>>>> branches/version-1.0-via<http://svn.openstreetmap.org/applications/routing/yours/branches/version-1.0-via> >>>>>>>> >>>>>>>> now, map is appear. but when i try to make routing, i get >>>>>>>> error >>>>>>>> again >>>>>>>> >>>>>>>> >>>>>>>> this is step which i did : >>>>>>>> >>>>>>>> 1. i following reference from >>>>>>>> >>>>>>>> http://wiki.openstreetmap.org/**wiki/YOURS<http://wiki.openstreetmap.org/wiki/YOURS>and >>>>>>>> checkout from >>>>>>>> >>>>>>>> http://svn.openstreetmap.org/**applicatio<http://svn.openstreetmap.org/applicatio>… >>>>>>>> on-1.0-via >>>>>>>> <http://svn.openstreetmap.org/**applications/routing/yours/* >>>>>>>> *branches/version-1.0-via<http://svn.openstreetmap.org/applications/routing/yours/branches/version-1.0-via> >>>>>>>> > >>>>>>>> >>>>>>>> >>>>>>>> 2. i checkout gosmore source from >>>>>>>> >>>>>>>> http://svn.openstreetmap.org/**applicatio<http://svn.openstreetmap.org/applicatio>… >>>>>>>> ng/gosmore >>>>>>>> <http://svn.openstreetmap.org/** >>>>>>>> applications/rendering/gosmore<http://svn.openstreetmap.org/applications/rendering/gosmore> >>>>>>>> **> >>>>>>>> >>>>>>>> >>>>>>>> 3.download file .pak and rename to gosmore.pak.i put this >>>>>>>> file >>>>>>>> inside gosmore folder >>>>>>>> >>>>>>>> 4. i put YOURS/* to /var/www so i can acces it via browser >>>>>>>> with >>>>>>>> http://localhost >>>>>>>> now i can access map, but when i make a route from one >>>>>>>> location >>>>>>>> to another location and click find route, error message >>>>>>>> :Status: >>>>>>>> An unexpected error occured in Gosmore: appear >>>>>>>> >>>>>>>> i check on /var/log/apache2/error.log and i get this error >>>>>>>> message : >>>>>>>> >>>>>>>> *[Thu Dec 22 22:29:48 2011] [error] [client 127.0.0.1] PHP >>>>>>>> >>>>>>>> Notice: Undefined index: format in >>>>>>>> /home/maple/yours/api/1.0/**gosmore.php on line 105, >>>>>>>> referer: >>>>>>>> http://localhost/* >>>>>>>> >>>>>>>> *nice: ./gosmore: No such file or directory* >>>>>>>> >>>>>>>> * >>>>>>>> >>>>>>>> * >>>>>>>> >>>>>>>> What should i do to solve this ? >>>>>>>> >>>>>>>> >>>>>>>> Inside the gosmore folder, you should run >>>>>>>> >>>>>>>> ./configure >>>>>>>> make >>>>>>>> >>>>>>>> Currently, gosmore will not compile with HEADLESS. I suggest you >>>>>>>> compile with gtk+2 includes and libraries installed. Or you can >>>>>>>> check out a version what is more than 3 months old. >>>>>>>> >>>>>>>> It is also a good idea to test routing from the command line >>>>>>>> before >>>>>>>> you test YOURS e.g. >>>>>>>> QUERY_STRING="flat=52.396545&**flon=4.915714&tlat=52.373075&** >>>>>>>> tlon=4.901638&fast=0&v=**motorcar" >>>>>>>> ./gosmore >>>>>>>> >>>>>>>> Regards, >>>>>>>> Nic >>>>>>>> >>>>>>> >>>>>>> ______________________________**_________________ >>>>>>> dev mailing list >>>>>>> [email protected] >>>>>>> http://lists.openstreetmap.**org/listinfo/dev<http://lists.openstreetmap.org/listinfo/dev> >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Regards, >>>>>> M.Iftakhul Anwar >>>>>> >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> dev mailing list >>>>>> [email protected] >>>>>> http://lists.openstreetmap.org/listinfo/dev >>>>>> >>>>>> >>>>> >>>> >>>> >>>> -- >>>> Regards, >>>> M.Iftakhul Anwar >>>> >>>> >>>> >>> >> >> >> -- >> Regards, >> M.Iftakhul Anwar >> >> >> > -- Regards, M.Iftakhul Anwar
_______________________________________________ dev mailing list [email protected] http://lists.openstreetmap.org/listinfo/dev

