Closed naymapl closed 2 days ago
ld: warning: ignoring file '/Library/Frameworks/OpenAL.framework/Versions/A/OpenAL': fat file missing arch 'arm64', file has 'i386,x86_64'
Looks like your trying to link x86 code while building arm64 code. This likely causes the Undefined Symbols error later.
I have no experience with the macOS platform but you probably need the OpenAL library for arm64 from somewhere or explicitly tell CMake during configuration where to find the arm64 variant of OpenAL.
(Although it seems weird that on an arm64 machine you even have x86 libraries at all not sure)
Ok - I delete x86 library and build fine. But when I try to open xr_3da file I always got error. Do you have any idea what is wrong?
! Couldn't create surface from image: Parameter 'src' is invalid
OpenXRay Release Master Gold build 9188, Apr 4 2024 (Apple ARM 64-bit, shared)
Custom build from commit[9f2e98c5421eee793c2ec9481c1460ed22947470] branch[dev]
command line
* CPU features: ARMSIMD, NEON
* CPU threads: 8
Initializing File System...
$fs_root$ = /Users/naymapl/Library/Application Support/GSC Game World/S.T.A.L.K.E.R. - Call of Pripyat/
using fs-ltx fsgame.ltx
FS: 38991 files cached 32 archives, 11776Kb memory used.
Init FileSystem 0.247497 sec
-----loading \Users\naymapl\Library\Application Support\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\gamedata\configs\system.ltx
-----loading \Users\naymapl\Library\Application Support\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\gamedata\configs\system.ltx
Starting INPUT device...
Loading module: xrRender_GL
Available render modes[1]:
renderer_rgl
Executing config-script "user.ltx"...
! Cannot open script file [user.ltx]
Selected renderer: renderer_rgl
Loading module: xrGame
Initializing Engine...
SOUND: OpenAL: system default sound device name is LG ULTRAFINE (eqMac)
Executing config-script "\Users\naymapl\Library\Application Support\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\gamedata\configs\default_controls.ltx"...
[\Users\naymapl\Library\Application Support\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\gamedata\configs\default_controls.ltx] successfully loaded.
Executing config-script "user.ltx"...
! Cannot open script file [user.ltx]
SOUND: Selected device is LG ULTRAFINE (eqMac)
Starting RENDER device...
* GPU vendor: [Apple] device: [Apple M1]
* GPU OpenGL version: 4.1 Metal - 88
* GPU OpenGL shading language version: 4.10
* GPU OpenGL VTF units: [16] CTI units: [80]
* DVB created: 4096K
* DIB created: 512K
! Renderer doesn't support blender 'effects\shadow_world'
FATAL ERROR
[error] Expression : skinh
[error] Function : CompatibilityCheck
[error] File : /Users/naymapl/xray-16/src/Layers/xrRender/ResourceManager.cpp
[error] Line : 274
[error] Description : Can't open shader
[error] Arguments : skin.h
stack trace:
xrDebug::GatherInfo(char*, unsigned long, ErrorLocation const&, char const*, char const*, char const*, char const*)
xrDebug::Fail(bool&, ErrorLocation const&, char const*, char const*, char const*, char const*)
CResourceManager::CompatibilityCheck()
D3DXRenderBase::OnDeviceCreate(char const*)
CRenderDevice::Create()
CApplication::CApplication(char const*)
6 xr_3da 0x0000000102367c24 main + 256
7 dyld 0x00000001987fa0e0 start + 2360
[1] + 7644 trace trap /Volumes/Macintosh\ HD/Users/naymapl/xray-16/bin/arm64/Release/xr_3da
Ok - I delete x86 library and build fine. But when I try to open xr_3da file I always got error. Do you have any idea what is wrong?
! Couldn't create surface from image: Parameter 'src' is invalid OpenXRay Release Master Gold build 9188, Apr 4 2024 (Apple ARM 64-bit, shared) Custom build from commit[9f2e98c5421eee793c2ec9481c1460ed22947470] branch[dev] command line * CPU features: ARMSIMD, NEON * CPU threads: 8 Initializing File System... $fs_root$ = /Users/naymapl/Library/Application Support/GSC Game World/S.T.A.L.K.E.R. - Call of Pripyat/ using fs-ltx fsgame.ltx FS: 38991 files cached 32 archives, 11776Kb memory used. Init FileSystem 0.247497 sec -----loading \Users\naymapl\Library\Application Support\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\gamedata\configs\system.ltx -----loading \Users\naymapl\Library\Application Support\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\gamedata\configs\system.ltx Starting INPUT device... Loading module: xrRender_GL Available render modes[1]: renderer_rgl Executing config-script "user.ltx"... ! Cannot open script file [user.ltx] Selected renderer: renderer_rgl Loading module: xrGame Initializing Engine... SOUND: OpenAL: system default sound device name is LG ULTRAFINE (eqMac) Executing config-script "\Users\naymapl\Library\Application Support\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\gamedata\configs\default_controls.ltx"... [\Users\naymapl\Library\Application Support\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\gamedata\configs\default_controls.ltx] successfully loaded. Executing config-script "user.ltx"... ! Cannot open script file [user.ltx] SOUND: Selected device is LG ULTRAFINE (eqMac) Starting RENDER device... * GPU vendor: [Apple] device: [Apple M1] * GPU OpenGL version: 4.1 Metal - 88 * GPU OpenGL shading language version: 4.10 * GPU OpenGL VTF units: [16] CTI units: [80] * DVB created: 4096K * DIB created: 512K ! Renderer doesn't support blender 'effects\shadow_world' FATAL ERROR [error] Expression : skinh [error] Function : CompatibilityCheck [error] File : /Users/naymapl/xray-16/src/Layers/xrRender/ResourceManager.cpp [error] Line : 274 [error] Description : Can't open shader [error] Arguments : skin.h stack trace: xrDebug::GatherInfo(char*, unsigned long, ErrorLocation const&, char const*, char const*, char const*, char const*) xrDebug::Fail(bool&, ErrorLocation const&, char const*, char const*, char const*, char const*) CResourceManager::CompatibilityCheck() D3DXRenderBase::OnDeviceCreate(char const*) CRenderDevice::Create() CApplication::CApplication(char const*) 6 xr_3da 0x0000000102367c24 main + 256 7 dyld 0x00000001987fa0e0 start + 2360 [1] + 7644 trace trap /Volumes/Macintosh\ HD/Users/naymapl/xray-16/bin/arm64/Release/xr_3da
You didn't copied necessary gamedata files. Follow the portable installation step in Linux build instructions.
Now I have missing file system.ltx
in folder \Release\gamedata\configs\system.ltx
.
You need to install game and it's files correctly. We only provide few modified files, but we don't provide entire game assets.
I copy all folders fom GOG version of a game like on the instruction. Problem is somewhere else. I copy the gamedata
directory and fsgame.ltx
file from xray-16/res
to game folder. But there is no system.ltx
file.
system.ltx is packed inside game archives. So, it seems that something is wrong with the installation – engine can't find archives. Unfortunately, I don't have Mac and we don't have macOS-specific installation steps in our wiki (it should be same as for Linux, but there may be small exceptions). You probably need to find out this yourself :(
@naymapl current dev branch builds and runs for me on macOS 14.4.1. Make sure you copied the required directories from your unpacked COP install (levels, localization, mp, patches, resources) into /Users/[your username]/Library/Application Support/GSC Game World/S.T.A.L.K.E.R. - Call of Pripyat.
I think the OP fixed this, according to Discord. It was an issue with their setup
Can probably be closed.
Closed due to stale.
Hello. I try to build macOS version form arm64 but always got error aat 66%. Do you have any idea what is wrong? Thank you so much for any help.