Skip to content

Latest commit

 

History

History
58 lines (46 loc) · 1.67 KB

README.md

File metadata and controls

58 lines (46 loc) · 1.67 KB

X4:Foundnations Station Editor

How to complie

Build requirements

  • Qt5(5.14.1 or above. Environment variables QT and Path must be setted on windows)
  • OpenSSL(1.1.1 or above)
  • cmake
  • gcc/mingw/visual studio
  • doxygen(Optional)

Compile

  • Code documents can be found in doc/ and executable files can be found in bin/.
Windows
  1. md build
  2. cd build
  3. cmake -G "Visual Studio 15 2017 Win64" -DCMAKE_BUILD_TYPE=Release ..(You should change the -G option to the version of the Vsiual Studio on your computer).
  4. cmake --build . --config Release
Linux
How to Install Dependencies
  1. Arch Linux
    1. Qt5
      1. sudo pacman -S qt5
    2. OpenSSL
      1. sudo pacman -S openssl
    3. cmake
      1. sudo pacman -S cmake
    4. gcc
      1. sudo pacman -S gcc
  2. Ubuntu
    1. Qt5
      1. Download and install qt5 from https://download.qt.io/archive/qt/(the version must be greater than 5.14.0).
      2. Append the path of gcc_64/lib in your qt5 installalion path to environment variable LD_LIBRARY_PATH.
      3. Set the path of gcc_64 in your qt5 installalion path to environment variable QT.
      4. Restart your computer.
      5. Replace the 3rd command in the build commands to cmake -DCMAKE_PREFIX_PATH=${QT} -DCMAKE_BUILD_TYPE=Release ...
    2. OpenSSL
      1. sudo apt-get install libssl-dev
    3. cmake
      1. sudo apt-get install cmake
      2. sudo apt-get install make
    4. gcc
      1. sudo apt-get install gcc
      2. sudo apt-get install g++
Build Commands
  1. mkdir build
  2. cd build
  3. cmake -DCMAKE_BUILD_TYPE=Release ..
  4. cmake --build .