Changes between Initial Version and Version 1 of doc-devel/slang-16Mcolors-32bits


Ignore:
Timestamp:
01/31/17 17:34:09 (8 years ago)
Author:
mooffie
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • doc-devel/slang-16Mcolors-32bits

    v1 v1  
     1= How to use 16M colors on 32-bits systems = 
     2 
     3MC 4.8.19 onward supports 16 millions colors. 
     4 
     5Only, however, if you're using S-Lang 2.3.1 and up on a **64-bits** system. 
     6 
     7That's exactly the problem: if you're on a **32-bits** system, you're toast. (This is supposed to be fixed in some futuristic "version 3" of S-Lang.) 
     8 
     9This page shows how to compile S-Lang with 16M colors **on a 32-bits system**, and how to compile MC against it. 
     10 
     11== Compiling & installing S-Lang: == 
     12 
     13{{{ 
     14rm -rf ~/slang-dev 
     15mkdir ~/slang-dev 
     16cd ~/slang-dev 
     17 
     18wget http://www.jedsoft.org/releases/slang/old/slang-2.3.0.tar.gz 
     19tar zxvf slang-2.3.0.tar.gz 
     20cd slang-2.3.0 
     21 
     22wget http://midnight-commander.org/raw-attachment/ticket/3145/slang-truecolor-demo.patch 
     23patch -p1 < slang-truecolor-demo.patch 
     24 
     25# Let MC know we support 16M colors: 
     26perl -i -pe 's/#define SLANG_VERSION 20300/#define SLANG_VERSION 30000/' src/slang.h 
     27# Remove duplicate declarations (gives compiler warnings): 
     28perl -i -pe '$skip || s/SL_EXTERN int SLrline_get_update_client_data \(SLrline_Type \*, VOID_STAR \*\);// && ($skip=1)' src/slang.h 
     29 
     30./configure --prefix=$HOME/local-slang 
     31 
     32make 
     33make install 
     34 
     35rm -rf ~/slang-dev 
     36}}} 
     37 
     38== Compiling MC: == 
     39 
     40{{{ 
     41cd /PATH/TO/YOUR/MC-BUILD-DIR 
     42 
     43../configure \ 
     44  --prefix=$HOME/local-mc16Mcolors \ 
     45  --with-screen=slang \ 
     46  --with-slang-includes=$HOME/local-slang/include \ 
     47  --with-slang-libs=$HOME/local-slang/lib \ 
     48  CFLAGS="-g -O0" 
     49 
     50make 
     51make install 
     52 
     53# download a sample 16M skin: 
     54cd $HOME/local-mc16Mcolors/share/mc/skins 
     55wget http://midnight-commander.org/raw-attachment/ticket/3724/seasons-spring16M.ini 
     56 
     57# run mc: 
     58export LD_LIBRARY_PATH=$HOME/local-slang/lib 
     59export TERM=xterm-256color  # if it's not already so. 
     60/PATH/TO/YOUR/MC-BUILD-DIR/src/mc   # or run it from $HOME/local-mc16Mcolors/bin/mc 
     61# ...then go to Options >> Appearance and choose the 16M skin. 
     62}}}