You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by NimbusParc <ni...@yahoo.in> on 2013/09/19 08:24:49 UTC
Re: Qpid-0.22 Static archive(.a) file does not exist ?
darkrwe wrote
> Unfortunately I could not see any ".a" file in build/src directory. There
> are only shared object files.
>
>
> how can i generate this .archive file for qpid ? or how can i find it ?
>
> As i know there is no way to generate this .a file from .so file. Because
> .so file is linked?
>
> so i think i need to compile all qpid project but it is not a good way.
> for example there are many class dependencies for qpid messaging libraries
> that I using.
As for as i know..
If you build with cmake, you will find only .so files in your "build/src"
directory.
But, if you want ".a" files, there is one way to get them. You can use *
make * to build.
(I don't recommend this method, because make is already deprecated )
If you build with make, then you will find one hidden directory ".libs/" in
your "src/" directory which contains .so and .la files.
And if you goto the directories like "qpid/", "qmf/", etc,. you will find
".libs/", inside each directory with .o files, useful to create ".a"
library.
You can create your own .a library with the object files.
If you don't know how to make ".a" library with ".o" files, go through this.
http://www.delorie.com/djgpp/v2faq/faq8_22.html
<http://www.delorie.com/djgpp/v2faq/faq8_22.html> .
All the best.
darkrwe wrote
> how can i generate this .archive file for qpid ? or how can i find it ?
>
> As i know there is no way to generate this .a file from .so file. Because
> .so file is linked?
>
> so i think i need to compile all qpid project but it is not a good way.
> for example there are many class dependencies for qpid messaging libraries
> that I using.
>
> I also found some tools (ermine , Statifier) But actually they just use
> executables. They dont convert .so to .a file or such as operation.
>
> what do you suggest to me guys ?
>
> My best Regards.
> Emin.
--
View this message in context: http://qpid.2158936.n2.nabble.com/Qpid-0-22-Static-archive-a-file-does-not-exist-tp7598234p7598287.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org
Re: Qpid-0.22 Static archive(.a) file does not exist ?
Posted by kevency_poche <ke...@gmail.com>.
hey *NimbusParc* i really don't know this one. yes, we will create a static
library with Object files.
i will give it a try.
thank you.
NimbusParc wrote
>
> darkrwe wrote
>> Unfortunately I could not see any ".a" file in build/src directory. There
>> are only shared object files.
>>
>>
>> how can i generate this .archive file for qpid ? or how can i find it ?
>>
>> As i know there is no way to generate this .a file from .so file. Because
>> .so file is linked?
>>
>> so i think i need to compile all qpid project but it is not a good way.
>> for example there are many class dependencies for qpid messaging
>> libraries that I using.
> As for as i know..
> If you build with cmake, you will find only .so files in your "build/src"
> directory.
> But, if you want ".a" files, there is one way to get them. You can use
*
> make
*
> to build.
> (I don't recommend this method, because make is already deprecated )
>
> If you build with make, then you will find one hidden directory ".libs/"
> in your "src/" directory which contains .so and .la files.
> And if you goto the directories like "qpid/", "qmf/", etc,. you will find
> ".libs/", inside each directory with .o files, useful to create ".a"
> library.
> You can create your own .a library with the object files.
>
> If you don't know how to make ".a" library with ".o" files, go through
> this.
> http://www.delorie.com/djgpp/v2faq/faq8_22.html
> <http://www.delorie.com/djgpp/v2faq/faq8_22.html>
> .
>
> All the best.
>
>
> darkrwe wrote
>> how can i generate this .archive file for qpid ? or how can i find it ?
>>
>> As i know there is no way to generate this .a file from .so file. Because
>> .so file is linked?
>>
>> so i think i need to compile all qpid project but it is not a good way.
>> for example there are many class dependencies for qpid messaging
>> libraries that I using.
>>
>> I also found some tools (ermine , Statifier) But actually they just use
>> executables. They dont convert .so to .a file or such as operation.
>>
>> what do you suggest to me guys ?
>>
>> My best Regards.
>> Emin.
--
View this message in context: http://qpid.2158936.n2.nabble.com/Qpid-0-22-Static-archive-a-file-does-not-exist-tp7598234p7598309.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org
Re: Qpid-0.22 Static archive(.a) file does not exist ?
Posted by NimbusParc <ni...@yahoo.in>.
Are you executing your programs in command line ?? if yes, how you are
linking your library while executing, just post here.
If you are using Eclipse, just check that you are including the library path
correct or not ?
darkrwe wrote
> hi,
>
> I already add these classes to archive file. (as you said qpid new
> messaging api uses sys framing and etc classes)
>
> But is it neccessary for compiling and linking -so files ?
> i had known .a file is enough ?
--
View this message in context: http://qpid.2158936.n2.nabble.com/Qpid-0-22-Static-archive-a-file-does-not-exist-tp7598234p7598386.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org
Re: Qpid-0.22 Static archive(.a) file does not exist ?
Posted by NimbusParc <ni...@yahoo.in>.
darkrwe wrote
> But is it neccessary for compiling and linking -so files ?
> i had known .a file is enough ?
Archive libraries (.a) are statically linked i.e when you compile your
program with -c option in gcc.
So, if there's any change in library, you need to compile and build your
code again.
The advantage of .so (shared object) over .a library is that they are linked
during the runtime
i.e. after creation of your .o file -o option in gcc. So, if there's any
change in .so file,
you don't need to recompile your main program. But make sure that your main
program is linked to the
new .so file with ln command.
--
View this message in context: http://qpid.2158936.n2.nabble.com/Qpid-0-22-Static-archive-a-file-does-not-exist-tp7598234p7598387.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org
Re: Qpid-0.22 Static archive(.a) file does not exist ?
Posted by NimbusParc <ni...@yahoo.in>.
darkrwe wrote
> Hello,
>
> Thank you for your assistance. After I make the qpid-0.22, I find .o
> files under .libs folders in src.
>
> But Although i add the all object files to the .a file when i compile the
> project it gives undefined reference errors.
> especially these errors are about: Exceptions, sys, client, and framing
> classes. (some methods cannot be find)
> i just collect all object files to a folder and execute ar rvs
> libqpid-0.22.a *.o command.
As for as i know..
you should add all the object files, (i.e,.) Exceptions, sys, client, and
framing classes object files to your static library.
Because, The classes you are using in your project calling those (
Exceptions, sys, client, and framing ) classes internally.
darkrwe wrote
> then of course i added to "qpid-0.22" to my libraries and i set the
> library path.
Anyways you are adding your libraries to path. Also add the path of .so
files to library path.
Then you will not get any linking errors.
darkrwe wrote
> in my project i just use below classes:
>
> "qpid/messaging/Address.h"
> "qpid/messaging/Connection.h"
> "qpid/messaging/Message.h"
> "qpid/messaging/Receiver.h"
> "qpid/messaging/Sender.h"
> "qpid/messaging/Session.h"
>
> here are my errors.
> eclipse-cdt-errors
> <http://qpid.2158936.n2.nabble.com/file/n7598310/eclipse-cdt-errors>
>
> is there any idea what is my wrong ?
> Thank you very much again.
--
View this message in context: http://qpid.2158936.n2.nabble.com/Qpid-0-22-Static-archive-a-file-does-not-exist-tp7598234p7598311.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org