2013-06-25 21:08:55 +10:00
|
|
|
Build instructions (using linux)
|
2011-08-07 21:33:32 +10:00
|
|
|
|
2013-06-25 21:08:55 +10:00
|
|
|
1. Install the Tizen SDK
|
2011-08-07 21:33:32 +10:00
|
|
|
|
2013-06-25 21:08:55 +10:00
|
|
|
http://www.tizen.org
|
2011-08-07 21:33:32 +10:00
|
|
|
|
2013-06-25 21:08:55 +10:00
|
|
|
To use an alternative Java SDK to run the Tizen IDE (eclipse), edit ~/.profile
|
2011-08-07 21:33:32 +10:00
|
|
|
|
2013-06-25 21:08:55 +10:00
|
|
|
export JAVA_HOME=/opt/jdk1.6.0_45
|
|
|
|
export PATH=${PATH}:${JAVA_HOME}/bin
|
2011-08-07 21:33:32 +10:00
|
|
|
|
2013-06-25 21:08:55 +10:00
|
|
|
2. Add the following to your ~/.bashrc file
|
2011-08-07 21:33:32 +10:00
|
|
|
|
2013-06-25 21:08:55 +10:00
|
|
|
export TIZEN_SDK=${HOME}/tizen-sdk
|
|
|
|
export TIZEN_ROOTSTRAP=${TIZEN_SDK}/platforms/tizen2.1/rootstraps/tizen-device-2.1.native
|
|
|
|
export TIZEN_BIN=${TIZEN_SDK}/tools/arm-linux-gnueabi-gcc-4.5/bin
|
|
|
|
export TIZEN_LIBS=${HOME}/tizen-lib
|
|
|
|
export PATH=${PATH}:${TIZEN_BIN}:~/bin
|
|
|
|
export CHOST=arm-linux-gnueabi
|
|
|
|
export LDFLAGS="--sysroot=${TIZEN_ROOTSTRAP} -L${TIZEN_LIBS}/lib"
|
|
|
|
export CPPFLAGS="--sysroot=${TIZEN_ROOTSTRAP} -fmessage-length=0 -fPIC\
|
|
|
|
-I${TIZEN_ROOTSTRAP}/usr/include -I${TIZEN_LIBS}/include"
|
|
|
|
export CFLAGS=${CPPFLAGS}
|
2011-08-07 21:33:32 +10:00
|
|
|
|
|
|
|
3. Build dependencies
|
|
|
|
|
2013-06-25 21:08:55 +10:00
|
|
|
See: "Building the libraries" under:
|
2019-03-09 19:26:59 +00:00
|
|
|
https://wiki.scummvm.org/index.php/Compiling_ScummVM/MinGW#Building_the_libraries
|
2011-08-07 21:33:32 +10:00
|
|
|
for instructions on how to obtain these modules
|
|
|
|
|
2013-06-25 21:08:55 +10:00
|
|
|
3.1 zlib
|
2011-08-07 21:33:32 +10:00
|
|
|
|
2013-06-25 21:08:55 +10:00
|
|
|
$ ./configure --static --prefix=${TIZEN_LIBS}
|
|
|
|
$ make && make install
|
2011-08-07 21:33:32 +10:00
|
|
|
|
2013-06-25 21:08:55 +10:00
|
|
|
3.2 freetype, libtheora, libogg, libvorbis, libmad, FLAC
|
2011-08-07 21:33:32 +10:00
|
|
|
|
2013-06-25 21:08:55 +10:00
|
|
|
$ ./configure --host=arm-linux-gnueabi --prefix=${TIZEN_LIBS} --disable-shared
|
|
|
|
$ make && make install
|
2011-08-07 21:33:32 +10:00
|
|
|
|
2013-06-25 21:08:55 +10:00
|
|
|
Note: you can ignore the ranlib errors when doing make install.
|
2011-08-07 21:33:32 +10:00
|
|
|
|
2013-06-25 21:08:55 +10:00
|
|
|
Modify the resulting ~/tizen-lib/bin/freetype-config file to include -lz when printing libs
|
2011-08-07 21:33:32 +10:00
|
|
|
|
2013-06-25 21:08:55 +10:00
|
|
|
3.3 Linker ordering: scummvm, freetype, theoradec, vorbis, vorbisfile, mad, FLAC, ogg, z
|
2011-08-07 21:33:32 +10:00
|
|
|
|
|
|
|
4. Build the ScummVM base library:
|
|
|
|
|
2013-06-25 21:08:55 +10:00
|
|
|
./configure --host=tizen --enable-release --with-freetype2-prefix=${TIZEN_LIBS}/bin
|
2011-08-07 21:33:32 +10:00
|
|
|
|
2013-06-25 21:08:55 +10:00
|
|
|
For development:
|
2011-08-07 21:33:32 +10:00
|
|
|
|
2013-06-25 21:08:55 +10:00
|
|
|
./configure --host=tizen --enable-verbose-build --enable-debug
|
2011-08-07 21:33:32 +10:00
|
|
|
|
2013-06-25 21:08:55 +10:00
|
|
|
5. Build the front end application using Tizen IDE
|
2011-08-07 21:33:32 +10:00
|
|
|
|
2011-08-22 09:46:30 +02:00
|
|
|
Copy the scummvm/dists/bada folder into a clean directory
|
|
|
|
outside of the scummvm package. Start the BADA IDE then
|
2011-08-07 21:33:32 +10:00
|
|
|
choose this folder as the eclipse workspace. Click
|
|
|
|
Project / Build.
|
2011-08-16 11:58:43 +10:00
|
|
|
|
|
|
|
Links:
|
|
|
|
|
|
|
|
A short turorial on implementing OpenGL ES 1.1 in BADA:
|
2011-08-22 09:46:30 +02:00
|
|
|
http://forums.badadev.com/viewtopic.php?f=7&t=208
|
2011-08-16 11:58:43 +10:00
|
|
|
|
2011-10-17 22:35:48 +10:00
|
|
|
HelvB14 font files:
|
|
|
|
http://www.cl.cam.ac.uk/~mgk25/ucs-fonts.html
|
|
|
|
http://www.cl.cam.ac.uk/~mgk25/download/ucs-fonts-75dpi100dpi.tar.gz
|
|
|
|
|
|
|
|
Then run the following command:
|
|
|
|
$ ./ucs2any.pl 100dpi/helvB14.bdf MAPPINGS/8859-1.TXT iso8859-1 \
|
|
|
|
MAPPINGS/8859-2.TXT iso8859-2 MAPPINGS/8859-3.TXT iso8859-3
|
2013-06-25 21:08:55 +10:00
|
|
|
|
|
|
|
=====================================================================
|
|
|
|
Archived build instruction for BADA/cygwin
|
|
|
|
|
|
|
|
1. Install BADA SDK (requires free registration):
|
|
|
|
|
|
|
|
http://developer.bada.com/apis/index.do
|
|
|
|
|
|
|
|
2. Install Cygwin:
|
|
|
|
|
|
|
|
http://www.cygwin.com/
|
|
|
|
|
|
|
|
Add the following to your cygwin .bash_profile:
|
|
|
|
|
|
|
|
alias mmake=/cygdrive/c/MinGW/bin/mingw32-make.exe
|
|
|
|
export BADA_SDK=/cygdrive/c/bada/1.2.1
|
|
|
|
export ARM_BIN=c:/bada/1.2.1/Tools/Toolchains/ARM/bin
|
|
|
|
export CPPFLAGS="-fpic -fshort-wchar -mcpu=cortex-a8 -mfpu=vfpv3 \
|
|
|
|
-mfloat-abi=hard -mlittle-endian -mthumb-interwork -Wno-psabi \
|
|
|
|
-fno-strict-aliasing -fno-short-enums"
|
|
|
|
export LDFLAGS="-nostdlib -lc-newlib -lm-newlib -LC:/bada/1.2.1/Model/Wave_LP1/Target"
|
|
|
|
#export PATH=${BADA_SDK}/Tools/Toolchains/Win32/bin:${PATH}
|
|
|
|
export PATH=${BADA_SDK}/Tools/Toolchains/ARM/bin:~/utils:${PATH}
|
|
|
|
alias gcc=${ARM_BIN}/arm-samsung-nucleuseabi-gcc.exe
|
|
|
|
alias ar=${ARM_BIN}/arm-samsung-nucleuseabi-ar.exe
|
|
|
|
|
|
|
|
The following were added to ~/utils for zlib:
|
|
|
|
|
|
|
|
ar:
|
|
|
|
#!/bin/sh
|
|
|
|
${ARM_BIN}/arm-samsung-nucleuseabi-ar.exe $*
|
|
|
|
|
|
|
|
gcc:
|
|
|
|
#!/bin/sh
|
|
|
|
${ARM_BIN}/arm-samsung-nucleuseabi-gcc.exe $*
|