OESF Portables Forum
Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Ubuntu => Topic started by: walkman on March 06, 2009, 04:58:54 am
-
Hello,
first of all, thanks a lot for the great Zubuntu distro. What I need just works™ ;-).
This is the first time I am trying to compile something on my Zaurus, which I actually acquired some time ago mainly in order to port my own software to ARM based platform and to play with it. I have a rather small project written in C++ heavily using Boost libraries and packaged with autotools chain. No problem under Zubuntu, configure worked perfectly, even a devel distro build (after I downloaded and compiled libtool2 which went as a breeze - well, pure C). Now the poor gadget is fighting with my code already since 3 hours and still it did not finish crunching the first(!) cpp file. When I check it with g++ -E ..., I can see that the piece after expanding all the macros has 60k+ lines in C++. Well, there are bigger still to come...
What can I do to speed up the compilation process? How do you guys compile large C++ codebases? Overclocking doesn't seem to be an option, so with this speed of progress, if I am lucky, I will probably wait about a week until my smallish program (it has about 5k physical source lines of code) compiles and links.
Is there perhaps some quick and dirty manual for cross-compiling for ARM (in particular Zubuntu 1.0)?
Thanks for any advice,
Peter.
-
Always make sure you have a swap partition. You could also try to use distcc, but I prefer using Qemu for doing "native" compilation. For cross compilation use Poky (http://www.pokylinux.org/) or OpenEmbedded (http://wiki.openembedded.net/index.php/Main_Page). A manual can be found here (http://www.pokylinux.org/doc/poky-handbook.html)
Cheers,
cortez
-
Always make sure you have a swap partition. You could also try to use distcc, but I prefer using Qemu for doing "native" compilation.
Thanks a lot. The Qemu option is seems promising.
And thanks for Zubuntu, cortez. This is definitely one of the best pieces I could play with in the last years. Any news from the Ubuntu people?
-
Always make sure you have a swap partition. You could also try to use distcc, but I prefer using Qemu for doing "native" compilation.
Thanks a lot. The Qemu option is seems promising.
And thanks for Zubuntu, cortez. This is definitely one of the best pieces I could play with in the last years. Any news from the Ubuntu people?
Compilation works albeit slowly on the Zaurus. I have compiled emacs (latest cvs version) - not what I would call a trivial application - in about 2-3 hours from scratch. As Cortez says make sure you have a swap partition or even just a swapfile. Overclocking is currently not compiled into the version of the kernel - but heres hoping someone gets it working again.
-
Always make sure you have a swap partition. You could also try to use distcc, but I prefer using Qemu for doing "native" compilation.
Thanks a lot. The Qemu option is seems promising.
And thanks for Zubuntu, cortez. This is definitely one of the best pieces I could play with in the last years. Any news from the Ubuntu people?
Glad you like it. The 2.6.28 kernel is getting along pretty well. If only I could figure out why the device won't suspend when pressing the on/off button. I'm sooooo close to a solution, but it takes hours and hours of debugging. I still have to test a lot of stuff, like brightness control, sound, ext4 and overclocking, which is compiled in this time
-
Compilation works albeit slowly on the Zaurus. I have compiled emacs (latest cvs version) - not what I would call a trivial application - in about 2-3 hours from scratch. As Cortez says make sure you have a swap partition or even just a swapfile. Overclocking is currently not compiled into the version of the kernel - but heres hoping someone gets it working again.
Thanks for advice. Well, I have to check how did I install the Zaurus when I come home ;-). Sorry for a dumb question: in the case there's no swap partition, how can I install a swap file?
-
Compilation works albeit slowly on the Zaurus. I have compiled emacs (latest cvs version) - not what I would call a trivial application - in about 2-3 hours from scratch. As Cortez says make sure you have a swap partition or even just a swapfile. Overclocking is currently not compiled into the version of the kernel - but heres hoping someone gets it working again.
Thanks for advice. Well, I have to check how did I install the Zaurus when I come home ;-). Sorry for a dumb question: in the case there's no swap partition, how can I install a swap file?
Google for Linux swapfile or let me do it for you swapfile (http://www.linux.com/feature/113956)