Changes between Version 31 and Version 32 of Building/libtorrent


Ignore:
Timestamp:
10/19/2016 12:07:31 PM (8 years ago)
Author:
Cas
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Building/libtorrent

    v31 v32  
    5454 
    5555 
    56 === Add a temporary swap file === 
     56=== Temporary Swap File for Rasperry Pi or low memory systems === 
    5757 
    58 Compiling a library needs memory/swap during the "make". If you get an internal error during this phase on a computer with low memory and/or no swap partition (check with `free -m` ) you can test below procedure. 
     58Compiling libtorrent requires a lot of memory/swap during the `make` process ~1-2GB. 
    5959 
    60  1. Create a 1GB empty file: 
    61 `dd if=/dev/zero of=/.swapfile bs=1024 count=1M` 
    62 1GB file creation wherever you have space, change the location following your possibilities  
    63  2. Create swap: 
    64 `mkswap /.swapfile` 
    65  3. Activate swap: 
    66 `swapon /.swapfile` 
    67  4. check: 
    68 Check if the swap is recognized with `swapon -s` or `free -m` (swap different from 0)  
    69  5. Relaunch your compilation 
    70  6. Disable swap: 
    71 `swapoff /.swapfile` 
    72  7. delete file: 
    73 `rm -f /.swapfile` 
     60If you get an internal error during the make phase on a computer with low memory and/or no swap partition (verify with `free -m` ) you can try the below procedure. 
     61 
     62 1. Create a 1GB empty swap file, (use a drive location that has enough free space): 
     63{{{ 
     64dd if=/dev/zero of=/.swapfile bs=1G count=1M 
     65}}} 
     66 2. Format swap file: 
     67{{{ 
     68mkswap /.swapfile 
     69}}} 
     70 3. Activate swap file: 
     71{{{ 
     72swapon /.swapfile 
     73}}} 
     74 4. Verify swap file is recognized: 
     75{{{ 
     76swapon 
     77}}} 
     78 5. Start/restart your libtorrent build. 
     79 6. Disable swap file: 
     80{{{ 
     81swapoff /.swapfile 
     82}}} 
     83 7. Delete swap file: 
     84{{{ 
     85rm -f /.swapfile 
     86}}} 
    7487 
    7588