<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">Am 15.02.24 um 00:42 schrieb Carl
Godkin:<br>
</div>
<blockquote type="cite"
cite="mid:CAE=8kmn04bPZ7L277gesVnGa1u-B4siDiDLc-XJd-Fht92ci8Q@mail.gmail.com">
<div dir="ltr">Hi Kai,
<div><br>
</div>
<div>> To pass lists into cmake, you usually need ';' as item
separator.<br>
<div><br>
</div>
<div>Thanks for the suggestion. I am sure I am missing
something but inserting a semi-colon on the Linux command
line appears to require it be escaped.</div>
</div>
<div><br>
</div>
<div>When I pass this:</div>
<div>
<pre> -DWEBP_INCLUDE_DIR:PATH=/usr/local/devlibs/libwebp-1.3.2/include \
-DWEBP_LIBRARY=/usr/local/devlibs/libwebp-1.3.2/lib64/libwebp.a\;/usr/local/devlibs/libwebp-1.3.2/lib64/libsharpyuv.a \</pre>
</div>
<div>the link line comes out with the semi-colon (and also
quoted):</div>
<div><br>
</div>
<div>
"/usr/local/devlibs/libwebp-1.3.2/lib64/libwebp.a;/usr/local/devlibs/libwebp-1.3.2/lib64/libsharpyuv.a" <br>
</div>
<div><br>
</div>
<div>Or were you suggesting a different syntax?</div>
</div>
</blockquote>
<p>Did you try to quote for the linux command line, instead of
escaping:</p>
<pre>"-DWEBP_LIBRARY=/usr/local/devlibs/libwebp-1.3.2/lib64/libwebp.a;/usr/local/devlibs/libwebp-1.3.2/lib64/libsharpyuv.a"
</pre>
<p>(YMMV. "LIBRARY" usually isn't for lists at all.)<br>
</p>
<blockquote type="cite"
cite="mid:CAE=8kmn04bPZ7L277gesVnGa1u-B4siDiDLc-XJd-Fht92ci8Q@mail.gmail.com">
<div dir="ltr">
<div>I do not really understand the second part of your reply
but I'm not using vcpkg; I'm trying to use cmake at the
command line (and trying to build on both Windows and Linux).</div>
<div><br>
</div>
<div>Maybe most people using libwebp just let cmake find it on
their system somehow?</div>
</div>
</blockquote>
<p>The second part is CMake code in a separate script which is
injected into the configuration process by using the
CMAKE_PROJECT_INCLUDE variable at the command line.<br>
</p>
<p>It really doesn't do more than finding webp's cmake config and
making it available in a way that GDAL can consume. I would be
happy if GDAL would just use the webp CMake config. <br>
</p>
<p>The pattern can be adapted to other packages. It also works for
Kealib.</p>
<blockquote type="cite"
cite="mid:CAE=8kmn04bPZ7L277gesVnGa1u-B4siDiDLc-XJd-Fht92ci8Q@mail.gmail.com">
<div dir="ltr">
<div><br>
</div>
<div>My workaround, in case someone else is interested, is to do
this</div>
<div>
<pre> -DWEBP_INCLUDE_DIR:PATH=/usr/local/devlibs/libwebp-1.3.2/include \
-DWEBP_LIBRARY=/usr/local/devlibs/libwebp-1.3.2/lib64/libwebp.a \
-DCMAKE_CXX_STANDARD_LIBRARIES=/usr/local/devlibs/libwebp-1.3.2/lib64/libsharpyuv.a \</pre>
</div>
<div>Now libsharpyuv is included in every link line which works
but isn't quite right. (I have also hand-edited the generated
link line but I was looking for a scriptable solution.)</div>
</div>
</blockquote>
<p>Working on the vcpkg port is my approach to this scriptable
solution.<br>
</p>
<p>Kai.<br>
</p>
<br>
</body>
</html>