<div>hi,all</div>
<div> Is there any further steps on spice-ios? These days I am porting glib on iOS, but it always complains there is no gettext, but I have cross compiled gettext successfully.</div>
<div> Any suggestion is appreciated.</div>
<div> The command to configure glib to iOS:</div>
<div> </div>
<div> export DEVELOPER="/Developer"<br> export ROOTDIR=~</div>
<div> export PLATFORM="iPhoneOS"<br> export SDK="4.3"<br> export ARCH="armv7"<br> export PKG_CONFIG="/opt/local/bin/pkg-config"<br> export PKG_CONFIG_PATH="${ROOTDIR}/lib/pkgconfig"<br>
export LD_LIBRARY_PATH="${ROOTDIR}/lib"<br>export DEVROOT="${DEVELOPER}/Platforms/${PLATFORM}.platform/Developer"<br>export SDKROOT="${DEVROOT}/SDKs/${PLATFORM}${SDK}.sdk"</div>
<div>export CC=${DEVROOT}/usr/bin/gcc<br>export LD=${DEVROOT}/usr/bin/ld<br>export CPP=${DEVROOT}/usr/bin/cpp<br>export CXX=${DEVROOT}/usr/bin/g++<br>unset AR<br>unset AS<br>export NM=${DEVROOT}/usr/bin/nm<br>export CXXCPP=${DEVROOT}/usr/bin/cpp<br>
export RANLIB=${DEVROOT}/usr/bin/ranlib<br>export LDFLAGS="-arch ${ARCH} -pipe -no-cpp-precomp -isysroot ${SDKROOT} -L${ROOTDIR}/lib"<br>export CFLAGS="-arch ${ARCH} -pipe -no-cpp-precomp -isysroot ${SDKROOT} -I${ROOTDIR}/include"<br>
export CXXFLAGS="-arch ${ARCH} -pipe -no-cpp-precomp -isysroot ${SDKROOT} -I${ROOTDIR}/include"<br>#export LDFLAGS="-arch ${ARCH} -pipe -no-cpp-precomp -isysroot ${SDKROOT} -L/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/usr/lib"<br>
#export CFLAGS="-arch ${ARCH} -pipe -no-cpp-precomp -isysroot ${SDKROOT} -I/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/usr/include/"<br>#export CXXFLAGS="-arch ${ARCH} -pipe -no-cpp-precomp -isysroot ${SDKROOT} -I/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/usr/include/"</div>
<div>if [ "${SDK}" == "3.2" ]<br>then<br> if [ "${PLATFORM}" == "iPhoneSimulator" ]<br> then<br> # Work around linker error "ld: library not found for -lcrt1.10.6.o" on iPhone Simulator 3.2<br>
export LDFLAGS="${LDFLAGS} -mmacosx-version-min=10.5"<br> export CFLAGS="${CFLAGS} -mmacosx-version-min=10.5"<br> export CXXFLAGS="${CXXFLAGS} -mmacosx-version-min=10.5"<br> fi<br>
fi<br>./configure --host=${ARCH}-apple-darwin --prefix=${ROOTDIR} --enable-static=yes --enable-shared=no </div>
<div> </div>
<div>the configure log file contents are:</div>
<div> </div>
<div>checking for a BSD-compatible install... /usr/bin/install -c<br>checking whether build environment is sane... yes<br>checking for armv7-apple-darwin-strip... no<br>checking for strip... strip<br>checking for a thread-safe mkdir -p... ./install-sh -c -d<br>
checking for gawk... no<br>checking for mawk... no<br>checking for nawk... no<br>checking for awk... awk<br>checking whether make sets $(MAKE)... yes<br>checking whether to enable maintainer-specific portions of Makefiles... no<br>
checking for armv7-apple-darwin-gcc... /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc<br>checking whether the C compiler works... yes<br>checking for C compiler default output file name... a.out<br>checking for suffix of executables...<br>
checking whether we are cross compiling... yes<br>checking for suffix of object files... o<br>checking whether we are using the GNU C compiler... yes<br>checking whether /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc accepts -g... yes<br>
checking for /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc option to accept ISO C89... none needed<br>checking for style of include used by make... GNU<br>checking dependency style of /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc... gcc3<br>
checking how to run the C preprocessor... /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/cpp<br>checking build system type... i386-apple-darwin10.7.0<br>checking host system type... armv7-apple-darwin<br>checking for the BeOS... no<br>
checking for Win32... no<br>checking for Mac OS X Carbon support... no<br>checking for grep that handles long lines and -e... /usr/bin/grep<br>checking for egrep... /usr/bin/grep -E<br>checking whether we are using the GNU C Library 2.1 or newer... no<br>
checking whether to enable garbage collector friendliness... no<br>checking whether to disable memory pools... no<br>checking for armv7-apple-darwin-c++... /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/g++<br>checking whether we are using the GNU C++ compiler... yes<br>
checking whether /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/g++ accepts -g... yes<br>checking dependency style of /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/g++... gcc3<br>checking for armv7-apple-darwin-gcc... (cached) /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc<br>
checking whether we are using the GNU C compiler... (cached) yes<br>checking whether /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc accepts -g... (cached) yes<br>checking for /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc option to accept ISO C89... (cached) none needed<br>
checking dependency style of /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc... (cached) gcc3<br>checking whether /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc and cc understand -c and -o together... yes<br>
checking for special C compiler options needed for large files... no<br>checking for _FILE_OFFSET_BITS value needed for large files... no<br>checking pkg-config is at least version 0.16... yes<br>checking for gawk... (cached) awk<br>
checking for perl5... no<br>checking for perl... perl<br>checking for indent... indent<br>checking for perl... /usr/bin/perl<br>checking for a Python interpreter with version >= 2.4... python<br>checking for python... /usr/bin/python<br>
checking for python version... 2.6<br>checking for python platform... darwin<br>checking for python script directory... ${prefix}/lib/python2.6/site-packages<br>checking for python extension module directory... ${exec_prefix}/lib/python2.6/site-packages<br>
checking for iconv_open... no<br>checking for libiconv_open in -liconv... yes<br>checking Whether to cache iconv descriptors... yes<br>checking for ZLIB... yes<br>checking for LIBFFI... yes<br>checking locale.h usability... yes<br>
checking locale.h presence... yes<br>checking for locale.h... yes<br>checking for LC_MESSAGES... yes<br>checking libintl.h usability... yes<br>checking libintl.h presence... no<br>checking for libintl.h... yes<br>checking for ngettext in libc... no<br>
checking for bindtextdomain in -lintl... no<br>checking if -liconv is needed to use gettext...<br>checking for ngettext in -lintl... no<br></div>
<div>the contents print on screen are:</div>
<div> </div>
<div>configure: WARNING: if you wanted to set the --build type, don't use --host.<br> If a cross compiler is detected then cross compile mode will be used<br>readlink: illegal option -- f<br>usage: readlink [-n] [file ...]<br>
configure: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!<br>configure: WARNING: libintl.h: proceeding with the compiler's result<br>configure: error:<br>*** You must have either have gettext support in your C library, or use the<br>
*** GNU gettext library. (<a href="http://www.gnu.org/software/gettext/gettext.html">http://www.gnu.org/software/gettext/gettext.html</a></div>
<div> </div>
<div> ls ~/iPhoneOS-V7-4.3/lib/<br>charset.alias <a href="http://libasprintf.la">libasprintf.la</a> <a href="http://libcharset.la">libcharset.la</a> <a href="http://libffi.la">libffi.la</a> libgettextpo.a <a href="http://libgpg-error.la">libgpg-error.la</a> <a href="http://libintl.la">libintl.la</a> <a href="http://libpixman-1.la">libpixman-1.la</a> libturbojpeg.a<br>
engines libcelt.a libcrypto.a libgcrypt.a <a href="http://libgettextpo.la">libgettextpo.la</a> libiconv.a libjpeg.a libsasl2.a <a href="http://libturbojpeg.la">libturbojpeg.la</a><br>
gettext <a href="http://libcelt.la">libcelt.la</a> libffi-3.0.11-rc2 <a href="http://libgcrypt.la">libgcrypt.la</a> <a href="http://libgettextsrc.la">libgettextsrc.la</a> <a href="http://libiconv.la">libiconv.la</a> <a href="http://libjpeg.la">libjpeg.la</a> <a href="http://libsasl2.la">libsasl2.la</a> libz.a<br>
libasprintf.a libcharset.a libffi.a <a href="http://libgettextlib.la">libgettextlib.la</a> libgpg-error.a libintl.a libpixman-1.a libssl.a pkgconfig<br></div>
<div>ls ~/iPhoneOS-V7-4.3/lib/pkgconfig/<br>celt.pc gettext.pc libcrypto.pc libffi.pc libiconv.pc libintl.pc libssl.pc openssl.pc pixman-1.pc zlib.pc<br></div>
<div>gettext.pc and libintl.pc are added manully.</div>
<div> </div>
<div>vi ~/iPhoneOS-V7-4.3/lib/pkgconfig/gettext.pc</div>
<div> </div>
<div># gettext pkg-config source file</div>
<div>prefix=/Users/djxiong/iPhoneOS-V7-4.3<br>exec_prefix=${prefix}<br>libdir=${exec_prefix}/lib<br>includedir=${prefix}/include</div>
<div>Name: libgettextlib<br>Description: gettext is a low-level lib<br>Version: 0.18.1<br>Requires:<br>Conflicts:<br>Libs: -L${libdir} -lgettextpo<br>Cflags: -I${includedir}<br></div>
<div> </div>
<div>Is there anything wrong above? Or is it possible to port glib on iOS, and even if I port glib on iOS successfully, there is still much work to do in order to run spicy? Whether shoud I rewrite spicy using object-c from scratch?</div>
<div> </div>
<div>thanks</div>
<div>--Darren<br></div>
<div class="gmail_quote">2011/7/13 Yonit Halperin <span dir="ltr"><<a href="mailto:yhalperi@redhat.com">yhalperi@redhat.com</a>></span><br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">
<div class="im">On 07/08/2011 06:09 PM, Cliff Sharp wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">Great suggestion.<br>My plan has been to convert to OpenGL - then spice-ios would have the<br>potential to run on most every platform with decent performance.<br>
OS/X runs OpenGL and iOS runs OpenGL ES. I know how to implement OpenGL<br>is such a way that it would be the same code base on both of these<br>platforms and with none to minor changes would run on a lot of other<br>platforms.<br>
<br></blockquote></div>If you wish to use OpenGL, common/gl_canvas.c should help. We currently don't use it, I'm not sure why, maybe it didn't improved performance compared to software canvas.<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">
<div class="im">Who would be a good person to ask to maybe provide some guidance from a<br>spice architectural standpoint?<br><br>I have spent a lot of hours digging the the current code but without<br>knowing all the tons of libraries very well I feel like I am just<br>
spinning my wheels.<br>If I could just get a little help with a starting point, in the code, I<br>could start making some progress.<br><br>Thanks<br><br>On Jul 8, 2011, at 5:28 AM, Attila Sukosd wrote:<br><br></div>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">
<div class="im">Hi,<br><br>Wouldn't an idea be to get the OpenGL version (+ glut?) in a usable<br>shape? I would guess transitioning it to OpenGL ES shouldn't be too<br>difficult either for android/ios..<br><br>Best Regards,<br>
Attila Sukosd<br><br>------------------------------<u></u>-----------<br></div>DTU Computing Center - <a href="http://www.cc.dtu.dk/" target="_blank">www.cc.dtu.dk</a> <<a href="http://www.cc.dtu.dk/" target="_blank">http://www.cc.dtu.dk</a>><br>
<a href="mailto:attila@cc.dtu.dk" target="_blank">attila@cc.dtu.dk</a> <mailto:<a href="mailto:attila@cc.dtu.dk" target="_blank">attila@cc.dtu.dk</a>>, <a href="mailto:gbaras@student.dtu.dk" target="_blank">gbaras@student.dtu.dk</a><br>
<mailto:<a href="mailto:gbaras@student.dtu.dk" target="_blank">gbaras@student.dtu.dk</a>><u></u>, <a href="mailto:s070600@student.dtu.dk" target="_blank">s070600@student.dtu.dk</a><br><mailto:<a href="mailto:s070600@student.dtu.dk" target="_blank">s070600@student.dtu.dk</a><u></u>>
<div class="im"><br><br><br><br><br>On Fri, Jul 8, 2011 at 9:35 AM, Christophe Fergeau<br></div><<a href="mailto:cfergeau@redhat.com" target="_blank">cfergeau@redhat.com</a> <mailto:<a href="mailto:cfergeau@redhat.com" target="_blank">cfergeau@redhat.com</a>>> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">
<div class="im">Hi Cliff,<br><br>On Thu, Jul 07, 2011 at 06:12:07PM -0500, Cliff Sharp wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">I would like to ask a question to extract a fairly detailed response<br>from<br>those who are most familiar with the spice architecture.<br>
<br>What (in some detail) would be needed, as far as architecture and<br>software development, to maybe start with the spice-protocol (i.e. as<br>little as possible) and build a command line spice client to run on a<br>platform?<br>
</blockquote><br>Your best bet might be to look at what spice-glib does, it's part of<br>spice-gtk, but it doesn't have any GUI-related dependency, so it<br>should be<br>pretty light on deps, and it handles most of the low-level protocol<br>
interactions with a spice-server. Marc-André might be able to give a more<br>detailed description of what this provides.<br><br>Christophe<br><br>______________________________<u></u>_________________<br>Spice-devel mailing list<br>
<a href="mailto:Spice-devel@lists.freedesktop.org" target="_blank">Spice-devel@lists.freedesktop.<u></u>org</a><br></div><mailto:<a href="mailto:Spice-devel@lists.freedesktop.org" target="_blank">Spice-devel@lists.<u></u>freedesktop.org</a>><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/spice-devel" target="_blank">http://lists.freedesktop.org/<u></u>mailman/listinfo/spice-devel</a><br><br><br></blockquote></blockquote><br><br>____<br><br>Cliff Sharp | <a href="mailto:csharp@vbridges.com" target="_blank">csharp@vbridges.com</a> <mailto:<a href="mailto:csharp@vbridges.com" target="_blank">csharp@vbridges.com</a>>
<div class="im"><br><br><br><br><br><br><br>______________________________<u></u>_________________<br>Spice-devel mailing list<br><a href="mailto:Spice-devel@lists.freedesktop.org" target="_blank">Spice-devel@lists.freedesktop.<u></u>org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/spice-devel" target="_blank">http://lists.freedesktop.org/<u></u>mailman/listinfo/spice-devel</a><br></div></blockquote>
<div class="HOEnZb">
<div class="h5"><br>______________________________<u></u>_________________<br>Spice-devel mailing list<br><a href="mailto:Spice-devel@lists.freedesktop.org" target="_blank">Spice-devel@lists.freedesktop.<u></u>org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/spice-devel" target="_blank">http://lists.freedesktop.org/<u></u>mailman/listinfo/spice-devel</a><br></div></div></blockquote></div><br>