Comments (5)
Found the issue. For some reason the 'x64' part of the URL is being removed in GitLab CI.
Correct URL:
https://static.realm.io/downloads/dependencies/openssl/3.0.8/openssl-3.0.8-x64-windows-static.tar.gz
URL in GitLab CI:
https://static.realm.io/downloads/dependencies/openssl/3.0.8/openssl-3.0.8--windows-static.tar.gz
from realm-cpp.
I suspected CMAKE_CXX_COMPILER_ARCHITECTURE_ID
was not being set on the CI server, but I checked and it is set to "x64"
from realm-cpp.
So I changed then following:
diff --git forkSrcPrefix/tools/cmake/AcquireRealmDependency.cmake forkDstPrefix/tools/cmake/AcquireRealmDependency.cmake
index 0c395b61cb6444100f2f579d8d1ffac81402ac01..4e9d00d3e74eac3001b17352a30f22e66c0115d9 100644
--- forkSrcPrefix/tools/cmake/AcquireRealmDependency.cmake
+++ forkDstPrefix/tools/cmake/AcquireRealmDependency.cmake
@@ -22,7 +22,7 @@ function(realm_acquire_dependency dep_name dep_version out_dep_cmake)
if(ANDROID)
set(_target_architecture ${CMAKE_ANDROID_ARCH_ABI})
- elseif(MSVC)
+ elseif(WIN32)
set(_target_architecture ${CMAKE_CXX_COMPILER_ARCHITECTURE_ID})
else()
set(_target_architecture ${CMAKE_SYSTEM_PROCESSOR})
Which got the download working, but I now get this error:
-- Getting https://static.realm.io/downloads/dependencies/openssl/3.0.8/openssl-3.0.8-x64-windows-static.tar.gz...
-- Uncompressing openssl...
CMake Error at C:/Program Files/CMake/share/cmake-3.27/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY) (found
version "3.0.8")
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.27/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
C:/Program Files/CMake/share/cmake-3.27/Modules/FindOpenSSL.cmake:668 (find_package_handle_standard_args)
C:/Gitlab-Runner/CPM/Cache/cpprealm/a112b5bb90cb3776710c6a09806b2adf70fad799/realm-core/CMakeLists.txt:319 (find_package)
-- Configuring incomplete, errors occurred!
from realm-cpp.
The odd thing is that building in CLion on the same machine works fine.
It seems to be when running in Powershell that the problem arises.
from realm-cpp.
OK - seems to be some issue with the CMake script when using the Ninja generator within PowerShell.
Switching to the Visual Studio generator, with the architecture specified works.
from realm-cpp.
Related Issues (20)
- baseUrl Change
- Add vendor support to Android blueprints
- Bridge gaps where managed property types do not mirror the std library
- Integration of Realm-CPP with gRPC causing LINK Error HOT 4
- Failed to build using cmake on linux HOT 3
- How to get Aggregate and Stats on a given column in a collection? HOT 3
- Add missing bytes UUID constructor HOT 2
- Upgrade to Realm Core 14.2.0 HOT 1
- Update default base URL to new domain HOT 1
- Add privacy manifest to apple binaries HOT 1
- Expose an API that allows merging collections rather than replacing them HOT 1
- Handle Role Changes without Client Reset HOT 2
- Upgrade to Realm Core 14.4.0 HOT 1
- Add BSON support HOT 1
- Prepare v1.1.0 release HOT 1
- Switch to Baasaas from Cloud QA HOT 1
- Windows build error with 1.1.0 HOT 3
- [CPP] Create distribution channel HOT 1
- [CPP] Add Migration support HOT 1
- SDKs should not consume stitch_ prefixed fields HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from realm-cpp.