Skip to content

References

alef edited this page Dec 3, 2022 · 1 revision

Standard Build - Windows Tiles Sounds x64 MSVC

arch: x64
os: windows-2019
mxe: none
ext: zip
content: application/zip
sound: 1
cat >VERSION.txt <<EOL
build type: windows-tiles-sounds-x64-msvc
build number: 2022-08-27-0708
commit sha: aa80ff7838c77ecbaae42d18a74bc207e3bd90cd
commit url: https://github.com/CleverRaven/Cataclysm-DDA/commit/aa80ff7838c77ecbaae42d18a74bc207e3bd90cd
EOL
vcpkg integrate install
c:
cd \Program Files\Microsoft Visual Studio\2022\Community\Msbuild\Current\Bin\amd64
c:msbuild.exe -m -p:Configuration=Release -p:Platform=x64 "-target:Cataclysm-vcpkg-static;JsonFormatter-vcpkg-static" msvc-full-features\Cataclysm-vcpkg-static.sln

Or

cmake -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_MANIFEST_DIR=msvc-full-features -DTILES=ON -DCURSES=OFF -DSOUND=ON -DRELEASE=1 -B out/build

Linux Ubuntu 20.04

From GHA Windows Tiles Sound x64

sudo apt-get install gettext
curl -L -o mxe-x86_64.tar.xz https://github.com/BrettDong/MXE-GCC/releases/download/mxe-gcc-11.2/mxe-x86_64.tar.xz
curl -L -o mxe-x86_64.tar.xz.sha256 https://github.com/BrettDong/MXE-GCC/releases/download/mxe-gcc-11.2/mxe-x86_64.tar.xz.sha256
shasum -a 256 -c ./mxe-x86_64.tar.xz.sha256
sudo tar xJf mxe-x86_64.tar.xz -C /opt
curl -L -o libbacktrace-x86_64-w64-mingw32.tar.gz https://github.com/Qrox/libbacktrace/releases/download/2020-01-03/libbacktrace-x86_64-w64-mingw32.tar.gz
shasum -a 256 -c ./build-scripts/libbacktrace-x86_64-w64-mingw32-sha256
sudo tar -xzf libbacktrace-x86_64-w64-mingw32.tar.gz --exclude=LICENSE -C /opt/mxe/usr/x86_64-w64-mingw32.static.gcc11
cat >VERSION.txt <<EOL
  build type: windows-tiles-sounds-x64
  build number: 2022-11-14-0620
  commit sha: fbfd667adb146f64f0c5699b68f6f05103
  commit url: https://github.com/CleverRaven/Cataclysm-DDA/commit/fbfdadb146f64f0c5699b68f6f0382a455103
EOL
make -j$((`nproc`+0)) CROSS=/opt/mxe/usr/bin/x86_64-w64-mingw32.static.gcc11- TILES=1 SOUND=1 RELEASE=1 LOCALIZE=1 LANGUAGES=all BACKTRACE=1 PCH=0 bindist
sudo apt-get update
sudo apt-get install cmake ninja-build curl zip unzip tar mingw-w64 doxygenmingw-w64 gettext g++ pkg-config
cd build
cmake -DBACKTRACE=ON -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=MinSizeRel -DTILES=1 -DSOUND=1 ..
make

SDL Versions

CMake says:
SDL2* >= 2.0.0

Android says:
SDL2 2.0.8
SDL2_image 2.0.3
SDL2_mixer 2.0.2
SDL2_ttf 2.0.14

VCPKG
Aug 13 on GH
  * brotli[core]:x64-mingw-static -> 1.0.9#3
  * bzip2[core]:x64-mingw-static -> 1.0.8#2
  * freetype[brotli,bzip2,core,png,zlib]:x64-mingw-static -> 2.12.1#1
  * libflac[core]:x64-mingw-static -> 1.3.4#1
  * libjpeg-turbo[core]:x64-mingw-static -> 2.1.3#3
  * libmodplug[core]:x64-mingw-static -> 0.8.9.0#10
  * libogg[core]:x64-mingw-static -> 1.3.5
  * libpng[core]:x64-mingw-static -> 1.6.37#18
  * libvorbis[core]:x64-mingw-static -> 1.3.7#2
  * mpg123[core]:x64-mingw-static -> 1.29.3
    sdl2[core]:x64-mingw-static -> 2.0.22#2
    sdl2-image[core,libjpeg-turbo]:x64-mingw-static -> 2.0.5#6
    sdl2-mixer[core,libflac,libmodplug,libvorbis,mpg123,nativemidi]:x64-mingw-static -> 2.6.1#1
    sdl2-ttf[core]:x64-mingw-static -> 2.20.0
  * vcpkg-cmake[core]:x64-linux -> 2022-07-18
  * vcpkg-cmake-config[core]:x64-linux -> 2022-02-06#1
  * yasm[core,tools]:x64-linux -> 1.3.0#5
  * yasm-tool-helper[core]:x64-mingw-static -> 2020-03-11#1
  * zlib[core]:x64-mingw-static -> 1.2.12#1

SDL Packages Naming in VCPKG
SDL_* || SDL-*

if(VCPK_MODULE_MODE)
SDL2 find_package() name changes when using VCPKG.

     sdl2[core]:x64-mingw-static -> 2.0.22#1
     sdl2-image[core,libjpeg-turbo]:x64-mingw-static -> 2.0.5#6
     sdl2-mixer[core,libflac,libmodplug,libvorbis,mpg123,nativemidi]:x64-mingw-static -> 2.6.1
     sdl2-ttf[core]:x64-mingw-static -> 2.0.15#5

 sdl2 provides CMake targets:
     # this is heuristically generated, and may not be correct
     find_package(SDL2 CONFIG REQUIRED)
     target_link_libraries(main PRIVATE SDL2::SDL2 SDL2::SDL2main SDL2::SDL2-static)
 
 sdl2-image provides CMake targets:
     # this is heuristically generated, and may not be correct
     find_package(sdl2-image CONFIG REQUIRED)
     target_link_libraries(main PRIVATE SDL2::SDL2_image)
 
 sdl2-mixer provides CMake targets:
     # this is heuristically generated, and may not be correct
     find_package(SDL2_mixer CONFIG REQUIRED)
     # note: 6 additional targets are not displayed.
     target_link_libraries(main PRIVATE FLAC::FLAC MPG123::mpg123 libxmp::libxmp tremor::tremor)
 
 sdl2-ttf provides CMake targets:
     # this is heuristically generated, and may not be correct
     find_package(sdl2-ttf CONFIG REQUIRED)
     target_link_libraries(main PRIVATE SDL2::SDL2_ttf)

✔ CMakeModules

CheckLibraryExists since v2.8.2
FindCurses since v3.21.0
FindPackageHandleStandardArgs since v3.1.0
FindPackageMessage since v3.0.0
(keep FindIconv)
(keep FindLibintl)
No FindSDL2.cmake, but FindSDL.cmake

Windows on Linux. Ubuntu

Fresh 22.04 from Microsoft App Store:
sudo apt install cmake ninja-build mingw-w64 gettext curl zip unzip tar g++ pkg-config
cd /usr/local/share
sudo mkdir vcpkg
sudo chown <user> vcpkg
git clone [email protected]:microsoft/vcpkg.git

GitHub Actions Environment Windows 20220410

ALLUSERSPROFILE=C:\ProgramData
ANDROID_HOME=C:\Android\android-sdk
ANDROID_NDK=C:\Android\android-sdk\ndk\25.0.8775105
ANDROID_NDK_HOME=C:\Android\android-sdk\ndk\25.0.8775105
ANDROID_NDK_LATEST_HOME=C:\Android\android-sdk\ndk\25.0.8775105
ANDROID_NDK_ROOT=C:\Android\android-sdk\ndk\25.0.8775105
ANDROID_SDK_ROOT=C:\Android\android-sdk
ANT_HOME=C:\ProgramData\chocolatey\lib\ant\tools\apache-ant-1.10.12
APPDATA=C:\Users\runneradmin\AppData\Roaming
AZURE_EXTENSION_DIR=C:\Program Files\Common Files\AzureCliExtensionDirectory
CABAL_DIR=C:\cabal
CI=true
COBERTURA_HOME=C:\cobertura-2.1.1
COMMONPROGRAMFILES=C:\Program Files\Common Files
COMPUTERNAME=fv-az283-141
COMSPEC=C:\Windows\system32\cmd.exe
CONDA=C:\Miniconda
ChocolateyInstall=C:\ProgramData\chocolatey
ChromeWebDriver=C:\SeleniumWebDrivers\ChromeDriver
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
DEPLOYMENT_BASEPATH=C:\actions
DOTNET_MULTILEVEL_LOOKUP=0
DriverData=C:\Windows\System32\Drivers\DriverData
EdgeWebDriver=C:\SeleniumWebDrivers\EdgeDriver
GCM_INTERACTIVE=Never
GHCUP_INSTALL_BASE_PREFIX=C:\
GHCUP_MSYS2=C:\msys64
GITHUB_ACTION=__run
GITHUB_ACTIONS=true
GITHUB_ACTION_REF=
GITHUB_ACTION_REPOSITORY=
GITHUB_ACTOR=alef
GITHUB_API_URL=https://api.github.com
GITHUB_BASE_REF=
GITHUB_ENV=D:\a\_temp\_runner_file_commands\set_env_456a4172-403c-471d-adb3-eed86914729b
GITHUB_EVENT_NAME=workflow_dispatch
GITHUB_EVENT_PATH=D:\a\_temp\_github_workflow\event.json
GITHUB_GRAPHQL_URL=https://api.github.com/graphql
GITHUB_HEAD_REF=
GITHUB_JOB=build
GITHUB_PATH=D:\a\_temp\_runner_file_commands\add_path_456a4172-403c-471d-adb3-eed86914729b
GITHUB_REF=refs/heads/cmake-presets
GITHUB_REF_NAME=cmake-presets
GITHUB_REF_PROTECTED=false
GITHUB_REF_TYPE=branch
GITHUB_REPOSITORY=alef/Cataclysm-DDA
GITHUB_REPOSITORY_OWNER=alef
GITHUB_RETENTION_DAYS=7
GITHUB_RUN_ATTEMPT=1
GITHUB_RUN_ID=2798768002
GITHUB_RUN_NUMBER=15
GITHUB_SERVER_URL=https://github.com
GITHUB_SHA=3275c826a193a97880b6fd24be8a9e2f11ac0d71
GITHUB_STEP_SUMMARY=D:\a\_temp\_runner_file_commands\step_summary_456a4172-403c-471d-adb3-eed86914729b
GITHUB_TRIGGERING_ACTOR=alef
GITHUB_WORKFLOW=CMake Release
GITHUB_WORKSPACE=D:\a\Cataclysm-DDA\Cataclysm-DDA
GOROOT_1_16_X64=C:\hostedtoolcache\windows\go\1.16.15\x64
GOROOT_1_17_X64=C:\hostedtoolcache\windows\go\1.17.12\x64
GOROOT_1_18_X64=C:\hostedtoolcache\windows\go\1.18.4\x64
GRADLE_HOME=C:\ProgramData\chocolatey\lib\gradle\tools\gradle-7.4.2
GeckoWebDriver=C:\SeleniumWebDrivers\GeckoDriver
HOME=/c/Users/runneradmin
HOMEDRIVE=C:
HOMEPATH=\Users\runneradmin
IEWebDriver=C:\SeleniumWebDrivers\IEDriver
ImageOS=win22
ImageVersion=20220731.1
JAVA_HOME=C:\hostedtoolcache\windows\Java_Temurin-Hotspot_jdk\8.0.342-7\x64
JAVA_HOME_11_X64=C:\hostedtoolcache\windows\Java_Temurin-Hotspot_jdk\11.0.16-8\x64
JAVA_HOME_17_X64=C:\hostedtoolcache\windows\Java_Temurin-Hotspot_jdk\17.0.4-8\x64
JAVA_HOME_8_X64=C:\hostedtoolcache\windows\Java_Temurin-Hotspot_jdk\8.0.342-7\x64
LOCALAPPDATA=C:\Users\runneradmin\AppData\Local
LOGONSERVER=\\fv-az283-141
M2=C:\ProgramData\chocolatey\lib\maven\apache-maven-3.8.6\bin
M2_REPO=C:\ProgramData\m2
MAVEN_OPTS=-Xms256m
NUMBER_OF_PROCESSORS=2
OS=Windows_NT
PATH=/c/Program Files/PowerShell/7:/c/Program Files/MongoDB/Server/5.0/bin:/c/aliyun-cli:/c/vcpkg:/c/Program Files (x86)/NSIS:/c/tools/zstd:/c/Program Files/Mercurial:/c/hostedtoolcache/windows/stack/2.7.5/x64:/c/cabal/bin:/c/ghcup/bin:/c/tools/ghc-9.2.3/bin:/c/Program Files/dotnet:/c/mysql/bin:/c/Program Files/R/R-4.2.1/bin/x64:/c/SeleniumWebDrivers/GeckoDriver:/c/Program Files (x86)/sbt/bin:/c/Program Files (x86)/GitHub CLI:/bin:/c/Program Files (x86)/pipx_bin:/c/npm/prefix:/c/hostedtoolcache/windows/go/1.17.12/x64/bin:/c/hostedtoolcache/windows/Python/3.9.13/x64/Scripts:/c/hostedtoolcache/windows/Python/3.9.13/x64:/c/hostedtoolcache/windows/Ruby/3.0.4/x64/bin:/c/tools/kotlinc/bin:/c/hostedtoolcache/windows/Java_Temurin-Hotspot_jdk/8.0.342-7/x64/bin:/c/Program Files (x86)/Microsoft SDKs/Azure/CLI2/wbin:/c/ProgramData/kind:/c/Program Files/Microsoft/jdk-11.0.12.7-hotspot/bin:/c/Windows/system32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0:/c/Windows/System32/OpenSSH:/c/Program Files/dotnet:/c/ProgramData/Chocolatey/bin:/c/Program Files/Docker:/c/Program Files/PowerShell/7:/c/Program Files/Microsoft/Web Platform Installer:/c/Program Files/Microsoft SQL Server/Client SDK/ODBC/170/Tools/Binn:/c/Program Files/Microsoft SQL Server/150/Tools/Binn:/c/Program Files/OpenSSL/bin:/c/Strawberry/c/bin:/c/Strawberry/perl/site/bin:/c/Strawberry/perl/bin:/c/ProgramData/chocolatey/lib/pulumi/tools/Pulumi/bin:/c/Program Files/TortoiseSVN/bin:/c/Program Files/CMake/bin:/c/ProgramData/chocolatey/lib/maven/apache-maven-3.8.6/bin:/c/Program Files/Microsoft Service Fabric/bin/Fabric/Fabric.Code:/c/Program Files/Microsoft SDKs/Service Fabric/Tools/ServiceFabricLocalClusterManager:/c/Program Files/nodejs:/cmd:/mingw64/bin:/usr/bin:/c/Program Files/GitHub CLI:/c/tools/php:/c/Program Files (x86)/sbt/bin:/c/SeleniumWebDrivers/ChromeDriver:/c/SeleniumWebDrivers/EdgeDriver:/c/Program Files/Amazon/AWSCLIV2:/c/Program Files/Amazon/SessionManagerPlugin/bin:/c/Program Files/Amazon/AWSSAMCLI/bin:/c/Program Files/Microsoft SQL Server/130/Tools/Binn:/c/Program Files/LLVM/bin:/c/Users/runneradmin/.dotnet/tools:/c/Users/runneradmin/.cargo/bin:/c/Users/runneradmin/AppData/Local/Microsoft/WindowsApps
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.CPL
PERFLOG_LOCATION_SETTING=RUNNER_PERFLOG
PGBIN=C:\Program Files\PostgreSQL\14\bin
PGDATA=C:\Program Files\PostgreSQL\14\data
PGPASSWORD=root
PGROOT=C:\Program Files\PostgreSQL\14
PGUSER=postgres
PHPROOT=c:\tools\php
PIPX_BIN_DIR=C:\Program Files (x86)\pipx_bin
PIPX_HOME=C:\Program Files (x86)\pipx
POWERSHELL_DISTRIBUTION_CHANNEL=GitHub-Actions-win22
POWERSHELL_UPDATECHECK=Off
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 85 Stepping 7, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=5507
PROGRAMFILES=C:\Program Files
PSModulePath=C:\Users\runneradmin\Documents\PowerShell\Modules;C:\Program Files\PowerShell\Modules;c:\program files\powershell\7\Modules;C:\\Modules\azurerm_2.1.0;C:\\Modules\azure_2.1.0;C:\Users\packer\Documents\WindowsPowerShell\Modules;C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules;C:\Program Files\Microsoft SQL Server\130\Tools\PowerShell\Modules\
PUBLIC=C:\Users\Public
ProgramData=C:\ProgramData
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
RTOOLS40_HOME=C:\rtools40
RUNNER_ARCH=X64
RUNNER_NAME=Hosted Agent
RUNNER_OS=Windows
RUNNER_PERFLOG=C:\actions\perflog
RUNNER_TEMP=D:\a\_temp
RUNNER_TOOL_CACHE=C:\hostedtoolcache\windows
RUNNER_TRACKING_ID=github_ec3b7ecb-9a2e-4022-90d0-77918736efbc
RUNNER_WORKSPACE=D:\a\Cataclysm-DDA
SBT_HOME=C:\Program Files (x86)\sbt\
SELENIUM_JAR_PATH=C:\selenium\selenium-server.jar
STATS_PFS=true
SYSTEMDRIVE=C:
SYSTEMROOT=C:\Windows
TEMP=/tmp
TERM=xterm-256color
TMP=/tmp
USERDOMAIN=fv-az283-141
USERDOMAIN_ROAMINGPROFILE=fv-az283-141
USERNAME=runneradmin
USERPROFILE=C:\Users\runneradmin
VCPKG_INSTALLATION_ROOT=C:\vcpkg
WINDIR=C:\Windows
WIX=C:\Program Files (x86)\WiX Toolset v3.11\
npm_config_prefix=C:\npm\prefix