couchbase / couchbase-lite-C

C language bindings for the Couchbase Lite embedded NoSQL database engine
Apache License 2.0
115 stars 38 forks source link

Unable to compile on windows 10 machie using cmake 3.17 #39

Closed mateors closed 4 years ago

mateors commented 4 years ago

Please fix the bug which i am facing on my windows 10 machine...for your clear understanding i am writing step by step....how i encounter this....

Step-1: I am using the following command to clone the repo from github:

git clone -b fix/ci_windows_etc https://github.com/couchbaselabs/couchbase-lite-C.git

Step-2: There is a power shell script to produce sub-module update recursively i am using that script using below: opening Windows PowerShell as administrative mode cd into the repository downloaded using step-1 inside my repo there is a folder called jenkins

Step-3: cd into jenkins using following

cd jenkins_win.ps1

Step-4: running the powershell script using following:

.\jenkins_win.ps1

i got the following output from the windows power shell terminal:

PS C:\Users\mostain\Desktop\couchbase\newdb\couchbase-lite-C\jenkins> .\jenkins_win.ps1 Submodule 'vendor/couchbase-lite-core' (https://github.com/couchbase/couchbase-lite-core.git) registered for path 'vendor/couchbase-lite-core' Cloning into 'C:/Users/mostain/Desktop/couchbase/newdb/couchbase-lite-C/vendor/couchbase-lite-core'... remote: Enumerating objects: 33, done. remote: Counting objects: 100% (33/33), done. remote: Total 56 (delta 33), reused 33 (delta 33), pack-reused 23 Unpacking objects: 100% (56/56), done. From https://github.com/couchbase/couchbase-lite-core

Please make sure you have the correct access rights and the repository exists.

Directory: C:\Users\mostain\Desktop\couchbase\newdb\couchbase-lite-C

Mode LastWriteTime Length Name


d----- 3/10/2020 9:52 PM build CMake Error at CMakeLists.txt:9 (project): Generator

Visual Studio 15 2017 Win64

could not find any instance of Visual Studio.

-- Configuring incomplete, errors occurred! See also "C:/Users/mostain/Desktop/couchbase/newdb/couchbase-lite-C/build/CMakeFiles/CMakeOutput.log". Failed to run CMake!

It failed to run Cmake because i am using visual studio 2019

so i am trying to generate solution file using cmake following command: (using command line as administrator)

Step-5: creating a folder build_cmake

mkdir build_cmake

Step-6: then executing the following command:

cmake -G "Visual Studio 16 2019" -B "C:\Users\mostain\Desktop\couchbase\newdb\couchbase-lite-C\build_cmake"

Above command produces all the necessary files to build using visual studio 2019. then i cd into build_cmake folder and open CouchbaseLite_C.sln with visual studio 2019 and click Build from the Solution Explorer, after few minutes it gives me the following error:

I am getting the following error in the output window on visual studio:

1>------ Build started: Project: ZERO_CHECK, Configuration: Release x64 ------ 1>Checking Build System 2>------ Build started: Project: mbedcrypto, Configuration: Release x64 ------ 3>------ Build started: Project: BLIPStatic, Configuration: Release x64 ------ 4>------ Build started: Project: CouchbaseLiteCStatic, Configuration: Release x64 ------ 5>------ Build started: Project: FleeceStatic, Configuration: Release x64 ------ 2>Building Custom Rule C:/Users/mostain/Desktop/couchbase/newdb/couchbase-lite-C/vendor/couchbase-lite-core/vendor/mbedtls/crypto/library/CMakeLists.txt 3>Building Custom Rule C:/Users/mostain/Desktop/couchbase/newdb/couchbase-lite-C/vendor/couchbase-lite-core/vendor/BLIP-Cpp/CMakeLists.txt 4>Building Custom Rule C:/Users/mostain/Desktop/couchbase/newdb/couchbase-lite-C/CMakeLists.txt 2>aes.c 5>Building Custom Rule C:/Users/mostain/Desktop/couchbase/newdb/couchbase-lite-C/vendor/couchbase-lite-core/vendor/fleece/CMakeLists.txt 2>aesni.c 2>arc4.c 2>aria.c 4>CBLBase.cc 2>asn1parse.c 2>asn1write.c 2>base64.c 2>bignum.c 2>blowfish.c 2>camellia.c 2>ccm.c 2>chacha20.c 2>chachapoly.c 2>cipher.c 5>Fleece.cc 2>cipher_wrap.c 2>cmac.c 2>ctr_drbg.c 4>CBLBlob.cc 2>des.c 2>dhm.c 2>ecdh.c 2>Generating Code... 3>BLIPConnection.cc 4>CBLDatabase.cc 3>Message.cc 5>FLSlice.cc 5>Array.cc 4>CBLDocument.cc 3>MessageBuilder.cc 5>DeepIterator.cc 4>CBLLog.cc 4>CBLQuery.cc 3>MessageOut.cc 5>Dict.cc 4>CBLReplicator.cc 3>Actor.cc 2>Compiling... 2>ecdsa.c 2>ecjpake.c 5>Doc.cc 2>ecp.c 2>ecp_curves.c 2>entropy.c 2>entropy_poll.c 3>ActorProperty.cc 4>ConflictResolver.cc 2>gcm.c 2>havege.c 2>hkdf.c 2>hmac_drbg.c 2>md.c 2>md2.c 2>md4.c 2>md5.c 5>Encoder.cc 2>memory_buffer_alloc.c 2>nist_kw.c 2>oid.c 3>Async.cc 2>padlock.c 2>pem.c 2>pk.c 2>Generating Code... 3>Channel.cc 5>JSONConverter.cc 2>Compiling... 2>pk_wrap.c 2>pkcs12.c 2>pkcs5.c 2>pkparse.c 2>pkwrite.c 2>platform.c 3>Codec.cc 2>platform_util.c 2>poly1305.c 2>psa_crypto.c 2>psa_crypto_se.c 5>JSONDelta.cc 2>psa_crypto_slot_management.c 2>psa_crypto_storage.c 2>psa_its_file.c 2>ripemd160.c 2>rsa.c 2>rsa_internal.c 2>sha1.c 3>Timer.cc 2>sha256.c 2>sha512.c 2>threading.c 2>Generating Code... 4>Listener.cc 5>C:\Users\mostain\Desktop\couchbase\newdb\couchbase-lite-C\vendor\couchbase-lite-core\vendor\fleece\Fleece\Core\JSONDelta.cc(456,37): warning C4267: '+=': conversion from 'size_t' to 'long', possible loss of data 5>C:\Users\mostain\Desktop\couchbase\newdb\couchbase-lite-C\vendor\couchbase-lite-core\vendor\fleece\Fleece\Core\JSONDelta.cc(457,37): warning C4267: '+=': conversion from 'size_t' to 'long', possible loss of data 5>C:\Users\mostain\Desktop\couchbase\newdb\couchbase-lite-C\vendor\couchbase-lite-core\vendor\fleece\Fleece\Core\JSONDelta.cc(473,41): warning C4267: '+=': conversion from 'size_t' to 'long', possible loss of data 5>C:\Users\mostain\Desktop\couchbase\newdb\couchbase-lite-C\vendor\couchbase-lite-core\vendor\fleece\Fleece\Core\JSONDelta.cc(479,41): warning C4267: '+=': conversion from 'size_t' to 'long', possible loss of data 4>Util.cc 4>Generating Code... 3>Headers.cc 5>Path.cc 3>WebSocketImpl.cc 2>Compiling... 2>timing.c 5>Pointer.cc 4>CouchbaseLiteCStatic.vcxproj -> C:\Users\mostain\Desktop\couchbase\newdb\couchbase-lite-C\build_cmake\Release\CouchbaseLiteCStatic.lib 6>------ Build started: Project: LiteCoreStatic, Configuration: Release x64 ------ 2>xtea.c 5>SharedKeys.cc 2>version.c 2>version_features.c 2>error.c 2>everest.c 5>Value+Dump.cc 2>x25519.c 2>Hacl_Curve25519_joined.c 2>Generating Code... 2>mbedcrypto.vcxproj -> C:\Users\mostain\Desktop\couchbase\newdb\couchbase-lite-C\build_cmake\vendor\couchbase-lite-core\vendor\mbedtls\crypto\library\Release\mbedcrypto.lib 7>------ Build started: Project: mbedx509, Configuration: Release x64 ------ 7>Building Custom Rule C:/Users/mostain/Desktop/couchbase/newdb/couchbase-lite-C/vendor/couchbase-lite-core/vendor/mbedtls/library/CMakeLists.txt 5>Value.cc 5>MContext.cc 5>HeapArray.cc 7>certs.c 7>pkcs11.c 7>x509.c 7>x509_create.c 7>x509_crl.c 7>x509_crt.c 7>x509_csr.c 7>x509write_crt.c 7>x509write_csr.c 7>Generating Code... 3>WebSocketInterface.cc 3>ThreadedMailbox.cc 6>Building Custom Rule C:/Users/mostain/Desktop/couchbase/newdb/couchbase-lite-C/vendor/couchbase-lite-core/CMakeLists.txt 3>Generating Code... 7>mbedx509.vcxproj -> C:\Users\mostain\Desktop\couchbase\newdb\couchbase-lite-C\build_cmake\vendor\couchbase-lite-core\vendor\mbedtls\library\Release\mbedx509.lib 8>------ Build started: Project: LiteCoreWebSocket, Configuration: Release x64 ------ 5>HeapDict.cc 6>c4Base.cc 6>c4BlobStore.cc 5>HeapValue.cc 5>ValueSlot.cc 5>Backtrace.cc 6>c4Certificate.cc 6>c4Database.cc 5>Generating Code... 6>c4DocEnumerator.cc 6>c4DocExpiration.cc 5>Compiling... 5>betterassert.cc 6>c4Document.cc 6>C:\Users\mostain\Desktop\couchbase\newdb\couchbase-lite-C\vendor\couchbase-lite-core\C\c4Document.cc(218,1): warning C4804: '<=': unsafe use of type 'bool' in operation 6>c4Observer.cc 6>c4PredictiveQuery.cc 6>c4Query.cc 5>Bitmap.cc 5>FileUtils.cc 5>FleeceException.cc 5>InstanceCounted.cc 5>NumConversion.cc 5>JSON5.cc 5>JSONEncoder.cc 5>LibC++Debug.cc 5>ParseDate.cc 6>BlobStore.cc 5>C:\Users\mostain\Desktop\couchbase\newdb\couchbase-lite-C\vendor\couchbase-lite-core\vendor\fleece\Fleece\Support\ParseDate.cc(297,29): warning C4996: 'tzset': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _tzset. See online help for details. 5>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\time.h(594): message : see declaration of 'tzset' 5>RefCounted.cc 5>slice.cc 6>Stream.cc 6>BackgroundDB.cc 5>sliceIO.cc 6>C:\Users\mostain\Desktop\couchbase\newdb\couchbase-lite-C\vendor\couchbase-lite-core\LiteCore\Database\BackgroundDB.cc(66,39): warning C4101: 'x': unreferenced local variable 5>C:\Users\mostain\Desktop\couchbase\newdb\couchbase-lite-C\vendor\couchbase-lite-core\vendor\fleece\Fleece\Support\sliceIO.cc(56,67): warning C4267: 'argument': conversion from 'size_t' to 'unsigned int', possible loss of data 5>C:\Users\mostain\Desktop\couchbase\newdb\couchbase-lite-C\vendor\couchbase-lite-core\vendor\fleece\Fleece\Support\sliceIO.cc(67,53): warning C4267: 'argument': conversion from 'size_t' to 'unsigned int', possible loss of data 5>StringTable.cc 6>Document.cc 5>varint.cc 5>Writer.cc 6>Housekeeper.cc 5>HashTree.cc 5>MutableHashTree.cc 6>LeafDocument.cc 5>NodeRef.cc 6>LegacyAttachments.cc 5>SwiftDtoa.cc 5>C:\Users\mostain\Desktop\couchbase\newdb\couchbase-lite-C\vendor\couchbase-lite-core\vendor\fleece\vendor\SwiftDtoa\SwiftDtoa.cc(1525,50): warning C4319: '~': zero extending 'uint32_t' to 'uint64_t' of greater size 5>C:\Users\mostain\Desktop\couchbase\newdb\couchbase-lite-C\vendor\couchbase-lite-core\vendor\fleece\vendor\SwiftDtoa\SwiftDtoa.cc(1527,38): warning C4319: '~': zero extending 'uint32_t' to 'uint64_t' of greater size 5>C:\Users\mostain\Desktop\couchbase\newdb\couchbase-lite-C\vendor\couchbase-lite-core\vendor\fleece\vendor\SwiftDtoa\SwiftDtoa.cc(1529,38): warning C4319: '~': zero extending 'uint32_t' to 'uint64_t' of greater size 5>C:\Users\mostain\Desktop\couchbase\newdb\couchbase-lite-C\vendor\couchbase-lite-core\vendor\fleece\vendor\SwiftDtoa\SwiftDtoa.cc(1531,44): warning C4319: '~': zero extending 'uint32_t' to 'uint64_t' of greater size 5>Generating Code... 6>LiveQuerier.cc 5>Compiling... 5>memmem.cc 5>C:\Users\mostain\Desktop\couchbase\newdb\couchbase-lite-C\vendor\couchbase-lite-core\vendor\fleece\MSVC\memmem.cc(27,11): warning C5033: 'register' is no longer a supported storage class 5>Generating Code... 6>PrebuiltCopier.cc 6>SequenceTracker.cc 5>jsonsl.c 5>cdecode.c 5>cencode.c 5>vasprintf-msvc.c 5>asprintf.c 5>Generating Code... 9>------ Build started: Project: SQLite3_UnicodeSN, Configuration: Release x64 ------ 6>Generating Code... 9>Building Custom Rule C:/Users/mostain/Desktop/couchbase/newdb/couchbase-lite-C/vendor/couchbase-lite-core/vendor/sqlite3-unicodesn/CMakeLists.txt 5>FleeceStatic.vcxproj -> C:\Users\mostain\Desktop\couchbase\newdb\couchbase-lite-C\build_cmake\vendor\couchbase-lite-core\vendor\fleece\Release\FleeceStatic.lib 5>Done building project "FleeceStatic.vcxproj". 10>------ Build started: Project: Support, Configuration: Release x64 ------ 9>stem_ISO_8859_1_danish.c 9>stem_ISO_8859_1_dutch.c 9>stem_ISO_8859_1_english.c 9>stem_ISO_8859_1_finnish.c 9>stem_ISO_8859_1_french.c 9>stem_ISO_8859_1_german.c 9>stem_ISO_8859_1_hungarian.c 9>stem_ISO_8859_1_italian.c 9>stem_ISO_8859_1_norwegian.c 9>stem_ISO_8859_1_porter.c 9>stem_ISO_8859_1_portuguese.c 9>stem_ISO_8859_1_spanish.c 9>stem_ISO_8859_1_swedish.c 9>stem_ISO_8859_2_romanian.c 9>stem_KOI8_R_russian.c 9>stem_UTF_8_danish.c 9>stem_UTF_8_dutch.c 9>stem_UTF_8_english.c 9>stem_UTF_8_finnish.c 9>stem_UTF_8_french.c 9>Generating Code... 9>Compiling... 9>stem_UTF_8_german.c 9>stem_UTF_8_hungarian.c 9>stem_UTF_8_italian.c 9>stem_UTF_8_norwegian.c 9>stem_UTF_8_porter.c 9>stem_UTF_8_portuguese.c 6>Compiling... 6>TreeDocument.cc 9>stem_UTF_8_romanian.c 9>stem_UTF_8_russian.c 9>stem_UTF_8_spanish.c 9>stem_UTF_8_swedish.c 9>stem_UTF_8_turkish.c 9>fts3_unicode2.c 9>fts3_unicodesn.c 9>sqlite3_unicodesn_tokenizer.c 9>libstemmer_utf8.c 9>api_sq3.c 9>utilities_sq3.c 9>Generating Code... 9>stopwordset.cc 6>Upgrader.cc 9>SQLite3_UnicodeSN.vcxproj -> C:\Users\mostain\Desktop\couchbase\newdb\couchbase-lite-C\build_cmake\vendor\couchbase-lite-core\vendor\sqlite3-unicodesn\Release\SQLite3_UnicodeSN.lib 11>------ Build started: Project: mbedtls, Configuration: Release x64 ------ 6>IndexSpec.cc 11>Building Custom Rule C:/Users/mostain/Desktop/couchbase/newdb/couchbase-lite-C/vendor/couchbase-lite-core/vendor/mbedtls/library/CMakeLists.txt 11>debug.c 11>net_sockets.c 6>PredictiveModel.cc 6>Query.cc 11>ssl_cache.c 11>ssl_ciphersuites.c 11>ssl_cli.c 11>ssl_cookie.c 11>ssl_srv.c 11>ssl_ticket.c 11>ssl_tls.c 11>Generating Code... 6>QueryParser+Prediction.cc 6>QueryParser.cc 6>C:\Users\mostain\Desktop\couchbase\newdb\couchbase-lite-C\vendor\couchbase-lite-core\LiteCore\Query\QueryParser.cc(301,57): warning C4267: '+=': conversion from 'size_t' to 'unsigned int', possible loss of data 11>mbedtls.vcxproj -> C:\Users\mostain\Desktop\couchbase\newdb\couchbase-lite-C\build_cmake\vendor\couchbase-lite-core\vendor\mbedtls\library\Release\mbedtls.lib 12>------ Build started: Project: zlibstatic, Configuration: Release x64 ------ 6>SQLiteDataFile+Indexes.cc 12>Building Custom Rule C:/Users/mostain/Desktop/couchbase/newdb/couchbase-lite-C/vendor/couchbase-lite-core/vendor/BLIP-Cpp/vendor/zlib/CMakeLists.txt 6>SQLiteFleeceEach.cc 12>adler32.c 6>SQLiteFleeceFunctions.cc 12>compress.c 12>crc32.c 12>deflate.c 12>gzclose.c 12>gzlib.c 12>gzread.c 12>C:\Users\mostain\Desktop\couchbase\newdb\couchbase-lite-C\vendor\couchbase-lite-core\vendor\BLIP-Cpp\vendor\zlib\gzread.c(319,20): warning C4267: '=': conversion from 'size_t' to 'unsigned int', possible loss of data 12>C:\Users\mostain\Desktop\couchbase\newdb\couchbase-lite-C\vendor\couchbase-lite-core\vendor\BLIP-Cpp\vendor\zlib\gzread.c(400,35): warning C4267: '=': conversion from 'size_t' to 'unsigned int', possible loss of data 12>C:\Users\mostain\Desktop\couchbase\newdb\couchbase-lite-C\vendor\couchbase-lite-core\vendor\BLIP-Cpp\vendor\zlib\gzread.c(472,33): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data 12>gzwrite.c 12>C:\Users\mostain\Desktop\couchbase\newdb\couchbase-lite-C\vendor\couchbase-lite-core\vendor\BLIP-Cpp\vendor\zlib\gzwrite.c(212,27): warning C4267: '=': conversion from 'size_t' to 'unsigned int', possible loss of data 12>C:\Users\mostain\Desktop\couchbase\newdb\couchbase-lite-C\vendor\couchbase-lite-core\vendor\BLIP-Cpp\vendor\zlib\gzwrite.c(232,24): warning C4267: '=': conversion from 'size_t' to 'unsigned int', possible loss of data 12>C:\Users\mostain\Desktop\couchbase\newdb\couchbase-lite-C\vendor\couchbase-lite-core\vendor\BLIP-Cpp\vendor\zlib\gzwrite.c(371,36): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data 12>inflate.c 12>infback.c 12>inftrees.c 12>inffast.c 12>trees.c 12>uncompr.c 12>zutil.c 12>Generating Code... 12>zlibstatic.vcxproj -> C:\Users\mostain\Desktop\couchbase\newdb\couchbase-lite-C\build_cmake\vendor\couchbase-lite-core\vendor\BLIP-Cpp\vendor\zlib\Release\zlibstatic.lib 12>Done building project "zlibstatic.vcxproj". 6>C:\Users\mostain\Desktop\couchbase\newdb\couchbase-lite-C\vendor\couchbase-lite-core\LiteCore\Query\SQLiteFleeceFunctions.cc(83,44): warning C4101: 'x': unreferenced local variable 6>C:\Users\mostain\Desktop\couchbase\newdb\couchbase-lite-C\vendor\couchbase-lite-core\LiteCore\Query\SQLiteFleeceFunctions.cc(87,40): warning C4101: 'x': unreferenced local variable 6>SQLiteFleeceUtil.cc 6>SQLiteFTSRankFunction.cc 6>SQLiteKeyStore+ArrayIndexes.cc 6>SQLiteKeyStore+FTSIndexes.cc 6>SQLiteKeyStore+Indexes.cc 6>SQLiteKeyStore+PredictiveIndexes.cc 6>SQLiteN1QLFunctions.cc 6>SQLitePredictionFunction.cc 6>SQLiteQuery.cc 6>C:\Users\mostain\Desktop\couchbase\newdb\couchbase-lite-C\vendor\couchbase-lite-core\LiteCore\Query\SQLiteQuery.cc(484,1): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) 6>n1ql.cc 6>Generating Code... 6>C:\Users\mostain\Desktop\couchbase\newdb\couchbase-lite-C\vendor\couchbase-lite-core\LiteCore\Database\TreeDocument.cc(253): warning C4715: 'c4Internal::TreeDocument::save': not all control paths return a value 6>Compiling... 6>RawRevTree.cc 6>RevID.cc 6>RevTree.cc 6>VersionedDocument.cc 6>DataFile.cc 6>KeyStore.cc 6>Record.cc 6>RecordEnumerator.cc 6>SQLiteDataFile.cc 6>SQLiteEnumerator.cc 6>SQLiteKeyStore.cc 6>UnicodeCollator.cc 6>Certificate.cc 6>mbedUtils.cc 6>PublicKey.cc 6>SecureDigest.cc 6>SecureSymmetricCrypto.cc 6>Address.cc 6>CookieStore.cc 6>Backup.cpp 6>Generating Code... 6>C:\Users\mostain\Desktop\couchbase\newdb\couchbase-lite-C\vendor\couchbase-lite-core\Crypto\PublicKey.cc(70): warning C4715: 'litecore::crypto::Key::publicKeyData': not all control paths return a value 6>C:\Users\mostain\Desktop\couchbase\newdb\couchbase-lite-C\vendor\couchbase-lite-core\Crypto\PublicKey.cc(123): warning C4715: 'litecore::crypto::PrivateKey::privateKeyData': not all control paths return a value 6>Compiling... 6>Column.cpp 6>Exception.cpp 6>Statement.cpp 6>Transaction.cpp 6>c4Replicator.cc 6>c4Socket.cc 6>Checkpoint.cc 6>Checkpointer.cc 6>DatabaseCookies.cc 6>DBAccess.cc 6>IncomingBlob.cc 6>IncomingRev.cc 6>Inserter.cc 6>Puller.cc 6>Pusher.cc 6>Pusher+DB.cc 6>Replicator.cc 6>ReplicatorTypes.cc 6>RevFinder.cc 6>Worker.cc 6>Generating Code... 6>Compiling... 6>Logging.cc 6>DefaultLogger.cc 6>Error.cc 6>UnicodeCollator_winapi.cc 6>C:\Users\mostain\Desktop\couchbase\newdb\couchbase-lite-C\vendor\couchbase-lite-core\LiteCore\Storage\UnicodeCollator_winapi.cc(64,1): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data 6>Generating Code... 3>BLIPStatic.vcxproj -> C:\Users\mostain\Desktop\couchbase\newdb\couchbase-lite-C\build_cmake\vendor\couchbase-lite-core\vendor\BLIP-Cpp\Release\BLIPStatic.lib 6>Database.cc 6>SQLiteChooser.c 6>Database.cpp 6>LiteCoreStatic.vcxproj -> C:\Users\mostain\Desktop\couchbase\newdb\couchbase-lite-C\build_cmake\vendor\couchbase-lite-core\Release\LiteCoreStatic.lib 6>Done building project "LiteCoreStatic.vcxproj". 13>------ Build started: Project: CouchbaseLiteC, Configuration: Release x64 ------ 13>Building Custom Rule C:/Users/mostain/Desktop/couchbase/newdb/couchbase-lite-C/CMakeLists.txt 13>empty.cpp 13>LINK : fatal error LNK1181: cannot open input file 'vendor\couchbase-lite-core\Release\LiteCoreWebSocket.lib' 13>Done building project "CouchbaseLiteC.vcxproj" -- FAILED. 14>------ Build started: Project: CBL_C_Tests, Configuration: Release x64 ------ 14>Building Custom Rule C:/Users/mostain/Desktop/couchbase/newdb/couchbase-lite-C/test/CMakeLists.txt 14>BlobTest_Cpp.cc 14>CBLTestsMain.cpp 14>DatabaseTest.cc 14>DatabaseTest_Cpp.cc 14>QueryTest.cc 14>ReplicatorTest.cc 14>LibC++Debug.cc 14>Backtrace.cc 14>Generating Code... 14>CBLTest.c 14>CBLTest.cc 14>LINK : fatal error LNK1181: cannot open input file '..\Release\CouchbaseLiteC.lib' 14>Done building project "CBL_C_Tests.vcxproj" -- FAILED. 15>------ Build started: Project: ALL_BUILD, Configuration: Release x64 ------ 15>Building Custom Rule C:/Users/mostain/Desktop/couchbase/newdb/couchbase-lite-C/CMakeLists.txt ========== Build: 12 succeeded, 3 failed, 0 up-to-date, 0 skipped ==========

mateors commented 4 years ago

please have a look at my error screen https://master-erp.com/download/3_error.png

borrrden commented 4 years ago

I confirmed it still builds with VS2017. Try adding an #include <functional> to BuiltInWebSocket.cc and see if that helps, though. That is where the bind function is defined.

mateors commented 4 years ago

@borrrden I have added #include to BuiltInWebSocket.cc and finally its working now. Thank you lot for your cooperation.

14>CBL_C_Tests.vcxproj -> C:\Users\mostain\Desktop\couchbase\newdb\couchbase-lite-C\build_cmake\test\Release\CBL_C_Tests.exe 14>Copying C:/Users/mostain/Desktop/couchbase/newdb/couchbase-lite-C/build_cmake/test/../Release/CouchbaseLiteC.dll to C:/Users/mostain/Desktop/couchbase/newdb/couchbase-lite-C/build_cmake/test/Release 15>------ Build started: Project: ALL_BUILD, Configuration: Release x64 ------ 15>Building Custom Rule C:/Users/mostain/Desktop/couchbase/newdb/couchbase-lite-C/CMakeLists.txt ========== Build: 15 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

mateors commented 4 years ago

@borrrden after successful build i got following 4 files under Release folder

image

is that okay?

borrrden commented 4 years ago

Looks alright to me

function1983 commented 2 years ago

Hi @borrrden , your fix works. I just wonder why it is not merged into the main branch?