静态链接sqlcipher

时间:2015-07-17 08:29:23

标签: c++ sqlite static-linking sqlcipher odb

我遇到静态链接问题,这不是动态链接。

13步{my} Dockerfile(见下文)配置时我得到以下内容:

 ...
 checking for HMAC_Init_ex in -lcrypto... no
 configure: error: Library crypto not found. Install openssl!"

Dockerfile

 #STEP 4: Set OpenSSL version
 ENV OPENSSL_VERSION 1.0.2d

 #STEP 5: Download and install no-shared OpenSSL 
 RUN wget "http://www.openssl.org/source/openssl-$OPENSSL_VERSION.tar.gz" && \
     tar xf openssl-$OPENSSL_VERSION.tar.gz && \
     cd openssl-$OPENSSL_VERSION && \
     export CFLAGS="$CFLAGS -fPIC" && \
     export CXXFLAGS="$CXXFLAGS -fPIC" &&\
     CC="gcc -fPIC" ./config no-shared \
                        --prefix=/usr \
                        --libdir=lib && \
     make && \
     make install && \
       cd ..

 #STEP 12: Download sqlcipher
 RUN git clone --progress --verbose https://github.com/sqlcipher/sqlcipher.git

 #STEP 13: Install no-shared sqlcipher
 RUN cd sqlcipher && \ 
     ./configure  --disable-tcl --disable-shared --enable-tempstore=yes \
     CFLAGS="-DSQLITE_HAS_CODEC" LDFLAGS="/usr/lib/libcrypto.a" && \
     make && \
     make install && \
     cd ..

0 个答案:

没有答案