Re: How to change the dynamic library project name ogg to libogg?
Martijn van Beurden <[email protected]> Tue, 6 Jun 2023 21:44:12 +0200
| Newsgroups | gmane.comp.audio.compression.flac.devel |
|---|---|
| Message-ID | <CADQbU68JXZrWXi__Rg5vSqSHfXM0si9a+8U9t7_vht1XYrQ4pA@mail.gmail.com> |
--===============1744206334901690946== Content-Type: multipart/alternative; boundary="000000000000019aa005fd7b3f74" --000000000000019aa005fd7b3f74 Content-Type: text/plain; charset="UTF-8" Yes, I've tried that, and libogg.dll and libogg.obj get produced, but I also het a linker warning that libogg.exp contains an out directive that is not consistent, as it points to ogg.dll. So, the files get renamed, but the 'pointer' stays the same. Seems like a bug in either Visual Studio or CMake, but I can't seem to find about it on Google. Op di 6 jun. 2023 21:39 schreef LRN <[email protected]>: > On 06.06.2023 22:33, Martijn van Beurden wrote: > > Hi, > > > > This rabbit hole went quite a bit deeper than I expected. Apparently, > > CMake prepends 'lib' to library names for unix like environments > > (including MinGW) but not for Visual Studio. So, when building on > > Windows, you get either libFLAC.dll and libogg.dll or FLAC.dll and > > ogg.dll depending on what toolchain you're using. I'm not quite sure > > whether this makes sense. I've tried quite a few ways to override this > > behaviour, but the most obvious solutions didn't work. > > > > Sorry, I've been trying various things for two hours today, I give up. > > Perhaps someone else on this list knows the answer. > > > > set_target_properties(foobar PROPERTIES > SOVERSION ${SO_MAJOR_VERSION} VERSION ${SO_VERSION} > OUTPUT_NAME foobar > RUNTIME_OUTPUT_NAME foobar-${SO_MAJOR_VERSION} > ARCHIVE_OUTPUT_NAME foobar) > > Something like that. This should produce libfoobar-X, where X is the > SO_MAJOR_VERSION value. > > -- > O< ascii ribbon - stop html email! - www.asciiribbon.org > > _______________________________________________ > flac-dev mailing list > [email protected] > http://lists.xiph.org/mailman/listinfo/flac-dev > --000000000000019aa005fd7b3f74 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"auto">Yes, I've tried that, and libogg.dll and libogg.obj g= et produced, but I also het a linker warning that libogg.exp contains an ou= t directive that is not consistent, as it points to ogg.dll. So, the files = get renamed, but the 'pointer' stays the same. Seems like a bug in = either Visual Studio or CMake, but I can't seem to find about it on Goo= gle.</div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_at= tr">Op di 6 jun. 2023 21:39 schreef LRN <<a href=3D"mailto:lrn1986@gmail= .com">[email protected]</a>>:<br></div><blockquote class=3D"gmail_quote"= style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On= 06.06.2023 22:33, Martijn van Beurden wrote:<br> > Hi,<br> > <br> > This rabbit hole went quite a bit deeper than I expected. Apparently,<= br> > CMake prepends 'lib' to library names for unix like environmen= ts<br> > (including MinGW) but not for Visual Studio. So, when building on<br> > Windows, you get either libFLAC.dll and libogg.dll or FLAC.dll and<br> > ogg.dll depending on what toolchain you're using. I'm not quit= e sure<br> > whether this makes sense. I've tried quite a few ways to override = this<br> > behaviour, but the most obvious solutions didn't work.<br> > <br> > Sorry, I've been trying various things for two hours today, I give= up.<br> > Perhaps someone else on this list knows the answer.<br> > <br> <br> set_target_properties(foobar PROPERTIES<br> =C2=A0 SOVERSION ${SO_MAJOR_VERSION} VERSION ${SO_VERSION}<br> =C2=A0 OUTPUT_NAME foobar<br> =C2=A0 RUNTIME_OUTPUT_NAME foobar-${SO_MAJOR_VERSION}<br> =C2=A0 ARCHIVE_OUTPUT_NAME foobar)<br> <br> Something like that. This should produce libfoobar-X, where X is the <br> SO_MAJOR_VERSION value.<br> <br> -- <br> O< ascii ribbon - stop html email! - <a href=3D"http://www.asciiribbon.o= rg" rel=3D"noreferrer noreferrer" target=3D"_blank">www.asciiribbon.org</a>= <br> <br> _______________________________________________<br> flac-dev mailing list<br> <a href=3D"mailto:[email protected]" target=3D"_blank" rel=3D"noreferrer">f= [email protected]</a><br> <a href=3D"http://lists.xiph.org/mailman/listinfo/flac-dev" rel=3D"noreferr= er noreferrer" target=3D"_blank">http://lists.xiph.org/mailman/listinfo/fla= c-dev</a><br> </blockquote></div> --000000000000019aa005fd7b3f74-- --===============1744206334901690946== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ flac-dev mailing list [email protected] http://lists.xiph.org/mailman/listinfo/flac-dev --===============1744206334901690946==--