Building error openssl library for android on windows 7 platform



  • To build for android used the manual with [http://doc.qt.io/qt-5/opensslsupport.html ](link url). BUT the build process exited with an error:

    MSYS ~/openssl-1.0.2a
    $ "c:\Program Files\mingw-w64\x86_64-4.9.1-win32-seh-rt_v3-rev3\mingw64\bin\mingw32-make.exe" build_libs
    making all in crypto...
    mingw32-make[1]: Entering directory 'C:/msys64/home/user/openssl-1.0.2a/crypto'
    perl ../util/mkbuildinf.pl "gcc -I. -I.. -I../include -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -march=armv7-a -mandroid -I/include -B/lib -O3 -fomit-frame-pointer -Wall -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DAES_ASM -DBSAES_ASM -DGHASH_ASM" "android-armv7" >buildinf.h
    g++ -c -o cryptlib.o cryptlib.c
    g++: error: CreateProcess: No such file or directory
    <builtin>: recipe for target 'cryptlib.o' failed
    mingw32-make[1]: *** [cryptlib.o] Error 1
    mingw32-make[1]: Leaving directory 'C:/msys64/home/user/openssl-1.0.2a/crypto'
    makefile:279: recipe for target 'build_crypto' failed
    mingw32-make: *** [build_crypto] Error 1


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Looks like g++ is not found, did you setup that console so you can access the binaries from MinGW ?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.