Re: CMake 4

Sander Jansen <[email protected]> Sat, 27 Dec 2025 10:07:47 -0600
Newsgroups gmane.comp.lib.fox-toolkit.user
Message-ID <CACj81kFGZuRqZJm5i5axE5VvpRL7NxmcOq7mP_MHdABz5OZdmA@mail.gmail.com>
--===============6385536138434342070==
Content-Type: multipart/alternative; boundary="000000000000a49bab0646f13670"

--000000000000a49bab0646f13670
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Ah thanks. I'll take a look at vcpkg

Sander


On Sat, Dec 27, 2025 at 9:12=E2=80=AFAM Roland Hughes via Foxgui-users <
[email protected]> wrote:

> Doing some work with Visual Studio Community edition and command line
> building in the x64 developer command shell.
>
> You need to use vcpgk
>
> https://vcpkg.io/en/packages.html?query=3Djpeg
>
> Install it under the community edition and endure its high sensitivity
> to internet connections.
>
> https://github.com/RolandHughes/ls-cs/tree/ls-cs-0.2.1
>
> Look at windows-configuration-notes.txt and build-LsCs-Windows.bat in
> the above branch.
>
> I'm not "done" getting all the way through CPack packaging for Windows
> installer, need to control some file placements a bit better, but this
> is at least kinda-sorta-like Linux building.
>
> On 12/27/2025 8:54 AM, Sander Jansen wrote:
> > I've updated my CMake project files for FOX to a minimum version of
> > 4.0 as the 3.xx releases are now considered legacy. Currently updated
> > to 1.7.86.
> >
> > The new version is much better organized and also installs CMake
> > config files, which makes integration into other CMake projects a lot
> > easier (just import the FOX target). Out of tree builds are now
> > properly supported. In addition projects can also link directly to the
> > build tree for testing purposes without having to install FOX.
> >
> > This new version also enables PCH which basically halves the compile
> > time for FOX.
> >
> > I was able to cross compile FOX using MinGW quite easily and was even
> > able to run it under Wine without a hitch. I have not tested it under
> > native Windows yet, but I'm planning to see whether I can use CMake's
> > FetchContent to automatically fetch and compile basic dependencies
> > like jpeg and zlib, as Windows lacks package management like we do on
> > Linux
> >
> > I did find an oddity in regards to the jpeg2000 support in FOX, as it
> > seemingly requires both HAVE_JP2_H and HAVE_J2K_H to be defined. The
> > latter appears to be used in the FXJP2{Icon/Image}, while the former
> > is used in the actual io.
> >
> > Another remaining issue is the few left over FXAPI decorators in the
> > glviewer app which breaks builds on Windows due to dlexport/ dlimport
> > mix-up. Those should be removed.
> >
> > The repo for CMake can be found here:
> > https://github.com/gogglesguy/fox/tree/cmake
> >
> > I'm in the progress of updating gogglesmm to use this as a submodule
> here:
> > https://github.com/gogglesmm/gogglesmm/tree/cmake4
> >
> > Cheers,
> >
> > Sander
> >
> >
> > _______________________________________________
> > Foxgui-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/foxgui-users
>
> --
> Roland Hughes, President
> Logikal Solutions
> (630)-205-1593  (cell)
> https://theminimumyouneedtoknow.com
> https://infiniteexposure.net
> https://johnsmith-book.com
>
>
>
> _______________________________________________
> Foxgui-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/foxgui-users
>

--000000000000a49bab0646f13670
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Ah thanks. I&#39;ll take a look at vcpkg<br><br></div=
><div>Sander</div><br></div><br><div class=3D"gmail_quote gmail_quote_conta=
iner"><div dir=3D"ltr" class=3D"gmail_attr">On Sat, Dec 27, 2025 at 9:12=E2=
=80=AFAM Roland Hughes via Foxgui-users &lt;<a href=3D"mailto:foxgui-users@=
lists.sourceforge.net">[email protected]</a>&gt; wrote:<br=
></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;=
border-left:1px solid rgb(204,204,204);padding-left:1ex">Doing some work wi=
th Visual Studio Community edition and command line <br>
building in the x64 developer command shell.<br>
<br>
You need to use vcpgk<br>
<br>
<a href=3D"https://vcpkg.io/en/packages.html?query=3Djpeg" rel=3D"noreferre=
r" target=3D"_blank">https://vcpkg.io/en/packages.html?query=3Djpeg</a><br>
<br>
Install it under the community edition and endure its high sensitivity <br>
to internet connections.<br>
<br>
<a href=3D"https://github.com/RolandHughes/ls-cs/tree/ls-cs-0.2.1" rel=3D"n=
oreferrer" target=3D"_blank">https://github.com/RolandHughes/ls-cs/tree/ls-=
cs-0.2.1</a><br>
<br>
Look at windows-configuration-notes.txt and build-LsCs-Windows.bat in <br>
the above branch.<br>
<br>
I&#39;m not &quot;done&quot; getting all the way through CPack packaging fo=
r Windows <br>
installer, need to control some file placements a bit better, but this <br>
is at least kinda-sorta-like Linux building.<br>
<br>
On 12/27/2025 8:54 AM, Sander Jansen wrote:<br>
&gt; I&#39;ve updated my CMake project files for FOX to a minimum version o=
f <br>
&gt; 4.0 as the 3.xx releases are now considered legacy. Currently updated =
<br>
&gt; to 1.7.86.<br>
&gt;<br>
&gt; The new version is much better organized and also installs CMake <br>
&gt; config files, which makes integration into other CMake projects a lot =
<br>
&gt; easier (just import the FOX target). Out of tree builds are now <br>
&gt; properly supported. In addition projects can also link directly to the=
 <br>
&gt; build tree for testing purposes without having to install FOX.<br>
&gt;<br>
&gt; This new version also enables PCH which basically halves the compile <=
br>
&gt; time for FOX.<br>
&gt;<br>
&gt; I was able to cross compile FOX using MinGW quite easily and was even =
<br>
&gt; able to run it under Wine without a hitch. I have not tested it under =
<br>
&gt; native Windows yet, but I&#39;m planning to see whether I can use CMak=
e&#39;s <br>
&gt; FetchContent to automatically fetch and compile basic dependencies <br=
>
&gt; like jpeg and zlib, as Windows lacks package management like we do on =
<br>
&gt; Linux<br>
&gt;<br>
&gt; I did find an oddity in regards to the jpeg2000 support in FOX, as it =
<br>
&gt; seemingly requires both=C2=A0HAVE_JP2_H and HAVE_J2K_H to be defined. =
The <br>
&gt; latter appears to be used in the FXJP2{Icon/Image}, while the former <=
br>
&gt; is used in the actual io.<br>
&gt;<br>
&gt; Another remaining issue is the few left over FXAPI decorators in the <=
br>
&gt; glviewer app which breaks builds on Windows due to dlexport/ dlimport =
<br>
&gt; mix-up. Those should be removed.<br>
&gt;<br>
&gt; The repo for CMake can be found here:<br>
&gt; <a href=3D"https://github.com/gogglesguy/fox/tree/cmake" rel=3D"norefe=
rrer" target=3D"_blank">https://github.com/gogglesguy/fox/tree/cmake</a><br=
>
&gt;<br>
&gt; I&#39;m in the progress of updating gogglesmm to use this as a submodu=
le here:<br>
&gt; <a href=3D"https://github.com/gogglesmm/gogglesmm/tree/cmake4" rel=3D"=
noreferrer" target=3D"_blank">https://github.com/gogglesmm/gogglesmm/tree/c=
make4</a><br>
&gt;<br>
&gt; Cheers,<br>
&gt;<br>
&gt; Sander<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Foxgui-users mailing list<br>
&gt; <a href=3D"mailto:[email protected]" target=3D"_blank=
">[email protected]</a><br>
&gt; <a href=3D"https://lists.sourceforge.net/lists/listinfo/foxgui-users" =
rel=3D"noreferrer" target=3D"_blank">https://lists.sourceforge.net/lists/li=
stinfo/foxgui-users</a><br>
<br>
-- <br>
Roland Hughes, President<br>
Logikal Solutions<br>
(630)-205-1593=C2=A0 (cell)<br>
<a href=3D"https://theminimumyouneedtoknow.com" rel=3D"noreferrer" target=
=3D"_blank">https://theminimumyouneedtoknow.com</a><br>
<a href=3D"https://infiniteexposure.net" rel=3D"noreferrer" target=3D"_blan=
k">https://infiniteexposure.net</a><br>
<a href=3D"https://johnsmith-book.com" rel=3D"noreferrer" target=3D"_blank"=
>https://johnsmith-book.com</a><br>
<br>
<br>
<br>
_______________________________________________<br>
Foxgui-users mailing list<br>
<a href=3D"mailto:[email protected]" target=3D"_blank">Fox=
[email protected]</a><br>
<a href=3D"https://lists.sourceforge.net/lists/listinfo/foxgui-users" rel=
=3D"noreferrer" target=3D"_blank">https://lists.sourceforge.net/lists/listi=
nfo/foxgui-users</a><br>
</blockquote></div>

--000000000000a49bab0646f13670--


--===============6385536138434342070==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============6385536138434342070==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Foxgui-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/foxgui-users

--===============6385536138434342070==--