Re: Build Fox as a universal library on Mac
Roland Hughes via Foxgui-users <[email protected]> Mon, 15 Jun 2026 15:47:31 -0500
| Newsgroups | gmane.comp.lib.fox-toolkit.user |
|---|---|
| Organization | Logikal Solutions |
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
--===============8346876229912926874==
Content-Type: multipart/alternative;
boundary="------------KP2oGejOjiTlbsL800C9m9cO"
Content-Language: en-US
This is a multi-part message in MIME format.
--------------KP2oGejOjiTlbsL800C9m9cO
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Because it sounds like you are at the hair ripping out stage of
relentlessly banging head against keyboard I'm going to suggest you go
down a completely different path in a clean directory tree. Maybe it
solves everything for you and maybe it just gives the brain a chance to
reset. We've all been there and bosses don't believe Solitaire is
actually helping you get work done. 😇
xPack supports x64 and arm64 for Windows, macOS, and Linux.
https://xpack-dev-tools.github.io/openocd-xpack/docs/getting-started/
It is part of the Xmake family.
https://xmake.io/guide/package-management/distribute-private-libraries.html
I have been experimenting with Xmake as time allows. It takes getting
used to, but, if you are letting it use Ninja and figure out how to
properly specify
The certificate seems to have expired here so open this link in a
secured VM
https://xmake.microblock.cc/
or a worthless Microsoft browser that won't bother flagging it. The site
is very useful for identifying Official XMake packages.
I find this way better than VCPKG and others.
I /humbly/ suggest, okay, I'm not _that_ humble, I suggest you burn two
days taking one chunk of Fox and getting it to build using XMake
completely using as many official packages as it can. 90+% of problems
are people trying to maintain all of this dependency stuff on their own
while Apple deliberately sticks a thumb in their eye.
libtool has package
https://xmake.microblock.cc/package/libtool
and it has an xmake.lua script to build it correctly for the platform.
I've done some rudimentary (possibly not correct but seems to work) with
BasisDoctrina in the xmake branch.
https://sourceforge.net/p/basisdoctrina/code/ci/Xmake/tree/
There are a lot of comments at the bottom of xmake.lua because I
followed the tutorial to create the project. xmake generates an
xmake.lua capable of most anything with the bulk commented out.
add_rules("mode.debug","mode.release")
set_languages("c++17","c11")
localuse_wayland=os.getenv("WAYLAND_SUPPORT")
ifnotuse_waylandoruse_wayland==""then
print("**************")
print("************** WAYLAND_SUPPORT not defined")
print("************** will not build Wayland")
print("**************")
add_requires("libsdl3",{configs={wayland_shared=false,wayland_libdecor_shared=false,wayland=false
}})
else
print("**************")
print("**************")
print("**************")
print("for some reason we are building Wayland")
print("**************")
print("**************")
print("**************")
add_requires("libsdl3")
end
add_requires("glib")
-- add_requires("libsdl3_ttf")
-- add_requires("libsdl3_image")
-- TODO:: Need to configure bd_build_info.h.in
target("BasisDoctrina")
set_kind("shared")
add_includedirs("src/3rdparty/BigInt","src/core","$(builddir)")
add_files("src/core/*.cpp")
add_packages("libsdl3","glib")
The biggest mental hurdle (for me) was the distinction of add_requires()
and add_packages(). add_requires() makes it available to xmake.
add_packages() makes it available to the target.
If you are going to try and build this via build-BasisDoctrina-local.sh,
remove all lines containing XMAKE_CACHE_DIR. I veered off into
documenting a bug (in and around planting, spraying, liquid fertilizer
knifing; I live on a functioning family farm after all) where the
XMAKE_PKG_CACHEDIR environment variable does not get pass to child
processes. Things would build via the default xmake command just fine.
See if this thought path gets you around what you need to get around.
On 6/15/2026 2:56 PM, John Selverian wrote:
> I’m still at it. I got rid of the "ld: warning: ignoring file
> .libs/FXMemMap.o, building for macOS-arm64 but attempting to link with
> file built for unknown-x86_64”
>
> errors deleting *.o and *.lo each time.
>
> The I edited the makefile and removed the projects to be built one-by-one:
>
>
> Starting:
>
> #SUBDIRS = utils include lib chart doc tests shutterbug adie
> pathfinder calculator controlpanel windows
>
>
> Where I am now:
>
> SUBDIRS = utils include lib doc tests windows
>
>
> The helped a lot.
>
> Now I’m getting this:
>
>
> /bin/sh ../libtool --tag=CXX --mode=link g++ -arch arm64 -Wall
> -Wformat -Woverloaded-virtual -Wshadow -DHAVE_PNG_H=1 -DHAVE_ZLIB_H=1
> -DHAVE_BZ2LIB_H=1 -DHAVE_XFT_H=1 -I/usr/include/freetype2
> -DHAVE_XSHM_H=1 -DHAVE_XSHAPE_H=1 -DHAVE_XCURSOR_H=1
> -DHAVE_XRENDER_H=1 -DHAVE_XRANDR_H=1 -DHAVE_XFIXES_H=1
> -DHAVE_XINPUT2_H=1 -DNO_XIM -DHAVE_GL_H=1 -DHAVE_GLU_H=1
> -DHAVE_GLX_H=1 -L/opt/X11/lib -o glviewer glviewer.o
> ../lib/libFOX-1.7.la -lm -ldl -lpthread -lpng -lz -lbz2 -lGL -lGLU
> libtool: link: g++ -arch arm64 -Wall -Wformat -Woverloaded-virtual
> -Wshadow -DHAVE_PNG_H=1 -DHAVE_ZLIB_H=1 -DHAVE_BZ2LIB_H=1
> -DHAVE_XFT_H=1 -I/usr/include/freetype2 -DHAVE_XSHM_H=1
> -DHAVE_XSHAPE_H=1 -DHAVE_XCURSOR_H=1 -DHAVE_XRENDER_H=1
> -DHAVE_XRANDR_H=1 -DHAVE_XFIXES_H=1 -DHAVE_XINPUT2_H=1 -DNO_XIM
> -DHAVE_GL_H=1 -DHAVE_GLU_H=1 -DHAVE_GLX_H=1 -o .libs/glviewer
> glviewer.o -Wl,-bind_at_load -L/opt/X11/lib
> ../lib/.libs/libFOX-1.7.dylib -lSM -lICE -lX11 -lXext -lXft
> -lfontconfig -lfreetype -lXcursor -lXrender -lXrandr -lXfixes -lXi -lm
> -ldl -lpthread -lpng -lz -lbz2 -lGL -lGLU
> ld: warning: -bind_at_load is deprecated on macOS
> Making all in windows
> make[1]: Nothing to be done for `all'.
> make[1]: Nothing to be done for `all-am'.
>
>
>
> The library is still not being built for arm64. I’m not sure if “ld:
> warning: -bind_at_load is deprecated on macOS” is the problem or not.
>
> I’m not sure what this means/does.
>
>
>
> Js
>
> (No green!)
>
>
>
>> On Jun 12, 2026, at 8:27 PM, John Selverian <[email protected]>
>> wrote:
>>
>> 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=(void*)v;
>> __asm__ __volatile__ ("lock\n\t"
>> "xaddl %0, (%1)\n\t" : "=r"(ret) : "r"(ptr),
>> "0"(ret) : "memory", "cc");
>> return ret;
>> #elif ((defined(__GNUC__) || defined(__INTEL_COMPILER)) &&
>> defined(__x86_64__))
>> register FXptr ret=(FXptr)v;
>> __asm__ __volatile__ ("lock\n\t"
>> "xaddq %0, (%1)\n\t" : "=r"(ret) : "r"(ptr),
>> "0" (ret) : "memory", "cc");
>> return ret;
>> //#elif defined(HAVE_BUILTIN_SYNC)
>> //return __sync_fetch_and_add(ptr,v);
>> #else
>> FXptr ret=*ptr;
>> *((unsigned char**)ptr)+=v;
>> return ret;
>> #endif
>> }
>>
>>
>>
>>
>>
>>
>> It sides to compile OK but fails doing linking…I don’t know what this
>> means…any 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 AM, John Selverian <[email protected]>
>>> wrote:
>>>
>>> Apple is deprecating Intel apps on the Mac. I’m trying to build the
>>> Fox library as a universal app. Has anyone done this? Any tips?
>>>
>>>
>>> Here is what I’ve tried:
>>>
>>> 1) first I do this:
>>>
>>> > CXXCPP="g++ -E" CXX="g++ -arch x86_64"
>>> CPPFLAGS="-I/opt/X11/include -I/opt/X11/include/freetype2"
>>> LDFLAGS="-L/opt/X11/lib" ./configure --with-x --with-xft
>>> > make
>>>
>>> Then I add “_x86_64” to the name of the build libraries
>>>
>>>
>>> 2) next I do this:
>>>
>>> > CXXCPP="g++ -E" CXX="g++ -arch arm64" CPPFLAGS="-I/opt/X11/include
>>> -I/opt/X11/include/freetype2" LDFLAGS="-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,
>>>
>>> js
>>>
>>>
>>>
>>>
>>
>
>
>
> _______________________________________________
> 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
--------------KP2oGejOjiTlbsL800C9m9cO
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Because it sounds like you are at the hair ripping out stage of
relentlessly banging head against keyboard I'm going to suggest
you go down a completely different path in a clean directory tree.
Maybe it solves everything for you and maybe it just gives the
brain a chance to reset. We've all been there and bosses don't
believe Solitaire is actually helping you get work done. 😇</p>
<p>xPack supports x64 and arm64 for Windows, macOS, and Linux.</p>
<p><a class="moz-txt-link-freetext" href="https://xpack-dev-tools.github.io/openocd-xpack/docs/getting-started/">https://xpack-dev-tools.github.io/openocd-xpack/docs/getting-started/</a></p>
<p>It is part of the Xmake family.</p>
<p><a class="moz-txt-link-freetext" href="https://xmake.io/guide/package-management/distribute-private-libraries.html">https://xmake.io/guide/package-management/distribute-private-libraries.html</a></p>
<p>I have been experimenting with Xmake as time allows. It takes
getting used to, but, if you are letting it use Ninja and figure
out how to properly specify </p>
<p>The certificate seems to have expired here so open this link in a
secured VM </p>
<p><a class="moz-txt-link-freetext" href="https://xmake.microblock.cc/">https://xmake.microblock.cc/</a></p>
<p>or a worthless Microsoft browser that won't bother flagging it.
The site is very useful for identifying Official XMake packages.</p>
<p>I find this way better than VCPKG and others.</p>
<p>I <i>humbly</i> suggest, okay, I'm not _that_ humble, I suggest
you burn two days taking one chunk of Fox and getting it to build
using XMake completely using as many official packages as it can.
90+% of problems are people trying to maintain all of this
dependency stuff on their own while Apple deliberately sticks a
thumb in their eye.</p>
<p>libtool has package</p>
<p><a class="moz-txt-link-freetext" href="https://xmake.microblock.cc/package/libtool">https://xmake.microblock.cc/package/libtool</a></p>
<p>and it has an xmake.lua script to build it correctly for the
platform. </p>
<p>I've done some rudimentary (possibly not correct but seems to
work) with BasisDoctrina in the xmake branch.</p>
<p><a class="moz-txt-link-freetext" href="https://sourceforge.net/p/basisdoctrina/code/ci/Xmake/tree/">https://sourceforge.net/p/basisdoctrina/code/ci/Xmake/tree/</a></p>
<p>There are a lot of comments at the bottom of xmake.lua because I
followed the tutorial to create the project. xmake generates an
xmake.lua capable of most anything with the bulk commented out.</p>
<pre><div id="l1" class="code_block"><span class="nf">add_rules</span><span
class="p">(</span><span class="s2">"mode.debug"</span><span
class="p">,</span><span class="w"> </span><span class="s2">"mode.release"</span><span
class="p">)</span>
</div><div id="l2" class="code_block">
</div><div id="l3" class="code_block"><span class="nf">set_languages</span><span
class="p">(</span><span class="s2">"c++17"</span><span class="p">,</span><span
class="w"> </span><span class="s2">"c11"</span><span class="p">)</span>
</div><div id="l4" class="code_block">
</div><div id="l5" class="code_block"><span class="kd">local</span><span
class="w"> </span><span class="nv">use_wayland</span><span class="w"> </span><span
class="o">=</span><span class="w"> </span><span class="nb">os.getenv</span><span
class="p">(</span><span class="s2">"WAYLAND_SUPPORT"</span><span
class="p">)</span>
</div><div id="l6" class="code_block">
</div><div id="l7" class="code_block"><span class="kr">if</span><span
class="w"> </span><span class="ow">not</span><span class="w"> </span><span
class="nv">use_wayland</span><span class="w"> </span><span
class="ow">or</span><span class="w"> </span><span class="nv">use_wayland</span><span
class="w"> </span><span class="o">==</span><span class="w"> </span><span
class="s2">""</span><span class="w"> </span><span class="kr">then</span>
</div><div id="l8" class="code_block"><span class="w"> </span><span
class="nb">print</span><span class="p">(</span><span class="s2">"**************"</span><span
class="p">)</span>
</div><div id="l9" class="code_block"><span class="w"> </span><span
class="nb">print</span><span class="p">(</span><span class="s2">"************** WAYLAND_SUPPORT not defined"</span><span
class="p">)</span>
</div><div id="l10" class="code_block"><span class="w"> </span><span
class="nb">print</span><span class="p">(</span><span class="s2">"************** will not build Wayland"</span><span
class="p">)</span>
</div><div id="l11" class="code_block"><span class="w"> </span><span
class="nb">print</span><span class="p">(</span><span class="s2">"**************"</span><span
class="p">)</span>
</div><div id="l12" class="code_block"><span class="w"> </span><span
class="nf">add_requires</span><span class="p">(</span><span
class="s2">"libsdl3"</span><span class="p">,</span><span class="w"> </span><span
class="p">{</span><span class="nv">configs</span><span class="w"> </span><span
class="o">=</span><span class="w"> </span><span class="p">{</span><span
class="w"> </span><span class="nv">wayland_shared</span><span
class="w"> </span><span class="o">=</span><span class="w"> </span><span
class="kc">false</span><span class="p">,</span><span class="w"> </span><span
class="nv">wayland_libdecor_shared</span><span class="w"> </span><span
class="o">=</span><span class="w"> </span><span class="kc">false</span><span
class="p">,</span><span class="w"> </span><span class="nv">wayland</span><span
class="w"> </span><span class="o">=</span><span class="w"> </span><span
class="kc">false</span>
</div><div id="l13" class="code_block"><span class="w"> </span><span
class="p">}})</span>
</div><div id="l14" class="code_block"><span class="kr">else</span>
</div><div id="l15" class="code_block"><span class="w"> </span><span
class="nb">print</span><span class="p">(</span><span class="s2">"**************"</span><span
class="p">)</span>
</div><div id="l16" class="code_block"><span class="w"> </span><span
class="nb">print</span><span class="p">(</span><span class="s2">"**************"</span><span
class="p">)</span>
</div><div id="l17" class="code_block"><span class="w"> </span><span
class="nb">print</span><span class="p">(</span><span class="s2">"**************"</span><span
class="p">)</span>
</div><div id="l18" class="code_block"><span class="w"> </span><span
class="nb">print</span><span class="p">(</span><span class="s2">"for some reason we are building Wayland"</span><span
class="p">)</span>
</div><div id="l19" class="code_block"><span class="w"> </span><span
class="nb">print</span><span class="p">(</span><span class="s2">"**************"</span><span
class="p">)</span>
</div><div id="l20" class="code_block"><span class="w"> </span><span
class="nb">print</span><span class="p">(</span><span class="s2">"**************"</span><span
class="p">)</span>
</div><div id="l21" class="code_block"><span class="w"> </span><span
class="nb">print</span><span class="p">(</span><span class="s2">"**************"</span><span
class="p">)</span>
</div><div id="l22" class="code_block"><span class="w"> </span><span
class="nf">add_requires</span><span class="p">(</span><span
class="s2">"libsdl3"</span><span class="p">)</span>
</div><div id="l23" class="code_block"><span class="kr">end</span>
</div><div id="l24" class="code_block">
</div><div id="l25" class="code_block"><span class="nf">add_requires</span><span
class="p">(</span><span class="s2">"glib"</span><span class="p">)</span>
</div><div id="l26" class="code_block">
</div><div id="l27" class="code_block">
</div><div id="l28" class="code_block"><span class="c1">-- add_requires("libsdl3_ttf")</span>
</div><div id="l29" class="code_block"><span class="c1">-- add_requires("libsdl3_image")</span>
</div><div id="l30" class="code_block">
</div><div id="l31" class="code_block"><span class="c1">-- TODO:: Need to configure bd_build_info.h.in</span>
</div><div id="l32" class="code_block">
</div><div id="l33" class="code_block"><span class="nf">target</span><span
class="p">(</span><span class="s2">"BasisDoctrina"</span><span
class="p">)</span>
</div><div id="l34" class="code_block"><span class="w"> </span><span
class="nf">set_kind</span><span class="p">(</span><span class="s2">"shared"</span><span
class="p">)</span>
</div><div id="l35" class="code_block"><span class="w"> </span><span
class="nf">add_includedirs</span><span class="p">(</span><span
class="s2">"src/3rdparty/BigInt"</span><span class="p">,</span><span
class="w"> </span><span class="s2">"src/core"</span><span class="p">,</span><span
class="w"> </span><span class="s2">"$(builddir)"</span><span
class="p">)</span>
</div><div id="l36" class="code_block"><span class="w"> </span><span
class="nf">add_files</span><span class="p">(</span><span class="s2">"src/core/*.cpp"</span><span
class="p">)</span>
</div><div id="l37" class="code_block"><span class="w"> </span><span
class="nf">add_packages</span><span class="p">(</span><span
class="s2">"libsdl3"</span><span class="p">,</span><span class="w"> </span><span
class="s2">"glib"</span><span class="p">)</span>
</div><div id="l38" class="code_block"><span class="w"> </span>
</div><div id="l39" class="code_block">
</div></pre>
<p>The biggest mental hurdle (for me) was the distinction of
add_requires() and add_packages(). add_requires() makes it
available to xmake. add_packages() makes it available to the
target.</p>
<p>If you are going to try and build this via
build-BasisDoctrina-local.sh, remove all lines containing
XMAKE_CACHE_DIR. I veered off into documenting a bug (in and
around planting, spraying, liquid fertilizer knifing; I live on a
functioning family farm after all) where the XMAKE_PKG_CACHEDIR
environment variable does not get pass to child processes. Things
would build via the default xmake command just fine.</p>
<p>See if this thought path gets you around what you need to get
around.</p>
<div class="moz-cite-prefix">On 6/15/2026 2:56 PM, John Selverian
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:[email protected]">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div>
<div><font color="#000000">I’m still at it. I got rid of the "</font><span
style="color: rgb(0, 0, 0); font-family: Menlo; font-size: 10px; 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</span><font color="#000000" face="Menlo"
size="1"><span style="caret-color: rgb(0, 0, 0);">”</span></font></div>
<div><span
style="color: rgb(0, 0, 0); font-family: Menlo; font-size: 10px; background-color: rgb(255, 255, 255);"><br>
</span></div>
<div><span style="background-color: rgb(255, 255, 255);"><font
color="#000000" face="Menlo" size="1"><span
style="caret-color: rgb(0, 0, 0);">errors deleting *.o
and *.lo each time.</span></font></span></div>
<div><span style="background-color: rgb(255, 255, 255);"><font
color="#000000" face="Menlo" size="1"><span
style="caret-color: rgb(0, 0, 0);"><br>
</span></font></span></div>
<div><span style="background-color: rgb(255, 255, 255);"><font
color="#000000" face="Menlo" size="1"><span
style="caret-color: rgb(0, 0, 0);">The I edited the
makefile and removed the projects to be built
one-by-one:</span></font></span></div>
<div><font color="#000000"><br>
</font></div>
<div><font color="#000000"><br>
</font></div>
<div><font color="#000000"><span
style="caret-color: rgb(0, 0, 0);">Starting:</span></font></div>
<div><font color="#000000"><span
style="caret-color: rgb(0, 0, 0);"><br>
</span></font></div>
<div><font color="#000000">#SUBDIRS = utils include lib chart
doc tests shutterbug adie pathfinder calculator controlpanel
windows</font></div>
<div><font color="#000000"><br>
</font></div>
<div><font color="#000000"><br>
</font></div>
<div><font color="#000000">Where I am now:</font></div>
<div><font color="#000000"><br>
</font></div>
<div><font color="#000000">SUBDIRS = utils include lib doc tests
windows</font></div>
<div><font color="#000000"><br>
</font></div>
<div><font color="#000000"><br>
</font></div>
<div><font color="#000000">The helped a lot.</font></div>
<div><font color="#000000"><br>
</font></div>
<div><font color="#000000">Now I’m getting this:</font></div>
<div><font color="#000000"><br>
</font></div>
<div><font color="#000000"><br>
</font></div>
<div><font color="#000000">/bin/sh ../libtool --tag=CXX
--mode=link g++ -arch arm64 -Wall -Wformat
-Woverloaded-virtual -Wshadow -DHAVE_PNG_H=1 -DHAVE_ZLIB_H=1
-DHAVE_BZ2LIB_H=1 -DHAVE_XFT_H=1 -I/usr/include/freetype2
-DHAVE_XSHM_H=1 -DHAVE_XSHAPE_H=1 -DHAVE_XCURSOR_H=1
-DHAVE_XRENDER_H=1 -DHAVE_XRANDR_H=1 -DHAVE_XFIXES_H=1
-DHAVE_XINPUT2_H=1 -DNO_XIM -DHAVE_GL_H=1 -DHAVE_GLU_H=1
-DHAVE_GLX_H=1 -L/opt/X11/lib -o glviewer glviewer.o
../lib/libFOX-1.7.la -lm -ldl -lpthread -lpng -lz -lbz2
-lGL -lGLU</font></div>
<div><font color="#000000">libtool: link: g++ -arch arm64 -Wall
-Wformat -Woverloaded-virtual -Wshadow -DHAVE_PNG_H=1
-DHAVE_ZLIB_H=1 -DHAVE_BZ2LIB_H=1 -DHAVE_XFT_H=1
-I/usr/include/freetype2 -DHAVE_XSHM_H=1 -DHAVE_XSHAPE_H=1
-DHAVE_XCURSOR_H=1 -DHAVE_XRENDER_H=1 -DHAVE_XRANDR_H=1
-DHAVE_XFIXES_H=1 -DHAVE_XINPUT2_H=1 -DNO_XIM -DHAVE_GL_H=1
-DHAVE_GLU_H=1 -DHAVE_GLX_H=1 -o .libs/glviewer glviewer.o
-Wl,-bind_at_load -L/opt/X11/lib
../lib/.libs/libFOX-1.7.dylib -lSM -lICE -lX11 -lXext -lXft
-lfontconfig -lfreetype -lXcursor -lXrender -lXrandr
-lXfixes -lXi -lm -ldl -lpthread -lpng -lz -lbz2 -lGL -lGLU</font></div>
<div><font color="#000000">ld: warning: -bind_at_load is
deprecated on macOS</font></div>
<div><font color="#000000">Making all in windows</font></div>
<div><font color="#000000">make[1]: Nothing to be done for
`all'.</font></div>
<div><font color="#000000">make[1]: Nothing to be done for
`all-am'.</font></div>
</div>
<div><font color="#000000"><br>
</font></div>
<div><font color="#000000"><br>
</font></div>
<div><font color="#000000"><br>
</font></div>
<div><font color="#000000">The library is still not being built
for arm64. I’m not sure if “<span
style="caret-color: rgb(0, 0, 0);">ld: warning:
-bind_at_load is deprecated on macOS” is the problem or not.</span></font></div>
<div><font color="#000000"><span
style="caret-color: rgb(0, 0, 0);"><br>
</span></font></div>
<div><font color="#000000">I’m not sure what this means/does.</font></div>
<div><font color="#000000"><br>
</font></div>
<div><font color="#000000"><br>
</font></div>
<div><font color="#000000"><br>
</font></div>
<div><font color="#000000"><span
style="caret-color: rgb(0, 0, 0);">Js</span></font></div>
<div><font color="#000000"><br>
</font></div>
<font color="#000000">(No green!)<br>
</font>
<div>
<div
style="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;"><font
color="#000000"><br>
<br>
</font></div>
</div>
<div><font color="#000000"><br>
</font>
<blockquote type="cite">
<div><font color="#000000">On Jun 12, 2026, at 8:27 PM, John
Selverian <a class="moz-txt-link-rfc2396E" href="mailto:[email protected]"><[email protected]></a> wrote:</font></div>
<font color="#000000"><br class="Apple-interchange-newline">
</font>
<div>
<meta http-equiv="content-type"
content="text/html; charset=UTF-8">
<div
style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
<div
style="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; background-color: rgb(255, 255, 255);"><font
color="#000000">I changed the offending code in
FXAtomic to this:</font></div>
<div
style="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; background-color: rgb(255, 255, 255);"><font
color="#000000"><br>
</font></div>
<div
style="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; background-color: rgb(255, 255, 255);"><font
color="#000000"><br>
</font></div>
<div
style="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; background-color: rgb(255, 255, 255);"><font
color="#000000"><br>
</font></div>
<div
style="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; background-color: rgb(255, 255, 255);"><font
color="#000000">// Atomically add v to pointer
variable at ptr, and return its old contents</font></div>
<div
style="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; background-color: rgb(255, 255, 255);"><font
color="#000000">FXptr atomicAdd(volatile FXptr*
ptr,FXival v){</font></div>
<div
style="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; background-color: rgb(255, 255, 255);"><font
color="#000000">#if defined(WIN32) &&
defined(_WIN64)</font></div>
<div
style="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; background-color: rgb(255, 255, 255);"><font
color="#000000"> return
(FXptr)InterlockedExchangeAdd64((LONGLONG*)ptr,(LONGLONG)v);</font></div>
<div
style="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; background-color: rgb(255, 255, 255);"><font
color="#000000">#elif defined(WIN32)</font></div>
<div
style="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; background-color: rgb(255, 255, 255);"><font
color="#000000"> return
(FXptr)InterlockedExchangeAdd((LONG*)ptr,(LONG)v);</font></div>
<div
style="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; background-color: rgb(255, 255, 255);"><font
color="#000000">#elif ((defined(__GNUC__) ||
defined(__INTEL_COMPILER)) &&
defined(__i386__))</font></div>
<div
style="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; background-color: rgb(255, 255, 255);"><font
color="#000000"> register FXptr ret=(void*)v;</font></div>
<div
style="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; background-color: rgb(255, 255, 255);"><font
color="#000000"> __asm__ __volatile__ ("lock\n\t"</font></div>
<div
style="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; background-color: rgb(255, 255, 255);"><font
color="#000000"> "xaddl %0,
(%1)\n\t" : "=r"(ret) : "r"(ptr), "0"(ret) : "memory",
"cc");</font></div>
<div
style="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; background-color: rgb(255, 255, 255);"><font
color="#000000"> return ret;</font></div>
<div
style="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; background-color: rgb(255, 255, 255);"><font
color="#000000">#elif ((defined(__GNUC__) ||
defined(__INTEL_COMPILER)) &&
defined(__x86_64__))</font></div>
<div
style="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; background-color: rgb(255, 255, 255);"><font
color="#000000"> register FXptr ret=(FXptr)v;</font></div>
<div
style="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; background-color: rgb(255, 255, 255);"><font
color="#000000"> __asm__ __volatile__ ("lock\n\t"</font></div>
<div
style="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; background-color: rgb(255, 255, 255);"><font
color="#000000"> "xaddq %0,
(%1)\n\t" : "=r"(ret) : "r"(ptr), "0" (ret) :
"memory", "cc");</font></div>
<div
style="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; background-color: rgb(255, 255, 255);"><font
color="#000000"> return ret;</font></div>
<div
style="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; background-color: rgb(255, 255, 255);"><font
color="#000000">//#elif defined(HAVE_BUILTIN_SYNC)</font></div>
<div
style="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; background-color: rgb(255, 255, 255);"><font
color="#000000"> //return
__sync_fetch_and_add(ptr,v);</font></div>
<div
style="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; background-color: rgb(255, 255, 255);"><font
color="#000000">#else</font></div>
<div
style="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; background-color: rgb(255, 255, 255);"><font
color="#000000"> FXptr ret=*ptr;</font></div>
<div
style="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; background-color: rgb(255, 255, 255);"><font
color="#000000"> *((unsigned char**)ptr)+=v;</font></div>
<div
style="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; background-color: rgb(255, 255, 255);"><font
color="#000000"> return ret;</font></div>
<div
style="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; background-color: rgb(255, 255, 255);"><font
color="#000000">#endif</font></div>
<div
style="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; background-color: rgb(255, 255, 255);"><font
color="#000000"> }</font></div>
<div
style="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; background-color: rgb(255, 255, 255);"><font
color="#000000"><br>
</font></div>
<div
style="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; background-color: rgb(255, 255, 255);"><font
color="#000000"><br>
</font></div>
<div
style="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; background-color: rgb(255, 255, 255);"><font
color="#000000"><br>
</font></div>
<div
style="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; background-color: rgb(255, 255, 255);"><font
color="#000000"><br>
</font></div>
<div
style="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; background-color: rgb(255, 255, 255);"><font
color="#000000"><br>
</font></div>
<div
style="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; background-color: rgb(255, 255, 255);"><font
color="#000000"><br>
</font></div>
<div
style="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; background-color: rgb(255, 255, 255);"><font
color="#000000">It sides to compile OK but fails doing
linking…I don’t know what this means…any ideas?</font></div>
<div
style="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; background-color: rgb(255, 255, 255);"><font
color="#000000"><br>
</font></div>
<div
style="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; background-color: rgb(255, 255, 255);"><font
color="#000000"><br>
</font></div>
<div
style="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; background-color: rgb(255, 255, 255);"><font
color="#000000"><br>
</font></div>
<div
style="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; background-color: rgb(255, 255, 255);"><font
color="#000000"><br>
</font></div>
<div
style="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; background-color: rgb(255, 255, 255);"><font
color="#000000"><br>
</font></div>
<div
style="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; background-color: rgb(255, 255, 255);"><font
color="#000000">ld: warning: ignoring file
.libs/FXMemMap.o, building for macOS-arm64 but
attempting to link with file built for unknown-x86_64</font></div>
<div
style="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; background-color: rgb(255, 255, 255);"><font
color="#000000">ld: warning: ignoring file
.libs/FXPtrQueue.o, building for macOS-arm64 but
attempting to link with file built for unknown-x86_64</font></div>
<div
style="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; background-color: rgb(255, 255, 255);"><font
color="#000000">ld: warning: ignoring file
.libs/FXSemaQueue.o, building for macOS-arm64 but
attempting to link with file built for unknown-x86_64</font></div>
<div
style="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; background-color: rgb(255, 255, 255);"><font
color="#000000">ld: warning: ignoring file
.libs/fxascii.o, building for macOS-arm64 but
attempting to link with file built for unknown-x86_64</font></div>
<div
style="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; background-color: rgb(255, 255, 255);"><font
color="#000000">ld: warning: ignoring file
.libs/fxunicode.o, building for macOS-arm64 but
attempting to link with file built for unknown-x86_64</font></div>
<div
style="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; background-color: rgb(255, 255, 255);"><font
color="#000000">ld: warning: ignoring file
.libs/icons.o, building for macOS-arm64 but attempting
to link with file built for unknown-x86_64</font></div>
<div
style="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; background-color: rgb(255, 255, 255);"><font
color="#000000">ld: can't write output file:
.libs/libFOX-1.7.0.dylib-master.o for architecture
arm64</font></div>
<div
style="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; background-color: rgb(255, 255, 255);"><font
color="#000000">clang++: error: linker command failed
with exit code 1 (use -v to see invocation)</font></div>
<div
style="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; background-color: rgb(255, 255, 255);"><font
color="#000000">make[2]: *** [libFOX-1.7.la] Error 1</font></div>
<div
style="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; background-color: rgb(255, 255, 255);"><font
color="#000000">make[1]: *** [all] Error 2</font></div>
<div
style="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; background-color: rgb(255, 255, 255);"><font
color="#000000">make: *** [all-recursive] Error 1</font></div>
<div
style="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; background-color: rgb(255, 255, 255);"><font
color="#000000"><br>
</font></div>
<div
style="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; background-color: rgb(255, 255, 255);"><font
color="#000000"><br>
</font></div>
<div>
<div
style="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;"><font
color="#000000"><br>
</font></div>
<div
style="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;"><font
color="#000000"><br>
</font></div>
<div
style="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;"><font
color="#000000"><br>
</font></div>
<div
style="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;"><font
color="#000000"><br>
<br>
</font></div>
</div>
<div><font color="#000000"><br>
</font>
<blockquote type="cite">
<div><font color="#000000">On Jun 9, 2026, at 9:17 AM,
John Selverian <a class="moz-txt-link-rfc2396E" href="mailto:[email protected]"><[email protected]></a>
wrote:</font></div>
<font color="#000000"><br
class="Apple-interchange-newline">
</font>
<div>
<meta http-equiv="content-type"
content="text/html; charset=UTF-8">
<div
style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
<div>
<div><font color="#000000">Apple is deprecating
Intel apps on the Mac. I’m trying to build
the Fox library as a universal app. Has
anyone done this? Any tips?</font></div>
<div><font color="#000000"><br>
</font></div>
<div><font color="#000000"><br>
</font></div>
<div><font color="#000000">Here is what I’ve
tried:</font></div>
<div><font color="#000000"><br>
</font></div>
<div><font color="#000000">1) first I do this:</font></div>
<div><font color="#000000"><br>
</font></div>
<div><font color="#000000">> CXXCPP="g++ -E"
CXX="g++ -arch x86_64"
CPPFLAGS="-I/opt/X11/include
-I/opt/X11/include/freetype2"
LDFLAGS="-L/opt/X11/lib" ./configure
--with-x --with-xft</font></div>
<div><font color="#000000">> make</font></div>
<div><font color="#000000"><br>
</font></div>
<div><font color="#000000">Then I add “_x86_64”
to the name of the build libraries</font></div>
<div><font color="#000000"><br>
</font></div>
<div><font color="#000000"><br>
</font></div>
<div><font color="#000000">2) next I do this:</font></div>
<div><font color="#000000"><br>
</font></div>
<div><font color="#000000">> CXXCPP="g++ -E"
CXX="g++ -arch arm64"
CPPFLAGS="-I/opt/X11/include
-I/opt/X11/include/freetype2"
LDFLAGS="-L/opt/X11/lib" ./configure
--with-x --with-xft</font></div>
<div><font color="#000000"><br>
</font></div>
<div><font color="#000000"><br>
</font></div>
<div><font color="#000000">But I get the
following error:</font></div>
<div><font color="#000000"><br>
</font></div>
<div><font color="#000000"><br>
</font></div>
<div>
<div><font color="#000000">FXAtomic.cpp:304:35:
error: cannot initialize a parameter of
type 'FXptr' (aka 'void *') with an lvalue
of type 'FXival' (aka 'long')</font></div>
<div><font color="#000000"> 304 | return
__sync_fetch_and_add(ptr,v);</font></div>
<div><font color="#000000"> |
^</font></div>
<div><font color="#000000">1 error generated.</font></div>
<div><font color="#000000">make[2]: ***
[FXAtomic.lo] Error 1</font></div>
<div><font color="#000000">make[1]: *** [all]
Error 2</font></div>
<div><font color="#000000">make: ***
[all-recursive] Error 1</font></div>
</div>
<div><font color="#000000"><br>
</font></div>
<div><font color="#000000"><br>
</font></div>
<div><font color="#000000"><br>
</font></div>
</div>
<div>
<meta charset="UTF-8">
<div
style="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;"><font
color="#000000"><br
class="Apple-interchange-newline">
<br>
</font></div>
<div
style="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;"><font
color="#000000">Kind regards,<br>
<br>
js<br>
<br>
<br>
<br>
</font></div>
</div>
<font color="#000000"><br>
</font></div>
</div>
</blockquote>
</div>
<font color="#000000"><br>
</font></div>
</div>
</blockquote>
</div>
<br>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre wrap="" class="moz-quote-pre">_______________________________________________
Foxgui-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/foxgui-users">https://lists.sourceforge.net/lists/listinfo/foxgui-users</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
Roland Hughes, President
Logikal Solutions
(630)-205-1593 (cell)
<a class="moz-txt-link-freetext" href="https://theminimumyouneedtoknow.com">https://theminimumyouneedtoknow.com</a>
<a class="moz-txt-link-freetext" href="https://infiniteexposure.net">https://infiniteexposure.net</a>
<a class="moz-txt-link-freetext" href="https://johnsmith-book.com">https://johnsmith-book.com</a></pre>
</body>
</html>
--------------KP2oGejOjiTlbsL800C9m9cO--
--===============8346876229912926874==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
--===============8346876229912926874==
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
--===============8346876229912926874==--