Bug #1673
closed
Cannot build ndn-cxx with cross-compiler toolchain on OS X
Added by Adeola Bannis over 10 years ago.
Updated over 10 years ago.
Description
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.
Files
Attach also build/config.log
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
INCLUDES
variable instead (it should be just a space separated list of directories)
-L
doesn make sense for CXXFLAGS at all
- Do not specify library paths in LDFLAGS. Use
LIBPATH
variable (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.
Have you removed libndn-cxx from the location I mentioned?
I changed the flags and removed the old libndn-cxx and it built successfully. Thanks, Alex!
- Category set to Base
- Status changed from New to Closed
- Target version set to v0.2
Also available in: Atom
PDF