Re: Build Fox as a universal library on Mac

John Selverian <[email protected]> Fri, 12 Jun 2026 20:27:25 -0400
Newsgroups gmane.comp.lib.fox-toolkit.user
Message-ID <[email protected]>
--===============5925352576542148290==
Content-Type: multipart/alternative;
	boundary="Apple-Mail=_2659BCFE-7AFD-4F02-B129-74436E4A765C"


--Apple-Mail=_2659BCFE-7AFD-4F02-B129-74436E4A765C
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

I changed the offending code in FXAtomic to this:



// Atomically add v to pointer variable at ptr, and return its old =
contents
FXptr atomicAdd(volatile FXptr* ptr,FXival v){
#if defined(WIN32) && defined(_WIN64)
  return (FXptr)InterlockedExchangeAdd64((LONGLONG*)ptr,(LONGLONG)v);
#elif defined(WIN32)
  return (FXptr)InterlockedExchangeAdd((LONG*)ptr,(LONG)v);
#elif ((defined(__GNUC__) || defined(__INTEL_COMPILER)) && =
defined(__i386__))
  register FXptr ret=3D(void*)v;
  __asm__ __volatile__ ("lock\n\t"
                        "xaddl %0, (%1)\n\t" : "=3Dr"(ret) : "r"(ptr), =
"0"(ret) : "memory", "cc");
  return ret;
#elif ((defined(__GNUC__) || defined(__INTEL_COMPILER)) && =
defined(__x86_64__))
  register FXptr ret=3D(FXptr)v;
  __asm__ __volatile__ ("lock\n\t"
                        "xaddq %0, (%1)\n\t" : "=3Dr"(ret) : "r"(ptr), =
"0" (ret) : "memory", "cc");
  return ret;
//#elif defined(HAVE_BUILTIN_SYNC)
  //return __sync_fetch_and_add(ptr,v);
#else
  FXptr ret=3D*ptr;
  *((unsigned char**)ptr)+=3Dv;
  return ret;
#endif
  }






It sides to compile OK but fails doing linking=E2=80=A6I don=E2=80=99t =
know what this means=E2=80=A6any ideas?





ld: warning: ignoring file .libs/FXMemMap.o, building for macOS-arm64 =
but attempting to link with file built for unknown-x86_64
ld: warning: ignoring file .libs/FXPtrQueue.o, building for macOS-arm64 =
but attempting to link with file built for unknown-x86_64
ld: warning: ignoring file .libs/FXSemaQueue.o, building for macOS-arm64 =
but attempting to link with file built for unknown-x86_64
ld: warning: ignoring file .libs/fxascii.o, building for macOS-arm64 but =
attempting to link with file built for unknown-x86_64
ld: warning: ignoring file .libs/fxunicode.o, building for macOS-arm64 =
but attempting to link with file built for unknown-x86_64
ld: warning: ignoring file .libs/icons.o, building for macOS-arm64 but =
attempting to link with file built for unknown-x86_64
ld: can't write output file: .libs/libFOX-1.7.0.dylib-master.o for =
architecture arm64
clang++: error: linker command failed with exit code 1 (use -v to see =
invocation)
make[2]: *** [libFOX-1.7.la] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1








> On Jun 9, 2026, at 9:17=E2=80=AFAM, John Selverian =
<[email protected]> wrote:
>=20
> 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?
>=20
>=20
> Here is what I=E2=80=99ve tried:
>=20
> 1) first I do this:
>=20
> > 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
>=20
> Then I add =E2=80=9C_x86_64=E2=80=9D to the name of the build =
libraries
>=20
>=20
> 2) next I do this:
>=20
> > 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
>=20
>=20
> But I get the following error:
>=20
>=20
> 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
>=20
>=20
>=20
>=20
>=20
> Kind regards,
> =20
> js
> =20
>=20
>=20
>=20


--Apple-Mail=_2659BCFE-7AFD-4F02-B129-74436E4A765C
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html aria-label=3D"message body"><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;"><p style=3D"margin: 0px; font-width: =
normal; font-size: 10px; line-height: normal; font-family: Menlo; =
font-size-adjust: none; font-kerning: auto; font-variant-alternates: =
normal; font-variant-ligatures: normal; font-variant-numeric: normal; =
font-variant-east-asian: normal; font-variant-position: normal; =
font-feature-settings: normal; font-optical-sizing: auto; =
font-variation-settings: normal; color: rgb(51, 225, 56); =
background-color: rgb(255, 255, 255);">I changed the offending code in =
FXAtomic to this:</p><p style=3D"margin: 0px; font-width: normal; =
font-size: 10px; line-height: normal; font-family: Menlo; =
font-size-adjust: none; font-kerning: auto; font-variant-alternates: =
normal; font-variant-ligatures: normal; font-variant-numeric: normal; =
font-variant-east-asian: normal; font-variant-position: normal; =
font-feature-settings: normal; font-optical-sizing: auto; =
font-variation-settings: normal; color: rgb(51, 225, 56); =
background-color: rgb(255, 255, 255);"><br></p><p style=3D"margin: 0px; =
font-width: normal; font-size: 10px; line-height: normal; font-family: =
Menlo; font-size-adjust: none; font-kerning: auto; =
font-variant-alternates: normal; font-variant-ligatures: normal; =
font-variant-numeric: normal; font-variant-east-asian: normal; =
font-variant-position: normal; font-feature-settings: normal; =
font-optical-sizing: auto; font-variation-settings: normal; color: =
rgb(51, 225, 56); background-color: rgb(255, 255, 255);"><br></p><p =
style=3D"margin: 0px; font-width: normal; font-size: 10px; line-height: =
normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; =
font-variant-alternates: normal; font-variant-ligatures: normal; =
font-variant-numeric: normal; font-variant-east-asian: normal; =
font-variant-position: normal; font-feature-settings: normal; =
font-optical-sizing: auto; font-variation-settings: normal; color: =
rgb(51, 225, 56); background-color: rgb(255, 255, 255);"><br></p><p =
style=3D"margin: 0px; font-width: normal; font-size: 10px; line-height: =
normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; =
font-variant-alternates: normal; font-variant-ligatures: normal; =
font-variant-numeric: normal; font-variant-east-asian: normal; =
font-variant-position: normal; font-feature-settings: normal; =
font-optical-sizing: auto; font-variation-settings: normal; color: =
rgb(51, 225, 56); background-color: rgb(255, 255, 255);">// Atomically =
add v to pointer variable at ptr, and return its old contents</p><p =
style=3D"margin: 0px; font-width: normal; font-size: 10px; line-height: =
normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; =
font-variant-alternates: normal; font-variant-ligatures: normal; =
font-variant-numeric: normal; font-variant-east-asian: normal; =
font-variant-position: normal; font-feature-settings: normal; =
font-optical-sizing: auto; font-variation-settings: normal; color: =
rgb(51, 225, 56); background-color: rgb(255, 255, 255);">FXptr =
atomicAdd(volatile FXptr* ptr,FXival v){</p><p style=3D"margin: 0px; =
font-width: normal; font-size: 10px; line-height: normal; font-family: =
Menlo; font-size-adjust: none; font-kerning: auto; =
font-variant-alternates: normal; font-variant-ligatures: normal; =
font-variant-numeric: normal; font-variant-east-asian: normal; =
font-variant-position: normal; font-feature-settings: normal; =
font-optical-sizing: auto; font-variation-settings: normal; color: =
rgb(51, 225, 56); background-color: rgb(255, 255, 255);">#if =
defined(WIN32) &amp;&amp; defined(_WIN64)</p><p style=3D"margin: 0px; =
font-width: normal; font-size: 10px; line-height: normal; font-family: =
Menlo; font-size-adjust: none; font-kerning: auto; =
font-variant-alternates: normal; font-variant-ligatures: normal; =
font-variant-numeric: normal; font-variant-east-asian: normal; =
font-variant-position: normal; font-feature-settings: normal; =
font-optical-sizing: auto; font-variation-settings: normal; color: =
rgb(51, 225, 56); background-color: rgb(255, 255, 255);">&nbsp; return =
(FXptr)InterlockedExchangeAdd64((LONGLONG*)ptr,(LONGLONG)v);</p><p =
style=3D"margin: 0px; font-width: normal; font-size: 10px; line-height: =
normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; =
font-variant-alternates: normal; font-variant-ligatures: normal; =
font-variant-numeric: normal; font-variant-east-asian: normal; =
font-variant-position: normal; font-feature-settings: normal; =
font-optical-sizing: auto; font-variation-settings: normal; color: =
rgb(51, 225, 56); background-color: rgb(255, 255, 255);">#elif =
defined(WIN32)</p><p style=3D"margin: 0px; font-width: normal; =
font-size: 10px; line-height: normal; font-family: Menlo; =
font-size-adjust: none; font-kerning: auto; font-variant-alternates: =
normal; font-variant-ligatures: normal; font-variant-numeric: normal; =
font-variant-east-asian: normal; font-variant-position: normal; =
font-feature-settings: normal; font-optical-sizing: auto; =
font-variation-settings: normal; color: rgb(51, 225, 56); =
background-color: rgb(255, 255, 255);">&nbsp; return =
(FXptr)InterlockedExchangeAdd((LONG*)ptr,(LONG)v);</p><p style=3D"margin: =
0px; font-width: normal; font-size: 10px; line-height: normal; =
font-family: Menlo; font-size-adjust: none; font-kerning: auto; =
font-variant-alternates: normal; font-variant-ligatures: normal; =
font-variant-numeric: normal; font-variant-east-asian: normal; =
font-variant-position: normal; font-feature-settings: normal; =
font-optical-sizing: auto; font-variation-settings: normal; color: =
rgb(51, 225, 56); background-color: rgb(255, 255, 255);">#elif =
((defined(__GNUC__) || defined(__INTEL_COMPILER)) &amp;&amp; =
defined(__i386__))</p><p style=3D"margin: 0px; font-width: normal; =
font-size: 10px; line-height: normal; font-family: Menlo; =
font-size-adjust: none; font-kerning: auto; font-variant-alternates: =
normal; font-variant-ligatures: normal; font-variant-numeric: normal; =
font-variant-east-asian: normal; font-variant-position: normal; =
font-feature-settings: normal; font-optical-sizing: auto; =
font-variation-settings: normal; color: rgb(51, 225, 56); =
background-color: rgb(255, 255, 255);">&nbsp; register FXptr =
ret=3D(void*)v;</p><p style=3D"margin: 0px; font-width: normal; =
font-size: 10px; line-height: normal; font-family: Menlo; =
font-size-adjust: none; font-kerning: auto; font-variant-alternates: =
normal; font-variant-ligatures: normal; font-variant-numeric: normal; =
font-variant-east-asian: normal; font-variant-position: normal; =
font-feature-settings: normal; font-optical-sizing: auto; =
font-variation-settings: normal; color: rgb(51, 225, 56); =
background-color: rgb(255, 255, 255);">&nbsp; __asm__ __volatile__ =
("lock\n\t"</p><p style=3D"margin: 0px; font-width: normal; font-size: =
10px; line-height: normal; font-family: Menlo; font-size-adjust: none; =
font-kerning: auto; font-variant-alternates: normal; =
font-variant-ligatures: normal; font-variant-numeric: normal; =
font-variant-east-asian: normal; font-variant-position: normal; =
font-feature-settings: normal; font-optical-sizing: auto; =
font-variation-settings: normal; color: rgb(51, 225, 56); =
background-color: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "xaddl %0, =
(%1)\n\t" : "=3Dr"(ret) : "r"(ptr), "0"(ret) : "memory", "cc");</p><p =
style=3D"margin: 0px; font-width: normal; font-size: 10px; line-height: =
normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; =
font-variant-alternates: normal; font-variant-ligatures: normal; =
font-variant-numeric: normal; font-variant-east-asian: normal; =
font-variant-position: normal; font-feature-settings: normal; =
font-optical-sizing: auto; font-variation-settings: normal; color: =
rgb(51, 225, 56); background-color: rgb(255, 255, 255);">&nbsp; return =
ret;</p><p style=3D"margin: 0px; font-width: normal; font-size: 10px; =
line-height: normal; font-family: Menlo; font-size-adjust: none; =
font-kerning: auto; font-variant-alternates: normal; =
font-variant-ligatures: normal; font-variant-numeric: normal; =
font-variant-east-asian: normal; font-variant-position: normal; =
font-feature-settings: normal; font-optical-sizing: auto; =
font-variation-settings: normal; color: rgb(51, 225, 56); =
background-color: rgb(255, 255, 255);">#elif ((defined(__GNUC__) || =
defined(__INTEL_COMPILER)) &amp;&amp; defined(__x86_64__))</p><p =
style=3D"margin: 0px; font-width: normal; font-size: 10px; line-height: =
normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; =
font-variant-alternates: normal; font-variant-ligatures: normal; =
font-variant-numeric: normal; font-variant-east-asian: normal; =
font-variant-position: normal; font-feature-settings: normal; =
font-optical-sizing: auto; font-variation-settings: normal; color: =
rgb(51, 225, 56); background-color: rgb(255, 255, 255);">&nbsp; register =
FXptr ret=3D(FXptr)v;</p><p style=3D"margin: 0px; font-width: normal; =
font-size: 10px; line-height: normal; font-family: Menlo; =
font-size-adjust: none; font-kerning: auto; font-variant-alternates: =
normal; font-variant-ligatures: normal; font-variant-numeric: normal; =
font-variant-east-asian: normal; font-variant-position: normal; =
font-feature-settings: normal; font-optical-sizing: auto; =
font-variation-settings: normal; color: rgb(51, 225, 56); =
background-color: rgb(255, 255, 255);">&nbsp; __asm__ __volatile__ =
("lock\n\t"</p><p style=3D"margin: 0px; font-width: normal; font-size: =
10px; line-height: normal; font-family: Menlo; font-size-adjust: none; =
font-kerning: auto; font-variant-alternates: normal; =
font-variant-ligatures: normal; font-variant-numeric: normal; =
font-variant-east-asian: normal; font-variant-position: normal; =
font-feature-settings: normal; font-optical-sizing: auto; =
font-variation-settings: normal; color: rgb(51, 225, 56); =
background-color: rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "xaddq %0, =
(%1)\n\t" : "=3Dr"(ret) : "r"(ptr), "0" (ret) : "memory", "cc");</p><p =
style=3D"margin: 0px; font-width: normal; font-size: 10px; line-height: =
normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; =
font-variant-alternates: normal; font-variant-ligatures: normal; =
font-variant-numeric: normal; font-variant-east-asian: normal; =
font-variant-position: normal; font-feature-settings: normal; =
font-optical-sizing: auto; font-variation-settings: normal; color: =
rgb(51, 225, 56); background-color: rgb(255, 255, 255);">&nbsp; return =
ret;</p><p style=3D"margin: 0px; font-width: normal; font-size: 10px; =
line-height: normal; font-family: Menlo; font-size-adjust: none; =
font-kerning: auto; font-variant-alternates: normal; =
font-variant-ligatures: normal; font-variant-numeric: normal; =
font-variant-east-asian: normal; font-variant-position: normal; =
font-feature-settings: normal; font-optical-sizing: auto; =
font-variation-settings: normal; color: rgb(51, 225, 56); =
background-color: rgb(255, 255, 255);">//#elif =
defined(HAVE_BUILTIN_SYNC)</p><p style=3D"margin: 0px; font-width: =
normal; font-size: 10px; line-height: normal; font-family: Menlo; =
font-size-adjust: none; font-kerning: auto; font-variant-alternates: =
normal; font-variant-ligatures: normal; font-variant-numeric: normal; =
font-variant-east-asian: normal; font-variant-position: normal; =
font-feature-settings: normal; font-optical-sizing: auto; =
font-variation-settings: normal; color: rgb(51, 225, 56); =
background-color: rgb(255, 255, 255);">&nbsp; //return =
__sync_fetch_and_add(ptr,v);</p><p style=3D"margin: 0px; font-width: =
normal; font-size: 10px; line-height: normal; font-family: Menlo; =
font-size-adjust: none; font-kerning: auto; font-variant-alternates: =
normal; font-variant-ligatures: normal; font-variant-numeric: normal; =
font-variant-east-asian: normal; font-variant-position: normal; =
font-feature-settings: normal; font-optical-sizing: auto; =
font-variation-settings: normal; color: rgb(51, 225, 56); =
background-color: rgb(255, 255, 255);">#else</p><p style=3D"margin: 0px; =
font-width: normal; font-size: 10px; line-height: normal; font-family: =
Menlo; font-size-adjust: none; font-kerning: auto; =
font-variant-alternates: normal; font-variant-ligatures: normal; =
font-variant-numeric: normal; font-variant-east-asian: normal; =
font-variant-position: normal; font-feature-settings: normal; =
font-optical-sizing: auto; font-variation-settings: normal; color: =
rgb(51, 225, 56); background-color: rgb(255, 255, 255);">&nbsp; FXptr =
ret=3D*ptr;</p><p style=3D"margin: 0px; font-width: normal; font-size: =
10px; line-height: normal; font-family: Menlo; font-size-adjust: none; =
font-kerning: auto; font-variant-alternates: normal; =
font-variant-ligatures: normal; font-variant-numeric: normal; =
font-variant-east-asian: normal; font-variant-position: normal; =
font-feature-settings: normal; font-optical-sizing: auto; =
font-variation-settings: normal; color: rgb(51, 225, 56); =
background-color: rgb(255, 255, 255);">&nbsp; *((unsigned =
char**)ptr)+=3Dv;</p><p style=3D"margin: 0px; font-width: normal; =
font-size: 10px; line-height: normal; font-family: Menlo; =
font-size-adjust: none; font-kerning: auto; font-variant-alternates: =
normal; font-variant-ligatures: normal; font-variant-numeric: normal; =
font-variant-east-asian: normal; font-variant-position: normal; =
font-feature-settings: normal; font-optical-sizing: auto; =
font-variation-settings: normal; color: rgb(51, 225, 56); =
background-color: rgb(255, 255, 255);">&nbsp; return ret;</p><p =
style=3D"margin: 0px; font-width: normal; font-size: 10px; line-height: =
normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; =
font-variant-alternates: normal; font-variant-ligatures: normal; =
font-variant-numeric: normal; font-variant-east-asian: normal; =
font-variant-position: normal; font-feature-settings: normal; =
font-optical-sizing: auto; font-variation-settings: normal; color: =
rgb(51, 225, 56); background-color: rgb(255, 255, 255);">#endif</p><p =
style=3D"margin: 0px; font-width: normal; font-size: 10px; line-height: =
normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; =
font-variant-alternates: normal; font-variant-ligatures: normal; =
font-variant-numeric: normal; font-variant-east-asian: normal; =
font-variant-position: normal; font-feature-settings: normal; =
font-optical-sizing: auto; font-variation-settings: normal; color: =
rgb(51, 225, 56); background-color: rgb(255, 255, 255);">&nbsp; }</p><p =
style=3D"margin: 0px; font-width: normal; font-size: 10px; line-height: =
normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; =
font-variant-alternates: normal; font-variant-ligatures: normal; =
font-variant-numeric: normal; font-variant-east-asian: normal; =
font-variant-position: normal; font-feature-settings: normal; =
font-optical-sizing: auto; font-variation-settings: normal; color: =
rgb(51, 225, 56); background-color: rgb(255, 255, 255);"><br></p><p =
style=3D"margin: 0px; font-width: normal; font-size: 10px; line-height: =
normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; =
font-variant-alternates: normal; font-variant-ligatures: normal; =
font-variant-numeric: normal; font-variant-east-asian: normal; =
font-variant-position: normal; font-feature-settings: normal; =
font-optical-sizing: auto; font-variation-settings: normal; color: =
rgb(51, 225, 56); background-color: rgb(255, 255, 255);"><br></p><p =
style=3D"margin: 0px; font-width: normal; font-size: 10px; line-height: =
normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; =
font-variant-alternates: normal; font-variant-ligatures: normal; =
font-variant-numeric: normal; font-variant-east-asian: normal; =
font-variant-position: normal; font-feature-settings: normal; =
font-optical-sizing: auto; font-variation-settings: normal; color: =
rgb(51, 225, 56); background-color: rgb(255, 255, 255);"><br></p><p =
style=3D"margin: 0px; font-width: normal; font-size: 10px; line-height: =
normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; =
font-variant-alternates: normal; font-variant-ligatures: normal; =
font-variant-numeric: normal; font-variant-east-asian: normal; =
font-variant-position: normal; font-feature-settings: normal; =
font-optical-sizing: auto; font-variation-settings: normal; color: =
rgb(51, 225, 56); background-color: rgb(255, 255, 255);"><br></p><p =
style=3D"margin: 0px; font-width: normal; font-size: 10px; line-height: =
normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; =
font-variant-alternates: normal; font-variant-ligatures: normal; =
font-variant-numeric: normal; font-variant-east-asian: normal; =
font-variant-position: normal; font-feature-settings: normal; =
font-optical-sizing: auto; font-variation-settings: normal; color: =
rgb(51, 225, 56); background-color: rgb(255, 255, 255);"><br></p><p =
style=3D"margin: 0px; font-width: normal; font-size: 10px; line-height: =
normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; =
font-variant-alternates: normal; font-variant-ligatures: normal; =
font-variant-numeric: normal; font-variant-east-asian: normal; =
font-variant-position: normal; font-feature-settings: normal; =
font-optical-sizing: auto; font-variation-settings: normal; color: =
rgb(51, 225, 56); background-color: rgb(255, 255, 255);"><br></p><p =
style=3D"margin: 0px; font-width: normal; font-size: 10px; line-height: =
normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; =
font-variant-alternates: normal; font-variant-ligatures: normal; =
font-variant-numeric: normal; font-variant-east-asian: normal; =
font-variant-position: normal; font-feature-settings: normal; =
font-optical-sizing: auto; font-variation-settings: normal; color: =
rgb(51, 225, 56); background-color: rgb(255, 255, 255);">It sides to =
compile OK but fails doing linking=E2=80=A6I don=E2=80=99t know what =
this means=E2=80=A6any ideas?</p><p style=3D"margin: 0px; font-width: =
normal; font-size: 10px; line-height: normal; font-family: Menlo; =
font-size-adjust: none; font-kerning: auto; font-variant-alternates: =
normal; font-variant-ligatures: normal; font-variant-numeric: normal; =
font-variant-east-asian: normal; font-variant-position: normal; =
font-feature-settings: normal; font-optical-sizing: auto; =
font-variation-settings: normal; color: rgb(51, 225, 56); =
background-color: rgb(255, 255, 255);"><br></p><p style=3D"margin: 0px; =
font-width: normal; font-size: 10px; line-height: normal; font-family: =
Menlo; font-size-adjust: none; font-kerning: auto; =
font-variant-alternates: normal; font-variant-ligatures: normal; =
font-variant-numeric: normal; font-variant-east-asian: normal; =
font-variant-position: normal; font-feature-settings: normal; =
font-optical-sizing: auto; font-variation-settings: normal; color: =
rgb(51, 225, 56); background-color: rgb(255, 255, 255);"><br></p><p =
style=3D"margin: 0px; font-width: normal; font-size: 10px; line-height: =
normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; =
font-variant-alternates: normal; font-variant-ligatures: normal; =
font-variant-numeric: normal; font-variant-east-asian: normal; =
font-variant-position: normal; font-feature-settings: normal; =
font-optical-sizing: auto; font-variation-settings: normal; color: =
rgb(51, 225, 56); background-color: rgb(255, 255, 255);"><br></p><p =
style=3D"margin: 0px; font-width: normal; font-size: 10px; line-height: =
normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; =
font-variant-alternates: normal; font-variant-ligatures: normal; =
font-variant-numeric: normal; font-variant-east-asian: normal; =
font-variant-position: normal; font-feature-settings: normal; =
font-optical-sizing: auto; font-variation-settings: normal; color: =
rgb(51, 225, 56); background-color: rgb(255, 255, 255);"><br></p><p =
style=3D"margin: 0px; font-width: normal; font-size: 10px; line-height: =
normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; =
font-variant-alternates: normal; font-variant-ligatures: normal; =
font-variant-numeric: normal; font-variant-east-asian: normal; =
font-variant-position: normal; font-feature-settings: normal; =
font-optical-sizing: auto; font-variation-settings: normal; color: =
rgb(51, 225, 56); background-color: rgb(255, 255, 255);"><br></p><p =
style=3D"margin: 0px; font-width: normal; font-size: 10px; line-height: =
normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; =
font-variant-alternates: normal; font-variant-ligatures: normal; =
font-variant-numeric: normal; font-variant-east-asian: normal; =
font-variant-position: normal; font-feature-settings: normal; =
font-optical-sizing: auto; font-variation-settings: normal; color: =
rgb(51, 225, 56); background-color: rgb(255, 255, 255);">ld: warning: =
ignoring file .libs/FXMemMap.o, building for macOS-arm64 but attempting =
to link with file built for unknown-x86_64</p><p style=3D"margin: 0px; =
font-width: normal; font-size: 10px; line-height: normal; font-family: =
Menlo; font-size-adjust: none; font-kerning: auto; =
font-variant-alternates: normal; font-variant-ligatures: normal; =
font-variant-numeric: normal; font-variant-east-asian: normal; =
font-variant-position: normal; font-feature-settings: normal; =
font-optical-sizing: auto; font-variation-settings: normal; color: =
rgb(51, 225, 56); background-color: rgb(255, 255, 255);">ld: warning: =
ignoring file .libs/FXPtrQueue.o, building for macOS-arm64 but =
attempting to link with file built for unknown-x86_64</p><p =
style=3D"margin: 0px; font-width: normal; font-size: 10px; line-height: =
normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; =
font-variant-alternates: normal; font-variant-ligatures: normal; =
font-variant-numeric: normal; font-variant-east-asian: normal; =
font-variant-position: normal; font-feature-settings: normal; =
font-optical-sizing: auto; font-variation-settings: normal; color: =
rgb(51, 225, 56); background-color: rgb(255, 255, 255);">ld: warning: =
ignoring file .libs/FXSemaQueue.o, building for macOS-arm64 but =
attempting to link with file built for unknown-x86_64</p><p =
style=3D"margin: 0px; font-width: normal; font-size: 10px; line-height: =
normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; =
font-variant-alternates: normal; font-variant-ligatures: normal; =
font-variant-numeric: normal; font-variant-east-asian: normal; =
font-variant-position: normal; font-feature-settings: normal; =
font-optical-sizing: auto; font-variation-settings: normal; color: =
rgb(51, 225, 56); background-color: rgb(255, 255, 255);">ld: warning: =
ignoring file .libs/fxascii.o, building for macOS-arm64 but attempting =
to link with file built for unknown-x86_64</p><p style=3D"margin: 0px; =
font-width: normal; font-size: 10px; line-height: normal; font-family: =
Menlo; font-size-adjust: none; font-kerning: auto; =
font-variant-alternates: normal; font-variant-ligatures: normal; =
font-variant-numeric: normal; font-variant-east-asian: normal; =
font-variant-position: normal; font-feature-settings: normal; =
font-optical-sizing: auto; font-variation-settings: normal; color: =
rgb(51, 225, 56); background-color: rgb(255, 255, 255);">ld: warning: =
ignoring file .libs/fxunicode.o, building for macOS-arm64 but attempting =
to link with file built for unknown-x86_64</p><p style=3D"margin: 0px; =
font-width: normal; font-size: 10px; line-height: normal; font-family: =
Menlo; font-size-adjust: none; font-kerning: auto; =
font-variant-alternates: normal; font-variant-ligatures: normal; =
font-variant-numeric: normal; font-variant-east-asian: normal; =
font-variant-position: normal; font-feature-settings: normal; =
font-optical-sizing: auto; font-variation-settings: normal; color: =
rgb(51, 225, 56); background-color: rgb(255, 255, 255);">ld: warning: =
ignoring file .libs/icons.o, building for macOS-arm64 but attempting to =
link with file built for unknown-x86_64</p><p style=3D"margin: 0px; =
font-width: normal; font-size: 10px; line-height: normal; font-family: =
Menlo; font-size-adjust: none; font-kerning: auto; =
font-variant-alternates: normal; font-variant-ligatures: normal; =
font-variant-numeric: normal; font-variant-east-asian: normal; =
font-variant-position: normal; font-feature-settings: normal; =
font-optical-sizing: auto; font-variation-settings: normal; color: =
rgb(51, 225, 56); background-color: rgb(255, 255, 255);">ld: can't write =
output file: .libs/libFOX-1.7.0.dylib-master.o for architecture =
arm64</p><p style=3D"margin: 0px; font-width: normal; font-size: 10px; =
line-height: normal; font-family: Menlo; font-size-adjust: none; =
font-kerning: auto; font-variant-alternates: normal; =
font-variant-ligatures: normal; font-variant-numeric: normal; =
font-variant-east-asian: normal; font-variant-position: normal; =
font-feature-settings: normal; font-optical-sizing: auto; =
font-variation-settings: normal; color: rgb(51, 225, 56); =
background-color: rgb(255, 255, 255);">clang++: error: linker command =
failed with exit code 1 (use -v to see invocation)</p><p style=3D"margin: =
0px; font-width: normal; font-size: 10px; line-height: normal; =
font-family: Menlo; font-size-adjust: none; font-kerning: auto; =
font-variant-alternates: normal; font-variant-ligatures: normal; =
font-variant-numeric: normal; font-variant-east-asian: normal; =
font-variant-position: normal; font-feature-settings: normal; =
font-optical-sizing: auto; font-variation-settings: normal; color: =
rgb(51, 225, 56); background-color: rgb(255, 255, 255);">make[2]: *** =
[libFOX-1.7.la] Error 1</p><p style=3D"margin: 0px; font-width: normal; =
font-size: 10px; line-height: normal; font-family: Menlo; =
font-size-adjust: none; font-kerning: auto; font-variant-alternates: =
normal; font-variant-ligatures: normal; font-variant-numeric: normal; =
font-variant-east-asian: normal; font-variant-position: normal; =
font-feature-settings: normal; font-optical-sizing: auto; =
font-variation-settings: normal; color: rgb(51, 225, 56); =
background-color: rgb(255, 255, 255);">make[1]: *** [all] Error 2</p><p =
style=3D"margin: 0px; font-width: normal; font-size: 10px; line-height: =
normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; =
font-variant-alternates: normal; font-variant-ligatures: normal; =
font-variant-numeric: normal; font-variant-east-asian: normal; =
font-variant-position: normal; font-feature-settings: normal; =
font-optical-sizing: auto; font-variation-settings: normal; color: =
rgb(51, 225, 56); background-color: rgb(255, 255, 255);">make: *** =
[all-recursive] Error 1</p><p style=3D"margin: 0px; font-width: normal; =
font-size: 10px; line-height: normal; font-family: Menlo; =
font-size-adjust: none; font-kerning: auto; font-variant-alternates: =
normal; font-variant-ligatures: normal; font-variant-numeric: normal; =
font-variant-east-asian: normal; font-variant-position: normal; =
font-feature-settings: normal; font-optical-sizing: auto; =
font-variation-settings: normal; color: rgb(51, 225, 56); =
background-color: rgb(255, 255, 255);"><br></p><p style=3D"margin: 0px; =
font-width: normal; font-size: 10px; line-height: normal; font-family: =
Menlo; font-size-adjust: none; font-kerning: auto; =
font-variant-alternates: normal; font-variant-ligatures: normal; =
font-variant-numeric: normal; font-variant-east-asian: normal; =
font-variant-position: normal; font-feature-settings: normal; =
font-optical-sizing: auto; font-variation-settings: normal; color: =
rgb(51, 225, 56); background-color: rgb(255, 255, =
255);"><br></p><div><div style=3D"caret-color: rgb(0, 0, 0); color: =
rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: =
normal; font-variant-caps: normal; font-weight: 400; letter-spacing: =
normal; orphans: auto; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; widows: auto; word-spacing: =
0px; -webkit-text-stroke-width: 0px; text-decoration: =
none;"><br></div><div style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, =
0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: 400; letter-spacing: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none;"><br></div><div =
style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: 400; letter-spacing: normal; orphans: auto; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none;"><br></div><div style=3D"caret-color: rgb(0, 0, =
0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; =
font-style: normal; font-variant-caps: normal; font-weight: 400; =
letter-spacing: normal; orphans: auto; text-align: start; text-indent: =
0px; text-transform: none; white-space: normal; widows: auto; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: =
none;"><br><br></div>
</div>
<div><br><blockquote type=3D"cite"><div>On Jun 9, 2026, at 9:17=E2=80=AFAM=
, John Selverian &lt;[email protected]&gt; wrote:</div><br =
class=3D"Apple-interchange-newline"><div><meta http-equiv=3D"content-type"=
 content=3D"text/html; charset=3Dutf-8"><div 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>&gt; 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>&gt; 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>&gt; 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>&nbsp; 304 | &nbsp; =
return __sync_fetch_and_add(ptr,v);</div><div>&nbsp; &nbsp; &nbsp; | =
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ^</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>&nbsp;<br>js<br>&nbsp;<br><br><br></div>
</div>
<br></div></div></blockquote></div><br></body></html>=

--Apple-Mail=_2659BCFE-7AFD-4F02-B129-74436E4A765C--



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


--===============5925352576542148290==
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

--===============5925352576542148290==--