Coder Social home page Coder Social logo

libx11-1's Introduction

BUILD
-----
Default build use ldc2 as D compiler and build as a static lib. Use flag -j for speed up.
Commonly we use this formula: number of cores x 2 + 1
so if you have 4 cores: 4 x 2 + 1 = 9
In this case you add to make command this flag -j 9.

 - ldc2:
$ make
 - dmd:
$ make DC=dmd
 - gdc:
$ make DC=gdc

- build as shared lib:
$ make shared-lib

- Add D flag to build
$ make DCFLAGS+="-w -g -O3"


INSTALL
-------
Usefull var PREFIX, LIB_DIR, DATA_DIR, DESTDIR
Default on *NIX:
 PREFIX      = /usr
 BIN_DIR     = /usr/bin
 INCLUDE_DIR = /usr/include/d
 LIB_DIR     = /usr/lib or /usr/lib64 if you are on 64 bits system
 DATA_DIR    = /usr/share

Default on Windows:
%ProgramFiles%      = C:\Program Files
%programfiles(x86)% = C:\Program Files(x86)
 
 PREFIX      = C:\Program Files
 BIN_DIR     = C:\Program Files\<PROJECT NAME>\bin
 INCLUDE_DIR = C:\Program Files\<PROJECT NAME>\import
 LIB_DIR     = C:\Program Files\<PROJECT NAME>\lib
 DATA_DIR    = C:\Program Files\<PROJECT NAME>\data
 
 
 DESTDIR = , is empty this var it use for chroot an install
 

- Install: static lib, doc, header, pkgfile
$ su -c 'make install'

-Install: shared lib, doc, header, pkgfile
$ su -c 'make install-shared'

- Install both static and shared lib:   static lib, shared lib, doc, header, pkgfile
$ su -c 'make install install-shared-lib'


If you install a shred lib you need to run ldconfig:
su -c 'ldconfig'

libx11-1's People

Contributors

arukuka avatar bioinfornatics avatar edmccard avatar ianwizard avatar martinnowak avatar philipwitte avatar skilion avatar walterbright avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.