Skip to content
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

make fails in case of network but no internet #187

Closed
dewagter opened this issue May 4, 2012 · 1 comment
Closed

make fails in case of network but no internet #187

dewagter opened this issue May 4, 2012 · 1 comment
Assignees
Milestone

Comments

@dewagter
Copy link
Member

dewagter commented May 4, 2012

Error: integer expected in '' bij BUILD messages.h

Although it was not instantly obvious from the error description, according to strace this error seems to be caused by a combination of 2 paparazzi features:

  1. in some cases with a bad mobile internet connection conf/maps.xml is built but has an empty google_version=""
  2. gen_messages.xml needs to open maps.xml before it even starts gen_messages.ml when run from gen_messages.out script.
@dewagter
Copy link
Member Author

dewagter commented Aug 3, 2012

Exception: Failure "Error: integer expected in ''".
make: *** [/home/mavlab/paparazzi/var/include/messages.h] Error 2

related: #65
related: #64

reconstruct the problem:

a) go near a hotspot but do not login of unplug the internet cable of your Wireless router (so you have an ip but no internet)
b) make

in data/maps/makefile:

is there a way to detect if grep found nothing and then put the example number instead ?

$(Q)echo "<maps google_version=""grep -P "http://khm[0-9]+.google.com/kh/v=[0-9]+.x26" $(DATADIR)/maps.google.com | sed -E s#.*http://khm[0-9]+.google.com/kh/v=## | sed -E s#.x26.*##""/>" >> $(@)

gautierhattenberger added a commit that referenced this issue Sep 7, 2012
It should not fail in case of lost connection or corrupted maps.xml file
Fix #187
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants