[Live-devel] Live555 DLL rather than static libs

GRINDSTAFF Gene A gene.grindstaff at hexagonsi.com
Wed Oct 17 11:25:40 PDT 2018


It turns out that I already have CMake-Gui to do this, and did not realize it.  This causes it to generate an export.def file with decorated names of the symbols.  Unfortunately, I must generate four of these (x85,x64, debug, release) because the decorated symbols are different for some of the symbols.

Unfortunately, this does not solve the problem when I build any of the testProgs that use the OutPacketBuffer::maxSize variable.  Visual Studio expects static public data to have a __declspec(dllimport) in the mediaSink.hh file before the definition of maxSize, or any static data that is defined this way.  Otherwise, it is not accessible.  I presume that this is for security reasons, but I am not sure.  I can always modify the mediaSink.hh file, but I want to avoid that at all cost.  In general, our legal staff will never approve the use of modified GNU licensed software.  It seems that the WEB is full of trolls which search for corporations which use GNU licensed software, and have failed to publish or comply precisely with the license, and either charge us a fortune, make us publish all of our source code.  That is why every GNU license software must be in a DLL to isolate the software.


From: live-devel <live-devel-bounces at ns.live555.com> On Behalf Of Jeremiah Morrill
Sent: Wednesday, October 17, 2018 11:43 AM
To: LIVE555 Streaming Media - development & use <live-devel at ns.live555.com>
Subject: Re: [Live-devel] Live555 DLL rather than static libs

I have this project building as a Dlll on Windows without any code changes.

CMake is my build system though (never used CMake GUI) so I can simply set in my main CMakeLists.txt:


This option does a lot of magic for MSVC that I never cared to look into, but it does work.


From: Ross Finlayson<mailto:finlayson at live555.com>
Sent: Wednesday, October 17, 2018 9:33 AM
To: LIVE555 Streaming Media - development & use<mailto:live-devel at ns.live555.com>
Subject: Re: [Live-devel] Live555 DLL rather than static libs

> I am equally confused, but I believe it is because none of the other static variables are called/used in your base libraries.

The other two examples I noted
are definitely used in the code.

And unfortunately "OutPacketBuffer::maxSize" appears several times in the code, so I don't want to change this just to appease one buggy compiler.  Sorry.

Ross Finlayson
Live Networks, Inc.

live-devel mailing list
live-devel at lists.live555.com<mailto:live-devel at lists.live555.com>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20181017/521ee54a/attachment.html>

More information about the live-devel mailing list