Was this page helpful?

msmtp Cross-Compile

    msmtp 是一個簡易的 smtp client 軟體,可用來寄發郵件。

    相依性函式庫:

    • openssl (STLinux 有內建)
    • libgsasl
    • libidn

    libgsasl Cross-Compile

    wget ftp://ftp.gnu.org/gnu/gsasl/libgsasl-1.8.0.tar.gz
    tar xzf libgsasl-1.8.0.tar.gz
    cd libgsasl-1.8.0/
    
    ./configure \
    CC=sh4-linux-gcc \
    AR=sh4-linux-ar \
    CXX=sh4-linux-g++ \
    RANLIB=sh4-linux-ranlib \
    --host=sh4-linux --prefix=/usr
    
    make
    make install DESTDIR=/home/alang/STLinux_Cross-Compile/build_opt/libgsasl
    

    libidn Cross-Compile

    wget http://ftp.gnu.org/gnu/libidn/libidn-1.26.tar.gz
    tar xzf libidn-1.26.tar.gz
    cd libidn-1.26/
    
    ./configure \
    CC=sh4-linux-gcc \
    AR=sh4-linux-ar \
    CXX=sh4-linux-g++ \
    RANLIB=sh4-linux-ranlib \
    --host=sh4-linux --prefix=/usr
    
    make 
    make install DESTDIR=/home/alang/STLinux_Cross-Compile/build_opt/libidn
    

    msmtp Cross-Compile

    wget "http://downloads.sourceforge.net/project/msmtp/msmtp/1.4.30/msmtp-1.4.30.tar.bz2?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fmsmtp%2Ffiles%2Fmsmtp%2F1.4.30%2F&ts=1356251454&use_mirror=nchc" -O msmtp-1.4.30.tar.bz2
    
    tar xjf msmtp-1.4.30.tar.bz2
    cd msmtp-1.4.30/
    
    ./configure \
    CC=sh4-linux-gcc \
    AR=sh4-linux-ar \
    CXX=sh4-linux-g++ \
    RANLIB=sh4-linux-ranlib \
    libssl_CFLAGS="-I/opt/STM/STLinux-2.3/devkit/sh4/target/usr/include" \
    libssl_LIBS="-L/opt/STM/STLinux-2.3/devkit/sh4/target/usr/lib -lssl -lcrypto" \
    libgsasl_CFLAGS="-I/home/alang/STLinux_Cross-Compile/build_opt/libgsasl/usr/include" \
    libgsasl_LIBS="-L/home/alang/STLinux_Cross-Compile/build_opt/libgsasl/usr/lib -lgsasl" \
    libidn_CFLAGS="-I/home/alang/STLinux_Cross-Compile/build_opt/libidn/usr/include" \
    libidn_LIBS="-L/home/alang/STLinux_Cross-Compile/build_opt/libidn/usr/lib -lidn" \
    --host=sh4-linux --prefix=/usr --with-ssl=openssl 
    
    make
    make install DESTDIR=/home/alang/STLinux_Cross-Compile/build_opt/msmtp
    

     

    Was this page helpful?
    標籤 (Edit tags)
    • No tags
    您必須 登入 才能發佈評論。
    Powered by MindTouch Core