Cannot build ndn-cxx with cross-compiler toolchain on OS X
I used crosstool-ng and successfully built a toolchain that compiles for Raspberry Pi on OS X. I am unable to build ndn-cxx from source with the toolchain. I get boost linkage errors (attached).
I'm also attaching the script I use to build.
Updated by Alex Afanasyev over 6 years ago
From the error I suspect that header files do not correspond to the linked library. Other potential problems:
- Do not specify include dirs in CXXFLAGS. Use
INCLUDESvariable instead (it should be just a space separated list of directories)
-Ldoesn make sense for CXXFLAGS at all
- Do not specify library paths in LDFLAGS. Use
LIBPATHvariable (also, just a list of folders)
You can try to compile again, but make sure you remove libndn-cxx.a from
/Users/abannis/REMAP/pi-ndn/pi/lib. Until you fix the flags, it is preferred instead of the compiled version during the link stage.
Updated by Adeola Bannis over 6 years ago
The flags were taken from Wentao's instructions at http://redmine.named-data.net/projects/ndn-embedded/wiki/Cross-compiling_NDN_projects_for_Raspberry_Pi
I tried it with the boost includes + libs from that page, and also with the headers and libs copied directly off the Pi. Neither worked.
I've attached the config.log.