Code Monkey home page Code Monkey logo

Comments (21)

MuShangCC avatar MuShangCC commented on June 11, 2024

编译 protobuf 出现 C++17 的报错,可以降低 g++ 版本或者手动添加 const 修饰符。

from paddle-lite.

hanyuanzhong avatar hanyuanzhong commented on June 11, 2024

from paddle-lite.

hong19860320 avatar hong19860320 commented on June 11, 2024

您好,gcc 版本降低到多少比较好呢

---- 回复的原邮件 ---- | 发件人 | @.> | | 发送日期 | 2024年05月17日 11:15 | | 收件人 | PaddlePaddle/Paddle-Lite @.> | | 抄送人 | hyz_like_cmm @.>, Author @.> | | 主题 | Re: [PaddlePaddle/Paddle-Lite] "树莓派5 编译错误"- v2.13 编译报错、环境信息: (Linux raspberrypi 6.6.28+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.6.28-1+rpt1 (2024-04-22) aarch64 GNU/Linux) (Issue #10517) | 编译 protobuf 出现 C++17 的报错,可以降低 g++ 版本或者手动添加 const 修饰符。 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

我们在 ubuntu 18.04 + gcc7.2 验证是 OK 的,目前有三个方案:1)安装或切换低版本的 GCC;2)刷 18.04 的系统;3)使用我们 release note https://github.com/PaddlePaddle/Paddle-Lite/releases 里面预编译的 paddle lite 动态库。

from paddle-lite.

hanyuanzhong avatar hanyuanzhong commented on June 11, 2024

您好,gcc 版本降到多少比较好呢

---- 回复的原邮件 ---- |发件人 | @> | |发送日期 | 2024年05月17日 11:15 | |营养 | PaddlePaddle/Paddle-Lite _@** ._ > | |抄送人 | hyz_like_cmm _@_ . _>,作者_@。** > | |主题 |回复: [PaddlePaddle/Paddle-Lite] "树莓派5 编译错误"- v2.13 编译错误、环境信息: (Linux raspberrypi 6.6.28+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.6.28- 1+rpt1 (2024-04-22) aarch64 GNU/Linux)(问题#10517)|编译 protobuf 出现 C++17 的报错,可以降低 g++ 版本或者手动添加 const 修饰符。 — 直接回复此电子邮件,在 GitHub 上查看,或取消订阅。您收到此消息是因为您创作了该主题。消息 ID:@ .***>

我们在 ubuntu 18.04 + gcc7.2 验证是OK的,目前有三种方案:1)安装或切换低版本的GCC;2)刷18.04的系统;3)使用我们的release note https://github.com/PaddlePaddle /Paddle-Lite/releases里面预编译的paddle lite动态库。

好的,我试一下降低gcc版本或者手动添加 const 修饰符。
另外,我的树莓派是树莓派5,并且是armv8的架构,然而在预编译的动态库中,我不确定 armv8 是否支持
image

from paddle-lite.

hanyuanzhong avatar hanyuanzhong commented on June 11, 2024

手动添加 const 修饰

您好,请教一下,这个const修饰符怎么加的

from paddle-lite.

MuShangCC avatar MuShangCC commented on June 11, 2024

手动添加 const 修饰

您好,请教一下,这个const修饰符怎么加的

类似这种
image

from paddle-lite.

hanyuanzhong avatar hanyuanzhong commented on June 11, 2024

手动添加 const 修饰

您好,请教一下,这个const修饰符怎么加的

类似这种 image

您好,因为我不会c语音,我看这个信息,应该是在下面两个文件里改,然后我不知道在这个地方要怎么加,加在哪个文件,您能帮我解答一下吗:报错及两个代码如下图
image

image

from paddle-lite.

hong19860320 avatar hong19860320 commented on June 11, 2024

您好,gcc 版本降到多少比较好呢

---- 回复的原邮件 ---- |发件人 | @> | |发送日期 | 2024年05月17日 11:15 | |营养 | PaddlePaddle/Paddle-Lite _@** ._ > | |抄送人 | hyz_like_cmm _@_ . _>,作者_@。** > | |主题 |回复: [PaddlePaddle/Paddle-Lite] "树莓派5 编译错误"- v2.13 编译错误、环境信息: (Linux raspberrypi 6.6.28+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.6.28- 1+rpt1 (2024-04-22) aarch64 GNU/Linux)(问题#10517)|编译 protobuf 出现 C++17 的报错,可以降低 g++ 版本或者手动添加 const 修饰符。 — 直接回复此电子邮件,在 GitHub 上查看,或取消订阅。您收到此消息是因为您创作了该主题。消息 ID:@ .***>

我们在 ubuntu 18.04 + gcc7.2 验证是OK的,目前有三种方案:1)安装或切换低版本的GCC;2)刷18.04的系统;3)使用我们的release note https://github.com/PaddlePaddle /Paddle-Lite/releases里面预编译的paddle lite动态库。

好的,我试一下降低gcc版本或者手动添加 const 修饰符。 另外,我的树莓派是树莓派5,并且是armv8的架构,然而在预编译的动态库中,我不确定 armv8 是否支持 image

树莓派的系统 abi 是 armhf 还是 arm64 的?

from paddle-lite.

hanyuanzhong avatar hanyuanzhong commented on June 11, 2024

您好,gcc 版本降到多少比较好呢

---- 回复的原邮件 ---- |发件人 | @> | |发送日期 | 2024年05月17日 11:15 | |营养 | PaddlePaddle/Paddle-Lite _@** ._ > | |抄送人 | hyz_like_cmm _@_ . _>,作者_@。** > | |主题 |回复: [PaddlePaddle/Paddle-Lite] "树莓派5 编译错误"- v2.13 编译错误、环境信息: (Linux raspberrypi 6.6.28+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.6.28- 1+rpt1 (2024-04-22) aarch64 GNU/Linux)(问题#10517)|编译 protobuf 出现 C++17 的报错,可以降低 g++ 版本或者手动添加 const 修饰符。 — 直接回复此电子邮件,在 GitHub 上查看,或取消订阅。您收到此消息是因为您创作了该主题。消息 ID:@ .***>

我们在 ubuntu 18.04 + gcc7.2 验证是OK的,目前有三种方案:1)安装或切换低版本的GCC;2)刷18.04的系统;3)使用我们的release note https://github.com/PaddlePaddle /Paddle-Lite/releases里面预编译的paddle lite动态库。

好的,我试一下降低gcc版本或者手动添加 const 修饰符。 另外,我的树莓派是树莓派5,并且是armv8的架构,然而在预编译的动态库中,我不确定 armv8 是否支持 image

树莓派的系统 abi 是 armhf 还是 arm64 的?

是 arm64 的

from paddle-lite.

hong19860320 avatar hong19860320 commented on June 11, 2024

Raspberry Pi OS 还是 Raspberry Pi OS (64-bit) 系统?如果是 64 位系统,可以用这个试试
image

from paddle-lite.

MuShangCC avatar MuShangCC commented on June 11, 2024

手动添加 const 修饰

您好,请教一下,这个const修饰符怎么加的

类似这种 image

您好,因为我不会c语音,我看这个信息,应该是在下面两个文件里改,然后我不知道在这个地方要怎么加,加在哪个文件,您能帮我解答一下吗:报错及两个代码如下图 image

image

呃 这个是改java_file.cc 68行 加const
但这种情况下建议还是降 gcc/g++ 版本吧,我不确定是否还有别的问题

from paddle-lite.

liunaqq avatar liunaqq commented on June 11, 2024

我也遇到这个问题,我也是arm64,这个下载这个文件后怎么用啊?

Raspberry Pi OS 还是 Raspberry Pi OS (64-bit) 系统?如果是 64 位系统,可以用这个尝试 图像

我也遇到这个问题,我也是arm64,这个下载这个文件后怎么用啊?

from paddle-lite.

hanyuanzhong avatar hanyuanzhong commented on June 11, 2024

还有
@hong19860320 @MuShangCC 您好,请教一下:
我改完gcc版本之后还是报错:
报错代码如下:
image
报错内容如下图
image

from paddle-lite.

hong19860320 avatar hong19860320 commented on June 11, 2024

我也遇到这个问题,我也是arm64,这个下载这个文件后怎么用啊?

Raspberry Pi OS 还是 Raspberry Pi OS (64-bit) 系统?如果是 64 位系统,可以用这个尝试 图像

我也遇到这个问题,我也是arm64,这个下载这个文件后怎么用啊?

如果你不知道怎么用预编译的 c++ paddle lite 库,建议你还是先看下文档 https://www.paddlepaddle.org.cn/lite/v2.12/demo_guides/arm_cpu.html,用 demo 自带的库在板子上跑起来。

from paddle-lite.

liunaqq avatar liunaqq commented on June 11, 2024

我也遇到这个问题,我也是arm64,这个下载这个文件后怎么用啊?

Raspberry Pi OS 还是 Raspberry Pi OS (64-bit) 系统?如果是 64 位系统,可以用这个尝试图像

我也遇到这个问题,我也是arm64,这个下载这个文件后怎么用啊?

如果你不知道怎么用预编译的c++ paddle lite库,建议你还是先看下文档https://www.paddlepaddle.org.cn/lite/v2.12/demo_guides/arm_cpu.html,用demo自带的库在板子上跑起来。

按照文档选择编译
image
报错如下:
image
这是什么情况啊?

from paddle-lite.

csy0225 avatar csy0225 commented on June 11, 2024

export CC 设置一下gcc 路径

from paddle-lite.

hong19860320 avatar hong19860320 commented on June 11, 2024

我也遇到这个问题,我也是arm64,这个下载这个文件后怎么用啊?

Raspberry Pi OS 还是 Raspberry Pi OS (64-bit) 系统?如果是 64 位系统,可以用这个尝试图像

我也遇到这个问题,我也是arm64,这个下载这个文件后怎么用啊?

如果你不知道怎么用预编译的c++ paddle lite库,建议你还是先看下文档https://www.paddlepaddle.org.cn/lite/v2.12/demo_guides/arm_cpu.html,用demo自带的库在板子上跑起来。

按照文档选择编译 image 报错如下: image 这是什么情况啊?

不要折腾从源码编译了,先跑通我们文档里面的自带 demo,然后有需求的话再解决源码编译问题。

from paddle-lite.

hong19860320 avatar hong19860320 commented on June 11, 2024

我也遇到这个问题,我也是arm64,这个下载这个文件后怎么用啊?

Raspberry Pi OS 还是 Raspberry Pi OS (64-bit) 系统?如果是 64 位系统,可以用这个尝试图像

我也遇到这个问题,我也是arm64,这个下载这个文件后怎么用啊?

如果你不知道怎么用预编译的c++ paddle lite库,建议你还是先看下文档https://www.paddlepaddle.org.cn/lite/v2.12/demo_guides/arm_cpu.html,用demo自带的库在板子上跑起来。

按照文档选择编译 image 报错如下: image 这是什么情况啊?

你这是在本地编译,需要设置一下环境变量。
$ export CC=<path_to_your_c_compiler>
$ export CXX=<path_to_your_c++_compiler>

例如
$ export CC=/usr/bin/gcc
$ export CXX=/usr/bin/g++

from paddle-lite.

hanyuanzhong avatar hanyuanzhong commented on June 11, 2024

已经找到原因了,是因为python3.10的setuptools版本(69.5.1)太高了,使用pip install --upgrade setuptools==58.0.4就可以编译通过,但是编译生成的whl安装后版本是cd09a8e,是git的记录值,希望后面的版本能优化一下,兼容新的setuptools值
image

from paddle-lite.

hong19860320 avatar hong19860320 commented on June 11, 2024

已经找到原因了,是因为python3.10的setuptools版本(69.5.1)太高了,使用pip install --upgrade setuptools==58.0.4就可以编译通过,但是编译生成的whl安装后版本是cd09a8e,是git的记录值,希望后面的版本能优化一下,兼容新的setuptools值 image

好的,我们后续修复一下,一版编译tag 版本就不会有这个问题啦

from paddle-lite.

lsewcx avatar lsewcx commented on June 11, 2024

在Paddle-Lite/third-party/protobuf-host/src/google/protobuf/compiler/java/java_file.cc中找到FieldDescriptorCompare
image

from paddle-lite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.