-
Notifications
You must be signed in to change notification settings - Fork 5
/
INSTALL.txt
101 lines (84 loc) · 5.19 KB
/
INSTALL.txt
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
This files contains the installation instructions for cppn-x.
These installations have been tested on Windows XP (SP 3) and Mac OS X 10.6.8,
but they might work on other systems as well.
Please chose the instructions for the system that most closely resembles yours
and mail to joost.hui@gmail.com, providing as much information as possible,
if you encounter any problems.
****************************
*** UNIX and MAC systems ***
****************************
These are the installation instructions for MAC and UNIX based systems.
Because of a recent MAC specific fix, there is a good chance that it will not compile on UNIX.
If this is the case, open compile.sh, remove the arguments to qmake, and try again.
*** Install QT 4.8 ***
For Mac:
- Download 'Qt libraries 4.8.4 for Mac (185 MB)' from http://qt-project.org/downloads.
For UNIX:
- Download 'Qt libraries 4.8.4 for embedded Linux (226 MB)' from http://qt-project.org/downloads.
For both:
- Execute the installer and follow the instructions.
*** Install GSL-1.16 ***
- Download GSL-1.16 from http://www.gnu.org/software/gsl/
- Follow the installation instruction provided in the README and INSTALL files.
*** (optional) Install FFmpeg 1.2 ***
- Download the FFmpeg 1.2.1 "Magic" release from: http://www.ffmpeg.org/download.html (Make sure it is the source code and not a precompiled binary)
- Install the libraries according the the instruction found in INSTALL. These instructions are usually:
- ./configure
- make
- make install
- If the there are missing packages, install them separately.
The following site lists the commands to install most of ffmpegs dependencies, but your probably don't need all of them: http://hunterford.me/compiling-ffmpeg-on-mac-os-x/
*** Compile cppn-x ***
- Open compile.sh and check that all paths are correct. The compile.sh will have additional comments for setting.
- Run compile.sh
For UNIX:
- The executable 'cppn-x' should be placed in the 'build' folder.
For MAC:
- The app 'cppn-x.app' should be placed in the 'build' folder.
*** Run cppn-x ***
For UNIX:
- Run 'cppn-x' in the 'build' folder.
For MAC:
- Open 'cppn-x.app' in the 'build' folder from a finder window or execute build/cppn.app/Contents/MacOS/cppn-x.
****************************
***** Windows systems ******
****************************
These instructions use the open source 'MinGW' (Minimalist GNU for windows) to install both QT and cppn-x.
It is probably possible to install everything using Visual Studio 2008 or Visual Studio 2010,
but this has not been tested and no instructions are available.
*** Install MinGW 4.4 ***
- Download MinGW-gcc-4.4.0 (MinGW-gcc440_1.zip) from: http://nosymbolfound.blogspot.com/2012/12/since-until-now-qt-under-windows-is.html
- Extract where you wish to install MinGW (there will not be an installer) and remember where you put it.
The MinGW variant of QT explicitly states that it needs MinGW 4.4 in order to function properly when using the pre-compiled binaries.
More recent versions are reported to function properly when compiling QT yourself, but these instructions use the pre-compiled binaries.
*** Install QT 4.8.4 ***
- Download 'Qt libraries 4.8.4 for Windows (minGW 4.4, 317 MB)' from: http://qt-project.org/downloads
- Execute the installer (qt-win-opensource-4.8.4-mingw.exe) and follow the instructions.
- You can install QT anywhere but you have to remember the installation directory.
- When, during the installation of QT, you are asked where MinGW is installed,
make sure you provide the installation directory you remembered in the step above.
You can now forget this directory.
*** (optional) Install FFmpeg 1.2 ***
- Download the FFmpeg 1.2 shared and the FFmpeg 1.2 dev builds from: http://ffmpeg.zeranoe.com/builds/
- For 32 bit:
- Shared build: ffmpeg.zeranoe.com/builds/win32/shared/ffmpeg-1.2-win32-shared.7z
- Dev build: ffmpeg.zeranoe.com/builds/win32/dev/ffmpeg-1.2-win32-dev.7z
- For 64 bit:
- Shared build: ffmpeg.zeranoe.com/builds/win64/shared/ffmpeg-1.2-win64-shared.7z
- Dev build: ffmpeg.zeranoe.com/builds/win64/dev/ffmpeg-1.2-win64-dev.7z
- You can extract these libraries anywhere, but you have to remember where they are installed.
- Open (edit) qt-path.bat and change the paths after QT_DEV_PATH and QT_SHARED_PATH to the directories of the builds you just extracted.
Make sure the QT_DEV_PATH contains the 'include' and 'lib' directories.
Make sure the QT_SHARED_PATH contains the 'bin' directory.
- In the instructions below, run compile-mpeg.bat instead of compile.bat
- This build will probably only run using run.bat
*** Install cppn-x 0.5 ***
- Open (edit) qt-path.bat and make sure the path points to the bin directory in the QT installation directory you remembered in the previous step.
As such, the second line should read something like: set PATH=C:\path\to\qt\4.8.4\bin
Don't forget to save this file.
- Run compile.bat
- An executable (cppn-x.exe) should now be present in build\release
*** Run cppn-x 0.5 ***
Usually you can just run build\release\cppn-x.exe
If that doesn't work due to dll errors, try running it using run.bat
Have fun using it, and please let me know if there are any features missing from this build.