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'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 <<a href=3D"mailto:foxgui-users@= lists.sourceforge.net">[email protected]</a>> 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'm not "done" 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> > I've updated my CMake project files for FOX to a minimum version o= f <br> > 4.0 as the 3.xx releases are now considered legacy. Currently updated = <br> > to 1.7.86.<br> ><br> > The new version is much better organized and also installs CMake <br> > config files, which makes integration into other CMake projects a lot = <br> > easier (just import the FOX target). Out of tree builds are now <br> > properly supported. In addition projects can also link directly to the= <br> > build tree for testing purposes without having to install FOX.<br> ><br> > This new version also enables PCH which basically halves the compile <= br> > time for FOX.<br> ><br> > I was able to cross compile FOX using MinGW quite easily and was even = <br> > able to run it under Wine without a hitch. I have not tested it under = <br> > native Windows yet, but I'm planning to see whether I can use CMak= e's <br> > FetchContent to automatically fetch and compile basic dependencies <br= > > like jpeg and zlib, as Windows lacks package management like we do on = <br> > Linux<br> ><br> > I did find an oddity in regards to the jpeg2000 support in FOX, as it = <br> > seemingly requires both=C2=A0HAVE_JP2_H and HAVE_J2K_H to be defined. = The <br> > latter appears to be used in the FXJP2{Icon/Image}, while the former <= br> > is used in the actual io.<br> ><br> > Another remaining issue is the few left over FXAPI decorators in the <= br> > glviewer app which breaks builds on Windows due to dlexport/ dlimport = <br> > mix-up. Those should be removed.<br> ><br> > The repo for CMake can be found here:<br> > <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= > ><br> > I'm in the progress of updating gogglesmm to use this as a submodu= le here:<br> > <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> ><br> > Cheers,<br> ><br> > Sander<br> ><br> ><br> > _______________________________________________<br> > Foxgui-users mailing list<br> > <a href=3D"mailto:[email protected]" target=3D"_blank= ">[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/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==--