You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I managed to config and build ABSEIL. However, trying to build PROTOBUF nexts causing an issue:
CMake Error at D:/SIGNET/C++/abseil-cpp-master-bin/abslConfig.cmake:32 (include):
include could not find requested file:
XXX/abseil-cpp-master-bin/abslTargets.cmake
Call Stack (most recent call first):
cmake/abseil-cpp.cmake:36 (find_package)
CMakeLists.txt:339 (include)
CMake Error at XXX/abseil-cpp-master-bin/abslConfig.cmake:32 (include):
include could not find requested file:
XXX/abseil-cpp-master-bin/abslTargets.cmake
Call Stack (most recent call first):
third_party/utf8_range/CMakeLists.txt:27 (find_package)
Note: XXX above is just to hide the absolute path on my sys (not relevant)
I checked and indeed there is no: abseil-cpp-master-bin/abslTargets.cmake
instead the file is located at: abseil-cpp-master-bin/CMakeFiles/abslTargets.cmake
Any idea what the solution for that is?
I see that ABSEL is using: include ("${CMAKE_CURRENT_LIST_DIR}/abslTargets.cmake") , which is something I never used myself to list files "${CMAKE_CURRENT_LIST_DIR}, could that be it?
Here is my entire build script:
SET MSBUILD="C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsamd64_x86.bat"
CALL %MSBUILD%
rem ===============================================================
rem = ZLIB
rem ===============================================================
cmake -G "Visual Studio 17 2022" -S zlib-1.2.13 -B zlib-1.2.13-bin
cmake --build zlib-1.2.13-bin --config Debug
cmake --build zlib-1.2.13-bin --config Release
rem ===============================================================
rem = ABSEIL
rem ===============================================================
cmake -G "Visual Studio 17 2022" -S abseil-cpp-master -B abseil-cpp-master-bin^
-DCMAKE_INSTALL_PREFIX=abseil-cpp-master-install^
-DABSL_PROPAGATE_CXX_STD=ON^
-DABSL_ENABLE_INSTALL=ON^
-DABSL_USE_EXTERNAL_GOOGLETEST=OFF^
-DABSL_FIND_GOOGLETEST=OFF^
-DBUILD_SHARED_LIBS=ON^
-DCMAKE_CXX_STANDARD=14
cmake --build abseil-cpp-master-bin --config Debug
cmake --build abseil-cpp-master-bin --config Release --target install
rem ===============================================================
rem = PROTOBUF
rem ===============================================================
cmake -G "Visual Studio 17 2022" -S protobuf-23.1 -B protobuf-23.1-bin ^
-DCMAKE_INSTALL_PREFIX=protobuf-23.1-bin ^
-DCMAKE_PREFIX_PATH=%~dp0/abseil-cpp-master-install ^
-DZLIB_INCLUDE_DIR=%~dp0/zlib-1.2.13 ^
-DZLIB_LIBRARY_DEBUG=%~dp0/zlib-1.2.13-bin/Debug ^
-DZLIB_LIBRARY_RELEASE=%~dp0/zlib-1.2.13-bin/Release ^
-Dprotobuf_BUILD_TESTS=OFF ^
-Dprotobuf_ABSL_PROVIDER=package ^
-DCMAKE_CXX_STANDARD=14
cmake --build protobuf-23.1-bin --config Debug
cmake --build protobuf-23.1-bin --config Release --target install
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I managed to config and build ABSEIL. However, trying to build PROTOBUF nexts causing an issue:
Note: XXX above is just to hide the absolute path on my sys (not relevant)
I checked and indeed there is no: abseil-cpp-master-bin/abslTargets.cmake
instead the file is located at: abseil-cpp-master-bin/CMakeFiles/abslTargets.cmake
Any idea what the solution for that is?
I see that ABSEL is using: include ("${CMAKE_CURRENT_LIST_DIR}/abslTargets.cmake") , which is something I never used myself to list files "${CMAKE_CURRENT_LIST_DIR}, could that be it?
Here is my entire build script:
Beta Was this translation helpful? Give feedback.
All reactions