在linux中链接错误 [英] Linking error in linux

查看:107
本文介绍了在linux中链接错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是ubuntu 14.04 32位的新用户来做我的leddar项目。我还安装了所有必需的软件包(Qt,其他库)但是当我catkin_make所有内容时,有很多链接错误。直到现在我面临一些链接问题,而不是如何解决它。



以下是错误显示给我:



/home/darwin/catkin_ws/src/leddar/lib/libLeddar.so:未定义引用`QString :: toLocal8Bit_helper(QChar const *,int)'

/home/darwin/catkin_ws/src/leddar/lib/libLeddarC.so:对`QString :: toUtf8_helper(QString const&)的未定义引用'

collect2:错误:ld返回1退出状态

make [2]:*** [/ home / darwin / catkin_ws / devel / lib / leddartech / leddartech_node]错误1

make [1]:*** [ leddar / CMakeFiles / leddartech_node.dir / all]错误2

make:*** [all]错误2

调用make -j4 -l4失败





有没有人遇到过这种问题并分享你的解决方法?谢谢!



我尝试了什么:



这是网站我用来下载leddar软件包:https://github.com/jpmerc/leddartech

解决方案

你好!



我知道它已经晚了,但我有完全相同的问题并且反过来解决了一点。



问题在于Qt的版本 - 5.2.0。

你应该以最困难的方式卸载previos Qt(我自己在linux上不好用,我使用了这个 [ ^ ]。



然后安装qt-opensource-linux-x64 -5.4.0.run来自

[ ^ ]



这一般都是。之后,符号链接有几个简单的问题,很容易修复。



我整天花在这个问题上,希望有一天能帮助))

您在链接器部分中缺少库引用。检查 QString :: toLocal8Bit_helper QString :: toUtf8_helper 的文档,看看哪个是必需的。


我解决了我的问题。我只是重新安装我的Linux系统到64位然后下载这些Leddar SDK包和Leddar ROS包和Qt5然后一切都很好!我相信在32位系统中有一些包不可靠因此导致这么多问题。



谢谢大家的帮助!


I'm a new user in ubuntu 14.04 32 bit to do my leddar project.I have also installed all necessary packages (Qt, other libraries) but there are many linking errors when I catkin_make everything. And until to now I'm facing some linking problem and don't how to solve it.

follow is the error shows to me:

/home/darwin/catkin_ws/src/leddar/lib/libLeddar.so: undefined reference to `QString::toLocal8Bit_helper(QChar const*, int)'
/home/darwin/catkin_ws/src/leddar/lib/libLeddarC.so: undefined reference to `QString::toUtf8_helper(QString const&)'
collect2: error: ld returned 1 exit status
make[2]: *** [/home/darwin/catkin_ws/devel/lib/leddartech/leddartech_node] Error 1
make[1]: *** [leddar/CMakeFiles/leddartech_node.dir/all] Error 2
make: *** [all] Error 2
Invoking "make -j4 -l4" failed


Got anyone meet this kind of problem before and share your solving way? Thank you!

What I have tried:

this is the website i usd to download the leddar package:https://github.com/jpmerc/leddartech

解决方案

Hello!

I know it is late, but I've got exactly the same problem and solved it a little bit the other way.

The problem was in version of Qt - 5.2.0.
You shoul uninstall the previos Qt by the most hardest way (i am by myself not good in linux, i used this )[^].

And then installed qt-opensource-linux-x64-5.4.0.run from
[^]

That is all in general. After that there was several easy problems with symlink, which were repaired easily.

I spent on that problem a whole day, hope that helps one day))


You are missing a library reference in your linker section. Check the documentation for QString::toLocal8Bit_helper and QString::toUtf8_helper to see which one is required.


I had solve my problem. I just reinstall my linux system to 64bit then download these Leddar SDK package and Leddar ROS package and Qt5 then everything was fine! I believe there have some of the package was not reliable in 32bit system so cause so many problem.

And thank you for everyone's help!


这篇关于在linux中链接错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆