File: COMPILE

package info (click to toggle)
wxhexeditor 0.22%2Brepack-2.2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 6,732 kB
  • ctags: 1,833
  • sloc: cpp: 11,926; ansic: 6,222; makefile: 146; python: 35; sh: 5
file content (43 lines) | stat: -rw-r--r-- 1,488 bytes parent folder | download
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
For Linux, be sure about you are installed wxWidgets.
Than extract the wxHexEditor
tar xvf wxHexEditor-v<version>-src.tar.bz2
cd wxHexEditor
make OPTFLAGS="-fopenmp"

-----------------------------------------------------

For Windows, I use Linux to cross-compile Windows executable via MinGW.
This is how I compile.
Firstly I compile wxWidgets library with cross compiler:

tar xvf wxWidgets-2.8.12.tar.bz2
cd wxWidgets
mkdir release
cd release
../configure --enable-{monolithic,static,unicode} --disable-{debug,shared} --host=i686-w64-mingw32
make

Than extract the wxHexEditor

tar xvf wxHexEditor-v<version>-src.tar.bz2
cd wxHexEditor
make win WXCONFIG=<wx-congif path> HOST=i686-w64-mingw32

-----------------------------------------------------

For MacOSX, you need to compile wxWidgets via:

tar xvf wxWidgets-2.8.12.tar.bz2
cd wxWidgets
mkdir release
cd release
arch_flags="-arch i386"
../configure CFLAGS="$arch_flags" CXXFLAGS="$arch_flags" CPPFLAGS="$arch_flags" LDFLAGS="$arch_flags" OBJCFLAGS="$arch_flags" OBJCXXFLAGS="$arch_flags" --with-macosx-version-min=10.6 --with-macosx-sdk=/Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/ --enable-monolithic --enable-static --disable-debug --disable-shared --with-regex=builtin --with-expat=builtin --enable-unicode

than extract the wxHexEditor as: 

tar xvf wxHexEditor-v<version>-src.tar.bz2
cd wxHexEditor
make mac WXCONFIG=<wx-config path> OPTFLAGS="-arch i386"

Thats all.