Re: Build Fox as a universal library on Mac

Roland Hughes via Foxgui-users <[email protected]> Sat, 13 Jun 2026 06:03:32 -0500
Newsgroups gmane.comp.lib.fox-toolkit.user
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--===============8011244321621580356==
Content-Type: multipart/alternative;
 boundary="------------FOA4ImaQSoQRvuPjqMS2kLHu"
Content-Language: en-US

This is a multi-part message in MIME format.
--------------FOA4ImaQSoQRvuPjqMS2kLHu
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

Can we nuke the vicious to the eyes green?

On 6/12/2026 7:27 PM, John Selverian 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

--------------FOA4ImaQSoQRvuPjqMS2kLHu
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>Can we nuke the vicious to the eyes green?</p>
    <div class="moz-cite-prefix">On 6/12/2026 7:27 PM, John Selverian
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:[email protected]">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <p
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; color: rgb(51, 225, 56); background-color: rgb(255, 255, 255);">I
        changed the offending code in FXAtomic to this:</p>
      <p
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; color: rgb(51, 225, 56); background-color: rgb(255, 255, 255);"><br>
      </p>
      <p
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; color: rgb(51, 225, 56); background-color: rgb(255, 255, 255);"><br>
      </p>
      <p
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; color: rgb(51, 225, 56); background-color: rgb(255, 255, 255);"><br>
      </p>
      <p
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; 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="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="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="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);"> 
        return
        (FXptr)InterlockedExchangeAdd64((LONGLONG*)ptr,(LONGLONG)v);</p>
      <p
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; color: rgb(51, 225, 56); background-color: rgb(255, 255, 255);">#elif
        defined(WIN32)</p>
      <p
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; color: rgb(51, 225, 56); background-color: rgb(255, 255, 255);"> 
        return (FXptr)InterlockedExchangeAdd((LONG*)ptr,(LONG)v);</p>
      <p
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; color: rgb(51, 225, 56); background-color: rgb(255, 255, 255);">#elif
        ((defined(__GNUC__) || defined(__INTEL_COMPILER)) &amp;&amp;
        defined(__i386__))</p>
      <p
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; color: rgb(51, 225, 56); background-color: rgb(255, 255, 255);"> 
        register FXptr ret=(void*)v;</p>
      <p
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; color: rgb(51, 225, 56); background-color: rgb(255, 255, 255);"> 
        __asm__ __volatile__ ("lock\n\t"</p>
      <p
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; color: rgb(51, 225, 56); background-color: rgb(255, 255, 255);"> 
                              "xaddl %0, (%1)\n\t" : "=r"(ret) :
        "r"(ptr), "0"(ret) : "memory", "cc");</p>
      <p
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; color: rgb(51, 225, 56); background-color: rgb(255, 255, 255);"> 
        return ret;</p>
      <p
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; 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="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);"> 
        register FXptr ret=(FXptr)v;</p>
      <p
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; color: rgb(51, 225, 56); background-color: rgb(255, 255, 255);"> 
        __asm__ __volatile__ ("lock\n\t"</p>
      <p
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; color: rgb(51, 225, 56); background-color: rgb(255, 255, 255);"> 
                              "xaddq %0, (%1)\n\t" : "=r"(ret) :
        "r"(ptr), "0" (ret) : "memory", "cc");</p>
      <p
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; color: rgb(51, 225, 56); background-color: rgb(255, 255, 255);"> 
        return ret;</p>
      <p
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; color: rgb(51, 225, 56); background-color: rgb(255, 255, 255);">//#elif
        defined(HAVE_BUILTIN_SYNC)</p>
      <p
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; color: rgb(51, 225, 56); background-color: rgb(255, 255, 255);"> 
        //return __sync_fetch_and_add(ptr,v);</p>
      <p
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; color: rgb(51, 225, 56); background-color: rgb(255, 255, 255);">#else</p>
      <p
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; color: rgb(51, 225, 56); background-color: rgb(255, 255, 255);"> 
        FXptr ret=*ptr;</p>
      <p
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; color: rgb(51, 225, 56); background-color: rgb(255, 255, 255);"> 
        *((unsigned char**)ptr)+=v;</p>
      <p
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; color: rgb(51, 225, 56); background-color: rgb(255, 255, 255);"> 
        return ret;</p>
      <p
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; color: rgb(51, 225, 56); background-color: rgb(255, 255, 255);">#endif</p>
      <p
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; color: rgb(51, 225, 56); background-color: rgb(255, 255, 255);"> 
        }</p>
      <p
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; color: rgb(51, 225, 56); background-color: rgb(255, 255, 255);"><br>
      </p>
      <p
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; color: rgb(51, 225, 56); background-color: rgb(255, 255, 255);"><br>
      </p>
      <p
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; color: rgb(51, 225, 56); background-color: rgb(255, 255, 255);"><br>
      </p>
      <p
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; color: rgb(51, 225, 56); background-color: rgb(255, 255, 255);"><br>
      </p>
      <p
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; color: rgb(51, 225, 56); background-color: rgb(255, 255, 255);"><br>
      </p>
      <p
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; color: rgb(51, 225, 56); background-color: rgb(255, 255, 255);"><br>
      </p>
      <p
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; color: rgb(51, 225, 56); background-color: rgb(255, 255, 255);">It
        sides to compile OK but fails doing linking…I don’t know what
        this means…any ideas?</p>
      <p
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; color: rgb(51, 225, 56); background-color: rgb(255, 255, 255);"><br>
      </p>
      <p
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; color: rgb(51, 225, 56); background-color: rgb(255, 255, 255);"><br>
      </p>
      <p
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; color: rgb(51, 225, 56); background-color: rgb(255, 255, 255);"><br>
      </p>
      <p
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; color: rgb(51, 225, 56); background-color: rgb(255, 255, 255);"><br>
      </p>
      <p
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; color: rgb(51, 225, 56); background-color: rgb(255, 255, 255);"><br>
      </p>
      <p
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; 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="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="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="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="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="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="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="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="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="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="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="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="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="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="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="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="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="cite">
          <div>On Jun 9, 2026, at 9:17 AM, John Selverian
            <a class="moz-txt-link-rfc2396E" href="mailto:[email protected]">&lt;[email protected]&gt;</a> wrote:</div>
          <br class="Apple-interchange-newline">
          <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>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?</div>
                <div><br>
                </div>
                <div><br>
                </div>
                <div>Here is what I’ve tried:</div>
                <div><br>
                </div>
                <div>1) first I do this:</div>
                <div><br>
                </div>
                <div>&gt; 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</div>
                <div>&gt; make</div>
                <div><br>
                </div>
                <div>Then I add “_x86_64” 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="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</div>
                <div><br>
                </div>
                <div><br>
                </div>
                <div>But I get the following error:</div>
                <div><br>
                </div>
                <div><br>
                </div>
                <div>
                  <div>FXAtomic.cpp:304:35: error: cannot initialize a
                    parameter of type 'FXptr' (aka 'void *') with an
                    lvalue of type 'FXival' (aka 'long')</div>
                  <div>  304 |   return __sync_fetch_and_add(ptr,v);</div>
                  <div>      |                                   ^</div>
                  <div>1 error generated.</div>
                  <div>make[2]: *** [FXAtomic.lo] Error 1</div>
                  <div>make[1]: *** [all] Error 2</div>
                  <div>make: *** [all-recursive] Error 1</div>
                </div>
                <div><br>
                </div>
                <div><br>
                </div>
                <div><br>
                </div>
              </div>
              <div>
                <meta charset="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;"><br
                    class="Apple-interchange-newline">
                  <br>
                </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;">Kind
                  regards,<br>
                   <br>
                  js<br>
                   <br>
                  <br>
                  <br>
                </div>
              </div>
              <br>
            </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>

--------------FOA4ImaQSoQRvuPjqMS2kLHu--


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


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

--===============8011244321621580356==--