-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
149 lines (91 loc) · 4.51 KB
/
README
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
HOW TO MAKE A BUILD
Linux and Windows are the supported operating systems.
for the impatient, here is the short version:
install a lot of packages on your Ubuntu 18.04 LTS
$ sudo apt-get install libreoffice build-essential libgtk-3-dev bison flex checkinstall librsvg2-dev libao-dev \
libmpg123-dev libcurl4-openssl-dev libssh2-1-dev libavcodec-dev libavformat-dev libavresample-dev libavutil-dev \
libswscale-dev liblzma-dev libxml2-dev git mingw-w64 wine-stable
Clone the judoshiai repository
$ git clone https://git.code.sf.net/p/judoshiai/judoshiai judoshiai
setup everything to compile for windows
$ cd judoshiai; ./install-mxe-env.sh
$ wget http://judoshiai.sourceforge.net/win32-gtk3.tgz
$ sudo tar xvzf win32-gtk3.tgz -C /opt
build Software
$ ./build-all.sh
Now follows everything explained in a bit more detail
Development work is done in Linux environment. For Windows users it is recommended
to install VirtualBox + Ubuntu 18.4 LTS for compilation. Learn how to use
Linux terminal and line commands. Everything below after the $ sign
is typed in a terminal.
LibreOffice is needed for PDF creation. You should already have it,
but if not, get it with the following command:
$ sudo apt-get install libreoffice
"sudo" makes you have temporary root priviledges that are required for
software installation. "apt-get install" fetches and installs software packages.
Install the basic development tools:
$ sudo apt-get install build-essential libgtk-3-dev bison flex
You probably already have "build-essential" (compiler, linker). "gnome-devel"
contains everything needed for GTK+ graphical user interface development.
"bison flex" are used for parsing text. "checkinstall" is required for Debian packages.
Next some libraries:
$ sudo apt-get install librsvg2-dev libao-dev libmpg123-dev libcurl4-openssl-dev libssh2-1-dev
For judoproxy:
$ sudo apt-get install libavcodec-dev libavformat-dev libavresample-dev libavutil-dev libswscale-dev
$ sudo apt-get install liblzma-dev libxml2-dev
Debian package creation requires Ruby and fpm:
$ sudo apt-get -y install ruby ruby-dev rubygems
$ sudo -E gem install fpm
JudoShiai is under GIT in Sourceforge:
$ sudo apt-get install git
If you are behind a proxy you want to edit /home/$USER/.gitconfig
Get the JudoShiai software:
$ git clone https://git.code.sf.net/p/judoshiai/judoshiai judoshiai
Change directory:
$ cd judoshiai
Compile:
$ make
Make a Debian package
$ make debian
You can find the result in judoshiai-code/release-linux.
There are three version for Windows:
- WinXP runs everywhere, but is slow.
- Win32 and Win64 are fast, but do not run in WinXP.
Cross compilation for Windows is done with the M cross environment. in order to set up M cross environment its prerequisits need to be installed
$ sudo apt-get install autoconf automake autopoint bash bison bzip2 flex g++ g++-multilib gettext git gperf intltool libc6-dev-i386 libgdk-pixbuf2.0-dev libltdl-dev libssl-dev libtool-bin libxml-parser-perl lzip make openssl p7zip-full patch perl pkg-config python ruby sed unzip wget xz-utils
Now you can setup and precompile the M cross environment
$ cd
$ git clone https://github.com/mxe/mxe.git
$ cd ~/mxe
$ make MXE_TARGETS='i686-w64-mingw32.shared x86_64-w64-mingw32.shared' gtk3 curl librsvg libao mpg123 gmp gnutls nettle libgpg_error
for windows XP the software is build using a precompiled mingw from the ubuntu software repositoriy
$ sudo apt-get install mingw-w64
Some programs need Windows emulator to run:
$ sudo apt-get install wine-stable
There exist still lots of required libraries and run time DLL's that are not in
any package. Many DLL's have incompatible versions around and finding the correct one
may take time. To make life easier you can fetch a ready made set of Windows XP software.
Get it using command line or your favorite browser:
$ wget http://judoshiai.sourceforge.net/win32-gtk3.tgz
Extract it under the /opt directory:
$ sudo tar xvzf win32-gtk3.tgz -C /opt
Win32 and Win64 use MXE:
git clone https://github.com/mxe/mxe.git
$ cd ~/mxe
$ make MXE_TARGETS='i686-w64-mingw32.shared x86_64-w64-mingw32.shared' gtk3 curl librsvg libao mpg123
Compilation will take time.
Start cross compilation:
$ make TARGETOS=WINXP
$ make TARGETOS=WIN32
$ make TARGETOS=WIN64
Make a package:
$ make setup TARGETOS=WINXP
$ make setup TARGETOS=WIN32
$ make setup TARGETOS=WIN64
Results will be in judoshiai-code/release-win{xp,32,64} directories.
Clean everything with commands
$ make clean
and
$ make clean TARGETOS=WINXP
$ make clean TARGETOS=WIN32
$ make clean TARGETOS=WIN64