Cool VL Viewer forum

View unanswered posts | View active topics It is currently 2025-07-25 11:32:47



Reply to topic  [ 3 posts ] 
Building on a Mac with Xcode 16.3 
Author Message

Joined: 2016-06-19 21:33:37
Posts: 396
Location: Columbus area, OH, USA
Reply with quote
I thought I would try to build version 1.32.2.45 on my Mac today. Unfortunately, it seems something has changed with either Sequoia 15.4 or Xcode 16.3 or both, since I could build prior. I get an error:
Code:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/c++/v1/string:821:42: error: implicit instantiation of undefined
      template 'std::char_traits<unsigned short>'
  821 |   static_assert(is_same<_CharT, typename traits_type::char_type>::value,
      |                                          ^
I have attached the full output from the cmd line.


Attachments:
build_log.zip [7.96 KiB]
Downloaded 42 times
2025-04-26 14:27:12
Profile

Joined: 2009-03-17 18:42:51
Posts: 6021
Reply with quote
The viewer compiles fine on my Catalina Hackintosh VirtualBox VM, using Xcode 12. Not owning a Mac, and newer macOS versions not properly installing as VMs, I cannot guarantee that newer Xcode versions (themselves requiring newer macOS versions) are able to build the viewer...

This issue seems however to be specific to Xcode 16.3 itself, which removed support for std::char_traits<unsigned short>. See the Deprecations chapter in Xcode 16.3 release notes.

I came up with this patch, that might work (let me know)... It still compiles with Xcode 12, at least:
Attachment:
Xcode16.3-char16_t-patch.txt [3.9 KiB]
Downloaded 57 times
Apply from a terminal pointing inside the linden/ sources directory, with: patch -p1 -s </path_to_patch/Xcode16.3-char16_t-patch.txt

Alternatively, compiling with Xcode 16.2 should make it.


2025-04-26 15:34:32
Profile WWW

Joined: 2016-06-19 21:33:37
Posts: 396
Location: Columbus area, OH, USA
Reply with quote
Ah, release notes. I didn't even think to check that while I was searching for a solution.

The patch file does work for me, with the build finishing as usual. A quick test was successful.


2025-04-26 16:14:18
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.