mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Initial hints on how to start a cross-compile
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14850 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
171fc41a82
commit
03b8d15557
@ -1,5 +1,8 @@
|
|||||||
These scripts try to download and install a Windows/mingw32 build
|
These scripts try to download and install a Windows/mingw32 build
|
||||||
environment for GnuCash.
|
environment for GnuCash on Windows.
|
||||||
|
|
||||||
|
For cross-compiling the windows executable on Linux, see the lower
|
||||||
|
section of this file.
|
||||||
|
|
||||||
Before you start with the automated build, you have to complete these
|
Before you start with the automated build, you have to complete these
|
||||||
steps manually. The directory variables are set in custom.sh.
|
steps manually. The directory variables are set in custom.sh.
|
||||||
@ -28,3 +31,23 @@ Start/Enter any MSYS shell. Let the automated build begin by:
|
|||||||
Good luck!
|
Good luck!
|
||||||
|
|
||||||
More information is collected on http://wiki.gnucash.org/wiki/Windows
|
More information is collected on http://wiki.gnucash.org/wiki/Windows
|
||||||
|
|
||||||
|
--------------------------
|
||||||
|
|
||||||
|
Cross-compiling a Windows/mingw32 executable of GnuCash on a Linux
|
||||||
|
host system.
|
||||||
|
|
||||||
|
These steps need to be performed:
|
||||||
|
|
||||||
|
* Edit the file create_cross_mingw.sh and set the PREFIX= variable to
|
||||||
|
the preferred prefix of the mingw32 gcc/binutils on your Linux.
|
||||||
|
|
||||||
|
* Then run the script create_cross_mingw.sh - it will download,
|
||||||
|
compile, and install a mingw32 toolchain.
|
||||||
|
|
||||||
|
* Run "dos2unix custom.sh install.sh" and in custom.sh, make a
|
||||||
|
search&replace of '\\' into '/'.
|
||||||
|
|
||||||
|
* Edit custom.sh to set your preferred directory paths.
|
||||||
|
|
||||||
|
(... to be continued ...)
|
||||||
|
@ -84,6 +84,7 @@ function add_to_env() {
|
|||||||
|
|
||||||
function prepare() {
|
function prepare() {
|
||||||
mkdir -p $TMP_DIR
|
mkdir -p $TMP_DIR
|
||||||
|
mkdir -p $DOWNLOAD_DIR
|
||||||
for _ENV in $ENV_VARS; do
|
for _ENV in $ENV_VARS; do
|
||||||
eval "${_ENV}_BASE"'=$'"${_ENV}"
|
eval "${_ENV}_BASE"'=$'"${_ENV}"
|
||||||
eval "${_ENV}_ADDS="
|
eval "${_ENV}_ADDS="
|
||||||
@ -126,7 +127,7 @@ function wget_unpacked() {
|
|||||||
function inst_wget() {
|
function inst_wget() {
|
||||||
setup Wget
|
setup Wget
|
||||||
_WGET_UDIR=`unix_path $WGET_DIR`
|
_WGET_UDIR=`unix_path $WGET_DIR`
|
||||||
if quiet $_WGET_UDIR/wget --version
|
if quiet $_WGET_UDIR/wget --version || quiet wget --version
|
||||||
then
|
then
|
||||||
echo "already installed. skipping."
|
echo "already installed. skipping."
|
||||||
else
|
else
|
||||||
@ -179,7 +180,7 @@ function inst_mingw() {
|
|||||||
function inst_unzip() {
|
function inst_unzip() {
|
||||||
setup Unzip
|
setup Unzip
|
||||||
_UNZIP_UDIR=`unix_path $UNZIP_DIR`
|
_UNZIP_UDIR=`unix_path $UNZIP_DIR`
|
||||||
if quiet $_UNZIP_UDIR/bin/unzip --help
|
if quiet $_UNZIP_UDIR/bin/unzip --help || quiet unzip --help
|
||||||
then
|
then
|
||||||
echo "unzip already installed. skipping."
|
echo "unzip already installed. skipping."
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user