Build Tolk using CMake and publish artifacts using Github workflow#19
Open
bear101 wants to merge 3 commits intodkager:masterfrom
Open
Build Tolk using CMake and publish artifacts using Github workflow#19bear101 wants to merge 3 commits intodkager:masterfrom
bear101 wants to merge 3 commits intodkager:masterfrom
Conversation
|
Hi @bear101 ! How are you? First of all, thank you so much for sharing this I found an issue when I tried use # Include Directories, NOTE THE RC LANGUAGE IS IMPORTANT!
foreach(LANG C CXX RC)
set(CMAKE_${LANG}_STANDARD_INCLUDE_DIRECTORIES ${CUSTOM_INCLUDE_DIRECTORIES})
endforeach()However, I got this another problem now: [build] [1/1 100% :: 3.282] Linking CXX shared library libTolk.dll
[build] FAILED: libTolk.dll libTolk.dll.a
[build] cmd.exe /C "cd . && C:\msys64\mingw64\bin\x86_64-w64-mingw32-g++.exe -g -shared -o libTolk.dll -Wl,--out-implib,libTolk.dll.a -Wl,--major-image-version,0,--minor-image-version,0 CMakeFiles/Tolk.dir/src/Tolk.cpp.obj CMakeFiles/Tolk.dir/src/TolkJNI.cpp.obj CMakeFiles/Tolk.dir/src/ScreenReaderDriverJAWS.cpp.obj CMakeFiles/Tolk.dir/src/ScreenReaderDriverNVDA.cpp.obj CMakeFiles/Tolk.dir/src/ScreenReaderDriverSA.cpp.obj CMakeFiles/Tolk.dir/src/ScreenReaderDriverSNova.cpp.obj CMakeFiles/Tolk.dir/src/ScreenReaderDriverWE.cpp.obj CMakeFiles/Tolk.dir/src/ScreenReaderDriverZT.cpp.obj CMakeFiles/Tolk.dir/src/ScreenReaderDriverSAPI.cpp.obj CMakeFiles/Tolk.dir/src/fsapi.c.obj CMakeFiles/Tolk.dir/src/wineyes.c.obj CMakeFiles/Tolk.dir/src/zt.c.obj -lUser32 -lOle32 -lOleAut32 -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 && cd ."
[build] C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/Tolk.dir/src/ScreenReaderDriverSAPI.cpp.obj:ScreenReaderDriverSAPI.cpp:(.rdata$.refptr.CLSID_SpVoice[.refptr.CLSID_SpVoice]+0x0): undefined reference to `CLSID_SpVoice'
[build] C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/Tolk.dir/src/ScreenReaderDriverSAPI.cpp.obj:ScreenReaderDriverSAPI.cpp:(.rdata$.refptr.IID_ISpVoice[.refptr.IID_ISpVoice]+0x0): undefined reference to `IID_ISpVoice'
[build] collect2.exe: error: ld returned 1 exit status
[build] ninja: build stopped: subcommand failed.
[build] Build finished with exit code 1Do you know how can I solve this |
Author
|
Hm, try adding "Sapilib" to TOLK_LINK_FLAGS: |
|
Adding sapi and fixing the lib casing also allowed this it to build on Linux for me. I made a PR on this fork in case anyone else might need this: sig-a11y#2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Here's a CMakeLists.txt for building Tolk with CMake. CMake is supported by Visual Studio 2019 but I would advise to use cmake from console or using the official CMake tool.
A Github workflow is also included which publish the newly built version of Tolk