forked from LiMinggang/madedit-mod
-
Notifications
You must be signed in to change notification settings - Fork 0
/
How to build MadEdit-Mod.txt
41 lines (28 loc) · 1.54 KB
/
How to build MadEdit-Mod.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
Requirements
============
* Install developing tools gcc, gcc-c++, gdb, gtk+2/gtk+3, gettext, automake,
autoconf, aclocal, git, make and rpm-build if you want a rpm package
* Install gtk+2-devel/gtk+3-devel, gettext-devel
* copy wxwin.m4 to usr/share/acloXXX/ or Install wxGTK-devel
* Install wx-common for ubuntu
Compile wxWidgets and boost_python
============
* Get wxWidgets 3.1.0 and boost 1.62
* Get latest code from sourceforge
git clone git://git.code.sf.net/p/madedit-mod/code madedit-mod
* Static build of wxWidgets 3.1.0 with builtin png and zlib
./configure --enable-unicode --disable-shared --with-libpng=builtin --with-zlib=builtin --with-expat=builtin --with-gtk3=yes --with-libiconv=no
* Static build of boost_python with minipython(add 'address-model=64' if build for 64 bit and add ' cflags=-fPIC cxxflags=-fPIC ' if you got ". /usr/bin/ld: /usr/local/lib/libboost_python.a(list.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC)
./bootstrap.sh
./bjam --user-config=user-config.jam --with-python python-debugging=off threading=multi variant=release link=static runtime-link=static stage
Sample jam
using python : 2.7 :
: /home/gli/madedit-mod/minipython/Include
: /home/gli/madedit-mod/minipython/lib
: <python-debugging>off ;
Compile MadEdi-Mod from source code
============
* Compile madedit-mod by configure or packaging script
configure --with-boost=${HOME}/boost_1_60_0 --with-wxdir=${HOME}/wxWidgets-3.1.0
Or
cd packaging/rpm && makerpm.sh