[linux]invalid conversion from 'void*' to 'HB_PositionRec_*'
I get some errors while compilling Qt_ARM:
../3rdparty/harfbuzz/src/harfbuzz-buffer.c: In function 'HB_Error hb_buffer_ensure(HB_BufferRec_*, HB_UInt)':
../3rdparty/harfbuzz/src/harfbuzz-buffer.c:77: error: invalid conversion from 'void*' to 'HB_PositionRec_*'../3rdparty/harfbuzz/src/harfbuzz-buffer.c:81: error: invalid conversion from 'void*' to 'HB_GlyphItemRec_*'
../3rdparty/harfbuzz/src/harfbuzz-buffer.c:86: error: invalid conversion from 'void*' to 'HB_GlyphItemRec_*'
../3rdparty/harfbuzz/src/harfbuzz-buffer.c:97: error: invalid conversion from 'void*' to 'HB_GlyphItemRec_*'
../3rdparty/harfbuzz/src/harfbuzz-buffer.c: In function 'HB_Error hb_buffer_duplicate_out_buffer(HB_BufferRec_*)':
../3rdparty/harfbuzz/src/harfbuzz-buffer.c:115: error: invalid conversion from 'void*' to 'HB_GlyphItemRec_*'
../3rdparty/harfbuzz/src/harfbuzz-buffer.c: In function 'HB_Error hb_buffer_new(HB_BufferRec_**)':
../3rdparty/harfbuzz/src/harfbuzz-buffer.c:134: error: invalid conversion from 'void*' to 'HB_BufferRec_*'
../3rdparty/harfbuzz/src/harfbuzz-buffer.c: In function 'HB_Error _hb_buffer_clear_positions(HB_BufferRec_*)':
../3rdparty/harfbuzz/src/harfbuzz-buffer.c:215: error: invalid conversion from 'void*' to 'HB_PositionRec_*'
make[1]: *** [.obj/release-shared-emb-arm/harfbuzz-buffer.o] Error 1
make[1]: Leaving directory `/usr/local/Qt_ARM/src/corelib'
make: *** [sub-corelib-make_default-ordered] Error 2
In fact, this is because of compiler g++ cann't convert pointer while compiling a C program. I found there's an error in Makefile of 'src/corelib':
CC = /opt/crosstool/gcc-4.4.3/bin/arm-linux-g++
CXX = /opt/crosstool/gcc-4.4.3/bin/arm-linux-g++
So change the CC to correct value.
CC = /opt/crosstool/gcc-4.4.3/bin/arm-linux-gcc
CXX = /opt/crosstool/gcc-4.4.3/bin/arm-linux-g++
It works!
标签: linux
« [linux]arm-linux-ar not found
|
[linux] The tslib functionality test failed while installing qtlib»
评论:
日历
最新微语
- 有的时候,会站在分叉路口,不知道向左还是右
2023-12-26 15:34
- 繁花乱开,鸟雀逐风。心自宁静,纷扰不闻。
2023-03-14 09:56
- 对于不可控的事,我们保持乐观,对于可控的事情,我们保持谨慎。
2023-02-09 11:03
- 小时候,
暑假意味着无忧无虑地玩很长一段时间,
节假意味着好吃好喝还有很多长期不见的小朋友来玩...
长大后,
这是女儿第一个暑假,
一个半月...
2022-07-11 08:54
- Watching the autumn leaves falling as you grow older together
2018-10-25 09:45
分类
最新评论
- Goonog
i get it now :) - 萧
@Fluzak:The web host... - Fluzak
Nice blog here! Also... - Albertarive
In my opinion you co... - ChesterHep
What does it plan? - ChesterHep
No, opposite. - mojoheadz
Everything is OK!... - Josephmaigh
I just want to say t... - ChesterHep
What good topic - AnthonyBub
Certainly, never it ...
2017-02-16 14:24
http://log.anycle.com/skill/232.html
上一步弄错了,把CC转成了g++