Library's name
-
Hi mike4,
if you know what you mean you can include it and link it, if you don't, you have a problem...
If you have some header file and need the corresponding library for it, use google, perhaps you find it.For which functionality do you need the library names?
-
Mike4, I don't understand the problem.
if you craete a lib, and build it, you will not lik this lib in the project as you can't link yourselfe
If you use a library, you have to link it and have to know the name.
Or are you searching for a way to add some autolink feature so the lib is automatically linked when you includ ethe headers? -
The -l option is what ever the library is called. Eg if your library is called MyLib.dll or libMyLib.so or libMyLib.dylib (I hope I got the mac naming convention right ;) never used it) then you have to use -lMyLib. Also the GPL will not allow yoiu to link the library to closed source projects. The LGPL however will.
-
I get a dlerror so I try:
LIBS += -L/apps/blbl/dfslsdflsdf\ fdfdfs/LIBS += -llin.so
but it says to not find the lib.
The author said it's ok to close source and on win i should do alike:
http://msdn.microsoft.com/en-us/library/0b9xe492.aspxwhich sounds spanish to me...
Thanks again
Michael -
The link you posted is only for MSVC (and for libary creation, not linking it), MinGW handles it like gcc on linux/mac. If you do not know the name you can just add the dynamic library WITHOUT the -l option, e.g. LIBS += lin.so although this is not cross platform. In your case (I guess, if it's not then you are not using standard naming conventions and you can't use -l) the library file is called liblin.so. In that case the -l option would be LIBS += -llin. Also, even though the author of the library said you could use it, he'll either have to license it to you under the LGPL or give you a written exception to the GPL (the latter would be quite difficult without involving a lawyer), because otherwise you're still violationg licensing terms (never good - imagine he changes his mind after a year and sues you).
-
Thanks now linking and compiling is ok. but executing at another place I get:
liblin.so => not found
even tough I've copied it into the same folder as the executable. Which leads to another question:
1- how to link statically
2- " dynamic ( having the lib in the same folder )2-would not allow closed source if the lib is gpl2? So i probably will go something else...
-
Thanks now linking and compiling is ok. but executing at another place I get: liblin.so => not found
even tough I’ve copied it into the same folder as the executable. Which leads to another question:
1- how to link statically
2- “ dynamic ( having the lib in the same folder )2-would not allow closed source if the lib is gpl2? So i probably will go for something else…
Thanks again, you're very helpful. -
"About shared library search paths":http://www.eyrie.org/~eagle/notes/rpath.html
-
MinGW is a port of GCC - Gnu Compiler Collection to Microsoft Windows. Just Check your configuration process..
-
the author told me that i dont need to link wheter static nor dynamic and hence no gpl problem....
http://www.osnews.com/story/24557/Torvalds_Android_GPL_Claims_Totally_Bogus_
"It seems totally bogus. We've always made it very clear that the kernel system call interfaces do not in any way result in a derived work as per the GPL, and the kernel details are exported through the kernel headers to all the normal glibc interfaces too. ... If it's some desperate cry for attention by somebody, I just wish those people would release their own sex tapes or something, rather than drag the Linux kernel into their sordid world."
-
So, you want to use the kernel system call interface? Or what do you want to tell us with the link? In the case of the linux kernel headers, the (legal) situation is kinda special, because they contain merely the definition of an interface to interact with the kernel. Is the library you want to use a headers only library?
-
https://github.com/PhilippMuenzel/vascore-embedded
that's what im looking at...