QtCreator4.1.0 ld: cant find -l<lib>错误怎么解决?
各位好,
本人目前工作中现学Qt,要创建动态库(.so)和使用它的示例工程,所以在QtCreator里建了subdirs类型的工程,包含两个子工程 lib(动态库) 和 app (app.depends = lib).
起初在ubuntu 18.04上的QtCreator(4.5.2, gcc 7.3.0,64位)创建并调试无误,后拷贝到龙芯中标麒麟7.0服务器,在QtCreator里导入工程,设置了构建套件(build kits)的编译器,调试器,编译出现
/usr/bin/ld: cannot find -l<lib>
Makefile:241: recipe for target 'App' failed
make[1]: Leaving directory 'build-<工程>-desktop-Debug/app'
Makefile:70: recipe for target 'sub-application-make_first' failed
collect2: error: ld returned 1 exit status
make[1]: *** [App] Error 1
make: *** [sub-application-make_first] Error 2
17:15:59: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project 大工程 (kit: desktop)
When executing step "Make".
请各位指教解决思路,该从哪儿入手排查?
注:龙芯中标麒麟7.0服务器原来没有安装QtCreator,而且不能联网,所以从其yum repo里指定的更新url在别的机器下载rpm包后离线安装的。而且发现预装的gcc,g++都是4.9.3-3(20150626),在线repo里无更新。
属QtCreator版本过低的可能性小吧?
在中标麒麟QtCreator里新建终端工程(console application), main返回前只加了一句 qDebug() << "hello";
调试时候提示xterm -e找不到,确认系统未安装xterm,各位是怎么指定QtCreator的环境的终端的?我指定了mate-terminal (中标麒麟的terminal)后没有任何输出。
本人目前工作中现学Qt,要创建动态库(.so)和使用它的示例工程,所以在QtCreator里建了subdirs类型的工程,包含两个子工程 lib(动态库) 和 app (app.depends = lib).
起初在ubuntu 18.04上的QtCreator(4.5.2, gcc 7.3.0,64位)创建并调试无误,后拷贝到龙芯中标麒麟7.0服务器,在QtCreator里导入工程,设置了构建套件(build kits)的编译器,调试器,编译出现
/usr/bin/ld: cannot find -l<lib>
Makefile:241: recipe for target 'App' failed
make[1]: Leaving directory 'build-<工程>-desktop-Debug/app'
Makefile:70: recipe for target 'sub-application-make_first' failed
collect2: error: ld returned 1 exit status
make[1]: *** [App] Error 1
make: *** [sub-application-make_first] Error 2
17:15:59: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project 大工程 (kit: desktop)
When executing step "Make".
请各位指教解决思路,该从哪儿入手排查?
注:龙芯中标麒麟7.0服务器原来没有安装QtCreator,而且不能联网,所以从其yum repo里指定的更新url在别的机器下载rpm包后离线安装的。而且发现预装的gcc,g++都是4.9.3-3(20150626),在线repo里无更新。
属QtCreator版本过低的可能性小吧?
在中标麒麟QtCreator里新建终端工程(console application), main返回前只加了一句 qDebug() << "hello";
调试时候提示xterm -e找不到,确认系统未安装xterm,各位是怎么指定QtCreator的环境的终端的?我指定了mate-terminal (中标麒麟的terminal)后没有任何输出。
没有找到相关结果
已邀请:
5 个回复
cyberhero
赞同来自:
huiji12321
赞同来自:
xen0n
赞同来自:
cyberhero
赞同来自:
cyberhero
赞同来自: