[Live-devel] cross compiling for mips

Edward edward at v-ecom.com
Thu Nov 13 00:25:23 PST 2008


Here is the config I am using.


CROSS_COMPILE=          mipsel-linux-
COMPILE_OPTS =          $(INCLUDES) -I. -O2 -DSOCKLEN_T=socklen_t 
-DNO_STRSTREAM=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64q
C =                     c
C_COMPILER =            $(CROSS_COMPILE)gcc
C_FLAGS =               $(COMPILE_OPTS)
CPP =                   cpp
CPLUSPLUS_COMPILER =    $(CROSS_COMPILE)g++
CPLUSPLUS_FLAGS =       $(COMPILE_OPTS) -Wall -DBSD=1
OBJ =                   o
LINK =                  $(CROSS_COMPILE)g++ -o
LINK_OPTS =             -L. -u
CONSOLE_LINK_OPTS =     $(LINK_OPTS)
LIBRARY_LINK =          $(CROSS_COMPILE)ld -o
LIBRARY_LINK_OPTS =     $(LINK_OPTS) -r -Bstatic
LIB_SUFFIX =                    a
LIBS_FOR_CONSOLE_APPLICATION =
LIBS_FOR_GUI_APPLICATION =
EXE =


Here is the error I get when compiling:


mipsel-linux-ld -olibgroupsock.a -L. -u -r -Bstatic \
                GroupsockHelper.o GroupEId.o inet.o Groupsock.o 
NetInterface.o NetAddress.o IOHandlers.o
mipsel-linux-ld: warning: cannot find entry symbol __start; defaulting 
to 00000000004000b0
GroupsockHelper.o: In function `makeSocketNonBlocking(int)':
GroupsockHelper.cpp:(.text+0x9c): undefined reference to `fcntl64'
GroupsockHelper.cpp:(.text+0xb8): undefined reference to `fcntl64'



More information about the live-devel mailing list