summaryrefslogtreecommitdiff
path: root/INSTALL
blob: 66644083d8d42c7c80d476c89fadf1144becc372 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
Building on Linux
-----------------

Archlinux
---------

Install the following packages from the official repos or build them
from the AUR:
  * gengetopt
  * confuse
  * nanomsg
  * json-c
  * libdaemon
    
Building on Windows
-------------------

* Any Visual Studio compiler should do fine
* gengetopt: easiest is to install Cygwin and build your own version,
  we just need the gengetopt.exe binary to generate the command line parser.
  Alternatively you can build the *_cmdline.* files on Unix and copy them
  to Windows:
  
    # open a Cygwin shell
    ./configure --prefix=/usr/local/bin
    make
    make install

* confuse:

    # Download the ZIP version
    # Open windows\msvs.net.sln
    # Choose Debug/Release
    # eventually convert the solutions
    # build
    # create layout with bin, lib, include
    # copy dlls into bin, libs into lib, *.h into include
    
    
* pthreads-win32: for pthread emulation on Windows

    # open a Visual Studio Command line
    nmake clean vc-inlined-debug

* nanomsg:

    # Install cmake for Windows
    # open a Visual Studio Command line
    C:\Program Files\CMake\bin\cmake.exe .
    # Open nanomsg.sln
    # Choose Debug/Release
    # Build the solution
    # create layout with bin, lib, include
    # copy dlls into bin, libs into lib, *.h into include

* json-c:

    # Check out a working Windows fork from
    # http://github.com/andreasbaumann/json-c
    # Open windows\json-c.sln
    # Choose Debug/Release
    # build
    # copy *.h to Include\json-c directory
    # copy static *.lib from windows to lib
        
* biruda

    # open a Visual Studio Command line
    set PATH=%PATH%;c:\cygwin\bin
    nmake /f NMakefile