Re: C++ remote development

  • From:
  • To:
  • Subject: Re: C++ remote development
  • Date: Mon, 14 Jan 2013 10:11:55 +0100 (CET)

Hi


----- Original Message -----
> Hi , I have application project compiling on Linux from windows.  I
> need to specify additional library for from outside the project .
> 
> If I choose Properties->Linker->Libraries->Add Library... option and
> select needed file compilation result :
> 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_netbeans/audioLoader'
> cd ../audioUtils && /usr/bin/gmake  -f Makefile CONF=Debug
> gmake[2]: Entering directory
> `/root/.netbeans/remote/10.10.10.191/diman-pc-Windows-x86_64/N/VS_netbeans/audioUtils'
> "/usr/bin/gmake" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS=
> .build-conf
> gmake[3]: Entering directory
> `/root/.netbeans/remote/10.10.10.191/diman-pc-Windows-x86_64/N/VS_netbeans/audioUtils'
> "/usr/bin/gmake"  -f nbproject/Makefile-Debug.mk
> dist/Debug/GNU-Linux-x86/libaudioutils.a
> gmake[4]: Entering directory
> `/root/.netbeans/remote/10.10.10.191/diman-pc-Windows-x86_64/N/VS_netbeans/audioUtils'
> gmake[4]: `dist/Debug/GNU-Linux-x86/libaudioutils.a' is up to date.
> gmake[4]: Leaving directory
> `/root/.netbeans/remote/10.10.10.191/diman-pc-Windows-x86_64/N/VS_netbeans/audioUtils'
> gmake[3]: Leaving directory
> `/root/.netbeans/remote/10.10.10.191/diman-pc-Windows-x86_64/N/VS_netbeans/audioUtils'
> gmake[2]: Leaving directory
> `/root/.netbeans/remote/10.10.10.191/diman-pc-Windows-x86_64/N/VS_netbeans/audioUtils'
> "/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_netbeans/audioLoader'
> mkdir -p dist/Debug/GNU-Linux-x86
> g++ -m32    -o dist/Debug/GNU-Linux-x86/audioloader
> build/Debug/GNU-Linux-x86/src/CAudioFileLoaderControl.o
> build/Debug/GNU-Linux-x86/src/audioLoader.o -L../../dclib/ebsdk/lib
> -lEb -lEbOS
> /usr/bin/ld: cannot find -lEb

My reading of this is that g++ is trying to link an exe called 'audioloader' 
from 2 object files (CAudioFileLoaderControl.o and audioLoader.o) and two 
libraries, libEb.[a | so] and libEbOS.[a | so]. In addition to the usual 
system library directories, '../../dclib/ebsdk/lib' is added to the library 
search path.

Your problem is that '../../dclib/ebsdk/lib' does not contain libEb.[a | so]

Is this a build order issue? Are you supposed to build libEb.so before 
audioloader?

> ]If I choose Properties->Linker->Libraries->Add Library file...

This is the same problem, but now you have an explicit dependency on the 
library archive file.

A+
Paul


C++ remote development

dima.orad.tv 01/13/2013

Re: C++ remote development

paulf 01/14/2013

<Possible follow-up(s)>

C++ remote development

dima.orad.tv 01/13/2013

C++ remote development

soldatov 01/13/2013

C++ remote development

dima.orad.tv 01/14/2013

Re: C++ remote development

paulf 01/14/2013

C++ remote development

dima.orad.tv 01/21/2013

Project Features

About this Project

CND was started in November 2009, is owned by Leonid Lenyashin, and has 130 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close