Skip to content

Commit f3681d0

Browse files
authored
Merge branch 'openframeworks:master' into android2024
2 parents 9f07afb + bfe8be8 commit f3681d0

30 files changed

+50
-84
lines changed

.github/workflows/actions/build-msys2.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,11 @@ jobs:
4444
release: true
4545
update: false
4646
msystem: ${{matrix.msystem}}
47-
pacboy: gcc:p assimp:p cairo:p curl:p freeglut:p FreeImage:p glew:p glfw:p glm:p libsndfile:p libusb:p libxml2:p mpg123:p nlohmann-json:p openal:p opencv:p pugixml:p rtaudio:p uriparser:p utf8cpp:p
47+
pacboy: openssl:p python:p gcc:p assimp:p cairo:p curl:p freeglut:p FreeImage:p glew:p glfw:p glm:p libsndfile:p libusb:p libxml2:p mpg123:p nlohmann-json:p openal:p opencv:p pugixml:p rtaudio:p uriparser:p utf8cpp:p
4848
install: >-
4949
unzip
5050
make
51+
# lld
5152
# gcc:p gdb:p zlib:p poco:p pkgconf:p harfbuzz:p ntldd-git:p
5253
# boost:p tools:p
5354
# install: >-

.github/workflows/of.yml

+7-15
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,11 @@ jobs:
6969
release: true
7070
update: false
7171
msystem: ${{matrix.msystem}}
72-
pacboy: gcc:p assimp:p cairo:p curl:p freeglut:p FreeImage:p glew:p glfw:p glm:p libsndfile:p libusb:p libxml2:p mpg123:p nlohmann-json:p openal:p opencv:p pugixml:p rtaudio:p uriparser:p utf8cpp:p
72+
pacboy: openssl:p python:p gcc:p assimp:p cairo:p curl:p freeglut:p FreeImage:p glew:p glfw:p glm:p libsndfile:p libusb:p libxml2:p mpg123:p nlohmann-json:p openal:p opencv:p pugixml:p rtaudio:p uriparser:p utf8cpp:p
7373
install: >-
7474
unzip
7575
make
76+
# lld
7677
# gcc:p gdb:p zlib:p poco:p pkgconf:p harfbuzz:p ntldd-git:p
7778
# boost:p tools:p
7879
# install: >-
@@ -171,7 +172,7 @@ jobs:
171172
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
172173

173174
build-ios-tvos:
174-
runs-on: macos-13
175+
runs-on: macos-14
175176
strategy:
176177
matrix:
177178
cfg:
@@ -194,7 +195,7 @@ jobs:
194195
run: ./scripts/ci/$TARGET/build.sh;
195196

196197
env:
197-
DEVELOPER_DIR: "/Applications/Xcode_15.2.app/Contents/Developer"
198+
DEVELOPER_DIR: "/Applications/Xcode_15.4.app/Contents/Developer"
198199

199200

200201
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@@ -244,7 +245,7 @@ jobs:
244245
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
245246

246247
build-macos:
247-
runs-on: macos-13
248+
runs-on: macos-14
248249
strategy:
249250
matrix:
250251
cfg:
@@ -255,20 +256,11 @@ jobs:
255256
- name: ccache
256257
uses: hendrikmuhs/ccache-action@v1.2.13
257258
with:
258-
# key: ${{ matrix.os }}-${{ matrix.type }}
259259
key: ${{ matrix.cfg.target }}-${{ matrix.cfg.opt }}
260-
# key: ${{ matrix.msystem }}
261260

262261

263262
- name: Download libs
264-
# continue-on-error: true
265263
run: ./scripts/${{ matrix.cfg.target }}/download_libs.sh
266-
# - name: rm-dev
267-
# run: sudo rm -rf /Library/Developer
268-
269-
# this step is not needed here because the script is empty
270-
# - name: install
271-
# run: ./scripts/ci/$TARGET/install.sh
272264

273265
- name: Build
274266
run:
@@ -278,8 +270,8 @@ jobs:
278270
scripts/ci/${{ matrix.cfg.target }}/run_tests.sh;
279271
fi
280272
env:
281-
DEVELOPER_DIR: "/Applications/Xcode.app/Contents/Developer"
282-
SDKROOT: "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk"
273+
DEVELOPER_DIR: "/Applications/Xcode_15.4.app/Contents/Developer"
274+
SDKROOT: "/Applications/Xcode_15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk"
283275

284276

285277
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

libs/openFrameworks/3d/ofEasyCam.h

-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
#pragma once
22

33
#include "ofCamera.h"
4-
//#include "ofEvents.h"
54
class ofEventListeners;
65
class ofEventArgs;
7-
//#include "ofRectangle.h"
86
class ofRectangle;
97

108
#define GLM_FORCE_CTOR_INIT

libs/openFrameworks/events/ofEvents.h

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
#include "ofEventUtils.h"
44
#include "ofFpsCounter.h"
5-
//#include "ofTimer.h"
65
#include "ofTimerFps.h"
76

87
#define GLM_FORCE_CTOR_INIT

libs/openFrameworks/gl/ofBufferObject.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#include "ofBufferObject.h"
22
#include "ofAppRunner.h"
3-
//#include "ofPixels.h"
43
#include "ofGLUtils.h"
54

65

libs/openFrameworks/gl/ofGLProgrammableRenderer.h

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
#include "ofPolyline.h"
99
#include "ofBitmapFont.h"
1010
#include "ofPath.h"
11-
//#include "ofMaterialBaseTypes.h"
1211

1312
class ofShapeTessellation;
1413
class ofFbo;

libs/openFrameworks/gl/ofMaterial.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
#include <glm/vec2.hpp>
1111
#include <glm/gtx/transform.hpp>
1212

13-
//#include <typeinfo>
14-
1513
using std::shared_ptr;
1614
using std::string;
1715

libs/openFrameworks/gl/ofShader.cpp

-7
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,9 @@
11
#include "ofBufferObject.h"
22
#include "ofCubeMap.h"
3-
// #include "ofFileUtils.h"
43
#include "ofGLProgrammableRenderer.h"
5-
// #include "ofGraphics.h"
64
#include "ofLight.h"
7-
// #include "ofMatrix3x3.h"
8-
// #include "ofMatrix4x4.h"
9-
// #include "ofParameter.h"
105
#include "ofShader.h"
116
#include "ofShadow.h"
12-
// #include "ofTexture.h"
13-
// #include "ofUtils.h"
147
#ifdef TARGET_ANDROID
158
#include "ofxAndroidUtils.h"
169
#endif

libs/openFrameworks/graphics/ofPolyline.inl

-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
#include "ofGraphicsBaseTypes.h"
77
#include "ofVectorMath.h"
88
#include "ofAppRunner.h"
9-
//#include "ofMath.h"
109
#include "ofLog.h"
11-
//#include "ofConstants.h"
1210

1311
//----------------------------------------------------------
1412
template<class T>

libs/openFrameworks/math/ofVec3f.h

-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
#define GLM_ENABLE_EXPERIMENTAL
88
#include <glm/vec3.hpp>
99

10-
//#include <iostream>
11-
1210
/// \brief ofVec3f is a class for storing a three dimensional vector.
1311
///
1412
/// Moving through space requires knowledge of where things are and where they are

libs/openFrameworks/math/ofVectorMath.h

-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
#pragma once
22

3-
//#include "ofVec3f.h"
43
class ofMatrix3x3;
5-
// MARK: ofMatrix4x4 already contains some of commented out includes here.
6-
//#include "ofVec2f.h"
7-
//#include "ofVec4f.h"
8-
//#include "ofMatrix3x3.h"
94
#include "ofMatrix4x4.h"
105
#include "ofQuaternion.h"
116

libs/openFrameworks/sound/ofAVEngineSoundPlayer.h

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#ifdef OF_SOUND_PLAYER_AV_ENGINE
1414

1515
#include "ofSoundBaseTypes.h"
16-
//#include "ofEvents.h"
1716
class ofEventArgs;
1817

1918
// FIXME: some can be moved to .mm

libs/openFrameworks/sound/ofSoundBuffer.h

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
#pragma once
99

1010
#include <cstdint> // MARK: uint64_t msys2 only complain about this one it seems.
11-
//#include <cstddef>
1211
#include <vector>
1312
#include <string>
1413

libs/openFrameworks/sound/ofSoundPlayer.cpp

-5
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@
99
#define OF_SOUND_PLAYER_TYPE ofAVEngineSoundPlayer
1010
#endif
1111

12-
//#ifdef OF_SOUND_PLAYER_QUICKTIME
13-
//#include "ofQuicktimeSoundPlayer.h"
14-
//#define OF_SOUND_PLAYER_TYPE ofQuicktimeSoundPlayer
15-
//#endif
16-
1712
#ifdef OF_SOUND_PLAYER_FMOD
1813
#include "ofFmodSoundPlayer.h"
1914
#define OF_SOUND_PLAYER_TYPE ofFmodSoundPlayer

libs/openFrameworks/types/ofColor.h

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
#define GLM_FORCE_CTOR_INIT
44
#define GLM_ENABLE_EXPERIMENTAL
5-
// #include <glm/ext/scalar_common.hpp>
65
#include <glm/gtx/wrap.hpp>
76
#include <iostream>
87
#include <limits>

libs/openFrameworks/utils/ofConstants.h

-5
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ enum ofTargetPlatform{
9999
#elif defined( __APPLE_CC__)
100100
#define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
101101
#include <TargetConditionals.h>
102-
// #include <unistd.h>
103102

104103
#if (TARGET_OS_IPHONE || TARGET_OS_IOS || TARGET_OS_SIMULATOR || TARGET_IPHONE_SIMULATOR) && !TARGET_OS_TV && !TARGET_OS_WATCH
105104
#define TARGET_OF_IPHONE
@@ -191,7 +190,6 @@ enum ofTargetPlatform{
191190
#define __MACOSX_CORE__
192191
#endif
193192
#include "GL/glew.h"
194-
// #include <ApplicationServices/ApplicationServices.h>
195193

196194
#if defined(__LITTLE_ENDIAN__)
197195
#define TARGET_LITTLE_ENDIAN // intel cpu
@@ -204,8 +202,6 @@ enum ofTargetPlatform{
204202

205203
#ifdef TARGET_LINUX
206204

207-
// #include <unistd.h>
208-
209205
#ifdef TARGET_LINUX_ARM
210206
#ifdef TARGET_RASPBERRY_PI
211207
#include <bcm_host.h>
@@ -259,7 +255,6 @@ enum ofTargetPlatform{
259255

260256
#ifdef TARGET_ANDROID
261257
#include <typeinfo>
262-
// #include <unistd.h>
263258
#include <GLES/gl.h>
264259
#define GL_GLEXT_PROTOTYPES
265260
#include <GLES/glext.h>

libs/openFrameworks/utils/ofLog.h

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
// Only private ofFile file;
44
#include "ofFileUtils.h"
5-
//#include "ofUtils.h" //ofVAArgsToString
65
#include <sstream>
76

87

libs/openFrameworks/utils/ofUtils.h

-3
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@
1414
#include <chrono>
1515
#include <iomanip> //for setprecision
1616
#include <optional>
17-
18-
// #include <random>
1917
#include <sstream>
20-
// #include <type_traits>
2118

2219
#include "ofRandomDistributions.h"
2320
#include "ofRandomEngine.h"

libs/openFrameworks/video/ofDirectShowPlayer.h

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
//To allow for QuickTime video playback install the K-Lite Mega Codec Pack 10.2
44

55
#pragma once
6-
//#include "ofConstants.h"
76
#include "ofVideoBaseTypes.h"
87

98
template<typename T>

libs/openFrameworks/video/ofMediaFoundationPlayer.h

-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
#include <d3d11_1.h>
3535
#include <wrl.h>
3636
#include <wincodec.h>
37-
//#include "ofConstants.h"
3837
#include "ofVideoBaseTypes.h"
3938
#include "ofPixels.h" //mSrcPixels
4039
#include "ofFbo.h"

libs/openFrameworks/video/ofVideoPlayer.h

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
#include "ofTexture.h"
44
#include "ofVideoBaseTypes.h"
5-
//#include "ofConstants.h"
65

76
//---------------------------------------------
87
class ofVideoPlayer : public ofBaseVideoDraws {

libs/openFrameworksCompiled/project/makefileCommon/compile.core.mk

+11
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ ifdef PLATFORM_CXX
1313
CXX ?= $(PLATFORM_CXX)
1414
endif
1515

16+
1617
ifdef PROJECT_CC
1718
CC ?= $(PROJECT_CC)
1819
endif
@@ -21,6 +22,14 @@ ifdef PLATFORM_CC
2122
CC ?= $(PLATFORM_CC)
2223
endif
2324

25+
# ifdef PROJECT_LD
26+
# LD ?= $(PROJECT_LD)
27+
# endif
28+
29+
# ifdef PLATFORM_LD
30+
# LD = $(PLATFORM_LD)
31+
# endif
32+
2433
ifdef PROJECT_AR
2534
AR ?= $(PROJECT_AR)
2635
endif
@@ -29,6 +38,7 @@ ifdef PLATFORM_AR
2938
AR ?= $(PLATFORM_AR)
3039
endif
3140

41+
3242
ifdef PLATFORM_ARFLAGS
3343
ARFLAGS = $(PLATFORM_ARFLAGS)
3444
else
@@ -43,6 +53,7 @@ endif
4353

4454
$(info 💾 CXX = $(CXX))
4555
$(info 💾 CC = $(CC))
56+
# $(info 💾 LD = $(LD))
4657

4758
################################################################################
4859
# CFLAGS

libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk

+2-2
Original file line numberDiff line numberDiff line change
@@ -404,11 +404,11 @@ $(OF_PROJECT_OBJ_OUTPUT_PATH)libs/openFrameworks/%.o: $(OF_ROOT)/libs/openFramew
404404

405405
# Rules to link the project
406406
$(TARGET): $(OF_PROJECT_OBJS) $(OF_PROJECT_RESOURCES) $(OF_PROJECT_ADDONS_OBJS) $(OF_PROJECT_LIBS) $(TARGET_LIBS) $(OF_PROJECT_OBJ_OUTPUT_PATH).compiler_flags
407-
@echo 'Linking $(TARGET) for $(ABI_LIB_SUBPATH)'
407+
@echo '🔗 Linking $(TARGET) for $(ABI_LIB_SUBPATH)'
408408
@mkdir -p $(@D)
409+
# $(LD)
409410
$(CXX) -o $@ $(OPTIMIZATION_LDFLAGS) $(OF_PROJECT_OBJS) $(OF_PROJECT_RESOURCES) $(OF_PROJECT_ADDONS_OBJS) $(TARGET_LIBS) $(OF_PROJECT_LIBS) $(LDFLAGS) $(OF_CORE_LIBS)
410411

411-
412412
clean:
413413
@$(MAKE) CleanDebug
414414
@$(MAKE) CleanRelease

libs/openFrameworksCompiled/project/msys2/config.msys2.default.mk

+5-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
# core source code.
2626
##########################################################################################
2727

28-
MINGW_PREFIX ?= /mingw32
28+
#MINGW_PREFIX ?= /mingw32
29+
MINGW_PREFIX ?= /mingw64
2930
PLATFORM_CFLAGS += -std=gnu++17 -DUNICODE -D_UNICODE
3031
#PLATFORM_CFLAGS += -IC:/msys64/mingw32/include/gstreamer-1.0 -DOF_VIDEO_PLAYER_GSTREAMER
3132

@@ -34,7 +35,8 @@ CXX = $(MINGW_PREFIX)/bin/g++
3435

3536
FIND ?= /usr/bin/find
3637
PLATFORM_AR = $(MINGW_PREFIX)/bin/ar
37-
PLATFORM_LD = $(MINGW_PREFIX)/bin/ld
38+
#PLATFORM_LD = $(MINGW_PREFIX)/bin/ld
39+
PLATFORM_LD = /usr/bin/lld
3840
PLATFORM_RESOURCE_COMPILER = $(MINGW_PREFIX)/bin/windres
3941
PLATFORM_PKG_CONFIG = $(MINGW_PREFIX)/bin/pkgconf
4042

@@ -125,6 +127,7 @@ PLATFORM_CFLAGS += -fexceptions
125127
#PLATFORM_LDFLAGS += -arch i386
126128
PLATFORM_LDFLAGS += -lpthread
127129

130+
128131
ifeq ($(findstring MINGW64,$(MSYSTEM)),MINGW64)
129132
PLATFORM_LDFLAGS += -Wl,--disable-dynamicbase,--disable-high-entropy-va,--default-image-base-low
130133
endif

0 commit comments

Comments
 (0)