查看: 85956|回复: 1

[Linux] buildroot编译错误

5

主题

8

回帖

69

积分

A40i\T3\T507\T527通行证i.MX8MP通行证RK3568通行证RK3399通行证T113i通行证

wolongtest 发表于 2021-8-19 15:06:39 | 显示全部楼层 |阅读模式
本帖最后由 wolongtest 于 2021-8-19 15:08 编辑

进入buildroot-2016.11手动编译 make 全部包提示 libgpgme-1.7.1 包无法编译通过,经常提示编译错误如下:使用 ./build.sh 脚本编译错误一样,编译环境时 Ubuntu 20.04 + Docker, Docker环境如下:
test@d3c7b247491d:/build/allwinner_t3_0818/buildroot-201611$ lsb_release  -a
No LSB modules are available.
Distributor ID:        Ubuntu
Description:        Ubuntu 14.04.6 LTS
Release:        14.04
Codename:        trusty

libgpgme编译错误.zip (6.47 KB, 下载次数: 0)
编译错误.jpg
  1. context.cpp:1094:87: error: invalid use of incomplete type 'class GpgME::Context'
  2. SigningResult Context::sign(const Data &plainText, Data &signature, SignatureMode mode)
  3.                                                                                        ^
  4. In file included from context.cpp:28:0:
  5. ./eventloopinteractor.h:32:7: note: forward declaration of 'class GpgME::Context'
  6. class Context;
  7.        ^
  8. context.cpp:1103:87: error: invalid use of incomplete type 'class GpgME::Context'
  9. Error Context::startSigning(const Data &plainText, Data &signature, SignatureMode mode)
  10.                                                                                        ^
  11. In file included from context.cpp:28:0:
  12. ./eventloopinteractor.h:32:7: note: forward declaration of 'class GpgME::Context'
  13. class Context;
  14.        ^
  15. context.cpp:1111:40: error: invalid use of incomplete type 'class GpgME::Context'
  16. SigningResult Context::signingResult() const
  17.                                         ^
  18. In file included from context.cpp:28:0:
  19. ./eventloopinteractor.h:32:7: note: forward declaration of 'class GpgME::Context'
  20. class Context;
  21.        ^
  22. context.cpp:1120:56: error: incomplete type 'GpgME::Context' used in nested name specifier
  23. static gpgme_encrypt_flags_t encryptflags2encryptflags(Context::EncryptionFlags flags)
  24.                                                         ^
  25. context.cpp:1121:1: error: expected ',' or ';' before '{' token
  26. {
  27. ^
  28. context.cpp:1645:1: error: expected '}' at end of input
  29. }
  30. ^
  31. make[6] *** [context.lo] Error 1
  32. make[5] *** [all-recursive] Error 1
  33. make[4] *** [all-recursive] Error 1
  34. make[3] *** [all-recursive] Error 1
  35. make[2] *** [all] Error 2
  36. make[1] *** [/build/allwinner_t3_0818/out/sun8iw11p1/linux/common/buildroot/build/libgpgme-1.7.1/.stamp_built] Error 2
  37. make: *** [_all] Error 2
  38. make: Leaving directory `/build/allwinner_t3_0818/out/sun8iw11p1/linux/common/buildroot'

  39. real        15m4.007s
  40. user        40m5.897s
复制代码







回复

使用道具 举报

0

主题

1185

回帖

2207

积分

FCU1501通行证

zhichao 发表于 2021-8-20 08:28:49 | 显示全部楼层
您这个是标点有问题吧,是不是丢标点了
context.cpp:1121:1: error: expected ',' or ';' before '{' token
{
^
context.cpp:1645:1: error: expected '}' at end of input
}
点评回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则