[Click] click cross-compiling question

Pravin Shankar spravin at gmail.com
Fri Feb 27 19:13:48 EST 2009


Hi all
I am trying to cross-compile click for the Openmoko phone (
http://wiki.openmoko.org/wiki/OpenMoko ), and facing some issues.
Is there any pointers (FAQ or the like) on cross-compiling click?

My compiler is arm-angstrom-linux-gnueabi-gcc ( gcc version 4.1.2 )
Based on instructions in this page:
http://read.cs.ucla.edu/click/faq#how-do-i-cross-compile-userlevel-click
I added the --host=arm-angstrom-linux-gnueabi argument to ./configure and am
trying to build the click tools using make tools elementmap.xml
I get the following error:

spravin at waltz:~/git/click$ make tools elementmap.xml
> make[1]: Entering directory `/home/spravin/git/click/tools'
> make[2]: Entering directory `/home/spravin/git/click/tools/lib'
>   CXX landmarkt.cc
> landmarkt.cc:22:21: error: algorithm: No such file or directory
> landmarkt.cc: In member function ‘String
> LandmarkSetT::offset_to_string(unsigned int) const’:
> landmarkt.cc:71: error: ‘lower_bound’ is not a member of ‘std’
> landmarkt.cc: In member function ‘String
> LandmarkSetT::offset_to_decorated_string(unsigned int, unsigned int) const’:
> landmarkt.cc:90: error: ‘lower_bound’ is not a member of ‘std’
> make[2]: *** [landmarkt.o] Error 1
> make[2]: Leaving directory `/home/spravin/git/click/tools/lib'
> make[1]: *** [lib] Error 2
> make[1]: Leaving directory `/home/spravin/git/click/tools'
> make: *** [tools] Error 2
> spravin at waltz:~/git/click$
>

I'm guessing this means that the compiler is not able to find the
algorithm.h header file. I would need to supply the -I argument with the
include location somehow. Should I edit the Makefile? Or should I pass some
other argument to ./configure?

Any pointers would be appreciated.

Regards
- Pravin


More information about the click mailing list