Help with Openwrt scummvm port

David Reyes Samblas Martinez david at tuxbrain.com
Wed Jun 16 18:05:38 EDT 2010


well, I can confirm that the AR trick works,
I use MAKE_FLAGS += AR="mipsel-openwrt-linux-uclibc-ar r"
but now another big wall in from, the linking part, it complains about
miriad of undefined symbols , I suppose now is time to set up the
TARGET_LDFLAGS,


2010/6/16 Xiangfu Liu <xiangfu at sharism.cc>:
> Hi
>
> thanks to kyak @irc #qi-hardware
>  add MAKE_FLAGS += AR="mipsel-openwrt-linux-uclibc-ar cru VERBOSE_BUILD=yes"
> to your Makefile
>
> I just don't understand why openwrt rewirte scummvm's variable??
> this variable already in 'config.mk': line 9, generate by 'configure'.
>
>
>
>
>> Hi there,
>> I'm stucked on one error due I don't know where is coming from.
>>
>> I have successfully passed the the compilation phase but when it
>> arrives to "ar" it complain abour a "-- e" parameter I don't find
>> where is coming from due "-- e" is not in any place I have search
>>
>> Here is the Makefile and patches I use
>> http://www.tuxbrain.org/downloads/nanonote/mutroxports/games/scummvm
>>
>> Here is the log
>>
>> make[2]: Entering directory
>>
>> `/home/mutrox/Proyectos/tuxbrain/productos/nanonote/openwrt/mutroxports/games/scummvm'
>> CFLAGS="-Os -pipe -mips32 -mtune=mips32 -funit-at-a-time
>> -fhonour-copts -msoft-float
>>
>> -I/home/mutrox/Proyectos/tuxbrain/productos/nanonote/openwrt/openwrt-xburst/staging_dir/target-mipsel_uClibc-0.9.30.1/usr/include/SDL
>>
>>  -I/home/mutrox/Proyectos/tuxbrain/productos/nanonote/openwrt/openwrt-xburst/staging_dir/target-mipsel_uClibc-0.9.30.1/usr/include
>>
>> -I/home/mutrox/Proyectos/tuxbrain/productos/nanonote/openwrt/openwrt-xburst/staging_dir/target-mipsel_uClibc-0.9.30.1/include
>>
>> -I/home/mutrox/Proyectos/tuxbrain/productos/nanonote/openwrt/openwrt-xburst/staging_dir/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/include
>>
>> -I/home/mutrox/Proyectos/tuxbrain/productos/nanonote/openwrt/openwrt-xburst/staging_dir/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.30.1/include
>> " CXXFLAGS="-Os -pipe -mips32 -mtune=mips32 -funit-at-a-time
>> -fhonour-copts -msoft-float
>>
>> -I/home/mutrox/Proyectos/tuxbrain/productos/nanonote/openwrt/openwrt-xburst/staging_dir/target-mipsel_uClibc-0.9.30.1/usr/include/SDL
>>
>>  -I/home/mutrox/Proyectos/tuxbrain/productos/nanonote/openwrt/openwrt-xburst/staging_dir/target-mipsel_uClibc-0.9.30.1/usr/include
>>
>> -I/home/mutrox/Proyectos/tuxbrain/productos/nanonote/openwrt/openwrt-xburst/staging_dir/target-mipsel_uClibc-0.9.30.1/include
>>
>> -I/home/mutrox/Proyectos/tuxbrain/productos/nanonote/openwrt/openwrt-xburst/staging_dir/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/include
>>
>> -I/home/mutrox/Proyectos/tuxbrain/productos/nanonote/openwrt/openwrt-xburst/staging_dir/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.30.1/include
>> "
>> LDFLAGS="-L/home/mutrox/Proyectos/tuxbrain/productos/nanonote/openwrt/openwrt-xburst/staging_dir/target-mipsel_uClibc-0.9.30.1/usr/lib
>>
>> -L/home/mutrox/Proyectos/tuxbrain/productos/nanonote/openwrt/openwrt-xburst/staging_dir/target-mipsel_uClibc-0.9.30.1/lib
>>
>> -L/home/mutrox/Proyectos/tuxbrain/productos/nanonote/openwrt/openwrt-xburst/staging_dir/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/lib
>>
>> -L/home/mutrox/Proyectos/tuxbrain/productos/nanonote/openwrt/openwrt-xburst/staging_dir/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.30.1/lib
>> " make -C
>> /home/mutrox/Proyectos/tuxbrain/productos/nanonote/openwrt/openwrt-xburst/build_dir/target-mipsel_uClibc-0.9.30.1/scummvm-1.1.1/.
>> AR=mipsel-openwrt-linux-uclibc-ar AS="mipsel-openwrt-linux-uclibc-gcc
>> -c -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts
>> -msoft-float
>> -I/home/mutrox/Proyectos/tuxbrain/productos/nanonote/openwrt/openwrt-xburst/staging_dir/target-mipsel_uClibc-0.9.30.1/usr/include/SDL"
>> LD=mipsel-openwrt-linux-uclibc-ld NM=mipsel-openwrt-linux-uclibc-nm
>> CC="mipsel-openwrt-linux-uclibc-gcc"
>> GCC="mipsel-openwrt-linux-uclibc-gcc"
>> CXX="mipsel-openwrt-linux-uclibc-g++"
>> RANLIB=mipsel-openwrt-linux-uclibc-ranlib
>> STRIP=mipsel-openwrt-linux-uclibc-strip
>> OBJCOPY=mipsel-openwrt-linux-uclibc-objcopy
>> OBJDUMP=mipsel-openwrt-linux-uclibc-objdump
>> SIZE=mipsel-openwrt-linux-uclibc-size
>> CROSS="mipsel-openwrt-linux-uclibc-" ARCH="mipsel" ;
>> make[3]: Entering directory
>>
>> `/home/mutrox/Proyectos/tuxbrain/productos/nanonote/openwrt/openwrt-xburst/build_dir/target-mipsel_uClibc-0.9.30.1/scummvm-1.1.1'
>>     AR       engines/scumm/libscumm.a
>> mipsel-openwrt-linux-uclibc-ar: illegal option -- e
>> Usage: mipsel-openwrt-linux-uclibc-ar [emulation options]
>> [-]{dmpqrstx}[abcfilNoPsSuvV] [member-name] [count] archive-file
>> file...
>>        mipsel-openwrt-linux-uclibc-ar -M [<mri-script]
>>  commands:
>>   d            - delete file(s) from the archive
>>   m[ab]        - move file(s) in the archive
>>   p            - print file(s) found in the archive
>>   q[f]         - quick append file(s) to the archive
>>   r[ab][f][u]  - replace existing or insert new file(s) into the archive
>>   t            - display contents of archive
>>   x[o]         - extract file(s) from the archive
>>  command specific modifiers:
>>   [a]          - put file(s) after [member-name]
>>   [b]          - put file(s) before [member-name] (same as [i])
>>   [N]          - use instance [count] of name
>>   [f]          - truncate inserted file names
>>   [P]          - use full path names when matching
>>   [o]          - preserve original dates
>>   [u]          - only replace files that are newer than current archive
>> contents
>>  generic modifiers:
>>   [c]          - do not warn if the library had to be created
>>   [s]          - create an archive index (cf. ranlib)
>>   [S]          - do not build a symbol table
>>   [T]          - make a thin archive
>>   [v]          - be verbose
>>   [V]          - display the version number
>>   @<file>       - read options from<file>
>>  emulation options:
>>   No emulation specific options
>> mipsel-openwrt-linux-uclibc-ar: supported targets:
>> elf32-tradlittlemips elf32-tradbigmips ecoff-littlemips ecoff-bigmips
>> elf32-ntradlittlemips elf64-tradlittlemips elf32-ntradbigmips
>> elf64-tradbigmips elf64-little elf64-big elf32-little elf32-big srec
>> symbolsrec tekhex binary ihex
>> make[3]: *** [engines/scumm/libscumm.a] Error 1
>> make[3]: Leaving directory
>>
>> `/home/mutrox/Proyectos/tuxbrain/productos/nanonote/openwrt/openwrt-xburst/build_dir/target-mipsel_uClibc-0.9.30.1/scummvm-1.1.1'
>> make[2]: ***
>> [/home/mutrox/Proyectos/tuxbrain/productos/nanonote/openwrt/openwrt-xburst/build_dir/target-mipsel_uClibc-0.9.30.1/scummvm-1.1.1/.built]
>> Error 2
>> make[2]: Leaving directory
>>
>> `/home/mutrox/Proyectos/tuxbrain/productos/nanonote/openwrt/mutroxports/games/scummvm'
>> make[1]: *** [package/feeds/mutrox/scummvm/compile] Error 2
>> make[1]: Leaving directory
>>
>> `/home/mutrox/Proyectos/tuxbrain/productos/nanonote/openwrt/openwrt-xburst'
>> make: *** [package/scummvm/compile] Error 2
>>
>>
>
>
> --
> Best Regards
> Xiangfu Liu
> http://www.nanonote.cc
>



-- 
David Reyes Samblas Martinez
http://www.tuxbrain.com
Open ultraportable & embedded solutions
Ben NanoNote, Arduino, Openmoko
Hey, watch out!!! There's a linux in your pocket!!!




More information about the discussion mailing list


interactive