Ubuntu compilation Environment Build (SSH)

Source: Internet
Author: User
Tags install openssl

# Jason Gao # [email protected]# Now in Xidian University
1 Basic Building
sudo apt-get install subversion git-core git-svnsudo apt-get install make gcc g++ libX11-dev libXt-dev libgl1-mesa-dev libosmesa6-dev libglu1-mesa-dev libfontconfig-dev libxrender-dev libncurses5-devsudo apt-get install cmake
2 CMake

(Ln-s best Manual, finally to confirm, in order to distinguish the best named Cmake-ssl)

sudoApt-get install OpenSSL libssl-devmkdir ~/support &&CDSupport Cmake_package="cmake-3.0.0"; Wget Http://www.cmake.org/files/v3.0/$cmake _package. tar.gz-v-O$cmake _package. tar.gz && TAR-XZVF$cmake _package. tar.gz;CD $cmake _package&& Cmake-dcmake_use_openssl:bool=on && Make-j4 forToolinchCMake ccmake CTest Cpack; Do sudoln- S~/support/$cmake _package/bin/$tool/usr/local/bin/$tool; Done
3 QT

(You can omit the intermediate step without OpenSSL, remember to delete the OpenSSL parameter when configure)

CD ~/support CWD=$ (PWD) RM- FGet-and-build-openssl-for-slicer.Shwget https://gist.githubusercontent.com/jcfr/9513568/raw/21f4e4cabca5ad03435ecc17ab546dab5e2c1a2f/ Get-and-build-openssl-for-slicer.shchmod u+X get-and-build-openssl-for-slicer.Sh./get-and-build-openssl-for-slicer.SH wget http://packages.kitware.com/download/item/6175/qt-everywhere-opensource-src-4.8.6.tar.gzMd5=' md5sum./qt-everywhere-opensource-src-4.8.6.tar.gz | awk ' {print '} ' &&[ $MD 5 == "2edbe4d6c2eff33ef91732602f3518eb" ]| | echo "MD5 mismatch. Problem downloading Qt "TAR-XZVF qt-everywhere-opensource-src-4.8.6.tar.gzmv qt-everywhere-opensource-src-4.8.6 Qt-everywhere-opensource-release-src-4.8.6mkdir QT-EVERYWHERE-OPENSOURCE-RELEASE-BUILD-4.8.6CD                       Qt-everywhere-opensource-release-src-4.8.6./configure-prefix $CWD/qt-everywhere-opensource-release-build-4.8.6/                    -release-opensource-confirm-license-no-qt3support -webkit-nomake examples-nomake demos-openssl-i $cwd/openssl-1.0.1e/include- L $cwd/openssl-1.0.1e && make-j7 && make install
Tips for me
    • Use Qtcreator remember cmake don't choose wrong, now there are two versions of CMake, and Cmake-gui version should be lower
    • QT Library default is not found, enter the location of Qmake
    • QT install before the build folder is Nothing t.t, don't look for ...
    • Works with Superbuild, do not open with Qtcreator when open cmakelists.txt!
OK it ' s done!

Ubuntu compilation Environment Build (SSH)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.