-
Notifications
You must be signed in to change notification settings - Fork 143
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
MinGW cmake error #5
Comments
Hi, to build native libs you should prefer to use the default generator for ms-windows like below:
To compile 32 bits binaries you have to remove the option "CMAKE_GENERATOR_PLATFORM". Else I never tried using make of mingw on windows. todo. |
Regarding the message returned by CMake, it seems you CANNOT build the project in the source folder. So probably you have to MKDIR the folder build, then CD build, and finally launch the build. |
thanks. I have mkdir a folder.then I run this command:
|
I get this error: how can I fix it? |
You tried to build with a windows sdk to old (xp), and not supported by openssl. So you have to upgrade your sdk, getting the latest visual studio community edition. An other solution is to define WINVER=0x501 as follow if your are sure using a sdk compatible with win2000 platform: cmake .... -DWINVER=0x501 ... but not guarantee :). A better way should be to upgrade your windows os to the latest (10) which is a bit more comptable with POSIX. |
Tanks for your patience!I think I have found the error. However,in debug mode,cmake -G "CodeBlocks - MinGW Makefiles" -DCMAKE_BUILD_TYPE=debug -DBUILD_SHARED_LIBS=ON ..\ ,I get the error: |
E:\software\openssl-cmake\crypto\threads_win.c: In function 'CRYPTO_atomic_add': |
hi:
I want to compile openssl-cmake on window7 platform.when I run this command:
D:\software\openssl-cmake>cmake -DCMAKE_INSTALL_PREFIX=D:\software\openssl-cmake -DCMAKE_BUILD_TYPE=debug -G "MinGW Makefiles" .
-- Detecting CXX compile features - done
-- OpenSSL version 1.1.1b
CMake Error at D:/software/gt_compress/3thparty/win_lib/CMake/share/cmake-3.9/Modules/CheckIncludeFile.cmake:46 (configure_file):
configure_file attempted to configure a file:
D:/software/openssl-cmake/CMakeFiles/CMakeTmp/CheckIncludeFile.c into a
source directory.
Call Stack (most recent call first):
D:/software/gt_compress/3thparty/win_lib/CMake/share/cmake-3.9/Modules/CheckTypeSize.cmake:223 (check_include_file)
CMakeLists.txt:144 (check_type_size)
I need your help.thanks.
The text was updated successfully, but these errors were encountered: