<p dir="ltr">Thank you for this feedback... i will look into this as soon i am back from traveling (Tuesday next week).</p>
<p dir="ltr">Henning </p>
<div class="gmail_quote">On Oct 1, 2013 8:36 PM, "Will Hawkins" <<a href="mailto:hawkinsw@opentechinstitute.org">hawkinsw@opentechinstitute.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello all!<br>
<br>
First of all, I wanted to say how excited I am about the great<br>
development being done on Olsrd v2. I just got it to compile for OpenWRT<br>
and I wanted to share my experience.<br>
<br>
1. I started by following the instructions on the wiki page<br>
(<a href="http://www.olsr.org/mediawiki/index.php/Compile_OLSRd2" target="_blank">http://www.olsr.org/mediawiki/index.php/Compile_OLSRd2</a>). After adding<br>
the feeds to feeds.conf, it appears necessary that I run<br>
<br>
scripts/feeds install -a<br>
scripts/feeds update -a<br>
<br>
before the package is available for selection in menuconfig.<br>
<br>
2. During compilation I noticed two errors, both in the<br>
generate_builddata.cmake of oonfapi and olsrdv2 feeds . The<br>
<br>
STRING(REGEX MATCH "v${OONF_VERSION}-" FOUND_VERSION ${OONF_LIB_GIT})<br>
<br>
and<br>
<br>
STRING(REGEX MATCH "v${OONF_APP_VERSION}-" FOUND_VERSION ${OONF_APP_GIT})<br>
<br>
lines do not appear to work as designed. The *_VERSION variables are<br>
stripped down to just the revision information in generate_version.cmake<br>
file. So, to fix this, in the olsrdv2 feed, I replaced the<br>
execute_process command with this<br>
<br>
execute_process(COMMAND git describe --always --long --tags --dirty<br>
--match "v[0-9]*"<br>
OUTPUT_VARIABLE OONF_APP_GIT_TAG<br>
OUTPUT_STRIP_TRAILING_WHITESPACE)<br>
<br>
and added<br>
STRING(REGEX REPLACE "^v(.*)-[^-]*-[^-]*$" "\\1" OONF_APP_GIT<br>
${OONF_APP_GIT_TAG})<br>
<br>
as line 13 in generate_builddata.cmake. Then, I changed the REGEX_MATCH<br>
command to<br>
<br>
STRING(REGEX MATCH "${OONF_APP_VERSION}" FOUND_VERSION ${OONF_APP_GIT})<br>
<br>
I made a similar set of changes to generate_builddata.cmake in the<br>
oonfapi feed too.<br>
<br>
With only those two changes, everything compiled smoothly! Please let me<br>
know if I missed something obvious in the instructions that would have<br>
saved me from seeing those errors. Otherwise, I hope that information is<br>
useful to someone else.<br>
<br>
Next, it's time to test how it runs. I will keep everyone posted!<br>
<br>
Will<br>
<br>
--<br>
Olsr-dev mailing list<br>
<a href="mailto:Olsr-dev@lists.olsr.org">Olsr-dev@lists.olsr.org</a><br>
<a href="https://lists.olsr.org/mailman/listinfo/olsr-dev" target="_blank">https://lists.olsr.org/mailman/listinfo/olsr-dev</a><br>
</blockquote></div>