Difference between revisions of "Development Team/Sugar-Build"

From Sugar Labs
Jump to navigation Jump to search
m (fix typo)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[http://git.sugarlabs.org/sugar-build/sugar-build sugar-build] it is an alternative of [[Development Team/Jhbuild|sugar-jhbuild]] developed by Daniel Narvaez that allow us to get a development version of Sugar easier than with sugar-jhbuild. Also, it works on Fedora 16, 17 and Ubuntu 12.
+
[http://developer.sugarlabs.org/dev-environment.md.html Setup a development environment] describes a set of scripts to make it easy to build all the sugar modules and some of the required dependencies. Please see the [http://developer.sugarlabs.org/ documentation].
  
= Getting the source code =
+
If you find any issue please report them instead of documenting workarounds on this page. The tips get out of date really quickly and unreported bugs are never fixed. The goal here is to always work out of the box for everyone.
 
 
First of all, you should clone the git repository by executing:
 
 
 
git clone git://git.sugarlabs.org/sugar-build/sugar-build.git
 
 
 
After that, you should download all the needed libraries to build Sugar. There is a really easy way to do this by running:
 
 
 
make
 
 
 
When the ''make'' process finishes Sugar will be able to be run. To do this, you just have to execute:
 
 
 
make run
 
 
 
This will open a new X server. Then you will be able to switch between you desktop and Sugar with '''Ctrl + Alt + F1''' and '''Ctrl + Alt + F2'''
 
 
 
''NOTE: please, if you find a bug open a ticket with the description of the error.''
 
 
 
= Connecting Sugar trough VNC =
 
 
 
Something like this. Connecting to localhost:6000 with vncviewer worked for me then.
 
 
 
<pre>
 
[dnarvaez@thinkpad master]$ git diff
 
diff --git a/Makefile b/Makefile
 
index e5e781b..76e4930 100644
 
--- a/Makefile
 
+++ b/Makefile
 
@@ -50,7 +50,7 @@ build-%:
 
        $(TYPESCRIPT) "$(JHBUILD) buildone $*" $(LOGFILE)
 
 
 
  run: x11-utils
 
-      xinit $(SCRIPTS)/xinitrc -- $(XINITDISPLAY) &>>$(LOGFILE)
 
+      xinit $(SCRIPTS)/xinitrc -- /usr/bin/Xvnc $(XINITDISPLAY)
 
securitytypes=none
 
 
 
  test: x11-utils
 
        $(LOG) "$(SCRIPTS)/run-dogtail-tests" $(LOGFILE)
 
</pre>
 
 
 
 
 
== Fedora 17 64 bits ==
 
 
 
The previous method didn't work for me.  So, I tried the following and it worked. This is the line that I changed in <tt>Makefile</tt>
 
 
 
xinit $(SCRIPTS)/xinitrc -- /usr/bin/Xvnc $(XINITDISPLAY) -once PasswordFile=/home/humitos/.vnc/passwd
 
 
 
Besides, I ran this command to set the password:
 
 
 
vncpasswd
 
 
 
Finally, I got the VNC window by doing:
 
 
 
vncviewer localhost:99
 
 
 
----
 
 
 
== README ==
 
 
 
{{Iframe|collapsed=|[http://git.sugarlabs.org/sugar-build/sugar-build/blobs/master/README README]|http://git.sugarlabs.org/sugar-build/sugar-build/blobs/master/README#line1
 
|700
 
|600
 
|1}}
 

Latest revision as of 18:11, 13 July 2013

Setup a development environment describes a set of scripts to make it easy to build all the sugar modules and some of the required dependencies. Please see the documentation.

If you find any issue please report them instead of documenting workarounds on this page. The tips get out of date really quickly and unreported bugs are never fixed. The goal here is to always work out of the box for everyone.