-
Notifications
You must be signed in to change notification settings - Fork 119
Problem with simple_load_osm_car_routing_graph_from_pbf #78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi,
from the provided error message, my best guess is that you did not link
against the RoutingKit library. What is the linker command line that is
being invoked?
Best Regards
Ben
…On 2020-01-29 18:12, joernschoenberger wrote:
Hello,
I want to use RoutingKit under windows10 / g++ / Codeblocks-IDE.
The RoutingKit libraries where generated using the MSYS2-commandline
environment as explained in the setup/installation description.
According to the small example given in the documentation, reading the
pdb-file can be done with the function
simple_load_osm_car_routing_graph_from_pbf() where only the first
first argument (the pdf-file specification) is obligatory. Trying this
I g++ linker stops the linking process with the following message:
obj\Release\main.o:main.cpp:(.text.startup+0x93)||undefined reference
to
`RoutingKit::simple_load_osm_car_routing_graph_from_pbf(std::__cxx11::basic_string<char,
std::char_traits, std::allocator > const&, std::function<void
(std::__cxx11::basic_string<char, std::char_traits, std::allocator >
const&)> const&, bool, bool)'|
I understand this message in the ways that I'm expected to specify all
four arguments? Has the definition of
simple_load_osm_car_routing_graph_from_pbf been changed?
Best regards
Jörn
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub [1], or unsubscribe
[2].
Links:
------
[1]
#78?email_source=notifications&email_token=AC3IBD67ECOY5NRHZ7AIFD3RAG2JBA5CNFSM4KNILO2KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IJTFFKA
[2]
https://github.com/notifications/unsubscribe-auth/AC3IBD7PEOX2YYPFLWWN3HTRAG2JBANCNFSM4KNILO2A
|
Hi Ben,
Thanks for your quick reply. To be honest, I’m not sure if the linker statement is correct…
I want to use the static link to libroutingkit.a
The routingkit-files are stored in C:\userdata\tu_dresden\lehre\LOGISTIK\SS2020\routingkit\include as well as in C:\userdata\tu_dresden\lehre\LOGISTIK\SS2020\routingkit\bin
Here is what I find in the codeblocks-IDE as compile/linking command
mingw32-g++.exe -std=c++11 -fexceptions -O2 -std=c++11 -IC:\userdata\tu_dresden\lehre\LOGISTIK\SS2020\routingkit\include -IC:\userdata\tu_dresden\lehre\LOGISTIK\SS2020\routingkit\include -c "C:\userdata\tu_dresden\first osm\main.cpp" -o obj\Release\main.o
mingw32-g++.exe -LC:\userdata\tu_dresden\lehre\LOGISTIK\SS2020\routingkit\lib -LC:\userdata\tu_dresden\lehre\LOGISTIK\SS2020\routingkit\lib -o "bin\Release\first osm.exe" obj\Release\main.o -s C:\userdata\tu_dresden\lehre\LOGISTIK\SS2020\routingkit\lib\libroutingkit.a ..\lehre\LOGISTIK\SS2020\routingkit\lib\libroutingkit.a
obj\Release\main.o:main.cpp:(.text.startup+0xa9): undefined reference to `RoutingKit::simple_load_osm_car_routing_graph_from_pbf(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::function<void (std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)> const&, bool, bool)'
Thank you very much and best regards
Jörn
Von: ben-strasser [mailto:notifications@github.com]
Gesendet: Mittwoch, 29. Januar 2020 18:51
An: RoutingKit/RoutingKit
Cc: joernschoenberger; Author
Betreff: Re: [RoutingKit/RoutingKit] Problem with simple_load_osm_car_routing_graph_from_pbf (#78)
Hi,
from the provided error message, my best guess is that you did not link
against the RoutingKit library. What is the linker command line that is
being invoked?
Best Regards
Ben
On 2020-01-29 18:12, joernschoenberger wrote:
Hello,
I want to use RoutingKit under windows10 / g++ / Codeblocks-IDE.
The RoutingKit libraries where generated using the MSYS2-commandline
environment as explained in the setup/installation description.
According to the small example given in the documentation, reading the
pdb-file can be done with the function
simple_load_osm_car_routing_graph_from_pbf() where only the first
first argument (the pdf-file specification) is obligatory. Trying this
I g++ linker stops the linking process with the following message:
obj\Release\main.o:main.cpp:(.text.startup+0x93)||undefined reference
to
`RoutingKit::simple_load_osm_car_routing_graph_from_pbf(std::__cxx11::basic_string<char,
std::char_traits, std::allocator > const&, std::function<void
(std::__cxx11::basic_string<char, std::char_traits, std::allocator >
const&)> const&, bool, bool)'|
I understand this message in the ways that I'm expected to specify all
four arguments? Has the definition of
simple_load_osm_car_routing_graph_from_pbf been changed?
Best regards
Jörn
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub [1], or unsubscribe
[2].
Links:
------
[1]
#78?email_source=notifications <#78?email_source=notifications&email_token=AC3IBD67ECOY5NRHZ7AIFD3RAG2JBA5CNFSM4KNILO2KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IJTFFKA> &email_token=AC3IBD67ECOY5NRHZ7AIFD3RAG2JBA5CNFSM4KNILO2KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IJTFFKA
[2]
https://github.com/notifications/unsubscribe-auth/AC3I
8000
BD7PEOX2YYPFLWWN3HTRAG2JBANCNFSM4KNILO2A
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#78?email_source=notifications&email_token=AIJLCOAQDHQ2Y6QLFTUKJZDRAG6YRA5CNFSM4KNILO2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKID6ZY#issuecomment-579878759> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AIJLCOB74VPZVYBQ3EJGCU3RAG6YRANCNFSM4KNILO2A> . <https://github.com/notifications/beacon/AIJLCOC4EA37Z4V37KCZLSLRAG6YRA5CNFSM4KNILO2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKID6ZY.gif>
|
Hi,
Here is a more cleaned-up command line
Compilation
mingw32-g++.exe -std=c++11 -IC:\userdata\tu_dresden\lehre\LOGISTIK\SS2020\routingkit\include -c "C:\userdata\tu_dresden\first osm\main.cpp" -o obj\Release\main.o
Linkage
mingw32-g++.exe -LC:\userdata\tu_dresden\lehre\LOGISTIK\SS2020\routingkit\lib -o "bin\Release\first osm.exe" obj\Release\main.o -lroutingkit
Result
obj\Release\main.o:main.cpp:(.text+0xc9): undefined reference to `RoutingKit::simple_load_osm_car_routing_graph_from_pbf(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::function<void (std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)> const&, bool, bool)'
collect2.exe: error: ld returned 1 exit status
Best regards
Jörn
Von: ben-strasser [mailto:notifications@github.com]
Gesendet: Mittwoch, 29. Januar 2020 18:51
An: RoutingKit/RoutingKit
Cc: joernschoenberger; Author
Betreff: Re: [RoutingKit/RoutingKit] Problem with simple_load_osm_car_routing_graph_from_pbf (#78)
Hi,
from the provided error message, my best guess is that you did not link
against the RoutingKit library. What is the linker command line that is
being invoked?
Best Regards
Ben
On 2020-01-29 18:12, joernschoenberger wrote:
Hello,
I want to use RoutingKit under windows10 / g++ / Codeblocks-IDE.
The RoutingKit libraries where generated using the MSYS2-commandline
environment as explained in the setup/installation description.
According to the small example given in the documentation, reading the
pdb-file can be done with the function
simple_load_osm_car_routing_graph_from_pbf() where only the first
first argument (the pdf-file specification) is obligatory. Trying this
I g++ linker stops the linking process with the following message:
obj\Release\main.o:main.cpp:(.text.startup+0x93)||undefined reference
to
`RoutingKit::simple_load_osm_car_routing_graph_from_pbf(std::__cxx11::basic_string<char,
std::char_traits, std::allocator > const&, std::function<void
(std::__cxx11::basic_string<char, std::char_traits, std::allocator >
const&)> const&, bool, bool)'|
I understand this message in the ways that I'm expected to specify all
four arguments? Has the definition of
simple_load_osm_car_routing_graph_from_pbf been changed?
Best regards
Jörn
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub [1], or unsubscribe
[2].
Links:
------
[1]
#78?email_source=notifications <#78?email_source=notifications&email_token=AC3IBD67ECOY5NRHZ7AIFD3RAG2JBA5CNFSM4KNILO2KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IJTFFKA> &email_token=AC3IBD67ECOY5NRHZ7AIFD3RAG2JBA5CNFSM4KNILO2KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IJTFFKA
[2]
https://github.com/notifications/unsubscribe-auth/AC3IBD7PEOX2YYPFLWWN3HTRAG2JBANCNFSM4KNILO2A
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#78?email_source=notifications&email_token=AIJLCOAQDHQ2Y6QLFTUKJZDRAG6YRA5CNFSM4KNILO2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKID6ZY#issuecomment-579878759> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AIJLCOB74VPZVYBQ3EJGCU3RAG6YRANCNFSM4KNILO2A> . <https://github.com/notifications/beacon/AIJLCOC4EA37Z4V37KCZLSLRAG6YRA5CNFSM4KNILO2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKID6ZY.gif>
|
Hi,
these variants all work under Linux:
g++ -pthread -I RoutingKit/include main.cpp -L RoutingKit/lib/
-lroutingkit
g++ -pthread -I RoutingKit/include main.cpp
RoutingKit/lib/libroutingkit.so
g++ -pthread -I RoutingKit/include main.cpp
RoutingKit/lib/libroutingkit.a -lz
I do not know what is failing on your end.
Best Regards
Ben Strasser
…On 2020-01-29 19:54, joernschoenberger wrote:
Hi,
Here is a more cleaned-up command line
Compilation
mingw32-g++.exe -std=c++11
-IC:\userdata\tu_dresden\lehre\LOGISTIK\SS2020\routingkit\include -c
"C:\userdata\tu_dresden\first osm\main.cpp" -o obj\Release\main.o
Linkage
mingw32-g++.exe
-LC:\userdata\tu_dresden\lehre\LOGISTIK\SS2020\routingkit\lib -o
"bin\Release\first osm.exe" obj\Release\main.o -lroutingkit
Result
obj\Release\main.o:main.cpp:(.text+0xc9): undefined reference to
`RoutingKit::simple_load_osm_car_routing_graph_from_pbf(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&,
std::function<void (std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)> const&, bool,
bool)'
collect2.exe: error: ld returned 1 exit status
Best regards
Jörn
Von: ben-strasser ***@***.***
Gesendet: Mittwoch, 29. Januar 2020 18:51
An: RoutingKit/RoutingKit
Cc: joernschoenberger; Author
Betreff: Re: [RoutingKit/RoutingKit] Problem with
simple_load_osm_car_routing_graph_from_pbf (#78)
Hi,
from the provided error message, my best guess is that you did not
link
against the RoutingKit library. What is the linker command line that
is
being invoked?
Best Regards
Ben
On 2020-01-29 18:12, joernschoenberger wrote:
> Hello,
> I want to use RoutingKit under windows10 / g++ / Codeblocks-IDE.
> The RoutingKit libraries where generated using the MSYS2-commandline
> environment as explained in the setup/installation description.
>
> According to the small example given in the documentation, reading
the
> pdb-file can be done with the function
> simple_load_osm_car_routing_graph_from_pbf() where only the first
> first argument (the pdf-file specification) is obligatory. Trying
this
> I g++ linker stops the linking process with the following message:
> obj\Release\main.o:main.cpp:(.text.startup+0x93)||undefined
reference
> to
>
`RoutingKit::simple_load_osm_car_routing_graph_from_pbf(std::__cxx11::basic_string<char,
> std::char_traits, std::allocator > const&, std::function<void
> (std::__cxx11::basic_string<char, std::char_traits, std::allocator >
> const&)> const&, bool, bool)'|
> I understand this message in the ways that I'm expected to specify
all
> four arguments? Has the definition of
> simple_load_osm_car_routing_graph_from_pbf been changed?
>
> Best regards
> Jörn
>
> --
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub [1], or unsubscribe
> [2].
>
> Links:
> ------
> [1]
>
#78?email_source=notifications
<#78?email_source=notifications&email_token=AC3IBD67ECOY5NRHZ7AIFD3RAG2JBA5CNFSM4KNILO2KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IJTFFKA>
&email_token=AC3IBD67ECOY5NRHZ7AIFD3RAG2JBA5CNFSM4KNILO2KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IJTFFKA
> [2]
>
https://github.com/notifications/unsubscribe-auth/AC3IBD7PEOX2YYPFLWWN3HTRAG2JBANCNFSM4KNILO2A
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#78?email_source=notifications&email_token=AIJLCOAQDHQ2Y6QLFTUKJZDRAG6YRA5CNFSM4KNILO2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKID6ZY#issuecomment-579878759>
, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIJLCOB74VPZVYBQ3EJGCU3RAG6YRANCNFSM4KNILO2A>
.
<https://github.com/notifications/beacon/AIJLCOC4EA37Z4V37KCZLSLRAG6YRA5CNFSM4KNILO2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKID6ZY.gif>
--
You are receiving this because you commented.
Reply to this email directly, view it on GitHub [1], or unsubscribe
[2].
Links:
------
[1]
#78?email_source=notifications&email_token=AC3IBD2OVQL5W4DWENAUVITRAHGEVA5CNFSM4KNILO2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKIKOGA#issuecomment-579905304
[2]
https://github.com/notifications/unsubscribe-auth/AC3IBD32CM2ZE6WTNULUZLLRAHGEVANCNFSM4KNILO2A
|
Hi,
unrelated question: Would you mind briefly describing the context in
which you want to use RoutingKit? We are always interested in knowing
where our code ends up. :)
Best Regards
Ben Strasser
|
Hi Ben,
I’m given a lecture about vehicle routing problems and algorithms every summer term. So far, I discussed all the available routing algorithm like savings, sweep and metaheuristics. For this, I developed a library of data structures that allows reading, storing and working on problem data. The solutions where exported to kml and imported into an electronic map for visualization. However, we were not able to manage the “real routes” of the vehicles. My plan is now that use an electronic map to
a) Identify the relevant locations in a map
b) “donate” paths and real distances between locations
c) And to plot the real driving paths after a solution has been found.
I’m currently looking for a “smooth” integration of the electronic map. One idea that would work (but which requires huge preparatory work for the students) is to use pgrouting. To avoid the installation of a database system on each students laptop, I’m looking for something easier and found routingkit as a more slim solution.
Best regards
Jörn
Von: ben-strasser [mailto:notifications@github.com]
Gesendet: Mittwoch, 29. Januar 2020 20:08
An: RoutingKit/RoutingKit
Cc: joernschoenberger; Author
Betreff: Re: [RoutingKit/RoutingKit] Problem with simple_load_osm_car_routing_graph_from_pbf (#78)
Hi,
unrelated question: Would you mind briefly describing the context in
which you want to use RoutingKit? We are always interested in knowing
where our code ends up. :)
Best Regards
Ben Strasser
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#78?email_source=notifications&email_token=AIJLCOBLGETEOIOGZAQWFZ3RAHHZVA5CNFSM4KNILO2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKIL4FY#issuecomment-579911191>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AIJLCOFPINZEATTEC4RN6JLRAHHZVANCNFSM4KNILO2A>.
|
Hi Jörn,
thanks for description.
Many VRP setups that I have seen so far start by computing a distance
matrix between all locations relevant to the VRP (usually depots and
customers). This matrix is computed usually using a CH, as is
implemented in RoutingKit. The VRP solver is then given this matrix is
input instead of the actual map. What you need is a mapping from
location onto routing node. For a non-productive setting, using a
nearest neighbor lat-lon search as implemented by GeoPositionToNode
should be good enough*. You can perform n² distances queries as shown in
the landing page example. You can however, do this slightly faster using
pin_targets and run_to_pinned_targets as explained in
https://github.com/RoutingKit/RoutingKit/blob/master/doc/ContractionHierarchy.md
Most setups that I have seen avoid computing a matrix of paths. The
reason is that this is slower than just computing the distances and
storing that many paths can be prohibitive memory-wise. What is often
done is only compute the actually used paths once the VRP solver is
finished.
The distances you get from simple_load_osm_car_routing_graph_from_pbf
should be good enough for your usecase. In practice, you would want to
tweak the vehicle profile used. The default assumes a car and not a
truck. This means speeds and access restrictions do not fit. Further,
warehouses with restricted access are not part of the constructed
routing graph.
*In practice, this can lead to some mismatched nodes. For example, if
warehouses are not part of the routing graph, which they usually are not
because of restricted access, and close to a river, it can happen that
the nearest node is on the wrong side of the river. This can lead to
significant detours, if there are not many bridges.
Best Regards
Dr. Ben Strasser
|
Hi Ben,
Many thanks for your explanations. I searched for a library like RoutingKit for the reasons you explained: building a distance matrix with road-distances (the problems with too large trucks etc. are not relevant) that is then exploited in the VRP-heuristic.
I like the feature to just read-in the pdb-file instead connecting to a database (online or offline) to keep thinks easy.
However, I’m still suffering from the linker-problem. I have now tried to generate libroutingkit.a as well as my test-program with the same compiler but still get the error of an undefined reference. Have you ever seen that RoutingKit has been compile and integrated under Windows? I’m currently expecting that the cross-platform compilation from linux to windows causes the problems …
Best regards
Jörn
Von: ben-strasser [mailto:notifications@github.com]
Gesendet: Montag, 3. Februar 2020 11:09
An: RoutingKit/RoutingKit
Cc: joernschoenberger; Author
Betreff: Re: [RoutingKit/RoutingKit] Problem with simple_load_osm_car_routing_graph_from_pbf (#78)
Hi Jörn,
thanks for description.
Many VRP setups that I have seen so far start by computing a distance
matrix between all locations relevant to the VRP (usually depots and
customers). This matrix is computed usually using a CH, as is
implemented in RoutingKit. The VRP solver is then given this matrix is
input instead of the actual map. What you need is a mapping from
location onto routing node. For a non-productive setting, using a
nearest neighbor lat-lon search as implemented by GeoPositionToNode
should be good enough*. You can perform n² distances queries as shown in
the landing page example. You can however, do this slightly faster using
pin_targets and run_to_pinned_targets as explained in
https://github.com/RoutingKit/RoutingKit/blob/master/doc/ContractionHierarchy.md
Most setups that I have seen avoid computing a matrix of paths. The
reason is that this is slower than just computing the distances and
storing that many paths can be prohibitive memory-wise. What is often
done is only compute the actually used paths once the VRP solver is
finished.
The distances you get from simple_load_osm_car_routing_graph_from_pbf
should be good enough for your usecase. In practice, you would want to
tweak the vehicle profile used. The default assumes a car and not a
truck. This means speeds and access restrictions do not fit. Further,
warehouses with restricted access are not part of the constructed
routing graph.
*In practice, this can lead to some mismatched nodes. For example, if
warehouses are not part of the routing graph, which they usually are not
because of restricted access, and close to a river, it can happen that
the nearest node is on the wrong side of the river. This can lead to
significant detours, if there are not many bridges.
Best Regards
Dr. Ben Strasser
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#78?email_source=notifications&email_token=AIJLCOFY2JWQAAWMUKX57LLRA7UMVA5CNFSM4KNILO2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKTHPDY#issuecomment-581334927> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AIJLCOFRFLG6JGTSI7LLYCLRA7UMVANCNFSM4KNILO2A> . <https://github.com/notifications/beacon/AIJLCOFO46CJX4KIRMDHIKDRA7UMVA5CNFSM4KNILO2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKTHPDY.gif>
|
Hi, I gave it a go and was able to build a working, self-contained executable under Windows. I added the steps necessary to setup docs. I hope that helps. Best Regards |
Hi Ben,
Thank you very much. Now I can compile the example code and the import of the pbf-file works. Unfortunately, I get a segmentation fault error as soon as I initiate the contraction hierarchy. I will try to understand what happens there and hope that I can solve this issue.
Nevertheless, many thanks for your effort and time you spent so far to help me.
Best regards
Jörn
Von: ben-strasser [mailto:notifications@github.com]
Gesendet: Dienstag, 4. Februar 2020 13:43
An: RoutingKit/RoutingKit
Cc: joernschoenberger; Author
Betreff: Re: [RoutingKit/RoutingKit] Problem with simple_load_osm_car_routing_graph_from_pbf (#78)
Hi,
I gave it a go and was able to build a working, self-contained executable under Windows. I added the steps necessary to setup docs. I hope that helps.
Best Regards
Dr. Ben Strasser
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#78?email_source=notifications&email_token=AIJLCOAXXGMPEKQ6KWCAFUTRBFPGBA5CNFSM4KNILO2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKXPWGQ#issuecomment-581892890> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AIJLCODX56DKGNCC4MKAUODRBFPGBANCNFSM4KNILO2A> . <https://github.com/notifications/beacon/AIJLCOE46BDJCWJJSKUFYADRBFPGBA5CNFSM4KNILO2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKXPWGQ.gif>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I want to use RoutingKit under windows10 / g++ / Codeblocks-IDE.
The RoutingKit libraries where generated using the MSYS2-commandline environment as explained in the setup/installation description.
According to the small example given in the documentation, reading the pdb-file can be done with the function simple_load_osm_car_routing_graph_from_pbf() where only the first first argument (the pdf-file specification) is obligatory. Trying this I g++ linker stops the linking process with the following message:
obj\Release\main.o:main.cpp:(.text.startup+0x93)||undefined reference to `RoutingKit::simple_load_osm_car_routing_graph_from_pbf(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::function<void (std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)> const&, bool, bool)'|
I understand this message in the ways that I'm expected to specify all four arguments? Has the definition of simple_load_osm_car_routing_graph_from_pbf been changed?
Best regards
Jörn
The text was updated successfully, but these errors were encountered: