hemanth
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.
my soure is .c and .s files which are optimized for arm processor cortex a8
wether LDRSHNE will support by gcc assembler are not
if support how to compile this are my compile options
/home/mvanthi/android-ndk-r7/toolchains/arm-linux-androideabi-4.4.3/prebuilt/lin
ux-x86/bin/arm-linux-androideabi-gcc -O3 -D__GNU__ -D__ARM_NEON__
-marm -Wall - O3 -mfpu=neon -march=armv7-a -mtune=cortex-a8
-mfloat-abi=softfp -fno-short-enu ms -fno-exceptions
-fno-strict-aliasing -I/home/mvanthi/android-ndk-r7/platforms
/android-9/arch-arm/usr/include -mvectorize-with-neon-quad -Wall
-static -I./../ Include/ -c ../Source/util_asm1.S -o
../Source/util_asm1.o
thanks
hemanth
--
Regards
Hemanthkumar T
PH:9620737573
Email:hema...@ncoretech.com
i have one more problem while liking
[mvanthi@dhcppc196 App]$ make -f Makefile_ndk
/home/mvanthi/android-ndk-r7/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-ld
-o ./h264dec ./../build/h264_api.o ../Lib/h264dec.a --entry=main
--dynamic-linker /system/bin/linker -nostdlib
-L/home/mvanthi/android-ndk-r7/platforms/android-9/arch-arm/usr/lib
-L/home/armds5/android-ndk-r7/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/lib/gcc/arm-linux-androideabi/4.4.3/armv7-a
-lc -lm -rpath-link
/home/mvanthi/android-ndk-r7/platforms/android-9/arch-arm/usr/lib
../Lib/h264dec.a(image.o): In function `init_picture':
image.c:(.text+0x7b0): undefined reference to `__aeabi_uidivmod'
image.c:(.text+0x82c): undefined reference to `__aeabi_uidivmod'
../Lib/h264dec.a(macroblock.o): In function `decode_mb_IPCM':
macroblock.c:(.text+0x2c04): undefined reference to `__rev'
macroblock.c:(.text+0x2cc4): undefined reference to `__rev'
macroblock.c:(.text+0x2d40): undefined reference to `__rev'
macroblock.c:(.text+0x2dbc): undefined reference to `__rev'
macroblock.c:(.text+0x2e38): undefined reference to `__rev'
../Lib/h264dec.a(macroblock.o):macroblock.c:(.text+0x2eb4): more
undefined references to `__rev' follow
../Lib/h264dec.a(mbuffer.o): In function `h264d_init_dpb':
mbuffer.c:(.text+0xae0): undefined reference to `__aeabi_idiv'
../Lib/h264dec.a(mbuffer.o): In function `h264d_fill_frame_num_gap':
mbuffer.c:(.text+0x2c78): undefined reference to `__aeabi_uidivmod'
mbuffer.c:(.text+0x2d44): undefined reference to `__aeabi_idivmod'
../Lib/h264dec.a(output.o): In function `write_out_picture':
../Lib/h264dec.a(parset.o): In function `Flush_Buffer':
parset.c:(.text+0x9f8): undefined reference to `__rev'
../Lib/h264dec.a(parset.o): In function `esl_ue_v':
parset.c:(.text+0xa70): undefined reference to `__rev'
parset.c:(.text+0xad8): undefined reference to `__rev'
../Lib/h264dec.a(parset.o): In function `ReadHRDParameters':
parset.c:(.text+0xba4): undefined reference to `__rev'
parset.c:(.text+0xc6c): undefined reference to `__rev'
../Lib/h264dec.a(parset.o):parset.c:(.text+0xd18): more undefined
references to `__rev' follow
../Lib/h264dec.a(fmo.o): In function `FmoGenerateType1MapUnitMap':
fmo.c:(.text+0x100): undefined reference to `__aeabi_uidiv'
fmo.c:(.text+0x118): undefined reference to `__aeabi_uidivmod'
fmo.c:(.text+0x12c): undefined reference to `__aeabi_uidivmod'
../Lib/h264dec.a(fmo.o): In function `FmoGenerateType2MapUnitMap':
fmo.c:(.text+0x1b4): undefined reference to `__aeabi_uidiv'
fmo.c:(.text+0x1c4): undefined reference to `__aeabi_uidivmod'
fmo.c:(.text+0x1dc): undefined reference to `__aeabi_uidiv'
fmo.c:(.text+0x1ec): undefined reference to `__aeabi_uidivmod'
../Lib/h264dec.a(getbits.o): In function `H264_FlushBuf_Init':
getbits.c:(.text+0x4c): undefined reference to `__rev'
getbits.c:(.text+0x5c): undefined reference to `__rev'
getbits.c:(.text+0x74): undefined reference to `__rev'
../Lib/h264dec.a(header.o): In function `decode_poc':
header.c:(.text+0x2e0): undefined reference to `__aeabi_uidiv'
header.c:(.text+0x308): undefined reference to `__aeabi_uidivmod'
../Lib/h264dec.a(header.o): In function `esl_ue_v':
header.c:(.text+0x918): undefined reference to `__rev'
header.c:(.text+0x980): undefined reference to `__rev'
../Lib/h264dec.a(header.o): In function `FirstPartOfSliceHeader':
header.c:(.text+0xa44): undefined reference to `__rev'
header.c:(.text+0xb0c): undefined reference to `__rev'
header.c:(.text+0xbdc): undefined reference to `__rev'
../Lib/h264dec.a(header.o):header.c:(.text+0xc88): more undefined
references to `__rev' follow
../Lib/h264dec.a(header.o): In function `RestOfSliceHeader':
header.c:(.text+0x1f68): undefined reference to `__aeabi_idiv'
header.c:(.text+0x20f4): undefined reference to `__rev'
header.c:(.text+0x2200): undefined reference to `__rev'
header.c:(.text+0x2308): undefined reference to `__rev'
header.c:(.text+0x23f0): undefined reference to `__rev'
header.c:(.text+0x24b4): undefined reference to `__aeabi_idiv'
header.c:(.text+0x24c4): undefined reference to `__aeabi_idivmod'
header.c:(.text+0x25b0): undefined reference to `__rev'
header.c:(.text+0x2678): undefined reference to `__rev'
header.c:(.text+0x273c): undefined reference to `__rev'
header.c:(.text+0x288c): undefined reference to `__rev'
make: *** [TESTOUT] Error 1
how to solve this thing
i am strulling to solve this issue help me out
__rev has no builtin for gcc
thanks
hemanth
Remove -nostdlib from the command line, or add -lgcc. You're missing
symbols provided by libgcc but you prevent them from being linked via
-nostdlib.
Best regards.
i removed -nostdlib
and add -lgcc to mu command
now it showing error
[mvanthi@dhcppc196 App]$ make -f Makefile_ndk
/home/mvanthi/android-ndk-r7/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-ld
-o ./h264dec ./../build/h264_api.o ../Lib/h264dec.a --entry=main
--dynamic-linker /system/bin/linker
-L/home/mvanthi/android-ndk-r7/platforms/android-9/arch-arm/usr/lib
-L/home/armds5/android-ndk-r7/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/lib/gcc/arm-linux-androideabi/4.4.3/armv7-a
-lc -lm -lgcc -rpath-link
/home/mvanthi/android-ndk-r7/platforms/android-9/arch-arm/usr/lib
/home/mvanthi/android-ndk-r7/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-ld:
cannot find -lgcc
make: *** [TESTOUT] Error 1
this my tool path
where libgcc is present
[mvanthi@dhcppc196 ~]$ cd
android-ndk-r7/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/lib/gcc/arm-linux-androideabi/4.4.3/
[mvanthi@dhcppc196 4.4.3]$ cd armv7-a/
[mvanthi@dhcppc196 armv7-a]$ ls
crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o libgcc.a
libgcov.a thumb
[mvanthi@dhcppc196 armv7-a]$
i am getting above error
i am new to ndk tools
thanks
hemanth
> --
> You received this message because you are subscribed to the Google Groups
> "android-ndk" group.
> To post to this group, send email to andro...@googlegroups.com.
> To unsubscribe from this group, send email to
> android-ndk...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/android-ndk?hl=en.
>
>
You don't need -lgcc (and -lc) if you don't specify -nostdlib. Both are
standard libs and linked by default.
And clean up your library paths (you should only need --sysroot),
"-L/home/armds5/android-ndk-r7/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/lib" surely isn't right.
Best regards.
- David
To unsubscribe from this group, send email to android-ndk+unsubscribe@googlegroups.com.
asm("MRC p15, 0, %0, c1, c1, 2 " : "=r" (id));
However, it is not working. Reading the specification, it says it can only be accessed in privileged mode. I would think that just copying (not altering it) the special registers just like you said will be ok. Is this the problem? If not, how do I access it?
Damola
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/android-ndk/-/8aCDz-_gykQJ.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/android-ndk/-/f6qrcZQekY4J.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.