CppServer icon indicating copy to clipboard operation
CppServer copied to clipboard

Not able to build on Windows

Open SanjayVidyagar opened this issue 4 years ago • 2 comments

The README says that on Windows with minGW, i need to run the mingw.bat. But I do not see such a batch file.

Am I missing something or the documentation is really not understandable in this particular area.

SanjayVidyagar avatar Feb 10 '21 15:02 SanjayVidyagar

https://github.com/chronoxor/CppServer#how-to-build

First you need to install gil tool using python pip3. Than use gil update to update all modules. And then you'll see mingw.bat in build directory.

chronoxor avatar Feb 10 '21 15:02 chronoxor

I got errors when I execute mingw.bat, can you see the problem?

modules/CppCommon/libcppcommon.a(uuid.cpp.obj):uuid.cpp:(.text[ 64%] Built target cppserver-example-asio_timer
+0x1b3):[ 64%] Built target cppserver-example-asio_service
 undefined modulesreference/ CppCommonto/[ 64%]  Building CXX object CMakeFiles/cppserver-tests.dir/tests/test_http.cpp.objlibcppcommon.a
`(__imp_UuidCreateSequentialuuid.cpp.obj[ 65%] Linking CXX executable cppserver-performance-wss_multicast_client.exe
)':
uuid.cppmodules:/(CppCommon./textlibcppcommon.a+(0x1b3[ 66%] uuid.cpp.obj[ 66%] Building CXX object CMakeFiles/cppserver-example-https_client.dir/examples/https_client.cpp.obj
)):Linking CXX executable cppserver-performance-wss_multicast_server.exe:uuid.cpp
 :undefined( .referencetext +to0x2e3 )`:modules__imp_UuidCreateSequential /'undefinedCppCommon
 /modulesreferencelibcppcommon.a/ (CppCommontopath.cpp.obj/ )libcppcommon.a`:(__imp_UuidCreatepath.cppuuid.cpp.obj':)
(:collect2.exe: error: ld returned 1 exit status
.uuid.cpptext:+libcppserver.a(0x270a(.mingw32-make[2]: *** [CMakeFiles\cppserver-example-udp_multicast_server.dir\build.make:108: cppserver-example-udp_multicast_server.exe] Error 1
)ssl_context.cpp.objtext:mingw32-make[1]: *** [CMakeFiles\Makefile2:352: CMakeFiles/cppserver-example-udp_multicast_server.dir/all] Error 2
)+ mingw32-make[1]: *** Waiting for unfinished jobs....
:0x2e3undefinedssl_context.cpp) :[ 67%] Building CXX object CMakeFiles/cppserver-tests.dir/tests/test_https.cpp.obj
(:reference.  textundefinedto+  0x4areferencemodules`) /__imp_GetUserProfileDirectoryW:toCppCommon'  /
undefined`libcppcommon.amodules __imp_UuidCreate(/reference'path.cpp.objCppCommon
collect2.exe: error: ld returned 1 exit status
/to)libcppcommon.a mingw32-make[2]: *** [CMakeFiles\cppserver-example-http_client.dir\build.make:108: cppserver-example-http_client.exe] Error 1
(:mingw32-make[1]: *** [CMakeFiles\Makefile2:500: CMakeFiles/cppserver-example-http_client.dir/all] Error 2
uuid.cpp.obj`path.cpp)__imp_CertOpenSystemStoreA::'[ 67%] uuid.cppBuilding CXX object CMakeFiles/cppserver-tests.dir/tests/test_ssl.cpp.obj(
:
.(libcppserver.atext+(.0x270assl_context.cpp.objtext))+::0x1b3 ssl_context.cpp)undefined:: ( reference.undefined text to+reference 0x62 `)to__imp_GetUserProfileDirectoryW: ' `
undefined__imp_UuidCreateSequentialmodules '/reference
CppCommon modules/to/libcppcommon.a CppCommon(`/uuid.cpp.obj__imp_CertEnumCertificatesInStorelibcppcommon.a)'(:
uuid.cpp.objuuid.cpplibcppserver.a):(:(ssl_context.cpp.objuuid.cpp.):text:(+ssl_context.cpp.0x1b3:text)(+:.0x2e3 text)undefined+: 0xb9 reference)undefined : to reference undefined ` to__imp_UuidCreateSequentialreference ' `
to__imp_UuidCreatemodules '/`
CppCommon__imp_CertFreeCertificateContextcollect2.exe: error: ld returned 1 exit status
/'mingw32-make[2]: *** [CMakeFiles\cppserver-example-http_server.dir\build.make:108: cppserver-example-http_server.exe] Error 1

the following roughly the same, thanks for your help

vbtueli avatar May 07 '21 09:05 vbtueli