您当前的位置: 首页 > 

柳鲲鹏

暂无认证

  • 0浏览

    0关注

    4642博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

gcc is unable to create an executable file.

柳鲲鹏 发布时间:2020-03-06 05:22:30 ,浏览量:0

错误如下:

gcc is unable to create an executable file.
If gcc is a cross-compiler, use the --enable-cross-compile option.
Only do this if you know what cross compiling means.
C compiler test failed.

网上也没找到资料。后来发现错误是extra-cflags/extra-ldflags写错了。正确写法是:

./configure \
          --prefix=${DEST_LIB_DIR} \
    --extra-cflags=-I${DEST_LIB_DIR}/include \
    --extra-cflags=-I${DEST_LIB_DIR}/include/freetype2 \
   --extra-ldflags=-L${DEST_LIB_DIR}/lib \

 

关注
打赏
1665724893
查看更多评论
立即登录/注册

微信扫码登录

0.0477s