kuchikuu
2019-11-02 23:37 deepin
Edited by kuchikuu at 2019-11-2 15:40
Hello,
If you have multicore processor, you can utilize more cores (instead of only one by default) by adding an argument -j# where # is the number of your processor's cores.
To proove it, I've done some testing.
Using `time` in Linux, I measured the time each `make` took.
Copy the CodeCopy the CodeCopy the CodeAs you can see, it went down from 10 minutes to 3 minutes.
I also did not use this
Copy the CodePerhaps I already installed them before, or perhaps they were not needed(?) but the compilation was successful.
(PS: I don't know what ./bootstrap does, but whatever it does, was not needed in my case)
Have a nice day~!
Hello,
make
{vlc is being compiled. It can take up to 15 minutes}
To proove it, I've done some testing.
Using `time` in Linux, I measured the time each `make` took.
- make #By default it will use only one core
- real 10m4,417s
- user 9m34,322s
- sys 0m40,682s
- make -j4 #Telling `make` to use 4 cores
- real 3m7,209s
- user 10m28,695s
- sys 0m48,360s
- make -j8 #Allocating more cores doesn't really make a difference
- real 3m25,774s
- user 11m30,138s
- sys 0m57,653s
I also did not use this
- sudo apt-get install git build-essential pkg-config libtool automake autopoint gettext
- ./bootstrap
(PS: I don't know what ./bootstrap does, but whatever it does, was not needed in my case)
Have a nice day~!
Reply Like 0 View the author
You have to install the VLC source code and compiled it. It can be done!
{Note: If anyone knows better, please improve it! Thank you}
1. Remove the # mark in the 3rd row of /etc/apt/sources.list by:
sudo deep-editor /etc/apt/sources.list
2. sudo apt-get update
sudo apt-get build-dep vlc
sudo apt-get install git build-essential pkg-config libtool automake autopoint gettext
3. wget http://get.videolan.org/vlc/3.0.8/vlc-3.0.8.tar.xz
tar xvf vlc-3.0.8.tar.xz
sudo mv vlc-3.0.8/ /opt/
cd /opt/vlc-3.0.8
./bootstrap
./configure
make
{vlc is being compiled. It can take up to 15 minutes}
4. ./vlc
{vlc media player is running}
vlc icon shows up in the panel. Right click the icon and click Dock.
Done!