Jump to content
SubSpace Forum Network

Recommended Posts

Posted (edited)

Installation Script: http://downloads.krslynx.com/guides/InstallContinuum.sh

 

Download the file, and open Terminal (/Applications/Utilities/Terminal.app)

 

Run the following commands in Terminal:

 

cd ~/Downloads
chmod +x InstallContinuum.sh
./InstallContinuum.sh

 

Wait for the installation to complete, should take anywhere between 30 minutes to 1 hour.

 

Once completed, follow the instructions found in the Terminal Window. You should need to copy and paste a couple 'export xyz' lines.

 

Enjoy Continuum.

Edited by Lynx
  • Replies 52
  • Created
  • Last Reply

Top Posters In This Topic

  • 2 weeks later...
Posted (edited)

Hi guys,

 

As I've been very busy this script can be used to install Wine, Freetype and Fontconfig. I've confirmed that it works. I've put the code into a spoiler if you'd like to just read the code, and attached the script as an attachment.

 

Before running this script you'll require XCode and XQuartz be installed on your computer. Once I finish the packaged way of doing things XCode will no longer be a requirement.

 

 

 

#!/bin/bash
#
# This script will install WINE, Freetype and Fontconfig into 
# $HOME/wine. The version of WINE will be patched so it can be used to play
# the popular MMO Subspace/Continuum.
#
# The patch simply adds one line of code to the process.c file located in
# dlls/kernel/process.c OR dlls/kernel32/process.c
#
# The purpose of this script is simply to aid those who aren't too comfortable
# with the command-line-interface - if you'd like to compile yourself then feel
# free however I no longer provide any support for those compiling on their own
# as I lack the time.
#
# For more information about the script, or any assistance, please visit the Subspace
# Forums Network: 
#
# http://forums.ssgn.net/topic/25908-installing-on-a-mac-guide/
#
# Christopher Burke <krslynx@gmail.com>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
#

# If the script gets out-dated, then simply update the following versions and their
# SHA1SUMs which are both readily available from the WINEHQ website

# stable version and respective SHA1 sum
#
WINESTABLEVERSION="1.2.3"
WINESTABLESHA1SUM="072184c492cc9d137138407732de3bb62ba6c091"

# development version and respective SHA1 sum
#
WINEDEVELVERSION="1.3.23"
WINEDEVELSHA1SUM="20cbae53d8bd247c1e7a77dbac1eb6b3d7933336"

# catch_failure 
#	argv: error-message -> formatted error message
#
# This function is used in the case of any failure in the script; 
# it will take any argument and re-cite it as an error message and exit
# the script with a non-gracious error code.
#
function catch_failure {
echo "${@} - Terminating..."
exit 1
}

# usage
#	argv: --params -> script run with params
#
# This function is used to handle any arguments given to the script;
# for more details on the possible arguments please see the function it's self
# as they're likely to change over time.
#
function usage {
echo "usage: $(basename ${0}) [--help] [--devel] [--stable]"
echo ""
echo " --help; display help on this script"
echo ""
echo " --devel; build the development version of WINE"
echo " --stable; build the stable version of WINE"
echo ""
}

BUILDSTABLE=0			# build stable WINE; boolean
BUILDDEVEL=0			# build development WINE; boolean
BUILDFLAG=0				# used in parsing usage params

# parse the argvs given to the script
#
if [ ${#} -gt 0 ] ; then
until [ -z ${1} ] ; do
	case ${1} in
		--stable)
			if [ ${BUILDFLAG} -ne 1 ] ; then
				BUILDFLAG=$((${BUILDFLAG}+1))
			fi
			shift ;;
		--devel)
			if [ ${BUILDFLAG} -ne 10 ] ; then
				BUILDFLAG=$((${BUILDFLAG}+10))
			fi
			shift ;;
		--help)
			usage ; exit 0 ;;
		*)
			usage ; exit 1 ;;
	esac
done
fi

WINETAG=""			# WINE version

# check the $BUILDFLAG and then act accordingly...
#
if [ ${BUILDFLAG} -eq 1 ] || [ ${BUILDFLAG} -eq 0 ] ; then
BUILDSTABLE=1
WINEVERSION="${WINESTABLEVERSION}"
WINESHA1SUM="${WINESTABLESHA1SUM}"
WINETAG="WINE ${WINEVERSION}"
elif [ ${BUILDFLAG} -eq 10 ] ; then
BUILDDEVEL=1
WINEVERSION="${WINEDEVELVERSION}"
WINESHA1SUM="${WINEDEVELSHA1SUM}"
WINETAG="WINE ${WINEVERSION}"
fi

# WINEFILE: the tarball archive name
# WINEURL: url of download
# WINEDIR: the directory name for WINE
WINEFILE="wine-${WINEVERSION}.tar.bz2"
WINEURL="http://downloads.sourceforge.net/wine/${WINEFILE}"
WINEDIR="wine-${WINEVERSION}"

# Used in dir-renaming
#
export TIMESTAMP=$(date '+%Y%m%d%H%M%S')

# WINE paths (base, install, source, build, lib)
#
export WINEBASEDIR="${HOME}/wine"
export WINEPATCHDIR="${WINEBASEDIR}/patch"
export WINEINSTALLPATH="${WINEBASEDIR}/wine-${WINEVERSION}"
export WINESOURCEPATH="${WINEBASEDIR}/source"
export WINEBUILDPATH="${WINEBASEDIR}/build"
export WINEBINPATH="${WINEINSTALLPATH}/bin"
export WINEINCLUDEPATH="${WINEINSTALLPATH}/include"
export WINELIBPATH="${WINEINSTALLPATH}/lib"
export WINESOFTWAREPATH="${WINEBASEDIR}/software"

# WINE directories (basedirectory, source, build) created
#
if [ ! -d ${WINEBASEDIR} ] ; then
mkdir -p ${WINEBASEDIR} || catch_failure "Error around Line: 105; couldn't create ${WINEBASEDIR}"
fi

if [ ! -d ${WINEPATCHDIR} ] ; then
mkdir -p ${WINEPATCHDIR} || catch_failure "Error around Line: 105; couldn't create ${WINEBASEDIR}"
fi

if [ ! -d ${WINESOURCEPATH} ] ; then
mkdir -p ${WINESOURCEPATH} || catch_failure "Error around Line: 109; couldn't create ${WINESOURCEPATH}"
fi

if [ ! -d ${WINEBUILDPATH} ] ; then
mkdir -p ${WINEBUILDPATH} || catch_failure "Error around Line: 113; couldn't create ${WINEBUILDPATH}"
fi

if [ ! -d ${WINESOFTWAREPATH} ] ; then
mkdir -p ${WINESOFTWAREPATH} || catch_failure "Error around Line: 113; couldn't create ${WINEBUILDPATH}"
fi

# 16-bit code flag - works on most modern Macs, issues on XCode 3.0, 3.1
#
export WIN16FLAG="enable"

# OSX Min Version
#
if [ ! -z "${OSXVERSIONMIN}" ] ; then
if [ ${OSXVERSIONMIN} == "10.4" ] ; then
	export SDKADDITION="u"
fi
export OSXSDK="/Developer/SDKs/MacOSX${OSXVERSIONMIN}${SDKADDITION}.sdk"
export MAXOSX_DEPLOYMENT_TARGET=${OSXVERSIONMIN}
fi

# OSX Major Version
#
export DARWINMAJ=$(uname -r | awk -F. '{print $1}')

# X11
#
export DEFAULTX11DIR="/usr/X11"
export X11DIR="${DEFAULTX11DIR}"

# Check for XQuartz
#
if [ ${DARWINMAJ} -ge 10 ] ; then
launchctl list | grep -i startx | grep -i xquartz >/dev/null 2>&1
if [ $? -eq 0 ] ; then
	echo "XQuartz launch daemon failed; checking for installation..."
	if [ -d /opt/X11 ] ; then
		echo "Using XQuartz installed in /opt/X11"
		export X11DIR="/opt/X11"
	else
		echo "XQuartz launch daemon found, but no /opt/X11; XQuartz may need to be re-installed"
	fi
else
	echo "No XQuartz launch daemon found, assuming system X11 in ${DEFAULTX11DIR}"
fi
fi

# X11 paths (bin, include, lib)
#
export X11BIN="${X11DIR}/bin"
export X11INC="${X11DIR}/include"
export X11LIB="${X11DIR}/lib"

echo "X11 install set to: ${X11DIR}"

# Compiler, Preprocessor, SHA1, CURL, TARGZBZ2, FINK, DarwinPorts
#
: ${CC:="gcc"}
: ${CXX:="g++"}
export CC
export CXX
export CPPFLAGS="-I${WINEINCLUDEPATH} ${OSXSDK+-isysroot $OSXSDK} -I${X11INC}"
export CPUFLAGS="-mmmx -msse -msse2 -msse3 -mfpmath=sse"
export CFLAGS="-g -O2 -arch i386 -m32 ${CPUFLAGS} ${OSXSDK+-isysroot $OSXSDK} ${OSXVERSIONMIN+-mmacosx-version-min=$OSXVERSIONMIN} ${CPPFLAGS}"
export CXXFLAGS=${CFLAGS}
export LDFLAGS="-L${WINELIBPATH} ${OSXSDK+-isysroot $OSXSDK} -L${X11LIB} -framework CoreServices -lz -L${X11LIB} -lGL -lGLU"
export PKG_CONFIG_PATH="${WINELIBPATH}/pkgconfig:/usr/lib/pkgconfig:${X11LIB}/pkgconfig"
export ACLOCAL="aclocal -I ${WINEINSTALLPATH}/share/aclocal -I ${X11DIR}/share/aclocal -I /usr/share/aclocal"
export MAKE="make"
export MAKEJOBS=$((`sysctl -n machdep.cpu.core_count | tr -d " "`+1))
export CONCURRENTMAKE="${MAKE} -j${MAKEJOBS}"
export CONFIGURE="./configure"
export CONFIGURECOMMONPREFIX="--prefix=${WINEINSTALLPATH}"
export CONFIGURECOMMONLIBOPTS="--enable-shared=yes --enable-static=no"
export SHA1SUM="openssl dgst -sha1"
export CURL="curl"
export CURLOPTS="-kL"
export TARGZ="tar -zxvf"
export TARBZ2="tar -jxvf"
export NO_FINK=1
export NO_DARWIN_PORTS=1

# Path
#
export PATH=$(echo $PATH | tr ":" "\n" | egrep -v ^"(/opt/local|/sw|/opt/gentoo)" | xargs echo  | tr " " ":")
export PATH="${WINEBINPATH}:${X11BIN}:${PATH}"

#
# Helper Methods
#

# compiler_check
#	argv: null -> error || pass
#
# This function is used to check that the compiler can compile some simple C code.
#
function compiler_check {
if [ ! -d ${WINEBUILDPATH} ] ; then
	mkdir -p ${WINEBUILDPATH} || catch_failure "Directory: ${WINEBUILDPATH} doesn't exist and cannot be created"
fi
cat > ${WINEBUILDPATH}/$$_compiler_check.c << EOF
#include <stdio.h>
int main(void)
{
 printf("hello\n");
 return(0);
}
EOF
${CC} ${CFLAGS} ${WINEBUILDPATH}/$$_compiler_check.c -o ${WINEBUILDPATH}/$$_compiler_check || catch_failure "compiler cannot output executables"
${WINEBUILDPATH}/$$_compiler_check | grep hello >/dev/null 2>&1 || catch_failure "source compiled fine, but unexpected output was encountered"
echo "compiler works fine for a simple test"
rm -f ${WINEBUILDPATH}/$$_compiler_check.c ${WINEBUILDPATH}/$$_compiler_check
}

# get_file
#	argv: file, directory, url -> downloads/gets file
#
function get_file {
FILE=${1}
DIRECTORY=${2}
URL=${3}
if [ ! -d ${DIRECTORY} ] ; then
	mkdir -p ${DIRECTORY} || catch_failure "could not create directory ${DIRECTORY}"
fi
pushd . >/dev/null 2>&1
cd ${DIRECTORY} || catch_failure "could not cd to ${DIRECTORY}"
if [ ! -f ${FILE} ] ; then
	echo "downloading file ${URL} to ${DIRECTORY}/${FILE}"
	${CURL} ${CURLOPTS} -o ${FILE} ${URL}
else
	echo "${DIRECTORY}/${FILE} already exists - not fetching"
	popd >/dev/null 2>&1
	return
fi
if [ $? != 0 ] ; then
	catch_failure "could not download ${URL}"
else
	echo "successfully downloaded ${URL} to ${DIRECTORY}/${FILE}"
fi
popd >/dev/null 2>&1
}

# check_sha1sum
#	argv: file, sha1sum -> failure || pass
#
# This function is used to check the SHA1 sums against the file
# to ensure that the file recieved can be trusted. On any SHA1 failures please
# notify the forum members at the link found in the header
#
function check_sha1sum {
FILE=${1}
SHASUM=${2}
if [ ! -e ${FILE} ] ; then
	catch_failure "${FILE} doesn't seem to exist"
fi
FILESUM=$(${SHA1SUM} < ${FILE})
if [ "${SHASUM}x" != "${FILESUM}x" ] ; then
	catch_failure "failed to verify ${FILE}"
else
	echo "successfully verified ${FILE}"
fi
}

# clean_source_dir
#	argv: sourcedir, basedir -> cleaned dirs
#
# This function is used to clean the source directory so a fresh compile
# can be done/redone
#
function clean_source_dir {
SOURCEDIR=${1}
BASEDIR=${2}
if [ -d ${BASEDIR}/${SOURCEDIR} ] ; then
	pushd . >/dev/null 2>&1
	echo "cleaning up ${BASEDIR}/${SOURCEDIR} for fresh compile"
	cd ${BASEDIR} || catch_failure "could not cd into ${BASEDIR}"
	rm -rf ${SOURCEDIR} || catch_failure "could not clean up ${BASEDIR}/${SOURCEDIR}"
	popd >/dev/null 2>&1
fi
}

# extract_file
#	argv: extractcmd, extractfile, extractdir, sourcedir -> extracted
#
# This function is used to extract a compressed archive to the requested
# directory. 
#
function extract_file {
EXTRACTCMD=${1}
EXTRACTFILE=${2}
EXTRACTDIR=${3}
SOURCEDIR=${4}
echo "extracting ${EXTRACTFILE} to ${EXTRACTDIR} with '${EXTRACTCMD}'"
if [ ! -d ${EXTRACTDIR} ] ; then
	mkdir -p ${EXTRACTDIR} || catch_failure "could not create ${EXTRACTDIR}"
fi
pushd . >/dev/null 2>&1
cd ${EXTRACTDIR} || catch_failure "could not cd into ${EXTRACTDIR}"
${EXTRACTCMD} ${EXTRACTFILE} || catch_failure "could not extract ${EXTRACTFILE}"
echo "successfully extracted ${EXTRACTFILE}"
popd >/dev/null 2>&1
}

# configure_package
#	argv: configurecmd, sourcedir, configuredfile -> runs configure
#
# This function is used to call the ./configure(ation) of a package
#
function configure_package {
CONFIGURECMD=${1}
SOURCEDIR=${2}
CONFIGUREDFILE="${SOURCEDIR}/.$(basename ${0})-configured"
if [ ! -d ${SOURCEDIR} ] ; then
	catch_failure "could not find ${SOURCEDIR}"
fi
echo "running '${CONFIGURECMD}' in ${SOURCEDIR}"
pushd . >/dev/null 2>&1
cd ${SOURCEDIR} || catch_failure "source directory ${SOURCEDIR} does not seem to exist"
${CONFIGURECMD} || catch_failure "could not run configure command '${CONFIGURECMD}' in ${SOURCEDIR}"
touch ${CONFIGUREDFILE} || catch_failure "could not touch ${CONFIGUREDFILE}"
echo "successfully ran configure in ${SOURCEDIR}"
popd >/dev/null 2>&1
}

# build_package
#	argv: buildcmd, builddir, builtfile -> runs make
#
# This function is used to (make) build packages
#
function build_package {
BUILDCMD=${1}
BUILDDIR=${2}
BUILTFILE="${BUILDDIR}/.$(basename ${0})-built"
if [ ! -d ${BUILDDIR} ] ; then
	catch_failure "${BUILDDIR} does not exist"
fi
pushd . >/dev/null 2>&1
cd ${BUILDDIR} || catch_failure "build directory ${BUILDDIR} does not seem to exist"
${BUILDCMD} || catch_failure "could not run '${BUILDCMD}' in ${BUILDDIR}"
touch ${BUILTFILE} || catch_failure "could not touch ${BUILTFILE}"
echo "successfully ran '${BUILDCMD}' in ${BUILDDIR}"
popd >/dev/null 2>&1
}

# install_package
# 	argv: installcmd, installdir -> runs make install
#
# This function is used to (make install) packages
#
function install_package {
INSTALLCMD=${1}
INSTALLDIR=${2}
if [ ! -d ${INSTALLDIR} ] ; then
	catch_failure "${INSTALLDIR} does not exist"
fi
echo "installing with '${INSTALLCMD}' in ${INSTALLDIR}"
pushd . >/dev/null 2>&1
cd ${INSTALLDIR} || catch_failure "directory ${INSTALLDIR} does not seem to exist"
${INSTALLCMD}
if [ $? != 0 ] ; then
	echo "some items may have failed to install! check above for errors."
else
	echo "succesfully ran '${INSTALLCMD}' in ${INSTALLDIR}'"
fi
popd >/dev/null 2>&1
}

# 
# Installed Packages
#

#
# pkg-config
#
# http://www.freedesktop.org/wiki/Software/pkg-config
# 
# pkg-config is a helper tool used when compiling applications and libraries. 
# It helps you insert the correct compiler options on the command line so an application 
# can use  gcc -o test test.c `pkg-config --libs --cflags glib-2.0`  for instance, 
# rather than hard-coding values on where to find glib (or other libraries). 
# It is language-agnostic, so it can be used for defining the location of documentation 
# tools, for instance.
#
PKGCONFIGVER="0.25"
PKGCONFIGFILE="pkg-config-${PKGCONFIGVER}.tar.gz"
PKGCONFIGURL="http://pkgconfig.freedesktop.org/releases/${PKGCONFIGFILE}"
PKGCONFIGSHA1SUM="8922aeb4edeff7ed554cc1969cbb4ad5a4e6b26e"
PKGCONFIGDIR="pkg-config-${PKGCONFIGVER}"

# clean_pkgconfig
#	argv: null -> null
#
function clean_pkgconfig {
clean_source_dir "${PKGCONFIGDIR}" "${WINEBUILDPATH}"
}

# get_pkgconfig
#	argv: null -> null
#
function get_pkgconfig {
get_file "${PKGCONFIGFILE}" "${WINESOURCEPATH}" "${PKGCONFIGURL}"
}

# check_pkgconfig
#	argv: null -> null
#
function check_pkgconfig {
check_sha1sum "${WINESOURCEPATH}/${PKGCONFIGFILE}" "${PKGCONFIGSHA1SUM}"
}

# extract_pkgconfig
#	argv: null -> null
#
function extract_pkgconfig {
extract_file "${TARGZ}" "${WINESOURCEPATH}/${PKGCONFIGFILE}" "${WINEBUILDPATH}" "${PKGCONFIGDIR}"
}

# configure_pkgconfig
#	argv: null -> null
#
function configure_pkgconfig {
configure_package "${CONFIGURE} ${CONFIGURECOMMONPREFIX} ${CONFIGURECOMMONLIBOPTS}" "${WINEBUILDPATH}/${PKGCONFIGDIR}"
}

# build_pkgconfig
# 	argv: null -> null
#
function build_pkgconfig {
build_package "${CONCURRENTMAKE}" "${WINEBUILDPATH}/${PKGCONFIGDIR}"
}

# install_pkgconfig
#	argv: null -> null
#
function install_pkgconfig {
clean_pkgconfig
extract_pkgconfig
configure_pkgconfig
build_pkgconfig
install_package "${MAKE} install" "${WINEBUILDPATH}/${PKGCONFIGDIR}"
}

#
# lzo
#
# http://www.oberhumer.com/opensource/lzo/
#
# LZO is a portable lossless data compression library written in ANSI C.
#
LZOVER="2.04"
LZOFILE="lzo-${LZOVER}.tar.gz"
LZOURL="http://www.oberhumer.com/opensource/lzo/download/${LZOFILE}"
LZOSHA1SUM="f5bf5c7ae4116e60513e5788d156ef78946677e7"
LZODIR="lzo-${LZOVER}"

# clean_lzo
#
#
function clean_lzo {
clean_source_dir "${LZODIR}" "${WINEBUILDPATH}"
}

# get_lzo
#
#
function get_lzo {
get_file "${LZOFILE}" "${WINESOURCEPATH}" "${LZOURL}"
}

# check_lzo
#
#
function check_lzo {
check_sha1sum "${WINESOURCEPATH}/${LZOFILE}" "${LZOSHA1SUM}"
}

# extract_lzo
#
#
function extract_lzo {
extract_file "${TARGZ}" "${WINESOURCEPATH}/${LZOFILE}" "${WINEBUILDPATH}" "${LZODIR}"
}

# configure_lzo
#
#
function configure_lzo {
configure_package "${CONFIGURE} ${CONFIGURECOMMONPREFIX} ${CONFIGURECOMMONLIBOPTS} --disable-asm" "${WINEBUILDPATH}/${LZODIR}"
}

# build_lzo
#
#
function build_lzo {
build_package "${CONCURRENTMAKE}" "${WINEBUILDPATH}/${LZODIR}"
}

# install_lzo
#
#
function install_lzo {
export PRECC=${CC}
export CC="${CC} ${CFLAGS}"
clean_lzo
extract_lzo
configure_lzo
build_lzo
install_package "${MAKE} install" "${WINEBUILDPATH}/${LZODIR}"
export CC=${PRECC}
}

#
# libgpg-error
# 
# http://www.gnupg.org/related_software/libgpg-error/
#
# Libgpg-error is a small library that defines common error values for all
# GnuPG components. Among these are GPG, GPGSM, GPGME, GPG-Agent, libgcrypt, 
# Libksba, DirMngr, Pinentry, SmartCard Daemon and possibly more in the future.
#
LIBGPGERRORVER="1.10"
LIBGPGERRORFILE="libgpg-error-${LIBGPGERRORVER}.tar.bz2"
LIBGPGERRORURL="ftp://ftp.gnupg.org/gcrypt/libgpg-error/${LIBGPGERRORFILE}"
LIBGPGERRORSHA1SUM="95b324359627fbcb762487ab6091afbe59823b29"
LIBGPGERRORDIR="libgpg-error-${LIBGPGERRORVER}"

# clean_libgpgerror
#
#
function clean_libgpgerror {
clean_source_dir "${LIBGPGERRORDIR}" "${WINEBUILDPATH}"
}

# get_libgpgerror
#
#
function get_libgpgerror {
get_file "${LIBGPGERRORFILE}" "${WINESOURCEPATH}" "${LIBGPGERRORURL}"
}

# check_libgpgerror
#
#
function check_libgpgerror {
check_sha1sum "${WINESOURCEPATH}/${LIBGPGERRORFILE}" "${LIBGPGERRORSHA1SUM}"
}

# extract_libgpgerror
#
#
function extract_libgpgerror {
extract_file "${TARBZ2}" "${WINESOURCEPATH}/${LIBGPGERRORFILE}" "${WINEBUILDPATH}" "${LIBGPGERRORDIR}"
}

# configure_libgpgerror
#
#
function configure_libgpgerror {
configure_package "${CONFIGURE} ${CONFIGURECOMMONPREFIX} ${CONFIGURECOMMONLIBOPTS}" "${WINEBUILDPATH}/${LIBGPGERRORDIR}"
}

# build_libgpgerror
#
#
function build_libgpgerror {
build_package "${CONCURRENTMAKE}" "${WINEBUILDPATH}/${LIBGPGERRORDIR}"
}

# install_libgpgerror
#
#
function install_libgpgerror {
clean_libgpgerror
extract_libgpgerror
configure_libgpgerror
build_libgpgerror
install_package "${MAKE} install" "${WINEBUILDPATH}/${LIBGPGERRORDIR}"
}

#
# libgcrypt
#
# http://directory.fsf.org/project/libgcrypt/
# 
# This is a general purpose cryptographic library based on the code from GnuPG. 
# It provides functions for all cryptograhic building blocks: symmetric ciphers (
# AES, DES, Blowfish, CAST5, Twofish, Arcfour), hash algorithms (MD4, MD5, RIPE-MD160, 
# SHA-1, TIGER-192), MACs (HMAC for all hash algorithms), public key algorithms 
# (RSA, ElGamal, DSA), large integer functions, random numbers and a lot of supporting 
# functions.
#
LIBGCRYPTVER="1.4.6"
LIBGCRYPTFILE="libgcrypt-${LIBGCRYPTVER}.tar.bz2"
LIBGCRYPTURL="ftp://ftp.gnupg.org/gcrypt/libgcrypt/${LIBGCRYPTFILE}"
LIBGCRYPTSHA1SUM="445b9e158aaf91e24eae3d1040c6213e9d9f5ba6"
LIBGCRYPTDIR="libgcrypt-${LIBGCRYPTVER}"

# clean_libgcrypt
#
#
function clean_libgcrypt {
clean_source_dir "${LIBGCRYPTDIR}" "${WINEBUILDPATH}"
}

# get_libgcrypt
#
#
function get_libgcrypt {
get_file "${LIBGCRYPTFILE}" "${WINESOURCEPATH}" "${LIBGCRYPTURL}"
}

# check_libgcrypt
#
#
function check_libgcrypt {
check_sha1sum "${WINESOURCEPATH}/${LIBGCRYPTFILE}" "${LIBGCRYPTSHA1SUM}"
}

# extract_libgcrypt
#
#
function extract_libgcrypt {
extract_file "${TARBZ2}" "${WINESOURCEPATH}/${LIBGCRYPTFILE}" "${WINEBUILDPATH}" "${LIBGCRYPTDIR}"
}

# configure_libgcrypt
#
#
function configure_libgcrypt {
configure_package "${CONFIGURE} ${CONFIGURECOMMONPREFIX} ${CONFIGURECOMMONLIBOPTS} --with-gpg-error-prefix=${WINEINSTALLPATH}" "${WINEBUILDPATH}/${LIBGCRYPTDIR}"
}

# build_libgcrypt
#
#
function build_libgcrypt {
build_package "${CONCURRENTMAKE}" "${WINEBUILDPATH}/${LIBGCRYPTDIR}"
}

# install_libgcrypt
#
#
function install_libgcrypt {
clean_libgcrypt
extract_libgcrypt
configure_libgcrypt
build_libgcrypt
install_package "${MAKE} install" "${WINEBUILDPATH}/${LIBGCRYPTDIR}"
}

#
# gnutls
#
# http://www.gnu.org/software/gnutls/
# 
# GnuTLS is a secure communications library implementing the SSL and TLS 
# protocols and technologies around them. It provides a simple C language 
# application programming interface (API) to access the secure communications 
# protocols as well as APIs to parse and write X.509, PKCS #12, OpenPGP and 
# other required structures. It is aimed to be a portable and efficient with 
# focus on security and interoperability.
#
GNUTLSVER="2.10.3"
GNUTLSFILE="gnutls-${GNUTLSVER}.tar.bz2"
GNUTLSURL="ftp://ftp.gnu.org/pub/gnu/gnutls/${GNUTLSFILE}"
GNUTLSSHA1SUM="b17b23d462ecf829f3b9aff3248d25d4979ebe4f"
GNUTLSDIR="gnutls-${GNUTLSVER}"
function clean_gnutls {
clean_source_dir "${GNUTLSDIR}" "${WINEBUILDPATH}"
}

# get_gnutls
#
#
function get_gnutls {
get_file "${GNUTLSFILE}" "${WINESOURCEPATH}" "${GNUTLSURL}"
}

# check_gnutls
#
#
function check_gnutls {
check_sha1sum "${WINESOURCEPATH}/${GNUTLSFILE}" "${GNUTLSSHA1SUM}"
}

# extract_gnutls
#
#
function extract_gnutls {
extract_file "${TARBZ2}" "${WINESOURCEPATH}/${GNUTLSFILE}" "${WINEBUILDPATH}" "${GNUTLSDIR}"
}

# configure_gnutls
#
#
function configure_gnutls {
configure_package "${CONFIGURE} ${CONFIGURECOMMONPREFIX} ${CONFIGURECOMMONLIBOPTS} --with-libgcrypt-prefix=${WINEINSTALLPATH} --with-included-libcfg --with-included-libtasn1 --with-lzo" "${WINEBUILDPATH}/${GNUTLSDIR}"
}

# build_gnutls
#
#
function build_gnutls {
build_package "${CONCURRENTMAKE}" "${WINEBUILDPATH}/${GNUTLSDIR}"
}

# install_gnutls
#
#
function install_gnutls {
clean_gnutls
extract_gnutls
configure_gnutls
build_gnutls
install_package "${MAKE} install" "${WINEBUILDPATH}/${GNUTLSDIR}"
}

#
# freetype
#
# http://www.freetype.org/
#
# FreeType 2 is a software font engine that is designed to be small, 
# efficient, highly customizable, and portable while capable of producing 
# high-quality output (glyph images). It can be used in graphics libraries, 
# display servers, font conversion tools, text image generation tools, and many 
# other products as well.
#
FREETYPEVER="2.4.4"
FREETYPEFILE="freetype-${FREETYPEVER}.tar.bz2"
FREETYPEURL="http://downloads.sourceforge.net/freetype/freetype2/${FREETYPEFILE}"
FREETYPESHA1SUM="1d136cbc51c67b212c91ba04dc5db797f35e64e6"
FREETYPEDIR="freetype-${FREETYPEVER}"

# clean_freetype
#	argv: null -> null
#
function clean_freetype {
clean_source_dir "${FREETYPEDIR}" "${WINEBUILDPATH}"
}

# get_freetype
#	argv: null -> null
#
function get_freetype {
get_file "${FREETYPEFILE}" "${WINESOURCEPATH}" "${FREETYPEURL}"
}

# check_freetype
#	argv: null -> null
#
function check_freetype {
check_sha1sum "${WINESOURCEPATH}/${FREETYPEFILE}" "${FREETYPESHA1SUM}"
}

# extract_freetype
#	argv: null -> null
#
function extract_freetype {
extract_file "${TARBZ2}" "${WINESOURCEPATH}/${FREETYPEFILE}" "${WINEBUILDPATH}" "${FREETYPEDIR}"
}

# configure_freetype
#	argv: null -> null
#
function configure_freetype {
# set subpixel rendering flag
export FT_CONFIG_OPTION_SUBPIXEL_RENDERING=1
configure_package "${CONFIGURE} ${CONFIGURECOMMONPREFIX} ${CONFIGURECOMMONLIBOPTS}" "${WINEBUILDPATH}/${FREETYPEDIR}"
echo "attempting to enable FreeType's subpixel rendering and bytecode interpretter in ${WINEBUILDPATH}/${FREETYPEDIR}"
pushd . >/dev/null 2>&1
cd ${WINEBUILDPATH}/${FREETYPEDIR} || catch_failure "could not cd to ${FREETYPEDIR} for patching"
if [ ! -f include/freetype/config/ftoption.h.bytecode_interpreter ] ; then
	sed -i.bytecode_interpreter \
		's#/\* \#define TT_CONFIG_OPTION_BYTECODE_INTERPRETER \*/#\#define TT_CONFIG_OPTION_BYTECODE_INTERPRETER#g' \
		include/freetype/config/ftoption.h || catch_failure "could not conifgure TT_CONFIG_OPTION_BYTECODE_INTERPRETER for freetype"
fi
if [ ! -f include/freetype/config/ftoption.h.subpixel_rendering ] ; then
	sed -i.subpixel_rendering \
		's#/\* \#define FT_CONFIG_OPTION_SUBPIXEL_RENDERING \*/#\#define FT_CONFIG_OPTION_SUBPIXEL_RENDERING#g' \
		include/freetype/config/ftoption.h || catch_failure "could not conifgure FT_CONFIG_OPTION_SUBPIXEL_RENDERING for freetype"
fi
echo "successfully configured and patched FreeType in ${WINEBUILDPATH}/${FREETYPEDIR}"
popd >/dev/null 2>&1
}

# build_freetype
#	argv: null -> null
#
function build_freetype {
build_package "${CONCURRENTMAKE}" "${WINEBUILDPATH}/${FREETYPEDIR}"
}

# install_freetype
#	argv: null -> null
#
function install_freetype {
export PRECC=${CC}
export CC="${CC} ${CFLAGS}"
clean_freetype
extract_freetype
configure_freetype
build_freetype
install_package "${MAKE} install" "${WINEBUILDPATH}/${FREETYPEDIR}"
export CC=${PRECC}
}

#
# fontconfig
#
# http://www.freedesktop.org/wiki/Software/fontconfig
#
# Fontconfig is a library for configuring and customizing font access.
#
FONTCONFIGVER="2.8.0"
FONTCONFIGFILE="fontconfig-${FONTCONFIGVER}.tar.gz"
FONTCONFIGURL="http://www.freedesktop.org/software/fontconfig/release/${FONTCONFIGFILE}"
FONTCONFIGSHA1SUM="570fb55eb14f2c92a7b470b941e9d35dbfafa716"
FONTCONFIGDIR="fontconfig-${FONTCONFIGVER}"

# clean_fontconfig
#	argv: null -> null
#
function clean_fontconfig {
clean_source_dir "${FONTCONFIGDIR}" "${WINEBUILDPATH}"
}

# get_fontconfig
#	argv: null -> null
#
function get_fontconfig {
get_file "${FONTCONFIGFILE}" "${WINESOURCEPATH}" "${FONTCONFIGURL}"
}

# check_fontconfig
#	argv: null -> null
#
function check_fontconfig {
check_sha1sum "${WINESOURCEPATH}/${FONTCONFIGFILE}" "${FONTCONFIGSHA1SUM}"
}

# extract_fontconfig
#	argv: null -> null
#
function extract_fontconfig {
extract_file "${TARGZ}" "${WINESOURCEPATH}/${FONTCONFIGFILE}" "${WINEBUILDPATH}" "${FONTCONFIGDIR}"
}

# configure_fontconfig
#	argv: null -> null
#
function configure_fontconfig {
configure_package "${CONFIGURE} ${CONFIGURECOMMONPREFIX} ${CONFIGURECOMMONLIBOPTS} --with-default-fonts=${X11LIB}/X11/fonts --with-confdir=${WINELIBPATH}/fontconfig --with-cache-dir=${X11DIR}/var/cache/fontconfig" "${WINEBUILDPATH}/${FONTCONFIGDIR}"
}

# build_fontconfig
#	argv: null -> null
#
function build_fontconfig {
build_package "${CONCURRENTMAKE}" "${WINEBUILDPATH}/${FONTCONFIGDIR}"
}

# install_fontconfig
#	argv: null -> null
#
function install_fontconfig {
clean_fontconfig
extract_fontconfig
configure_fontconfig
build_fontconfig
install_package "${MAKE} install" "${WINEBUILDPATH}/${FONTCONFIGDIR}"
}

#
# WINE
# 
# http://www.winehq.org/
#
# Wine lets you run Windows software on other operating systems. 
# With Wine, you can install and run these applications just like you would in Windows.
#

# clean_wine
#	argv: null -> null
#
function clean_wine {
clean_source_dir "${WINEDIR}" "${WINEBUILDPATH}"
}

# get_wine
#	argv: null -> null
#
function get_wine {
get_file "${WINEFILE}" "${WINESOURCEPATH}" "${WINEURL}"
}

# check_wine
#	argv: null -> null
#
function check_wine {
check_sha1sum "${WINESOURCEPATH}/${WINEFILE}" "${WINESHA1SUM}"
}

# extract_wine
#	argv: null -> null
#
function extract_wine {
if [ ${BUILDSTABLE} -eq 1 ] || [ ${BUILDDEVEL} -eq 1 ] ; then
	extract_file "${TARBZ2}" "${WINESOURCEPATH}/${WINEFILE}" "${WINEBUILDPATH}" "${WINEDIR}"
fi
}

PATCHFILE="cont.diff"
PATCHURL="http://downloads.krslynx.com/patch/${PATCHFILE}"

# get_patch
#
#
function get_patch {
get_file "${PATCHFILE}" "${WINEPATCHDIR}" "${PATCHURL}"
}

# patch_wine
#	argv: null -> null
#
function patch_wine {
cat ${WINEPATCHDIR} | patch ${WINEBUILDPATH}/wine-${WINEVERSION}/dlls/kernel32/process.c
}

# configure_wine
#	argv: null -> null
#
function configure_wine {
WINECONFIGUREOPTS=""
WINECONFIGUREOPTS+="--verbose "
WINECONFIGUREOPTS+="--${WIN16FLAG}-win16 "
WINECONFIGUREOPTS+="--disable-win64 "
WINECONFIGUREOPTS+="--without-capi "
WINECONFIGUREOPTS+="--without-hal "
WINECONFIGUREOPTS+="--without-v4l "
WINECONFIGUREOPTS+="--with-fontconfig "
WINECONFIGUREOPTS+="--with-freetype "
WINECONFIGUREOPTS+="--with-gnutls "
WINECONFIGUREOPTS+="--with-x "
WINECONFIGUREOPTS+="--x-includes=${X11INC} "
WINECONFIGUREOPTS+="--x-libraries=${X11LIB} "
configure_package "${CONFIGURE} ${CONFIGURECOMMONPREFIX} ${WINECONFIGUREOPTS}" "${WINEBUILDPATH}/${WINEDIR}"
}

# depend_wine
#	argv: null -> null
#
function depend_wine {
build_package "${MAKE} depend" "${WINEBUILDPATH}/${WINEDIR}"
}

# build_wine
#	argv: null -> null
#
function build_wine {
build_package "${CONCURRENTMAKE}" "${WINEBUILDPATH}/${WINEDIR}"
}

# install_wine
#	argv: null -> null
#
function install_wine {
clean_wine
extract_wine
patch_wine
configure_wine
depend_wine
build_wine
install_package "${MAKE} install" "${WINEBUILDPATH}/${WINEDIR}"
}

# get_sources
#	argv: null -> null
#
function get_sources {
get_pkgconfig
get_freetype
get_fontconfig
get_wine
get_patch
get_lzo
get_libgpgerror
get_libgcrypt
get_gnutls
get_continuum
}

# check_sources
#	argv: null -> null
#
function check_sources {
check_pkgconfig
check_freetype
check_fontconfig
check_wine
check_lzo
check_libgpgerror
check_libgcrypt
check_gnutls
}

# install_prereqs
#	argv: null -> null
#
function install_prereqs {
install_pkgconfig
install_freetype
install_fontconfig
install_lzo
install_libgpgerror
install_libgcrypt
install_gnutls
}

CONTINUUMFILENAME="Continuum040.exe"
CONTINUUMFILEURL="http://getcontinuum.com/downloads/continuum/${CONTINUUMFILENAME}"
CONTINUUMFILEPATH=${WINESOFTWAREPATH}/${CONTINUUMFILENAME}

# get_continuum
#
#
function get_continuum {
get_file "${CONTINUUMFILENAME}" "${WINESOFTWAREPATH}" "${CONTINUUMFILEURL}"
}

INSTALLCONTINUUM="${WINEBINPATH}/wine ${CONTINUUMFILEPATH}"

# install_continuum
#
#
function install_continuum {
./${INSTALLCONTINUUM}
}

CONTINUUMEXEPATH="${HOME}/.wine/drive_c/Program\ Files/Continuum/Continuum.exe"
LAUNCHCONTINUUM="${WINEBINPATH}/wine ${CONTINUUMEXEPATH}"

# create_shell_launcher
#
#
function create_shell_launcher {
touch Continuum.sh

}

# create_mac_launcher
#
#
function create_mac_launcher {
mkdir -p Continuum.app/Contents/MacOS
mv Continuum.sh Continuum.app/Contents/MacOS/Continuum
chmod +x Continuum.app/Contents/MacOS/Continuum
}

# build_complete
#	argv: null -> null
#
function build_complete {
cat << EOF

Successfully built and installed ${WINETAG}!

The installation base directory is:

 ${WINEINSTALLPATH}

You can set the following environment variables to use the new Wine install:

 export DYLD_FALLBACK_LIBRARY_PATH="${WINELIBPATH}:${X11LIB}:/usr/lib"
 export PATH="${WINEBINPATH}:\${PATH}"

Remember to run WINECFG and set the drive serial to something greater than 2000
before running Continuum! If you have had any issues with this script, then please
make a post at: 

http://forums.ssgn.net/topic/25908-installing-on-a-mac-guide/

Continuum can be found in "{WINESOFTWAREPATH}" to run the installer execute: 

  wine "${CONTINUUMFILEPATH}"

EOF
}

# occurs if previous found
if [ -d ${WINEINSTALLPATH} ] ; then
echo "moving existing prefix ${WINEINSTALLPATH} to ${WINEINSTALLPATH}.PRE-${TIMESTAMP}"
mv ${WINEINSTALLPATH}{,.PRE-${TIMESTAMP}}
fi

echo "---Script started at ${TIMESTAMP}";

echo "Checking Compiler..."
compiler_check
echo "Gathering Sources..."
get_sources
echo "Checking Sources..."
check_sources
echo "Installing Prerequisites"
install_prereqs
echo "Installing WINE"
install_wine
build_complete


echo "---Script completed at ${TIMESTAMP}";
exit 0

 

 

 

To download the script the URL is: http://downloads.krslynx.com/guides/InstallContinuum.sh

 

Here's how to run the script (open Terminal first, located at /Applications/Utilities/Terminal.app):

 


chmod +x ~/Downloads/InstallContinuum.sh
./Downloads/InstallContinuum.sh

 

The script will take a _long_ time. Be patient.

 

Enjoy, and let me know of anything that goes wrong.

 

Edit:

 

To run Continuum after installing (read the output at the end of compilation) run

 

wine ~/.wine/drive_c/Program\ Files/Continuum/Continuum.exe

 

Clearly the above isn't a great way of going about things (hence why I am creating the package) so if you think this is too much hassle I should have it ready this week.

Edited by Lynx
Posted

Just for the sake of trying your script.. tried it.

 

 

 

"

 

before running Continuum! If you have had any issues with this script, then please

make a post at:

 

http://forums.ssgn.net/topic/25908-installing-on-a-mac-guide/

 

Continuum can be found in "{WINESOFTWAREPATH}" to run the installer execute:

 

wine "/Users/adizam/wine/software/Continuum040.exe"

 

---Script completed at 20110719215317

[~] wine ~/.wine/drive_c/Program\ Files/Continuum/Continuum.exe

-bash: wine: command not found

 

"

Posted

XCode 3.26, XQuartz 2.61

 

 

User:~ User$ /Users/User\ 1/Desktop/InstallContinuum.sh

/Users/User 1/Desktop/InstallContinuum.sh: line 147: [: /Users/User: binary operator expected

/Users/User 1/Desktop/InstallContinuum.sh: line 151: [: /Users/User: binary operator expected

/Users/User 1/Desktop/InstallContinuum.sh: line 155: [: /Users/User: binary operator expected

/Users/User 1/Desktop/InstallContinuum.sh: line 159: [: /Users/User: binary operator expected

/Users/User 1/Desktop/InstallContinuum.sh: line 163: [: /Users/User: binary operator expected

XQuartz launch daemon failed; checking for installation...

Using XQuartz installed in /opt/X11

X11 install set to: /opt/X11

/Users/User 1/Desktop/InstallContinuum.sh: line 1150: [: /Users/User: binary operator expected

---Script started at 20110719223234

Checking Compiler...

/Users/User 1/Desktop/InstallContinuum.sh: line 257: [: /Users/User: binary operator expected

/Users/User 1/Desktop/InstallContinuum.sh: line 260: ${WINEBUILDPATH}/$$_compiler_check.c: ambiguous redirect

i686-apple-darwin10-gcc-4.2.1: 1/wine/wine-1.2.3/include: No such file or directory

i686-apple-darwin10-gcc-4.2.1: /Users/User: No such file or directory

i686-apple-darwin10-gcc-4.2.1: 1/wine/build/5518_compiler_check.c: No such file or directory

i686-apple-darwin10-gcc-4.2.1: 1/wine/build/5518_compiler_check: No such file or directory

i686-apple-darwin10-gcc-4.2.1: no input files

compiler cannot output executables - Terminating...

 

I guess I just need to install wine?

Posted

Didnt install the OS level links but.. navigating to directory and running yields..

 

(It installs, just wont run :) )

 

 

[/users/adizam/wine/wine-1.2.3/bin] ./wine "/Users/adizam/wine/software/Continuum040.exe"

Wine cannot find the FreeType font library. To enable Wine to

use TrueType fonts please install a version of FreeType greater than

or equal to 2.0.5.

http://www.freetype.org

fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)

Wine cannot find the FreeType font library. To enable Wine to

use TrueType fonts please install a version of FreeType greater than

or equal to 2.0.5.

http://www.freetype.org

Wine cannot find the FreeType font library. To enable Wine to

use TrueType fonts please install a version of FreeType greater than

or equal to 2.0.5.

http://www.freetype.org

Wine cannot find the FreeType font library. To enable Wine to

use TrueType fonts please install a version of FreeType greater than

or equal to 2.0.5.

http://www.freetype.org

err:ole:CoGetClassObject class {cacaf262-9370-4615-a13b-9f5539da4c0a} not registered

err:ole:CoGetClassObject no class object {cacaf262-9370-4615-a13b-9f5539da4c0a} could be created for context 0x1

err:ole:OleLoadPicture IPersistStream_Load failed

err:msi:msi_load_picture failed to load picture

err:msi:msi_dialog_bitmap_control Failed to load bitmap L"NewBinary5"

fixme:msi:msi_unimplemented_action_stub MigrateFeatureStates -> 1 ignored L"Upgrade" table values

err:ole:CoGetClassObject class {cacaf262-9370-4615-a13b-9f5539da4c0a} not registered

err:ole:CoGetClassObject no class object {cacaf262-9370-4615-a13b-9f5539da4c0a} could be created for context 0x1

err:ole:OleLoadPicture IPersistStream_Load failed

err:msi:msi_load_picture failed to load picture

err:msi:msi_dialog_bitmap_control Failed to load bitmap L"NewBinary5"

err:ole:CoGetClassObject class {cacaf262-9370-4615-a13b-9f5539da4c0a} not registered

err:ole:CoGetClassObject no class object {cacaf262-9370-4615-a13b-9f5539da4c0a} could be created for context 0x1

err:ole:OleLoadPicture IPersistStream_Load failed

err:msi:msi_load_picture failed to load picture

err:msi:msi_dialog_bitmap_control Failed to load bitmap L"NewBinary1"

err:ole:CoGetClassObject class {cacaf262-9370-4615-a13b-9f5539da4c0a} not registered

err:ole:CoGetClassObject no class object {cacaf262-9370-4615-a13b-9f5539da4c0a} could be created for context 0x1

err:ole:OleLoadPicture IPersistStream_Load failed

err:msi:msi_load_picture failed to load picture

err:msi:msi_dialog_bitmap_control Failed to load bitmap L"NewBinary1"

err:ole:CoGetClassObject class {cacaf262-9370-4615-a13b-9f5539da4c0a} not registered

err:ole:CoGetClassObject no class object {cacaf262-9370-4615-a13b-9f5539da4c0a} could be created for context 0x1

err:ole:OleLoadPicture IPersistStream_Load failed

err:msi:msi_load_picture failed to load picture

err:msi:msi_dialog_bitmap_control Failed to load bitmap L"NewBinary1"

err:ole:CoGetClassObject class {cacaf262-9370-4615-a13b-9f5539da4c0a} not registered

err:ole:CoGetClassObject no class object {cacaf262-9370-4615-a13b-9f5539da4c0a} could be created for context 0x1

err:ole:OleLoadPicture IPersistStream_Load failed

err:msi:msi_load_picture failed to load picture

err:msi:msi_dialog_bitmap_control Failed to load bitmap L"NewBinary1"

fixme:msi:msi_unimplemented_action_stub MigrateFeatureStates -> 1 ignored L"Upgrade" table values

fixme:msi:msi_unimplemented_action_stub RemoveExistingProducts -> 1 ignored L"Upgrade" table values

err:ole:CoGetClassObject class {00021401-0000-0000-c000-000000000046} not registered

err:ole:CoGetClassObject no class object {00021401-0000-0000-c000-000000000046} could be created for context 0x1

err:msi:ITERATE_CreateShortcuts CLSID_ShellLink not available

err:ole:CoGetClassObject class {00021401-0000-0000-c000-000000000046} not registered

err:ole:CoGetClassObject no class object {00021401-0000-0000-c000-000000000046} could be created for context 0x1

err:msi:ITERATE_CreateShortcuts CLSID_ShellLink not available

err:ole:CoGetClassObject class {00021401-0000-0000-c000-000000000046} not registered

err:ole:CoGetClassObject no class object {00021401-0000-0000-c000-000000000046} could be created for context 0x1

err:msi:ITERATE_CreateShortcuts CLSID_ShellLink not available

fixme:mscoree:LoadLibraryShim (0x41da5ce4 L"fusion.dll", 0x0, 0x0, 0x33f5bc): semi-stub

err:ole:CoGetClassObject class {cacaf262-9370-4615-a13b-9f5539da4c0a} not registered

err:ole:CoGetClassObject no class object {cacaf262-9370-4615-a13b-9f5539da4c0a} could be created for context 0x1

err:ole:OleLoadPicture IPersistStream_Load failed

err:msi:msi_load_picture failed to load picture

err:msi:msi_dialog_bitmap_control Failed to load bitmap L"NewBinary5"

[/users/adizam/wine/wine-1.2.3/bin]

Posted

And finally, despite that, it installs, but attempting to run yields

 

[/users/adizam/wine/wine-1.2.3] cd bin

[/users/adizam/wine/wine-1.2.3/bin] ls

certtool gpg-error-config winecfg

dumpsexp hmac256 wineconsole

fc-cache libgcrypt-config winecpp

fc-cat msiexec winedbg

fc-list notepad winedump

fc-match pkg-config winefile

fc-query psktool wineg++

fc-scan regedit winegcc

freetype-config regsvr32 winemaker

function_grep.pl srptool winemine

gnutls-cli widl winepath

gnutls-cli-debug wine wineserver

gnutls-serv wineboot wmc

gpg-error winebuild wrc

[/users/adizam/wine/wine-1.2.3/bin] wine ~/.wine/drive_c/Program\ Files/Continuum/Continuum.exe

-bash: wine: command not found

[/users/adizam/wine/wine-1.2.3/bin] ./wine ~/.wine/drive_c/Program\ Files/Continuum/Continuum.exe

Wine cannot find the FreeType font library. To enable Wine to

use TrueType fonts please install a version of FreeType greater than

or equal to 2.0.5.

http://www.freetype.org

Wine cannot find the FreeType font library. To enable Wine to

use TrueType fonts please install a version of FreeType greater than

or equal to 2.0.5.

http://www.freetype.org

Wine cannot find the FreeType font library. To enable Wine to

use TrueType fonts please install a version of FreeType greater than

or equal to 2.0.5.

http://www.freetype.org

[/users/adizam/wine/wine-1.2.3/bin] Wine cannot find the FreeType font library. To enable Wine to

use TrueType fonts please install a version of FreeType greater than

or equal to 2.0.5.

http://www.freetype.org

Wine cannot find the FreeType font library. To enable Wine to

use TrueType fonts please install a version of FreeType greater than

or equal to 2.0.5.

http://www.freetype.org

Wine cannot find the FreeType font library. To enable Wine to

use TrueType fonts please install a version of FreeType greater than

or equal to 2.0.5.

http://www.freetype.org

Wine cannot find the FreeType font library. To enable Wine to

use TrueType fonts please install a version of FreeType greater than

or equal to 2.0.5.

http://www.freetype.org

Wine cannot find the FreeType font library. To enable Wine to

use TrueType fonts please install a version of FreeType greater than

or equal to 2.0.5.

http://www.freetype.org

Wine cannot find the FreeType font library. To enable Wine to

use TrueType fonts please install a version of FreeType greater than

or equal to 2.0.5.

http://www.freetype.org

Wine cannot find the FreeType font library. To enable Wine to

use TrueType fonts please install a version of FreeType greater than

or equal to 2.0.5.

http://www.freetype.org

Wine cannot find the FreeType font library. To enable Wine to

use TrueType fonts please install a version of FreeType greater than

or equal to 2.0.5.

http://www.freetype.org

Wine cannot find the FreeType font library. To enable Wine to

use TrueType fonts please install a version of FreeType greater than

or equal to 2.0.5.

http://www.freetype.org

Wine cannot find the FreeType font library. To enable Wine to

use TrueType fonts please install a version of FreeType greater than

or equal to 2.0.5.

http://www.freetype.org

Wine cannot find the FreeType font library. To enable Wine to

use TrueType fonts please install a version of FreeType greater than

or equal to 2.0.5.

http://www.freetype.org

Wine cannot find the FreeType font library. To enable Wine to

use TrueType fonts please install a version of FreeType greater than

or equal to 2.0.5.

http://www.freetype.org

 

 

So obviously I'm going to go install freetype :)

Posted (edited)

Just for the sake of trying your script.. tried it.

 

 

 

"

 

before running Continuum! If you have had any issues with this script, then please

make a post at:

 

http://forums.ssgn.net/topic/25908-installing-on-a-mac-guide/

 

Continuum can be found in "{WINESOFTWAREPATH}" to run the installer execute:

 

wine "/Users/adizam/wine/software/Continuum040.exe"

 

---Script completed at 20110719215317

[~] wine ~/.wine/drive_c/Program\ Files/Continuum/Continuum.exe

-bash: wine: command not found

 

"

 

Hi, there should have been two export statements just above what you quoted, one mentioning DYLYB_FALLBACK and another mentioning PATH. They both need to be ran; apologies it's my fault for not explicitly stating how important they are to execute. The secondary one for 'finding' WINE so you don't get the

 

-bash: wine: command not found

 

XCode 3.26, XQuartz 2.61

 

 

User:~ User$ /Users/User\ 1/Desktop/InstallContinuum.sh

/Users/User 1/Desktop/InstallContinuum.sh: line 147: [: /Users/User: binary operator expected

/Users/User 1/Desktop/InstallContinuum.sh: line 151: [: /Users/User: binary operator expected

/Users/User 1/Desktop/InstallContinuum.sh: line 155: [: /Users/User: binary operator expected

/Users/User 1/Desktop/InstallContinuum.sh: line 159: [: /Users/User: binary operator expected

/Users/User 1/Desktop/InstallContinuum.sh: line 163: [: /Users/User: binary operator expected

XQuartz launch daemon failed; checking for installation...

Using XQuartz installed in /opt/X11

X11 install set to: /opt/X11

/Users/User 1/Desktop/InstallContinuum.sh: line 1150: [: /Users/User: binary operator expected

---Script started at 20110719223234

Checking Compiler...

/Users/User 1/Desktop/InstallContinuum.sh: line 257: [: /Users/User: binary operator expected

/Users/User 1/Desktop/InstallContinuum.sh: line 260: ${WINEBUILDPATH}/$$_compiler_check.c: ambiguous redirect

i686-apple-darwin10-gcc-4.2.1: 1/wine/wine-1.2.3/include: No such file or directory

i686-apple-darwin10-gcc-4.2.1: /Users/User: No such file or directory

i686-apple-darwin10-gcc-4.2.1: 1/wine/build/5518_compiler_check.c: No such file or directory

i686-apple-darwin10-gcc-4.2.1: 1/wine/build/5518_compiler_check: No such file or directory

i686-apple-darwin10-gcc-4.2.1: no input files

compiler cannot output executables - Terminating...

 

I guess I just need to install wine?

 

This is an interesting error; I'd either suggest that XCode/UNIX Developer tools hasn't been installed (Did you install XCode via the CD that Apple provided you? If so, you'll need to also install UNIX Developer tools) - otherwise an install of XCode from the AppStore will do everything for you (but costs about $5).

 

Didnt install the OS level links but.. navigating to directory and running yields..

 

(It installs, just wont run :) )

 

 

[/users/adizam/wine/wine-1.2.3/bin] ./wine "/Users/adizam/wine/software/Continuum040.exe"

.... loads of output ....

[/users/adizam/wine/wine-1.2.3/bin]

 

This is interesting, looks like a mix of two errors. The first is that WINE can't find FreeType font libs (which means you'll need to run the DYLIB export stated in my first reply - the second looks like the patching failed. Let me make some edits to the script to make it more bulletproof and then re-run it. Apologies guys...

 

 

And finally, despite that, it installs, but attempting to run yields

 

[/users/adizam/wine/wine-1.2.3] cd bin

[/users/adizam/wine/wine-1.2.3/bin] ls

certtool gpg-error-config winecfg

dumpsexp hmac256 wineconsole

fc-cache libgcrypt-config winecpp

fc-cat msiexec winedbg

fc-list notepad winedump

fc-match pkg-config winefile

fc-query psktool wineg++

fc-scan regedit winegcc

freetype-config regsvr32 winemaker

function_grep.pl srptool winemine

gnutls-cli widl winepath

gnutls-cli-debug wine wineserver

gnutls-serv wineboot wmc

gpg-error winebuild wrc

[/users/adizam/wine/wine-1.2.3/bin] wine ~/.wine/drive_c/Program\ Files/Continuum/Continuum.exe

-bash: wine: command not found

[/users/adizam/wine/wine-1.2.3/bin] ./wine ~/.wine/drive_c/Program\ Files/Continuum/Continuum.exe

Wine cannot find the FreeType font library. To enable Wine to

use TrueType fonts please install a version of FreeType greater than

or equal to 2.0.5.

http://www.freetype.org

Wine cannot find the FreeType font library. To enable Wine to

use TrueType fonts please install a version of FreeType greater than

or equal to 2.0.5.

http://www.freetype.org

Wine cannot find the FreeType font library. To enable Wine to

use TrueType fonts please install a version of FreeType greater than

or equal to 2.0.5.

http://www.freetype.org

[/users/adizam/wine/wine-1.2.3/bin] Wine cannot find the FreeType font library. To enable Wine to

use TrueType fonts please install a version of FreeType greater than

or equal to 2.0.5.

http://www.freetype.org

Wine cannot find the FreeType font library. To enable Wine to

use TrueType fonts please install a version of FreeType greater than

or equal to 2.0.5.

http://www.freetype.org

Wine cannot find the FreeType font library. To enable Wine to

use TrueType fonts please install a version of FreeType greater than

or equal to 2.0.5.

http://www.freetype.org

Wine cannot find the FreeType font library. To enable Wine to

use TrueType fonts please install a version of FreeType greater than

or equal to 2.0.5.

http://www.freetype.org

Wine cannot find the FreeType font library. To enable Wine to

use TrueType fonts please install a version of FreeType greater than

or equal to 2.0.5.

http://www.freetype.org

Wine cannot find the FreeType font library. To enable Wine to

use TrueType fonts please install a version of FreeType greater than

or equal to 2.0.5.

http://www.freetype.org

Wine cannot find the FreeType font library. To enable Wine to

use TrueType fonts please install a version of FreeType greater than

or equal to 2.0.5.

http://www.freetype.org

Wine cannot find the FreeType font library. To enable Wine to

use TrueType fonts please install a version of FreeType greater than

or equal to 2.0.5.

http://www.freetype.org

Wine cannot find the FreeType font library. To enable Wine to

use TrueType fonts please install a version of FreeType greater than

or equal to 2.0.5.

http://www.freetype.org

Wine cannot find the FreeType font library. To enable Wine to

use TrueType fonts please install a version of FreeType greater than

or equal to 2.0.5.

http://www.freetype.org

Wine cannot find the FreeType font library. To enable Wine to

use TrueType fonts please install a version of FreeType greater than

or equal to 2.0.5.

http://www.freetype.org

Wine cannot find the FreeType font library. To enable Wine to

use TrueType fonts please install a version of FreeType greater than

or equal to 2.0.5.

http://www.freetype.org

 

 

So obviously I'm going to go install freetype :)

 

Again, I'd say it's the same errors as what I mentioned previously. I'll make some edits to the script - sorry for the time wasting guys it works fine on my laptop I must have done other tinkering.

 

I'll re-do the script and then run it on another user so you don't have to keep going through this hassle. Also, I still have the packaged way of doing things in the pipes which means you don't need to grab XCode or do any of this nonsense; but means a little bit more of a wait as it's not something I've done before and is proving quite a pain in the arse to do.

 

Cheers for the feedback

 

Edit: Just made a couple changes; if they work out on my new user then I'll re-upload the script. Thanks for the patience guys.

Edited by Lynx
Posted

Hi,

 

I've updated the script, and ran it under a new user. I get around 35FPS on a low-powered mac (Macbook Air, 2.13Ghz Core 2 Duo, 2GB RAM, 120GB SSD, 256MB NVidia) - so for most other guys it should prove for good performance. The script can be downloaded at the above link (first post). Before executing the script please delete the wine folder located in your home directory.

 

Also delete the wie home diretory:

 

rm -r ~/.wine

Posted (edited)

This is really bothering me.. you say you packaged the program, so I removed WINE like you said to (before downloading the package) and the package doesn't work. I tried "Show Contents of Package" and downloading, and there's no icon anywhere on my computer like you said. I was running Continuum on my mac for a year by using

 

wine ~/.wine/drive_c/Program\ Files/Continuum/Continuum.exe WINEDEBUG+warn+all

 

And now that I've uninstalled WINE, this doesn't work anymore. What am I doing wrong, did I misunderstand something? I go to https://github.com/krslynx/iSubspace/blob/master/.DS_Store and I hit Download, I've tried both the .zip and the .tar, please help.. neither work.

 

EDIT: The script seems to be re-installing again.. which was kind of pointless, as I thought you had the whole package/icon thing worked out where I would just have to click it and it would open like a normal application; how far off are you from finishing creating such an application?

 

EDIT 2: The script failed, it gave me this error right at the very end:

 

 

configure: error: Xcode 3.x cannot build 16-bit code correctly. Use --disable-win16 if you don't need 16-bit support.

could not run configure command './configure --prefix=/Users/jakemandel/wine/wine-1.2.3 --verbose --enable-win16 --disable-win64 --without-capi --without-hal --without-v4l --with-fontconfig --with-freetype --with-gnutls --with-x --x-includes=/usr/X11/include --x-libraries=/usr/X11/lib ' in /Users/jakemandel/wine/build/wine-1.2.3 - Terminating...

 

 

I don't know anything about macs, but I was just fine with the copy and pasting of that code to let Continuum run, and now that I can't play I'm pretty displeased. Please help.

Edited by thix
Posted (edited)

This is really bothering me.. you say you packaged the program, so I removed WINE like you said to (before downloading the package) and the package doesn't work. I tried "Show Contents of Package" and downloading, and there's no icon anywhere on my computer like you said. I was running Continuum on my mac for a year by using

 

wine ~/.wine/drive_c/Program\ Files/Continuum/Continuum.exe WINEDEBUG+warn+all

 

And now that I've uninstalled WINE, this doesn't work anymore. What am I doing wrong, did I misunderstand something? I go to https://github.com/krslynx/iSubspace/blob/master/.DS_Store and I hit Download, I've tried both the .zip and the .tar, please help.. neither work.

 

EDIT: The script seems to be re-installing again.. which was kind of pointless, as I thought you had the whole package/icon thing worked out where I would just have to click it and it would open like a normal application; how far off are you from finishing creating such an application?

 

EDIT 2: The script failed, it gave me this error right at the very end:

 

 

configure: error: Xcode 3.x cannot build 16-bit code correctly. Use --disable-win16 if you don't need 16-bit support.

could not run configure command './configure --prefix=/Users/jakemandel/wine/wine-1.2.3 --verbose --enable-win16 --disable-win64 --without-capi --without-hal --without-v4l --with-fontconfig --with-freetype --with-gnutls --with-x --x-includes=/usr/X11/include --x-libraries=/usr/X11/lib ' in /Users/jakemandel/wine/build/wine-1.2.3 - Terminating...

 

 

I don't know anything about macs, but I was just fine with the copy and pasting of that code to let Continuum run, and now that I can't play I'm pretty displeased. Please help.

It's not letting me edit this post again, but I found a way to get WINE to work again and am currently running Continuum using the same method I had been previously, which was by copy and pasting this command in Terminal:

 

wine ~/.wine/drive_c/Program\ Files/Continuum/Continuum.exe WINEDEBUG+warn+all

 

The only problems I've run across since having to re-download are: sound sounds a bit distorted/different than it did, and I don't have the "File, Edit Keys/Macro bar at the top of the Coninuum terminal. Therefore, I can't select to play windowed (when I do it in "Profile" it has no effect) and playing windowed always used to fix the FPS a bit when playing on a mac.

 

 

SO, I figured that out and am currently having no problem running it, HOWEVER, will a packaged/icon/Mac Application be coming out soon?

Edited by thix
Posted

Hi,

 

Continue to run Continuum the way you always have. Once I finish the packaged method (by that, I mean a .pkg installer) I'll re-edit the initial post and have both an installer and a launcher (the Icon'd Mac Application) available for download. I don't know when it will be ready as my hours of free-time are few and far between right now. Sorry for the confusion.

 

Cheers

Posted
Since I reinstalled, I don't have the "file, edit keys/config, window' open above the "Profile" thing in the Launch station for Continuum. Any idea what may be causing this?
Posted
I mean the output that follows you entering that command. Just let the application run - then copy and paste your entire Terminal output. If I'm honest it's not an error I've ever come across but I'll see what I can find out.
Posted

Update: The shell script now seems to be pretty bug-free; the entire project can be checked out at GitHub.

 

I have got it working from the Dock as an App with the Icon - but making it automated into the script as it's not distributable. Will notify when done.

Posted

user:~ user$ /Users/user\ 1/Desktop/iSubspace.sh

/Users/user 1/Desktop/iSubspace.sh: line 140: [: /Users/user: binary operator expected

/Users/user 1/Desktop/iSubspace.sh: line 144: [: /Users/user: binary operator expected

/Users/user 1/Desktop/iSubspace.sh: line 148: [: /Users/user: binary operator expected

/Users/user 1/Desktop/iSubspace.sh: line 152: [: /Users/user: binary operator expected

/Users/user 1/Desktop/iSubspace.sh: line 156: [: /Users/user: binary operator expected

XQuartz launch daemon failed; checking for installation...

Using XQuartz installed in /opt/X11

X11 install set to: /opt/X11

/Users/user 1/Desktop/iSubspace.sh: line 1123: [: /Users/user: binary operator expected

---Script started at 20110726234237

Checking Compiler...

/Users/user 1/Desktop/iSubspace.sh: line 250: [: /Users/user: binary operator expected

/Users/user 1/Desktop/iSubspace.sh: line 253: ${WINEBUILDPATH}/$$_compiler_check.c: ambiguous redirect

i686-apple-darwin10-gcc-4.2.1: 1/wine/wine-1.2.3/include: No such file or directory

i686-apple-darwin10-gcc-4.2.1: /Users/user: No such file or directory

i686-apple-darwin10-gcc-4.2.1: 1/wine/build/32225_compiler_check.c: No such file or directory

i686-apple-darwin10-gcc-4.2.1: 1/wine/build/32225_compiler_check: No such file or directory

i686-apple-darwin10-gcc-4.2.1: no input files

compiler cannot output executables - Terminating...

 

latest xcode+xquartz

Posted
Odd; it's globbing. I think it's because your short name is "User 1" and I coded it thinking that shortnames could only be one string, unseparated by spaces (most *nix machines try and prevent you from creating short names like this one). I'll update the script later to set it to check for short names with more than one word, and see if that fixes it. Thanks for bringing this to my attention. :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...