代码拉取完成,页面将自动刷新
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.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。