OpenXcom Forum
OpenXcom Forks => OpenXcom Extended (OXCE) => OXCE Builds & Ports => Topic started by: Drago888 on October 15, 2020, 02:30:22 pm
-
Hi,
Does anybody have a compiled version of yaml.cpp that is working and compatible with oxce?
Tried compiling it but always hit unreolved external dependency error when linking oxce.
I am using vs2019 and requires x64 as changing the images in cutscenes, background (not yet done) and ufopedia (not yet done) to resolution 2560 x 1600.
Encounter memory allocation error if changed all cutscenes images.
Suspect due to memory exceeding (i believe is 2gb) for win32.
Thank you
-
x64 deps attached.
PS: I'm 99.9% sure your issue is not the 4gb win32 limit
-
Thanks. Will investigate more.
-
Thanks Meridian for his help and guidance.
Attached is my dep files for both win32 and x64. (Both working on my local copy)
And the issue is caused by the program using 5GB to load the cutscenes. (Up to 2GB to load all the images and 3GB to upsize the fonts to 8x X-axis, 8x Y-axis).
Will rethink my strategy to use two sets of fonts (big and small) for each size instead of upscaling every couple fonts per slide.
Thanks again for your sharing your expertise
EDIT - Do not use this attachment as does not works for debug. Use the attachment in the below post instead
-
Can anybody guide me on how to create the yaml-cppd.lib and yaml-cppd.dll files for debug?
As getting the below error when debugging in both versions
Severity Code Description Project File Line Suppression State
Error LNK1104 cannot open file 'yaml-cppd.lib' OpenXcom D:\oxce\OpenXcom\src\LINK 1
Thanks
-
Take the ones from the deps_debug/libs/x64 folder and rename them.
-
Thanks Meridian for guidance and pointing to correct direction.
Able to compile and link but running hit read access violation when debugging. (Release version no issue).
This is caused by cannot use 1 set of libraries for both debug and release.
Will try to figure out compiling using older yaml-cpp version based on version v1.6.3 makefile.
-
For those who encounter read access issues like me, please use the attachment in this post for the dependencies.
However, there is some changes to the VS 2019 solution required.
Change for all the configuration (Release - Win32, Debug - Win32, Release - x64, Debug - x64)
1. Linker -> General -> Additional Library Directories
Change $(ProjectDir)..\deps\lib\$(Platform) to $(ProjectDir)..\deps\lib\$(Platform)\$(Configuration)
2. Build Events -> Post-Build Event -> Command Line
Change copy /y "$(ProjectDir)..\deps\lib\$(Platform)\*.dll" "$(ProjectDir)..\bin\$(Platform)\"
to copy /y "$(ProjectDir)..\deps\lib\$(Platform)\$(Configuration)\*.dll" "$(ProjectDir)..\bin\$(Platform)\$(Configuration)\"