error: typeinfo: No such file or directory

1,625 views
Skip to first unread message

Oldes

unread,
Jul 25, 2012, 5:45:15 AM7/25/12
to haxe...@googlegroups.com
Hi,

I'm new with Haxe and I'm trying to compile simple test for android, but I have problems with locating typeinfo. Could someone help me, what I should set so it's found by the compiler?

arm-linux-androideabi-g++ -Iinclude --sysroot=E:\dev\android-ndk-r8b/platforms/android-5/arch-arm -IE:\dev\android-ndk-r8b/sources/cxx-
stl/gnu-libstdc++/include -IE:\dev\android-ndk-r8b/sources/cxx-stl/gnu-libstdc++/libs/armeabi/include -DHXCPP_VISIT_ALLOCS -Dhaxe_210 -
Ic:\Motion-Twin\Haxe\lib\hxcpp\2,10/include -Iinclude -fpic -fvisibility=hidden -ffunction-sections -funwind-tables -fstack-protector -
fno-short-enums -D__ARM_ARCH_5__ -D__ARM_ARCH_5T__ -D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__ -D_LINUX_STDDEF_H  -Wno-psabi -march=armv5te -m
tune=xscale -msoft-float -fomit-frame-pointer -fexceptions -fno-strict-aliasing -finline-limit=10000 -DANDROID -Wa,--noexecstack -O2 -D
NDEBUG -c -frtti -o hxcpp.h.gch c:\Motion-Twin\Haxe\lib\hxcpp\2,10/include/hxcpp.h
c:\Motion-Twin\Haxe\lib\hxcpp\2,10/include/hxcpp.h:13:20: error: typeinfo: No such file or directory
In file included from c:\Motion-Twin\Haxe\lib\hxcpp\2,10/include/hxcpp.h:170:
...

I'm on WinXP and used nme setup windows
The typeinfo,h is in C:\Program Files\Microsoft Visual Studio 10.0\VC\crt\src\

Thanks,
Oldes

aaaa...@gmail.com

unread,
Jul 26, 2012, 8:20:51 AM7/26/12
to haxe...@googlegroups.com
Hi,

I found a mistake into Android NDK directory tree. In ${ANDROID_NDK_ROOT}\sources\cxx-stl\gnu-libstdc++\ we find two folders, 4.4.3 & 4.6. If I copy content of \4.4.3\ to \gnu-libstdc++\ I can compile to Android in Windows and FlashDevelop.

byrono...@gmail.com

unread,
Aug 21, 2012, 1:44:35 AM8/21/12
to haxe...@googlegroups.com, aaaa...@gmail.com
Thank you for this.

Harry French

unread,
Jan 27, 2013, 5:21:38 PM1/27/13
to haxe...@googlegroups.com, aaaa...@gmail.com
Thanks for finding this out, it's been giving me some grief. 

I prefer not to copy sdk chunks about (so I can overwrite cleanly in the future), so can cheerfully report that if you're doing this under linux it works fine if you 'ln -s' the include and libs directories out to the parent directory. I assume the same will work for Mac, and windows can use Junction to the same effect. 

Thanks again

H

Joshua Granick

unread,
Feb 4, 2013, 7:40:58 PM2/4/13
to haxe...@googlegroups.com, Harry French, aaaa...@gmail.com
When "typeinfo.h" is not found, it's usually an indication that HXCPP is not pointing to your SDK directory

This may mean your path is bad, or in the case of Android, they changed the directory paths in r8b. If you are using a later build, try -DNDKV7 or update to a new NDK
Reply all
Reply to author
Forward
0 new messages