Building Ogre 3.0 for iOS on XCode 16.3 on macOS 15.4.1

Discussion area about developing with Ogre-Next (2.1, 2.2 and beyond)


Hotshot5000
OGRE Contributor
OGRE Contributor
Posts: 256
Joined: Thu Oct 14, 2010 12:30 pm
x 64

Building Ogre 3.0 for iOS on XCode 16.3 on macOS 15.4.1

Post by Hotshot5000 »

Trying to build ogre-next 3.0 branch I get:

CoreVideo/CVOpenGLESTexture.h not found

Code: Select all

Showing Recent Messages
CompileC /Users/sebastian/Downloads/ogre-next-ios/Ogre/ogre-next/build_iOS/build/RenderSystem_Metal.build/Debug-iphoneos/Objects-normal/arm64/OgreMetalView.o /Users/sebastian/Downloads/ogre-next-ios/Ogre/ogre-next/RenderSystems/Metal/src/Windowing/iOS/OgreMetalView.mm normal arm64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'RenderSystem_Metal' from project 'OGRE-Next')
    cd /Users/sebastian/Downloads/ogre-next-ios/Ogre/ogre-next
    
Using response file: /Users/sebastian/Downloads/ogre-next-ios/Ogre/ogre-next/build_iOS/build/RenderSystem_Metal.build/Debug-iphoneos/Objects-normal/arm64/af3fcb34312c57c0f52879cdce924b91-common-args.resp /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c++ -ivfsstatcache /Users/sebastian/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/iphoneos18.4-22E235-339d34bc69d7fc736c3220795c36f340.sdkstatcache -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fno-color-diagnostics -Wno-trigraphs -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-implicit-atomic-properties -Wno-objc-interface-ivars -Wno-arc-repeated-use-of-weak -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wshorten-64-to-32 -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -Wno-c++11-extensions -Wno-implicit-fallthrough -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -Winvalid-offsetof -Wno-sign-conversion -Wno-infinite-recursion -Wno-move -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-range-loop-analysis -Wno-semicolon-before-method-body -index-store-path /Users/sebastian/Library/Developer/Xcode/DerivedData/OGRE-Next-djyxobwkpgfveecrnvbhforxepww/Index.noindex/DataStore -Wall -Winit-self -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -Wshadow -Wimplicit-fallthrough -Winconsistent-missing-destructor-override -Wcomma -Wsign-conversion -Wconversion @/Users/sebastian/Downloads/ogre-next-ios/Ogre/ogre-next/build_iOS/build/RenderSystem_Metal.build/Debug-iphoneos/Objects-normal/arm64/af3fcb34312c57c0f52879cdce924b91-common-args.resp -MMD -MT dependencies -MF /Users/sebastian/Downloads/ogre-next-ios/Ogre/ogre-next/build_iOS/build/RenderSystem_Metal.build/Debug-iphoneos/Objects-normal/arm64/OgreMetalView.d --serialize-diagnostics /Users/sebastian/Downloads/ogre-next-ios/Ogre/ogre-next/build_iOS/build/RenderSystem_Metal.build/Debug-iphoneos/Objects-normal/arm64/OgreMetalView.dia -c /Users/sebastian/Downloads/ogre-next-ios/Ogre/ogre-next/RenderSystems/Metal/src/Windowing/iOS/OgreMetalView.mm -o /Users/sebastian/Downloads/ogre-next-ios/Ogre/ogre-next/build_iOS/build/RenderSystem_Metal.build/Debug-iphoneos/Objects-normal/arm64/OgreMetalView.o -index-unit-output-path /RenderSystem_Metal.build/Debug-iphoneos/Objects-normal/arm64/OgreMetalView.o In file included from /Users/sebastian/Downloads/ogre-next-ios/Ogre/ogre-next/RenderSystems/Metal/src/Windowing/iOS/OgreMetalView.mm:29: In file included from /Users/sebastian/Downloads/ogre-next-ios/Ogre/ogre-next/RenderSystems/Metal/include/Windowing/iOS/OgreMetalView.h:34: In file included from /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:9: In file included from /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKitCore.h:13: In file included from /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIColor.h:13: In file included from /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.h:13: In file included from /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIImage.h:15: /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CoreVideo.h:41:10: fatal error: 'CoreVideo/CVOpenGLESTexture.h' file not found 41 | #include <CoreVideo/CVOpenGLESTexture.h> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CoreVideo.h:41:10: note: did not find header 'CVOpenGLESTexture.h' in framework 'CoreVideo' (loaded from '/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks') 2 warnings and 1 error generated. /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CoreVideo.h:41:10: 'CoreVideo/CVOpenGLESTexture.h' file not found

I tried manually adding the CoreVideo framework to the project but that didn't help. Probably some recent changes on xcode 16.3 we also had the problem new clang has no std::char_traits<ushort> specialization, and std::char_traits<T> is undefined. Both Ogre and client code should migrate to C++11 std::u16string

Hotshot5000
OGRE Contributor
OGRE Contributor
Posts: 256
Joined: Thu Oct 14, 2010 12:30 pm
x 64

Re: Building Ogre 3.0 for iOS on XCode 16.3 on macOS 15.4.1

Post by Hotshot5000 »

Tried again from scratch. Using build_ogre_scripts_v3-0/build_ogre_iOS.sh. Not even building ogredeps works anymore:

Code: Select all

Showing Recent Messages
CompileC /Users/sebastian/Downloads/build_ogre_scripts-v3-0/Ogre/ogre-next-deps/build_iOS/build/zlib.build/Debug-iphoneos/Objects-normal/arm64/zutil.o /Users/sebastian/Downloads/build_ogre_scripts-v3-0/Ogre/ogre-next-deps/src/zlib/zutil.c normal arm64 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'zlib' from project 'OGREDEPS')
    cd /Users/sebastian/Downloads/build_ogre_scripts-v3-0/Ogre/ogre-next-deps
    
Using response file: /Users/sebastian/Downloads/build_ogre_scripts-v3-0/Ogre/ogre-next-deps/build_iOS/build/zlib.build/Debug-iphoneos/Objects-normal/arm64/7187679823f38a2a940e0043cdf9d637-common-args.resp /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -ivfsstatcache /Users/sebastian/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/iphoneos18.4-22E235-339d34bc69d7fc736c3220795c36f340.sdkstatcache -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fno-color-diagnostics -Wno-trigraphs -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-implicit-fallthrough -fstrict-aliasing -Wdeprecated-declarations -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-semicolon-before-method-body -index-store-path /Users/sebastian/Library/Developer/Xcode/DerivedData/OGREDEPS-bhoebarwptvgfwhepxikwnbfoyvj/Index.noindex/DataStore @/Users/sebastian/Downloads/build_ogre_scripts-v3-0/Ogre/ogre-next-deps/build_iOS/build/zlib.build/Debug-iphoneos/Objects-normal/arm64/7187679823f38a2a940e0043cdf9d637-common-args.resp -MMD -MT dependencies -MF /Users/sebastian/Downloads/build_ogre_scripts-v3-0/Ogre/ogre-next-deps/build_iOS/build/zlib.build/Debug-iphoneos/Objects-normal/arm64/zutil.d --serialize-diagnostics /Users/sebastian/Downloads/build_ogre_scripts-v3-0/Ogre/ogre-next-deps/build_iOS/build/zlib.build/Debug-iphoneos/Objects-normal/arm64/zutil.dia -c /Users/sebastian/Downloads/build_ogre_scripts-v3-0/Ogre/ogre-next-deps/src/zlib/zutil.c -o /Users/sebastian/Downloads/build_ogre_scripts-v3-0/Ogre/ogre-next-deps/build_iOS/build/zlib.build/Debug-iphoneos/Objects-normal/arm64/zutil.o -index-unit-output-path /zlib.build/Debug-iphoneos/Objects-normal/arm64/zutil.o In file included from /Users/sebastian/Downloads/build_ogre_scripts-v3-0/Ogre/ogre-next-deps/src/zlib/zutil.c:8: /Users/sebastian/Downloads/build_ogre_scripts-v3-0/Ogre/ogre-next-deps/src/zlib/zutil.h:170:11: warning: 'OS_CODE' macro redefined [-Wmacro-redefined] 170 | # define OS_CODE 19 | ^ /Users/sebastian/Downloads/build_ogre_scripts-v3-0/Ogre/ogre-next-deps/src/zlib/zutil.h:141:11: note: previous definition is here 141 | # define OS_CODE 7 | ^ In file included from /Users/sebastian/Downloads/build_ogre_scripts-v3-0/Ogre/ogre-next-deps/src/zlib/zutil.c:10: In file included from /Users/sebastian/Downloads/build_ogre_scripts-v3-0/Ogre/ogre-next-deps/src/zlib/gzguts.h:21: In file included from /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/usr/include/stdio.h:61: /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/usr/include/_stdio.h:318:7: error: expected identifier or '(' 318 | FILE *fdopen(int, const char *) __DARWIN_ALIAS_STARTING(__MAC_10_6, __IPHONE_2_0, __DARWIN_ALIAS(fdopen)); | ^ In file included from /Users/sebastian/Downloads/build_ogre_scripts-v3-0/Ogre/ogre-next-deps/src/zlib/zutil.c:8: /Users/sebastian/Downloads/build_ogre_scripts-v3-0/Ogre/ogre-next-deps/src/zlib/zutil.h:147:33: note: expanded from macro 'fdopen' 147 | # define fdopen(fd,mode) NULL /* No fdopen() */ | ^ In file included from /Users/sebastian/Downloads/build_ogre_scripts-v3-0/Ogre/ogre-next-deps/src/zlib/zutil.c:8: In file included from /Users/sebastian/Downloads/build_ogre_scripts-v3-0/Ogre/ogre-next-deps/src/zlib/zutil.h:22: In file included from /Users/sebastian/Downloads/build_ogre_scripts-v3-0/Ogre/ogre-next-deps/src/zlib/zlib.h:34: In file included from /Users/sebastian/Downloads/build_ogre_scripts-v3-0/Ogre/ogre-next-deps/src/zlib/zconf.h:252: In file included from /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/stddef.h:113: /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/__stddef_null.h:26:16: note: expanded from macro 'NULL' 26 | #define NULL ((void*)0) | ^ In file included from /Users/sebastian/Downloads/build_ogre_scripts-v3-0/Ogre/ogre-next-deps/src/zlib/zutil.c:10: In file included from /Users/sebastian/Downloads/build_ogre_scripts-v3-0/Ogre/ogre-next-deps/src/zlib/gzguts.h:21: In file included from /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/usr/include/stdio.h:61: /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/usr/include/_stdio.h:318:7: error: expected ')' In file included from /Users/sebastian/Downloads/build_ogre_scripts-v3-0/Ogre/ogre-next-deps/src/zlib/zutil.c:8: /Users/sebastian/Downloads/build_ogre_scripts-v3-0/Ogre/ogre-next-deps/src/zlib/zutil.h:147:33: note: expanded from macro 'fdopen' 147 | # define fdopen(fd,mode) NULL /* No fdopen() */ | ^ In file included from /Users/sebastian/Downloads/build_ogre_scripts-v3-0/Ogre/ogre-next-deps/src/zlib/zutil.c:8: In file included from /Users/sebastian/Downloads/build_ogre_scripts-v3-0/Ogre/ogre-next-deps/src/zlib/zutil.h:22: In file included from /Users/sebastian/Downloads/build_ogre_scripts-v3-0/Ogre/ogre-next-deps/src/zlib/zlib.h:34: In file included from /Users/sebastian/Downloads/build_ogre_scripts-v3-0/Ogre/ogre-next-deps/src/zlib/zconf.h:252: In file included from /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/stddef.h:113: /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/__stddef_null.h:26:16: note: expanded from macro 'NULL' 26 | #define NULL ((void*)0) | ^ In file included from /Users/sebastian/Downloads/build_ogre_scripts-v3-0/Ogre/ogre-next-deps/src/zlib/zutil.c:10: In file included from /Users/sebastian/Downloads/build_ogre_scripts-v3-0/Ogre/ogre-next-deps/src/zlib/gzguts.h:21: In file included from /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/usr/include/stdio.h:61: /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/usr/include/_stdio.h:318:7: note: to match this '(' In file included from /Users/sebastian/Downloads/build_ogre_scripts-v3-0/Ogre/ogre-next-deps/src/zlib/zutil.c:8: /Users/sebastian/Downloads/build_ogre_scripts-v3-0/Ogre/ogre-next-deps/src/zlib/zutil.h:147:33: note: expanded from macro 'fdopen' 147 | # define fdopen(fd,mode) NULL /* No fdopen() */ | ^ In file included from /Users/sebastian/Downloads/build_ogre_scripts-v3-0/Ogre/ogre-next-deps/src/zlib/zutil.c:8: In file included from /Users/sebastian/Downloads/build_ogre_scripts-v3-0/Ogre/ogre-next-deps/src/zlib/zutil.h:22: In file included from /Users/sebastian/Downloads/build_ogre_scripts-v3-0/Ogre/ogre-next-deps/src/zlib/zlib.h:34: In file included from /Users/sebastian/Downloads/build_ogre_scripts-v3-0/Ogre/ogre-next-deps/src/zlib/zconf.h:252: In file included from /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/stddef.h:113: /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/__stddef_null.h:26:15: note: expanded from macro 'NULL' 26 | #define NULL ((void*)0) | ^ In file included from /Users/sebastian/Downloads/build_ogre_scripts-v3-0/Ogre/ogre-next-deps/src/zlib/zutil.c:10: In file included from /Users/sebastian/Downloads/build_ogre_scripts-v3-0/Ogre/ogre-next-deps/src/zlib/gzguts.h:21: In file included from /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/usr/include/stdio.h:61: /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/usr/include/_stdio.h:318:7: error: expected ')' 318 | FILE *fdopen(int, const char *) __DARWIN_ALIAS_STARTING(__MAC_10_6, __IPHONE_2_0, __DARWIN_ALIAS(fdopen)); | ^ In file included from /Users/sebastian/Downloads/build_ogre_scripts-v3-0/Ogre/ogre-next-deps/src/zlib/zutil.c:8: /Users/sebastian/Downloads/build_ogre_scripts-v3-0/Ogre/ogre-next-deps/src/zlib/zutil.h:147:33: note: expanded from macro 'fdopen' 147 | # define fdopen(fd,mode) NULL /* No fdopen() */ | ^ In file included from /Users/sebastian/Downloads/build_ogre_scripts-v3-0/Ogre/ogre-next-deps/src/zlib/zutil.c:8: In file included from /Users/sebastian/Downloads/build_ogre_scripts-v3-0/Ogre/ogre-next-deps/src/zlib/zutil.h:22: In file included from /Users/sebastian/Downloads/build_ogre_scripts-v3-0/Ogre/ogre-next-deps/src/zlib/zlib.h:34: In file included from /Users/sebastian/Downloads/build_ogre_scripts-v3-0/Ogre/ogre-next-deps/src/zlib/zconf.h:252: In file included from /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/stddef.h:113: /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/__stddef_null.h:26:22: note: expanded from macro 'NULL' 26 | #define NULL ((void*)0) | ^ In file included from /Users/sebastian/Downloads/build_ogre_scripts-v3-0/Ogre/ogre-next-deps/src/zlib/zutil.c:10: In file included from /Users/sebastian/Downloads/build_ogre_scripts-v3-0/Ogre/ogre-next-deps/src/zlib/gzguts.h:21: In file included from /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/usr/include/stdio.h:61: /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/usr/include/_stdio.h:318:7: note: to match this '(' In file included from /Users/sebastian/Downloads/build_ogre_scripts-v3-0/Ogre/ogre-next-deps/src/zlib/zutil.c:8: /Users/sebastian/Downloads/build_ogre_scripts-v3-0/Ogre/ogre-next-deps/src/zlib/zutil.h:147:33: note: expanded from macro 'fdopen' 147 | # define fdopen(fd,mode) NULL /* No fdopen() */ | ^ In file included from /Users/sebastian/Downloads/build_ogre_scripts-v3-0/Ogre/ogre-next-deps/src/zlib/zutil.c:8: In file included from /Users/sebastian/Downloads/build_ogre_scripts-v3-0/Ogre/ogre-next-deps/src/zlib/zutil.h:22: In file included from /Users/sebastian/Downloads/build_ogre_scripts-v3-0/Ogre/ogre-next-deps/src/zlib/zlib.h:34: In file included from /Users/sebastian/Downloads/build_ogre_scripts-v3-0/Ogre/ogre-next-deps/src/zlib/zconf.h:252: In file included from /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/stddef.h:113: /Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/__stddef_null.h:26:14: note: expanded from macro 'NULL' 26 | #define NULL ((void*)0) | ^ 1 warning and 3 errors generated. /Users/sebastian/Downloads/build_ogre_scripts-v3-0/Ogre/ogre-next-deps/src/zlib/zutil.h:170:11: 'OS_CODE' macro redefined /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/usr/include/_stdio.h:318:7: Expected identifier or '(' /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/usr/include/_stdio.h:318:7: Expected ')' /Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk/usr/include/_stdio.h:318:7: Expected ')'

Looks like we are not the only ones hit by the new Clang: Bullet zlib issue

Hotshot5000
OGRE Contributor
OGRE Contributor
Posts: 256
Joined: Thu Oct 14, 2010 12:30 pm
x 64

Re: Building Ogre 3.0 for iOS on XCode 16.3 on macOS 15.4.1

Post by Hotshot5000 »

I went full code ninja and hacked a stupid solution just to get over the ogredeps no longer compiling. Patch attached here as I don't think this should be merged anyway.

You do not have the required permissions to view the files attached to this post.
Hotshot5000
OGRE Contributor
OGRE Contributor
Posts: 256
Joined: Thu Oct 14, 2010 12:30 pm
x 64

Re: Building Ogre 3.0 for iOS on XCode 16.3 on macOS 15.4.1

Post by Hotshot5000 »

Forgot to mention, even though ogredeps now compiles under xcode 16.3 the initial problem still persists as CoreVideo/CVOpenGLESTexture.h not found. When compiling Ogre2-1 even though UIKit.h is also included in iOS/OgreMetalView.h, it is able to find the CoreVideo/CVOpenGLESTexture.h. At first glance the {include_dirs} look similar but I will dig deeper.

Apple has made some big changes in 16.3 it seems changing the clang compiler: Xcode 16.3 release notes.

Hotshot5000
OGRE Contributor
OGRE Contributor
Posts: 256
Joined: Thu Oct 14, 2010 12:30 pm
x 64

Re: Building Ogre 3.0 for iOS on XCode 16.3 on macOS 15.4.1

Post by Hotshot5000 »

It looks like for Ogre3-0 Metal rendersystem xcode chooses to use MacOS sdk instead of the iOS 18 sdk. So CoreVideo/CVOpenGLESTexture.h does not exist as the equivalent for macOS sdk is CoreVideo/CVOpenGLTexture.h. BaseSDK selected in xcode is iOS so I don't understand why it goes after the mac os sdk.

Hotshot5000
OGRE Contributor
OGRE Contributor
Posts: 256
Joined: Thu Oct 14, 2010 12:30 pm
x 64

Re: Building Ogre 3.0 for iOS on XCode 16.3 on macOS 15.4.1

Post by Hotshot5000 »

Finally found the issue:

cmake -D OGRE_CONFIG_THREAD_PROVIDER=0 \
-D OGRE_CONFIG_THREADS=0 \
-D OGRE_BUILD_COMPONENT_SCENE_FORMAT=0 \
-D OGRE_BUILD_SAMPLES2=0 \
-D OGRE_BUILD_TESTS=0 \
-D OGRE_BUILD_RENDERSYSTEM_GL3PLUS=0 \
-D OGRE_BUILD_LIBS_AS_FRAMEWORKS=0 \
-D OGRE_STATIC=1 \
-D OGRE_BUILD_PLATFORM_APPLE_IOS=1 \
-G Xcode ../

GL3Plus rendersystem is disabled but that doesn't mean that the OPENGL_GLU_INCLUDE_DIR OPENGL_INCLUDE_DIR OPENGL_gl_LIBRARY and OPENGL_glu_LIBRARY don't get populated. Once these are populated automatically in the check in CoreVideo.h it does:

Code: Select all

#if __has_include(<OpenGLES/gltypes.h>)
#include <CoreVideo/CVOpenGLESTexture.h>
#include <CoreVideo/CVOpenGLESTextureCache.h>
#endif

And since the gltypes.h are included from the include dirs it includes these also, which don't exist in the (new?) macOS SDK.

So the build script should have:

cmake -D OGRE_CONFIG_THREAD_PROVIDER=0 \
-D OGRE_CONFIG_THREADS=0 \
-D OGRE_BUILD_COMPONENT_SCENE_FORMAT=0 \
-D OGRE_BUILD_SAMPLES2=0 \
-D OGRE_BUILD_TESTS=0 \
-D OGRE_BUILD_RENDERSYSTEM_GL3PLUS=0 \
-D OGRE_BUILD_LIBS_AS_FRAMEWORKS=0 \
-D OGRE_STATIC=1 \
-D OGRE_BUILD_PLATFORM_APPLE_IOS=1 \
-D OPENGL_GLU_INCLUDE_DIR="" \
-D OPENGL_INCLUDE_DIR="" \
-D OPENGL_gl_LIBRARY="" \
-D OPENGL_glu_LIBRARY="" \
-G Xcode ../

You do not have the required permissions to view the files attached to this post.