1 Star 0 Fork 1

bluesubmarine/wxHexEditor

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
COMPILE 3.34 KB
一键复制 编辑 原始数据 按行查看 历史
You can compile wxHexEditor with Code::Blocks (C::B) easily.
All you need to install C::B for your OS, required compilation toolset (gcc) and wxHexEditor library for compilation.
But you can also build wxHexEditor from your shell.
For compiling wxHexEditor, without C::B you have to build internal udis and mhash libraries. They are automatically compiled when you run make command.
Please follow those directives under your OS to compile wxHexEditor.
-----------------------------------------------------
LINUX
-----------------------------------------------------
For Linux, make sure you have installed wxWidgets.
Use this command for ubuntu like distros:
apt-get install libwxgtk<version>-dev
or use your need to use this one for distros like OpenSuSE...
zypper in wxWidgets-devel
Then extract the wxHexEditor:
tar xvf wxHexEditor-v<version>-src.tar.bz2
cd wxHexEditor
make
you can also use OPTFLAGS and WXCONFIG flags if you have different wx-config name like
make WXCONFIG=wx-config CPPFLAGS="-fPIC" OPTFLAGS="-O3 -march-native -fopenmp"
Than you could use this command for installing wxHexEditor to your computer.
make install
-----------------------------------------------------
WINDOWS
-----------------------------------------------------
For generating Windows executables, I use Linux to cross-compile a Windows executable via MinGW.
If you have cygwin, than good luck to build this with make command. But you are better to use C::B.
On Linux Cross-Compiling To WINDOWS
-----------------------------------------------------
If you have Linux installation and want to build Win32/Win64 build of wxHexEditor, follow this guide.
This is how I compile.
First, I compile the wxWidgets library with a cross compiler:
tar xvf wxWidgets-<version>.tar.bz2
cd wxWidgets
mkdir release
cd release
../configure --enable-{monolithic,static,unicode} --disable-{debug,shared} --host=i686-w64-mingw32
make
Then I extract the wxHexEditor:
tar xvf wxHexEditor-v<version>-src.tar.bz2
cd wxHexEditor
make win WXCONFIG=<wx-congif path> HOST=i686-w64-mingw32
PS: If you face with " _rpl_malloc " error, you can use
ac_cv_func_malloc_0_nonnull=yes make win WXCONFIG=<wx-congif path> HOST=i686-w64-mingw32
-----------------------------------------------------
OS X
-----------------------------------------------------
Note: Due wxWidgets issues, OSX version of wxHexEditor is experimental.
Please use wxWidgets 2.8.12 version or wxWidgets 3.0 with carbon.
wxWidgets 3.0 cocoa version has full of bugs results not quite usable wxHexEditor, yet.
Also you need to have gcc tools and xcode_4.3.3_for_lion.dmg disk image mounted/installed on your Mac.
For OS X, you need to compile wxWidgets with:
tar xvf wxWidgets-<version>.tar.bz2
cd wxWidgets
mkdir release
cd release
export 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
Then extract the wxHexEditor as:
tar xvf wxHexEditor-v<version>-src.tar.bz2
cd wxHexEditor
make mac WXCONFIG=<wx-config path> OPTFLAGS="-arch i386"
That's all.
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/lukeson/wxHexEditor.git
[email protected]:lukeson/wxHexEditor.git
lukeson
wxHexEditor
wxHexEditor
master

搜索帮助