【问题标题】:Netbeans remote c++ developmentNetbeans 远程 C++ 开发
【发布时间】:2013-01-06 16:06:17
【问题描述】:

我的 netbeans 项目是基于 windows 的 c++ 应用,在 Linux (VMware) 上编译。

项目需要使用一些额外的库进行编译。我添加到的路径和库名称 项目属性中的常规、C++ 编译和链接器窗口。

编译结果为:

Copying project files to /root/.netbeans/remote/10.10.10.191/diman-pc-Windows-x86_64/ at root@10.10.10.191:22
"/usr/bin/gmake" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
gmake[1]: Entering directory `/root/.netbeans/remote/10.10.10.191/diman-pc-Windows-x86_64/N/VS_netbeans2/audioLoader'
"/usr/bin/gmake"  -f nbproject/Makefile-Debug.mk dist/Debug/GNU-Linux-x86/audioloader
gmake[2]: Entering directory `/root/.netbeans/remote/10.10.10.191/diman-pc-Windows-x86_64/N/VS_netbeans2/audioLoader'
mkdir -p dist/Debug/GNU-Linux-x86
g++ -m32    -o dist/Debug/GNU-Linux-x86/audioloader build/Debug/GNU-Linux-x86/_ext/341086193/CAudioFileLoaderControl.o build/Debug/GNU-Linux-x86/_ext/341086193/audioLoader.o -L../../dclib/ebsdk/lib -lEb -lEbOS 
/usr/bin/ld: cannot find -lEb
collect2: ld returned 1 exit status
gmake[2]: *** [dist/Debug/GNU-Linux-x86/audioloader] Error 1
gmake[2]: Leaving directory `/root/.netbeans/remote/10.10.10.191/diman-pc-Windows-x86_64/N/VS_netbeans2/audioLoader'
gmake[1]: *** [.build-conf] Error 2
gmake[1]: Leaving directory `/root/.netbeans/remote/10.10.10.191/diman-pc-Windows-x86_64/N/VS_netbeans2/audioLoader'
gmake: *** [.build-impl] Error 2

这意味着netbenas找不到我添加的库。

  1. 当我开始编译时,netbeans 将所有项目文件复制到它在 Linux 主机中创建的文件夹中。 (已检查)

  2. 从添加库路径我提供它只复制*.so 文件而不复制*.a 文件(已检查)

如何解决这个问题?

【问题讨论】:

    标签: c++ compilation netbeans-7 remote-debugging


    【解决方案1】:

    这意味着链接器在路径 -L../../dclib/ebsdk/lib 上找不到 libEb。 这不是 netbeans 错误。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-08-19
      • 2012-10-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-12-05
      • 1970-01-01
      相关资源
      最近更新 更多