User Tools

Site Tools


ubuntu_compilation_howto

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ubuntu_compilation_howto [2017/03/11 23:22] – external edit 127.0.0.1ubuntu_compilation_howto [2020/07/21 05:03] (current) maefloresta
Line 3: Line 3:
 ;#; ;#;
  
-=====How to compile Tupi from source code (Ubuntu - 14.04/15.04 + Qt5)===== +=====How to compile TupiTube Desk from source code (Ubuntu + Qt5)===== 
  
 1. Install all the dependencies required using Ubuntu packages:\\ 1. Install all the dependencies required using Ubuntu packages:\\
 - Run these commands from console: - Run these commands from console:
-    * sudo apt-get install build-essential +<code> 
-    sudo apt-get install ruby +sudo apt-get install build-essential 
-    sudo apt-get install libavcodec-dev libavformat-dev +sudo apt-get install ruby 
-    sudo apt-get install libogg-dev libtheora-dev +sudo gem install so 
-    sudo apt-get install zlib1g-dev +sudo apt-get install zlib1g-dev 
-    sudo apt-get install libgl1-mesa-dev +sudo apt-get install libgl1-mesa-dev 
-    sudo apt-get install git +sudo apt-get install libpulse-dev 
- +sudo apt-get install git 
-2. Install the Qt5 framework:\\ +</code> 
-    * Download the installer for the architecture of your operating system (32 or 64 bit) from https://www.qt.io/download/+2. Install the Qt5 framework (version 5.13 or higher):\\ 
 +    * Download the installer for the architecture of your operating system (32 or 64 bit) from https://download.qt.io/archive/qt/
     * Run these commands from console:     * Run these commands from console:
-      * chmod 755 installer_name.run +<code> 
-      ./installer_name.run (follow the step by step wizard)+chmod 755 installer_name.run 
 +./installer_name.run (follow the step by step wizard) 
 +</code>
     * Modify your PATH variable including your Qt5 installation path:     * Modify your PATH variable including your Qt5 installation path:
-      * export PATH=/*your*/*Qt*/*path*/5.7.0/gcc_64/bin:$PATH+<code> 
 +export PATH=/*your*/*Qt*/*path*/5.*.*/gcc_64/bin:$PATH 
 +</code>
     * Verify your Qt5 version:     * Verify your Qt5 version:
-      * qmake -version +<code> 
 +qmake -version 
 +</code>
 - Let's see an specific example (64 bit using account "user"): - Let's see an specific example (64 bit using account "user"):
-    * wget http://download.qt.io/official_releases/qt/5.7/5.7.0/qt-opensource-linux... +<code> 
-    chmod 755 qt-opensource-linux-x64-5.7.0.run +wget https://download.qt.io/archive/qt/5.14/5.14.2/qt-opensource-linux-x64-5.14.2.run  
-    ./qt-opensource-linux-x64-5.7.0.run +chmod 755 qt-opensource-linux-x64-5.14.2.run 
- +./qt-opensource-linux-x64-5.14.2.run 
-- The Qt5 installation path was: /home/user/Qt5.7.0 +</code> 
-    export PATH=/home/user/Qt5.7.0/5.7/gcc_64/bin:$PATH +- The Qt5 installation path was: /home/user/Qt5.14.
-    qmake -version +<code> 
- +export PATH=/home/user/Qt5.14.2/5.14.2/gcc_64/bin:$PATH 
-  QMake version 3.0 +qmake -version
-  Using Qt version 5.7.0 in /home/user/Qt5.7.0/5.7/gcc_64/lib +
- +
-3. Install the Quazip dependency:\\ +
- +
-**Warning:** If you want to use the Quazip package from Ubuntu's repository, ensure it was created using Qt5, otherwise Tupi compilation will fail.\\ +
- +
-- Download the source code from http://sourceforge.net/projects/quazip/files/latest/download +
-    * tar xvfz quazip-0.7.2.tar.gz +
-    * cd quazip-0.7.2 +
-    * qmake "PREFIX=/usr/local" "LIBS+=-lz" +
-    * make +
-    * sudo make install +
- +
-4. Get the Tupi source code: +
- +
-   * git clone https://github.com/xtingray/tupi.git +
- +
-**Note:** If you want to try the devel version, use this command: +
- +
-   * git clone https://github.com/xtingray/tupi.git -b devel+
  
 +  QMake version 3.1
 +  Using Qt version 5.14.2 in /home/user/Qt5.14.2/5.14.2/gcc_64/lib
 +</code>
 +3. Install the Quazip dependency:
 +- Run these commands from console:
 +<code>
 +git clone https://github.com/xtingray/quazip
 +cd quazip
 +qmake "PREFIX=/usr/local" "LIBS+=-lz"
 +make
 +sudo make install
 +</code>
 +4. Get and compile FFmpeg source code:
 +- Run these commands from console:
 +<code>
 +wget https://ffmpeg.org/releases/ffmpeg-4.3.tar.gz
 +tar xvfz ffmpeg-4.3.tar.gz
 +cd ffmpeg-4.3
 +./configure --prefix=/usr/local/ffmpeg --enable-shared --disable-doc --enable-libx264 
 +--enable-gpl --disable-swresample --disable-avresample
 +</code>
 +5. Get TupiTube Desk source code:
 +<code>
 +git clone https://github.com/xtingray/tupitube.desk.git -b devel
 +</code>
 5. Compile the source code: 5. Compile the source code:
- +<code> 
-   * cd tupi +cd tupitube.desk 
-   * ./configure --prefix=/usr/local/tupi --with-quazip=/usr/local +./configure --prefix=/usr/local/tupitube.desk --with-quazip=/usr/local/quazip  
-   * make +--with-ffmpeg=/usr/local/ffmpeg 
-   * sudo make install +make 
- +sudo make install 
-6. Enjoy Tupi+</code> 
- +6. Enjoy TupiTube Desk
-   * /usr/local/tupi/bin/tupi +<code> 
 +/usr/local/tupitube.desk/bin/tupitube.desk 
 +</code>
 ;#; ;#;
 [[developer_resources|Back to Developers Page]] [[developer_resources|Back to Developers Page]]
 ;#; ;#;
  
ubuntu_compilation_howto.1489274549.txt.gz · Last modified: 2017/03/11 23:22 by 127.0.0.1