Build Fox as a universal library on Mac
John Selverian <[email protected]> Tue, 9 Jun 2026 09:17:03 -0400
| Newsgroups | gmane.comp.lib.fox-toolkit.user |
|---|---|
| Message-ID | <[email protected]> |
--===============0531261070017923458==
Content-Type: multipart/alternative;
boundary="Apple-Mail=_795D22CC-5E4E-41BC-87CA-6114F6B86222"
--Apple-Mail=_795D22CC-5E4E-41BC-87CA-6114F6B86222
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=utf-8
Apple is deprecating Intel apps on the Mac. I=E2=80=99m trying to build =
the Fox library as a universal app. Has anyone done this? Any tips?
Here is what I=E2=80=99ve tried:
1) first I do this:
> CXXCPP=3D"g++ -E" CXX=3D"g++ -arch x86_64" =
CPPFLAGS=3D"-I/opt/X11/include -I/opt/X11/include/freetype2" =
LDFLAGS=3D"-L/opt/X11/lib" ./configure --with-x --with-xft
> make
Then I add =E2=80=9C_x86_64=E2=80=9D to the name of the build libraries
2) next I do this:
> CXXCPP=3D"g++ -E" CXX=3D"g++ -arch arm64" CPPFLAGS=3D"-I/opt/X11/include=
-I/opt/X11/include/freetype2" LDFLAGS=3D"-L/opt/X11/lib" ./configure =
--with-x --with-xft
But I get the following error:
FXAtomic.cpp:304:35: error: cannot initialize a parameter of type =
'FXptr' (aka 'void *') with an lvalue of type 'FXival' (aka 'long')
304 | return __sync_fetch_and_add(ptr,v);
| ^
1 error generated.
make[2]: *** [FXAtomic.lo] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1
Kind regards,
=20
js
=20
--Apple-Mail=_795D22CC-5E4E-41BC-87CA-6114F6B86222
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
charset=utf-8
<html><head><meta http-equiv=3D"content-type" content=3D"text/html; =
charset=3Dutf-8"></head><body style=3D"overflow-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: =
after-white-space;"><div><div>Apple is deprecating Intel apps on the =
Mac. I=E2=80=99m trying to build the Fox library as a universal app. Has =
anyone done this? Any tips?</div><div><br></div><div><br></div><div>Here =
is what I=E2=80=99ve tried:</div><div><br></div><div>1) first I do =
this:</div><div><br></div><div>> CXXCPP=3D"g++ -E" CXX=3D"g++ -arch =
x86_64" CPPFLAGS=3D"-I/opt/X11/include -I/opt/X11/include/freetype2" =
LDFLAGS=3D"-L/opt/X11/lib" ./configure --with-x =
--with-xft</div><div>> make</div><div><br></div><div>Then I add =
=E2=80=9C_x86_64=E2=80=9D to the name of the build =
libraries</div><div><br></div><div><br></div><div>2) next I do =
this:</div><div><br></div><div>> CXXCPP=3D"g++ -E" CXX=3D"g++ -arch =
arm64" CPPFLAGS=3D"-I/opt/X11/include -I/opt/X11/include/freetype2" =
LDFLAGS=3D"-L/opt/X11/lib" ./configure --with-x =
--with-xft</div><div><br></div><div><br></div><div>But I get the =
following =
error:</div><div><br></div><div><br></div><div><div>FXAtomic.cpp:304:35: =
error: cannot initialize a parameter of type 'FXptr' (aka 'void *') with =
an lvalue of type 'FXival' (aka 'long')</div><div> 304 | =
return __sync_fetch_and_add(ptr,v);</div><div> | =
=
^</div><div>1 error =
generated.</div><div>make[2]: *** [FXAtomic.lo] Error =
1</div><div>make[1]: *** [all] Error 2</div><div>make: *** =
[all-recursive] Error =
1</div></div><div><br></div><div><br></div><div><br></div></div><div>
<meta charset=3D"UTF-8"><div style=3D"caret-color: rgb(0, 0, 0); =
font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: 400; letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none;"><br =
class=3D"Apple-interchange-newline"><br></div><div style=3D"caret-color: =
rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: =
normal; font-variant-caps: normal; font-weight: 400; letter-spacing: =
normal; text-align: start; text-indent: 0px; text-transform: none; =
white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none;">Kind =
regards,<br> <br>js<br> <br><br><br></div>
</div>
<br></body></html>=
--Apple-Mail=_795D22CC-5E4E-41BC-87CA-6114F6B86222--
--===============0531261070017923458==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
--===============0531261070017923458==
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
--===============0531261070017923458==--