Skip to content

fix: link VoIP server sources into the x64 Windows dedicated server - #64

Open
AndreasLauvhjell wants to merge 1 commit into
B2BF:mainfrom
AndreasLauvhjell:fix/x64-voip-link
Open

AndreasLauvhjell wants to merge 1 commit into
B2BF:mainfrom
AndreasLauvhjell:fix/x64-voip-link

Conversation

@AndreasLauvhjell

@AndreasLauvhjell AndreasLauvhjell commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Build fix: fixes the red ci-x64 job on main. The native x64 Windows dedicated server
(bf2_w64ded.exe) fails to link with LNK1120, 6 unresolved externals in BF2VoipServer::CBF2VoipServer
(ctor, dtor, Initialize, CreateInstance, Update, Shutdown) referenced from VoipServerInternal.cpp,
because the voice-server sources were only built into the x86 side DLL (BF2VoipServer_w32ded.dll).

The x64 Windows target now links bf2_voipserver_only_sources statically, the same way the Linux
image already does. Marked [CHOSEN, not recovered] in CMakeLists.txt since the native x64 port has
no retail image to follow. x86 and Linux are unchanged.

Files: CMakeLists.txt (7 lines).
Tested: msvc-x64 dedicated server <links / starts on port <not 16567>>. x86 build unchanged.

Local CI check

Local mirror of the Windows jobs in .github/workflows/build.yml, run on main (ccf3099)
plus #64, #65 and #66 together (not one by one), from empty build dirs:

Step Result
x64 python / configure / bf2_w64ded pass
x86 python / configure pass
x86 bf2_run_checks (incl. bf2_runtime_pair, 5/5) + bf2_editor_run_checks (926 passed, 0 failed) pass
x86 bf2_w32ded pass
x86 bf2_aidll + bf2_client pass
x86 bf2_editor pass

Toolchain: VS 2026 (MSVC 19.51); CI uses VS 2022. Linux job not run locally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant