Talk:Sugar with sugar-jhbuild: Difference between revisions

From OLPC
Jump to navigation Jump to search
 
(9 intermediate revisions by 7 users not shown)
Line 22: Line 22:


If the dbus or libjingle build fails with libexpat.so in wrong format, on an x86_64 machine, here is a workaround. Scroll back, find the ./configure line, and copy it. Select the sugar-jhbuild exit to shell option, run LDFLAGS=-L/usr/lib64 ./configure ''...whatever...'' , then make (which should now work), exit the shell, and select the ignore error option.
If the dbus or libjingle build fails with libexpat.so in wrong format, on an x86_64 machine, here is a workaround. Scroll back, find the ./configure line, and copy it. Select the sugar-jhbuild exit to shell option, run LDFLAGS=-L/usr/lib64 ./configure ''...whatever...'' , then make (which should now work), exit the shell, and select the ignore error option.

== Problem - sugar build fails with "relocation R_X86_64_PC32..." ==

If your sugar build fails with
/usr/bin/ld: /a/home/jobsearch/sugar/sugar-jhbuild/build/lib/xulrunner-1.9a5pre-dev/sdk/lib/libxpcomglue.a(nsArrayEnumerator.o):
relocation R_X86_64_PC32 against `nsISupports::COMTypeInfo<int>::kIID' can not be used when making a shared object;
recompile with -fPIC
... then it is unclear to me how to proceed.
Playing with ac_cv_visibility_pragma=no didn't seem to help.

== No such file or directory ==

I am getting ''No such file or directory'' errors in the following steps:

'''*** Checking out matchbox-window-manager *** [9/45]'''

svn checkout http://svn.o-hand.com/repos/matchbox/trunk/matchbox-window-manager matchbox-window-manager
Error: [Errno 2] No such file or directory
*** error during stage checkout of matchbox-window-manager: [Errno 2] No such file or directory *** [9/45]


'''*** Checking out hippo-canvas *** [10/45]'''

svn checkout http://svn.mugshot.org/hippo-canvas/trunk hippo-canvas
Error: [Errno 2] No such file or directory
*** error during stage checkout of hippo-canvas: [Errno 2] No such file or directory *** [10/45]


'''*** Checking out libabiword *** [21/45]'''

svn checkout http://svn.abisource.com/abiword/branches/ABI-2-6-0-STABLE libabiword
Error: [Errno 2] No such file or directory
*** error during stage checkout of libabiword: [Errno 2] No such file or directory *** [21/45]


'''*** Checking out pyabiword *** [22/45]'''

svn checkout http://svn.abisource.com/pyabiword/branches/ABI-2-6-0-STABLE pyabiword
Error: [Errno 2] No such file or directory
*** error during stage checkout of pyabiword: [Errno 2] No such file or directory *** [22/45]


'''*** Checking out libabiword-plugins *** [23/45]'''

svn checkout http://svn.abisource.com/abiword-plugins/branches/ABI-2-6-0-STABLE libabiword-plugins
Error: [Errno 2] No such file or directory
*** error during stage checkout of libabiword-plugins: [Errno 2] No such file or directory *** [23/45]


'''*** Checking out squeak *** [24/45]'''

svn checkout http://squeakvm.org/svn/squeak/branches/olpc squeak
Error: [Errno 2] No such file or directory
*** error during stage checkout of squeak: [Errno 2] No such file or directory *** [24/45]


'''*** Checking out penguintv *** [41/45]'''

svn checkout https://penguintv.svn.sourceforge.net/svnroot/penguintv/trunk penguintv
Error: [Errno 2] No such file or directory
*** error during stage checkout of penguintv: [Errno 2] No such file or directory *** [41/45]


* It could be that you haven't installed subversion yet, in which case you should first do
sudo apt-get install subversion

== Dependencies ==

When I do the build command, I get a long list of unfulfilled dependencies. Is there some single package that I can apt-get install to get all these dependencies? [[User:Homunq|Homunq]] 18:42, 27 December 2007 (EST)

*: I don't recommend updating your normal desktop to the bleeding-edge components needed for some of this development work. I've created a chroot containing a Fedora 7 system (my base system is Fedora 6), and this appears to work well for development using sugar-jhbuild, with less hassle than an emulated environment. You do need to have the "dbus" service available in the chroot, I fixed this with a bind mount. If people are interested I can look into documenting that and making a torrent. [[User:Kweidner|Kweidner]] 21:49, 26 January 2008 (EST)

== sugar-jhbuild without sugar-jhbuild ==

maybe someone could elaborate more on the jhbuildrc file and maybe even point out that you can build and install the basic sugar dependancies using the normal unmodified jhbuild using a custom jhbuildrc file that references sugar-jhbuild/build-scripts/sugar-platform.modules

[[User:Nobody|Nobody]] 04:19, 24 January 2008 (EST)

== Development/testing tips? ==

The warning that updating with jhbuild-sugar will overwrite local changes worries me - could you please be more specific for which parts that applies? I want to try hacking some of the source, and don't want it to disappear when a new upstream is out. I assume that the git repositories just do normal "git pull" and don't overwrite code you're currently working on, but would appreciate a confirmation, especially if different parts do it differently.

On a related matter, what's the quickest way to test if you've just modified an activity? A full "build" works, but it seems excessive to re-update all the repositories and rebuild everything for that. My preference would be to keep the sugar GUI running, and just restart the app after I've done the mystery quick-build step.

[[User:Kweidner|Kweidner]] 21:49, 26 January 2008 (EST)

== libabiword not downloading, reports 404. ==

When running './sugar-jhbuild update' this happens when it tries to get libabiword from sugar.abisource.com.

wget http://sugar.abisource.com/src/libabiword-2.6.0.svn20071113.tar.gz -O /Users/onekopaka/sugar-jhbuild/source/libabiword-2.6.0.svn20071113.tar.gz
--16:56:57-- http://sugar.abisource.com/src/libabiword-2.6.0.svn20071113.tar.gz
<nowiki> </nowiki>=> `/Users/onekopaka/sugar-jhbuild/source/libabiword-2.6.0.svn20071113.tar.gz'
Resolving sugar.abisource.com... 85.113.252.136
Connecting to sugar.abisource.com|85.113.252.136|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
16:56:57 ERROR 404: Not Found.

<nowiki>*** error during stage download of libabiword: ########## </nowiki> Error running wget http://sugar.abisource.com/src/libabiword-2.6.0.svn20071113.tar.gz -O /Users/onekopaka/sugar-jhbuild/source/libabiword-2.6.0.svn20071113.tar.gz *** [23/51]

I am running OS X Leopard (10.5.2) (yes i do have wget)

Will building without this be a problem (other than not being able to use the Write activity)? If it is, is there a workaround?

Latest revision as of 01:11, 25 February 2008

Sound?

I've installed sugar-jhbuild on my Ubuntu machine, and it looks like an application that should play sound (memosono) doesn't, at least out-of-the-box. Audio also doesn't seem to work when running OLPC images in an emulator. Is extra software required? Or does audio development require developing on the actual hardware? —Leejc 23:27, 15 February 2007 (EST)

Problem - source site is down

Sometimes a site from which sugar-jhbuild downloads software is down. If you are running sugar-jhbuild for the first time, this is a problem. You can try again later, or look at the workaround below.

  • cairographics.org pings, but port 80 isn't connecting. sugar-jhbuild gets stuck in a connection timeout/retry loop. Any workarounds? MitchellNCharity 10:02, 6 May 2007 (EDT)
    cairographics.org and freedesktop.org still down. sugar-jhbuild now friendlier about it, but one still can't use it to build sugar.download sugar for the first time. MitchellNCharity 06:29, 10 May 2007 (EDT)
    Workaround: download software another way, eg, from cvs (yes, you may get unstable software which will cause later problems), tar it up, and swap if for sugar-jhbuild's broken tar file in source/ when sugar-jhbuild asks you what to do. Eg, for poppler which has been failing this week,
ls source/|grep poppler
# Which currently yields  poppler-0.5.4.tar.gz  .
cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/poppler login
cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/poppler co poppler
tar cf poppler fake-poppler-0.5.4.tar
gzip fake-poppler-0.5.4.tar
# Now run ./sugar-jhbuild update , and when poppler fails and sugar-jhbuild asks what to do:
cp fake-poppler-0.5.4.tar.gz source/poppler-0.5.4.tar.gz
# and select, err, the ignore-error-and-unpack-anyway option.

Problem - dbus and libjingle build fail with libexpat.so in wrong format

If the dbus or libjingle build fails with libexpat.so in wrong format, on an x86_64 machine, here is a workaround. Scroll back, find the ./configure line, and copy it. Select the sugar-jhbuild exit to shell option, run LDFLAGS=-L/usr/lib64 ./configure ...whatever... , then make (which should now work), exit the shell, and select the ignore error option.

Problem - sugar build fails with "relocation R_X86_64_PC32..."

If your sugar build fails with

/usr/bin/ld: /a/home/jobsearch/sugar/sugar-jhbuild/build/lib/xulrunner-1.9a5pre-dev/sdk/lib/libxpcomglue.a(nsArrayEnumerator.o):
relocation R_X86_64_PC32 against `nsISupports::COMTypeInfo<int>::kIID' can not be used when making a shared object;
recompile with -fPIC

... then it is unclear to me how to proceed. Playing with ac_cv_visibility_pragma=no didn't seem to help.

No such file or directory

I am getting No such file or directory errors in the following steps:

*** Checking out matchbox-window-manager *** [9/45]

svn checkout http://svn.o-hand.com/repos/matchbox/trunk/matchbox-window-manager matchbox-window-manager Error: [Errno 2] No such file or directory

      • error during stage checkout of matchbox-window-manager: [Errno 2] No such file or directory *** [9/45]


*** Checking out hippo-canvas *** [10/45]

svn checkout http://svn.mugshot.org/hippo-canvas/trunk hippo-canvas Error: [Errno 2] No such file or directory

      • error during stage checkout of hippo-canvas: [Errno 2] No such file or directory *** [10/45]


*** Checking out libabiword *** [21/45]

svn checkout http://svn.abisource.com/abiword/branches/ABI-2-6-0-STABLE libabiword Error: [Errno 2] No such file or directory

      • error during stage checkout of libabiword: [Errno 2] No such file or directory *** [21/45]


*** Checking out pyabiword *** [22/45]

svn checkout http://svn.abisource.com/pyabiword/branches/ABI-2-6-0-STABLE pyabiword Error: [Errno 2] No such file or directory

      • error during stage checkout of pyabiword: [Errno 2] No such file or directory *** [22/45]


*** Checking out libabiword-plugins *** [23/45]

svn checkout http://svn.abisource.com/abiword-plugins/branches/ABI-2-6-0-STABLE libabiword-plugins Error: [Errno 2] No such file or directory

      • error during stage checkout of libabiword-plugins: [Errno 2] No such file or directory *** [23/45]


*** Checking out squeak *** [24/45]

svn checkout http://squeakvm.org/svn/squeak/branches/olpc squeak Error: [Errno 2] No such file or directory

      • error during stage checkout of squeak: [Errno 2] No such file or directory *** [24/45]


*** Checking out penguintv *** [41/45]

svn checkout https://penguintv.svn.sourceforge.net/svnroot/penguintv/trunk penguintv Error: [Errno 2] No such file or directory

      • error during stage checkout of penguintv: [Errno 2] No such file or directory *** [41/45]


  • It could be that you haven't installed subversion yet, in which case you should first do
 sudo apt-get install subversion

Dependencies

When I do the build command, I get a long list of unfulfilled dependencies. Is there some single package that I can apt-get install to get all these dependencies? Homunq 18:42, 27 December 2007 (EST)

  • I don't recommend updating your normal desktop to the bleeding-edge components needed for some of this development work. I've created a chroot containing a Fedora 7 system (my base system is Fedora 6), and this appears to work well for development using sugar-jhbuild, with less hassle than an emulated environment. You do need to have the "dbus" service available in the chroot, I fixed this with a bind mount. If people are interested I can look into documenting that and making a torrent. Kweidner 21:49, 26 January 2008 (EST)

sugar-jhbuild without sugar-jhbuild

maybe someone could elaborate more on the jhbuildrc file and maybe even point out that you can build and install the basic sugar dependancies using the normal unmodified jhbuild using a custom jhbuildrc file that references sugar-jhbuild/build-scripts/sugar-platform.modules

Nobody 04:19, 24 January 2008 (EST)

Development/testing tips?

The warning that updating with jhbuild-sugar will overwrite local changes worries me - could you please be more specific for which parts that applies? I want to try hacking some of the source, and don't want it to disappear when a new upstream is out. I assume that the git repositories just do normal "git pull" and don't overwrite code you're currently working on, but would appreciate a confirmation, especially if different parts do it differently.

On a related matter, what's the quickest way to test if you've just modified an activity? A full "build" works, but it seems excessive to re-update all the repositories and rebuild everything for that. My preference would be to keep the sugar GUI running, and just restart the app after I've done the mystery quick-build step.

Kweidner 21:49, 26 January 2008 (EST)

libabiword not downloading, reports 404.

When running './sugar-jhbuild update' this happens when it tries to get libabiword from sugar.abisource.com.

wget http://sugar.abisource.com/src/libabiword-2.6.0.svn20071113.tar.gz -O /Users/onekopaka/sugar-jhbuild/source/libabiword-2.6.0.svn20071113.tar.gz --16:56:57-- http://sugar.abisource.com/src/libabiword-2.6.0.svn20071113.tar.gz => `/Users/onekopaka/sugar-jhbuild/source/libabiword-2.6.0.svn20071113.tar.gz' Resolving sugar.abisource.com... 85.113.252.136 Connecting to sugar.abisource.com|85.113.252.136|:80... connected. HTTP request sent, awaiting response... 404 Not Found 16:56:57 ERROR 404: Not Found.

*** error during stage download of libabiword: ########## Error running wget http://sugar.abisource.com/src/libabiword-2.6.0.svn20071113.tar.gz -O /Users/onekopaka/sugar-jhbuild/source/libabiword-2.6.0.svn20071113.tar.gz *** [23/51]

I am running OS X Leopard (10.5.2) (yes i do have wget)

Will building without this be a problem (other than not being able to use the Write activity)? If it is, is there a workaround?