OSX 14 M2 platform compilation

This commit is contained in:
Bruno Herbelin
2024-08-17 23:31:03 +02:00
parent 90962d0391
commit e115981b9f
6 changed files with 17 additions and 5 deletions

View File

@@ -61,11 +61,11 @@ if(UNIX)
set(CMAKE_SKIP_RPATH TRUE)
set(OpenGL_DIR /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/)
set(CMAKE_OSX_ARCHITECTURES "x86_64")
set(CMAKE_OSX_DEPLOYMENT_TARGET "11")
# set(CMAKE_OSX_ARCHITECTURES "x86_64")
# set(CMAKE_OSX_DEPLOYMENT_TARGET "11")
# set(CMAKE_OSX_ARCHITECTURES "arm64")
# set(CMAKE_OSX_DEPLOYMENT_TARGET "12")
set(CMAKE_OSX_ARCHITECTURES "arm64")
set(CMAKE_OSX_DEPLOYMENT_TARGET "13")
# CPACK
set(CPACK_SYSTEM_NAME "OSX_${CMAKE_OSX_DEPLOYMENT_TARGET}_${CMAKE_OSX_ARCHITECTURES}")

View File

@@ -21,6 +21,9 @@
#include <chrono>
#include <algorithm>
#if ((ULONG_MAX) != (UINT_MAX))
#define _M_X64
#endif
#include "osc/OscOutboundPacketStream.h"
#include "defines.h"

View File

@@ -25,6 +25,9 @@
#include <regex>
#include <GLFW/glfw3.h>
#if ((ULONG_MAX) != (UINT_MAX))
#define _M_X64
#endif
#include "osc/OscOutboundPacketStream.h"
#include "Log.h"

View File

@@ -27,6 +27,9 @@
#include <gst/pbutils/pbutils.h>
#include <gst/gst.h>
#if ((ULONG_MAX) != (UINT_MAX))
#define _M_X64
#endif
#include "osc/OscOutboundPacketStream.h"
#include "SystemToolkit.h"

View File

@@ -364,7 +364,7 @@ void ShaderEditWindow::Render()
// cancel edit clone
else {
// possibility that source was removed
g_printerr("cancel edit clone %ld\n", current_);
// g_printerr("cancel edit clone %ld\n", current_);
// disable editor
_editor.SetReadOnly(true);

View File

@@ -33,6 +33,9 @@
#include <gst/pbutils/pbutils.h>
//osc
#if ((ULONG_MAX) != (UINT_MAX))
#define _M_X64
#endif
#include "osc/OscOutboundPacketStream.h"
#include "Settings.h"