Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build errors with mgclient C library in windows OS #64

Open
selvamkc83 opened this issue Aug 16, 2024 · 2 comments
Open

build errors with mgclient C library in windows OS #64

selvamkc83 opened this issue Aug 16, 2024 · 2 comments
Labels
community community Effort - Unknown Effort - Unknown Frequency - Monthly Frequency - Monthly Reach - VeryFew Reach - VeryFew Severity - S3 Severity - S3

Comments

@selvamkc83
Copy link

I am trying to build mgclient lib in Windows and C/C++ and having errors on the "CMake Error at

CMake Error at CMakeLists.txt:118 (add_subdirectory):
add_subdirectory given source "D:/Software/mgclient-master/src/src"
which is not an existing directory.

CMake Error at C:/msys64/mingw64/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:233 (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.3.1")
Call Stack (most recent call first):

"
can someone help if its restricted to 1.0.2 version or any specific vesrion of open ssl only ?

  1. I executed $ cmake -DOPENSSL_INCLUDE_DIR="$OPENSSL_ROOT_DIR\include" .. from the src/build directory.

  2. I had open ssl version 3.3.1 - can someone heIlp if its restricted to 1.0.2 version or any specific vesrion of open ssl only ?

  3. I executed $ cmake -DOPENSSL_INCLUDE_DIR="$OPENSSL_ROOT_DIR\include" .. from the src/build directory.

  4. I had open ssl version 3.3.1 - can someone heIlp if its restricted to 1.0.2 version or any specific vesrion of open ssl only ?

@antejavor
Copy link

Hi @selvamkc83, thanks for opening the issue 🙏

@antejavor antejavor added community community Severity - S3 Severity - S3 Effort - Unknown Effort - Unknown Frequency - EveryTime Frequency - EveryTime Reach - VeryFew Reach - VeryFew Frequency - Monthly Frequency - Monthly and removed Frequency - EveryTime Frequency - EveryTime labels Aug 19, 2024
@gitbuda
Copy link
Member

gitbuda commented Aug 25, 2024

@selvamkc83 fighting the same thing under memgraph/rsmgclient#55 (CI file for building under msys2/mingw).

In general, mgclient is buildable under [MSVC and MinGW](https://github.com/memgraph/mgclient?tab=readme-ov-file#building-and-installing-on-windows, under Github Actions done HERE), but there are many things that might go wrong:

  • is everything installed property (compiler, cmake, openssl)
  • where is OpenSSL installed -> e.g. under Github Actions, MSYS2 installed openssl under D:\a\_temp\msys64 (mentioned under https://github.com/msys2/setup-msys2?tab=readme-ov-file#msys2-location, I think that "recently" changed)
  • what's the linked, seems like under rsmgclient, cmake somehow is using 32bit linker (that's my recent hypothesis)?

As soon as I figure out under memgraph/rsmgclient#55 I'll try to get back here 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community community Effort - Unknown Effort - Unknown Frequency - Monthly Frequency - Monthly Reach - VeryFew Reach - VeryFew Severity - S3 Severity - S3
Projects
Development

No branches or pull requests

3 participants