Skip to content

Commit

Permalink
OSX 14 M2 platform compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
brunoherbelin committed Aug 17, 2024
1 parent 90962d0 commit e115981
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 5 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down
3 changes: 3 additions & 0 deletions src/Connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
#include <chrono>
#include <algorithm>

#if ((ULONG_MAX) != (UINT_MAX))
#define _M_X64
#endif
#include "osc/OscOutboundPacketStream.h"

#include "defines.h"
Expand Down
3 changes: 3 additions & 0 deletions src/ControlManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 3 additions & 0 deletions src/NetworkSource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/ShaderEditWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 3 additions & 0 deletions src/Streamer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit e115981

Please sign in to comment.