[Buildroot] Problem compiling c++ files
hartleys at visionengravers.com
Thu Aug 14 00:49:20 UTC 2008
I'm not sure if this is a buildroot problem or something with automake.
Hopefully someone can help.
I'm trying to cross-compile a c++ program under buildroot with an
external toolchain. For some reason the ./configure output does not set
the CXX and CXXCPP variables with the full path to the executables. Then
during the make step I get the following error:
if arm-linux-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../..
-I../../include -g -O2 -MT test.o -MD -MP -MF ".deps/test.Tpo" -c -o
test.o test.cpp; \
then mv -f ".deps/test.Tpo" ".deps/test.Po"; else rm -f
".deps/test.Tpo"; exit 1; fi
/bin/sh: arm-linux-g++: command not found
Here's the relevant section of the generated Makefile:
CC = /usr/local/arm/4.1.1-920t/bin/arm-linux-gcc -Os
CCDEPMODE = depmode=gcc3
CFLAGS = -g -O2 -Wall
CPP = /usr/local/arm/4.1.1-920t/bin/arm-linux-cpp -Os
CXX = arm-linux-g++
CXXCPP = arm-linux-g++ -E
Shouldn't the CXX and CXXCPP also be prefixed by
All the other programs in the external toolchain, such as AR, RANLIB and
STRIP, have the prefix.
More information about the buildroot