[Live-devel] compiling live on arm9
Richard Guy Briggs
richard.briggs at lumenera.com
Thu Apr 22 17:34:17 PDT 2004
Hi all,
I've had a look through the archives and haven't quite seen this
problem, so here goes:
I've created a file called config.arm-linux which contains:
COMPILE_OPTS = $(INCLUDES) -I. -O -DSOCKLEN_T=socklen_t
C = c
C_COMPILER = $(CC)
C_FLAGS = $(CFLAGS) $(COMPILE_OPTS)
CPP = cpp
CPLUSPLUS_COMPILER = $(CXX)
CPLUSPLUS_FLAGS = $(CXXFLAGS) $(COMPILE_OPTS) -Wall -DBSD=1
OBJ = o
LINK = $(CXX) -o
LINK_OPTS = $(CXXFLAGS) -L.
CONSOLE_LINK_OPTS = $(LINK_OPTS)
LIBRARY_LINK = $(LD) -o
LIBRARY_LINK_OPTS = $(LDFLAGS) -r -Bstatic
LIB_SUFFIX = a
LIBS_FOR_CONSOLE_APPLICATION =
LIBS_FOR_GUI_APPLICATION =
EXE =
Things go fine, succeeding first on the liveMedia directory, then on the
first 3 items in groupsock (GroupsockHelper.cpp, GroupEId.cpp, inet.c)
and then bomb on:
arm-linux-g++ -c -O2 -Dlinux -D__linux__ -Dunix -DEMBED -nostdinc
-I/home/rgb/svn/trunk/snapgear/lib/uClibc/include
-I/home/rgb/svn/trunk/snapgear/lib/libcrypt_old
-I/home/rgb/svn/trunk/snapgear -idirafter
/usr/local/lib/gcc-lib/arm-linux/3.2.1/include
-I/home/rgb/svn/trunk/snapgear/linux-2.4.x/include -Iinclude
-I../UsageEnvironment/include -I. -O -DSOCKLEN_T=socklen_t -Wall -DBSD=1
Groupsock.cpp
Groupsock.cpp:31:21: strstream: No such file or directory
strstream is available in the expected standard path of
/usr/local/include/c++/3.2.1/backward .
I have noted that header is deprecated in favour of sstream, but
changing that in groupsock/Groupsock.cpp yields a similar not found error.
I have also noticed that -nostdinc is set. This environment adds
/usr/local/lib/gcc-lib/arm-linux/3.2.1/include but even if I add
-idirafter /usr/local/include/c++/3.2.1/ the results are the same.
I've spent most of my time recenly in the kernel, so C++ isn't very
familiar yet...
Richard Guy Briggs
Lumenera Corp.
More information about the live-devel
mailing list