View previous topic :: View next topic |
Author |
Message |
mikeg n00b
Joined: 05 Apr 2003 Posts: 39
|
Posted: Tue Jan 04, 2005 6:58 pm Post subject: Building the Palm OS Emulator |
|
|
I'm attempting to build the Palm OS Emulator (POSE) and have not had any success. Has anyone been able to successfully build POSE?
This is the error I get:
Code: | ../SrcShared/Hardware/EmRegs328.cpp: At global scope:
../SrcShared/Hardware/EmRegs328.cpp:321: error: brace-enclosed initializer used
to initialize `UInt8'
../SrcShared/Hardware/EmRegs328.cpp:321: error: brace-enclosed initializer used
to initialize `UInt8'
../SrcShared/Hardware/EmRegs328.cpp:321: error: brace-enclosed initializer used
to initialize `UInt8'
../SrcShared/Hardware/EmRegs328.cpp:321: error: brace-enclosed initializer used
to initialize `UInt8'
../SrcShared/Hardware/EmRegs328.cpp:321: error: brace-enclosed initializer used
to initialize `UInt8'
../SrcShared/Hardware/EmRegs328.cpp:321: error: brace-enclosed initializer used
to initialize `UInt8'
../SrcShared/Hardware/EmRegs328.cpp:321: error: brace-enclosed initializer used
to initialize `UInt8'
../SrcShared/Hardware/EmRegs328.cpp:321: error: brace-enclosed initializer used
to initialize `UInt8'
../SrcShared/Hardware/EmRegs328.cpp:321: error: brace-enclosed initializer used
to initialize `UInt8'
../SrcShared/Hardware/EmRegs328.cpp:321: error: brace-enclosed initializer used
to initialize `UInt8'
make[1]: *** [EmRegs328.o] Error 1
make[1]: Leaving directory `/home/mike/tmp/pose/Emulator_Src_3.5/BuildUnix'
make: *** [all-recursive] Error 1
|
gcc version is,
Code: | gcc (GCC) 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6)
|
And kernel version is,
Code: | Linux mg1 2.6.9-gentoo-r9 #4 Thu Dec 30 14:26:32 MST 2004 i686 Pentium II (Deschutes) GenuineIntel GNU/Linux |
TIA.
Mike
UPDATE
I made the mistake of trying to build this outside of portage. It turns out the ebuild patches the source...and it works. Gentoo developers deserve a lot of credit for making packages install so smoothly.
Thanks,
Mike |
|
Back to top |
|
|
gervin23 n00b
Joined: 21 Jan 2005 Posts: 8
|
Posted: Sat Mar 05, 2005 7:53 am Post subject: |
|
|
what version of fltk did it require to build properly? |
|
Back to top |
|
|
gervin23 n00b
Joined: 21 Jan 2005 Posts: 8
|
Posted: Sat Mar 05, 2005 8:27 am Post subject: |
|
|
hmm, seems any combination of x11-libs/fltk (1.0.x or 1.1.x) or app-emulation/pose (3.5-r1 or 3.5-r4) seems to die during 'emerge pose'.
here's the tail-end of the error message i'm getting:
Code: |
In file included from ../BuildUnix/../SrcShared/CGremlins.h:17,
from ../BuildUnix/../SrcShared/Hordes.h:19,
from ../BuildUnix/../SrcShared/Logging.h:17,
from ../BuildUnix/../SrcShared/EmDlg.h:23,
from ../BuildUnix/../SrcUnix/EmDlgFltk.h:17,
from ../BuildUnix/../SrcUnix/EmApplicationFltk.cpp:17:
../BuildUnix/../SrcShared/EmStream.h: In member function `EmStream& EmStream::operator>>(std::deque<T, std::allocator<_CharT> >&)':
../BuildUnix/../SrcShared/EmStream.h:93: error: expected `;' before "iter"
../BuildUnix/../SrcShared/EmStream.h:94: error: `iter' undeclared (first use this function)
../BuildUnix/../SrcShared/EmStream.h:94: error: (Each undeclared identifier is reported only once for each function it appears in.)
../BuildUnix/../SrcShared/EmStream.h: In member function `EmStream& EmStream::operator>>(std::list<T, std::allocator<_CharT> >&)':
../BuildUnix/../SrcShared/EmStream.h:111: error: expected `;' before "iter"
../BuildUnix/../SrcShared/EmStream.h:112: error: `iter' undeclared (first use this function)
../BuildUnix/../SrcShared/EmStream.h: In member function `EmStream& EmStream::operator>>(std::vector<T, std::allocator<_CharT> >&)':
../BuildUnix/../SrcShared/EmStream.h:129: error: expected `;' before "iter"
../BuildUnix/../SrcShared/EmStream.h:130: error: `iter' undeclared (first use this function)
../BuildUnix/../SrcShared/EmStream.h: In member function `EmStream& EmStream::operator<<(const std::deque<T, std::allocator<_CharT> >&)':
../BuildUnix/../SrcShared/EmStream.h:146: error: expected `;' before "iter"
../BuildUnix/../SrcShared/EmStream.h:147: error: `iter' undeclared (first use this function)
../BuildUnix/../SrcShared/EmStream.h: In member function `EmStream& EmStream::operator<<(const std::list<T, std::allocator<_CharT> >&)':
../BuildUnix/../SrcShared/EmStream.h:163: error: expected `;' before "iter"
../BuildUnix/../SrcShared/EmStream.h:164: error: `iter' undeclared (first use this function)
../BuildUnix/../SrcShared/EmStream.h: In member function `EmStream& EmStream::operator<<(const std::vector<T, std::allocator<_CharT> >&)':
../BuildUnix/../SrcShared/EmStream.h:180: error: expected `;' before "iter"
../BuildUnix/../SrcShared/EmStream.h:181: error: `iter' undeclared (first use this function)
../BuildUnix/../SrcUnix/EmApplicationFltk.h: In constructor `EmApplicationFltk::EmApplicationFltk()':
../BuildUnix/../SrcUnix/EmApplicationFltk.h:44: warning: `EmApplicationFltk::fClipboardWidget' will be initialized after
../BuildUnix/../SrcUnix/EmApplicationFltk.h:43: warning: `EmWindowFltk*EmApplicationFltk::fAppWindow'
../BuildUnix/../SrcUnix/EmApplicationFltk.cpp:120: warning: when initialized here
make[1]: *** [EmApplicationFltk.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/pose-3.5-r4/work/Emulator_Src_3.5/build-normal'
make: *** [all-recursive] Error 1
!!! ERROR: app-emulation/pose-3.5-r4 failed.
!!! Function src_compile, Line 55, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.
|
for some reason portage allows fltk 1.0.x and 1.1.x (slots?). i tried emerging pose against both fltk versions independently and combined.
any ideas? |
|
Back to top |
|
|
MaxDamage l33t
Joined: 03 Jan 2004 Posts: 650 Location: Oviedo, Spain
|
|
Back to top |
|
|
hjnenc Veteran
Joined: 15 Aug 2004 Posts: 1599 Location: Vienna, Austria
|
|
Back to top |
|
|
rcxAsh Guru
Joined: 03 Jul 2003 Posts: 457 Location: /etc/localtime
|
Posted: Fri May 20, 2005 8:28 pm Post subject: |
|
|
Hmm. I managed to compile pose from portage ok. But when I try to run it, I get a segmentation fault immediately. _________________ rcxAsh |
|
Back to top |
|
|
terrym n00b
Joined: 08 Jul 2005 Posts: 7 Location: New Jersey
|
Posted: Tue Nov 08, 2005 5:53 pm Post subject: pose segmentation fault |
|
|
I got the same segmentation fault when using pose. This was a previously working build of app-emulation/pose 3.5-r4. I found a bug filed with Debian that had to do with gzip libs and fonts, the fix was to patch pose to use zlib. I've posted a bug and ebuild https://bugs.gentoo.org/show_bug.cgi?id=111432, which fixes the problem for me. |
|
Back to top |
|
|
Pygoscelis_papua n00b
Joined: 18 Jan 2005 Posts: 24
|
Posted: Thu Jan 25, 2007 11:33 pm Post subject: |
|
|
I've managed to get pose to compile and run using gcc-3.4.5 (on a box on which gcc-4.1.1 is the default).
I assumed that the contents of whatever pose ebuilds existed are lost forever. I worked with the pose source rpm from sourceforge, two gcc-3 patches for pose that are available in the freebsd port tarball for pose, and the build commands that are given in the pose source rpm. The trick was finding the patches for gcc-3.
Ingredients:
1 unpacked pose tarball. The tarball was created from the source rpm using rpm2tar. (http://sourceforge.net/projects/pose/)
1 unpacked freebsd port tarball for pose (contains only patches for gcc 3.3 and 3.4 - those for 4 seem to be in the
in progress. (http://www.freebsd.org/ports/ftp.html search for pose, download pose 3.5 3)
1 system configured to compile with gcc-3.4.5 (using gcc-config)
Created the following script from the build commands in the source rpm. Set values of POSE_UNPACK_DIR and BSDPORT_UNPACK_DIR to directories that contain files (original tarball and patches).
Code: |
#! /bin/bash
# contains contents of unpacked pose
# tarball (tarball created from sourceforge
# pose src-rpm using rpm2tar)
POSE_UNPACK_DIR=${HOME}/usr/src/pose/unpack
# contains contents of unpacked BSD port
# tarball (tarball from
# http://www.freebsd.org/ports/ftp.html
BSDPORT_UNPACK_DIR=${HOME}/usr/src/pose/bsdport/pose/files
# some set up
export CXX=g++
rm -rf builddir
mkdir builddir
cd builddir
# the following is tweaked just a little from
# commands given in the source rpm build
# section
tar -xvzf $POSE_UNPACK_DIR/emulator_src_3.5.tar.gz
chmod -R u+w *
cd Emulator_Src_3.5
patch -p1 < $POSE_UNPACK_DIR/detect-fluid.diff
patch -p1 < $POSE_UNPACK_DIR/separate-builddir.diff
patch -p1 < $POSE_UNPACK_DIR/choose-gl.diff
patch -p0 < $POSE_UNPACK_DIR/init-clipwidget.diff
(cd BuildUnix;
patch -p0 < $BSDPORT_UNPACK_DIR/patch-gcc-3.3_fix;
patch -p0 < $BSDPORT_UNPACK_DIR/patch-gcc-3.4_fix;
aclocal;
automake --foreign;
autoconf)
tar -xvzf $POSE_UNPACK_DIR/fltk-1.0.11-source.tar.gz
fltk_dir=`pwd`/install-fltk
mkdir -p $fltk_dir
cd fltk-1.0.11
LDFLAGS=-lstdc++ ./configure --prefix=$fltk_dir --disable-gl --disable-shared
make clean
make && make install
cd ..
static_dir=`pwd`/static-libs
mkdir -p $static_dir
ln -sf `${CXX:-g++} -print-file-name=libstdc++.a` $static_dir/libstdc++.a
mkdir -p build-normal build-profile
(cd build-normal &&
LDFLAGS="-lstdc++ -L$static_dir" ../BuildUnix/configure \
--with-fltk=$fltk_dir --disable-gl &&
make)
(cd build-profile &&
LDFLAGS=-L$static_dir ../BuildUnix/configure \
--with-fltk=$fltk_dir --disable-gl --enable-palm-profile &&
make)
|
There is a patch for gcc 4 that is in the works in the FreeBSD ports. It does not work with this build because this build builds fltk and the gcc 4 patch covers only pose (fltk must be elsewhere).
Your mileage may vary.
PyPa |
|
Back to top |
|
|
|