Need help: compilatin for arm

2011-09-22
2013-05-30
  • I was tried to compile media tomb for arm architecture(marvell board). But failed with the below error.

    arm-mv5vfp-linux-gnueabi-g++ -DHAVE_CONFIG_H -I. -I.. -I../tombupnp/upnp/inc   -I/usr/include/ffmpeg -I/usr/local/include/ffmpeg -I../src -I../tombupnp/ixml/inc -I../tombupnp/threadutil/inc -I../tombupnp/upnp/inc -I.. -I../sqlite-3.6.22          -pthread     -I/usr/include   -g -O2 -MT libmediatomb_a-process_io_handler.o -MD -MP -MF .deps/libmediatomb_a-process_io_handler.Tpo -c -o libmediatomb_a-process_io_handler.o `test -f '../src/process_io_handler.cc' || echo './'`../src/process_io_handler.cc
    ../src/process_io_handler.cc: In member function 'virtual int ProcessIOHandler::write(char*, size_t)':
    ../src/process_io_handler.cc:327: error: impossible constraint in 'asm'
    ../src/process_io_handler.cc:375: error: impossible constraint in 'asm'
    make: ***  Error 1

    I will be thankful, if any one help me out to solve the problem….!

     
  • alex sayle
    alex sayle
    2011-09-23

    the problem is from a bad definition of FD_ZERO() macro.  are you cross compiling ?  if so you need to right linux headers.

     
  • @cranc cube. yes i am cross compiling for arm. where can i get the headers which are suitable for arm…!
    Thanks