【发布时间】: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找不到我添加的库。
当我开始编译时,netbeans 将所有项目文件复制到它在 Linux 主机中创建的文件夹中。 (已检查)。
从添加库路径我提供它只复制
*.so文件而不复制*.a文件(已检查)。
如何解决这个问题?
【问题讨论】:
标签: c++ compilation netbeans-7 remote-debugging