Closed drasimbaig closed 4 years ago
Try the fix/ci_windows_etc
branch
I have been trying to get the fix/ci_windows_etc branch to build in windows as well, what toolset are you using? I have been using VS2019 but am not getting very far. My 2 issues:
6>F:\couchbase-lite-C\vendor\couchbase-lite-core\C\c4Base.cc(32,10): fatal error C1083: Cannot open include file: 'repo_version.h': No such file or directory
and
F:\couchbase-lite-C\vendor\couchbase-lite-core\LiteCore\Storage\DataFile.cc(105,6): fatal error C1001: Internal compiler error. To work around this problem, try simplifying or changing the program near the locations listed above.
I use VS 2017, but there is no reason that VS 2019 shouldn't work. The error you mentioned indicates that something went wrong during the cmake generation stage. Can you review the logs while running CMake? That file gets generated by a powershell script.
Getting closer, had a problem with my Perl install, the repo_version.h issue is resolved. I am getting 2 build errors:
and
Not sure what's up with the compiler error...
Perhaps missing #include <functional>
? By the way the fix branch is going away and all the stuff is in master now so continue to experiment there instead.
Is the master branch working?
Closing for lack of activity.
I faced the same issue with a freshly Windows installation:
PS C:\Users\func\work\couchbase-lite-C\build> cmake -G "Visual Studio 17 2022" -A x64 -DCMAKE_INSTALL_PREFIX="$pwd/output" ..
CMake Warning at CMakeLists.txt:16 (message):
No VERSION set, defaulting to 0.0.0
-- Selecting Windows SDK version 10.0.22000.0 to target Windows 10.0.19044.
Building Community Edition
CMake Warning at cmake/generate_edition.cmake:52 (message):
No BLD_NUM set, defaulting to 0...
Call Stack (most recent call first):
CMakeLists.txt:60 (generate_edition)
-- Wrote C:/Users/func/work/couchbase-lite-C/build/generated_headers/public/cbl/CBL_Edition.h...
-- No threading checks needed for Windows
C:/Users/func/work/couchbase-lite-C/vendor/couchbase-lite-core/build_cmake/scripts/get_repo_version.ps1 : File
C:\Users\func\work\couchbase-lite-C\vendor\couchbase-lite-core\build_cmake\scripts\get_repo_version.ps1 cannot be
loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at
https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
+ C:/Users/func/work/couchbase-lite-C/vendor/couchbase-lite-core/build_ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
The fix is:
PS C:\Users\func\work\couchbase-lite-C\build> set-ExecutionPolicy RemoteSigned -Scope CurrentUser
I have been attempting to compile and build dev branch on Windows 10 and facing some issues. Has anyone been able to successfully compile and build dev branch on Windows 10 if not then which branch compiles successfully with Windows 10?
Thanks Asim Baig