maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   N900 SDK setup (eclipse & esbox) mysteries (https://talk.maemo.org/showthread.php?t=37626)

ppafin 2009-12-18 06:15

N900 SDK setup (eclipse & esbox) mysteries
 
Again, I found quite informative SDK documentation after I created my second virtualmachine to explore maemo5 development.

Scratchbox was easy, but finding something usable on eclipse and esbox is pain. Instructions given here are quite useless. They lead to this page. Probably I stick with scratchbox command line.

tousisd 2010-01-05 11:42

Re: N900 SDK setup (eclipse & esbox) mysteries
 
it would be better if we have an IDE,
they want more apps=more people=more money,
they must help us to help them

omeriko9 2010-01-25 11:28

Re: N900 SDK setup (eclipse & esbox) mysteries
 
Quote:

Originally Posted by ppafin (Post 432950)
Again, I found quite informative SDK documentation after I created my second virtualmachine to explore maemo5 development.

Scratchbox was easy, but finding something usable on eclipse and esbox is pain. Instructions given here are quite useless. They lead to this page. Probably I stick with scratchbox command line.

I agree. Three days and I still couldn't figure out how to use the ESBox plugin with ubuntu inside VMWare.

Any chance that working in standard QT IDE could be ported easely to compile in scratchbox? And how's the Maemo API could be tested in such IDE?

jaark 2010-01-25 11:37

Re: N900 SDK setup (eclipse & esbox) mysteries
 
The install docs are at : http://esbox.garage.maemo.org/2nd_ed...tallation.html

They got me up and running .. eventually (took me best part of a week)

WHat exactly are you having a problem with?

omeriko9 2010-01-25 11:45

Re: N900 SDK setup (eclipse & esbox) mysteries
 
Quote:

Originally Posted by jaark (Post 493392)
The install docs are at : http://esbox.garage.maemo.org/2nd_ed...tallation.html

They got me up and running .. eventually (took me best part of a week)

WHat exactly are you having a problem with?

Trying to run ESBox.sh keeps giving me "The esbox executable launcher was unable to locate its companion shared library". Google gives 3 restuls for this error but none is relevant.

Installed Eclipse ganymede - gives me a small gray window with nothing inside, and nothing changes.

apt-get the XULRUNNER - and still get the same error with esbox.sh.

jaark 2010-01-25 11:52

Re: N900 SDK setup (eclipse & esbox) mysteries
 
Which java do you have installed? Eclipse has historically had problems with less feature complete jvms. I haven't even tried anything but suns jvm with Eclipse in years.

Make sure you have 'sun-java6-jdk' installed and active :-

sudo apt-get install sun-java6-jdk
sudo update-alternatives --config java

omeriko9 2010-01-25 12:00

Re: N900 SDK setup (eclipse & esbox) mysteries
 
The first command gave some d/ls info, but the second gave this:
"There is only one alternative in link group java: /usr/lib/jvm/java-6-sun/jre/bin/java
Nothing to configure."

Still, cannot run ESbox.sh - same error...

jaark 2010-01-25 12:07

Re: N900 SDK setup (eclipse & esbox) mysteries
 
If it was downloading stuff after the first command, you probably didn't have the full jdk installed. So we're getting somewhere.

What about normal eclipse?

omeriko9 2010-01-25 12:09

Re: N900 SDK setup (eclipse & esbox) mysteries
 
I have it (Galileo) for C/C++ , but don't have a clue how to bind it to the ESBox...

jaark 2010-01-25 12:12

Re: N900 SDK setup (eclipse & esbox) mysteries
 
Does it run now though? (as opposed to the grey box you were getting previously)

omeriko9 2010-01-25 12:13

Re: N900 SDK setup (eclipse & esbox) mysteries
 
yes. runs and works as usual.

jaark 2010-01-25 12:16

Re: N900 SDK setup (eclipse & esbox) mysteries
 
OK. I thought you were saying that even stock Eclipse wasn't working previously.

Are you running a 64bit OS? The pre-packaged builds of esbox do not work there (but don't fret it can be made to work!)

omeriko9 2010-01-25 12:19

Re: N900 SDK setup (eclipse & esbox) mysteries
 
I'm running 32bit. And Eclipse Galileo works, but Eclipse Ganymede doesn't...

as you can see I'm pretty stuck here, as long as I can't install the ESBox... Do you have an alternative way (maybe that works for you) for developing PyQt on n900?..

jaark 2010-01-25 12:27

Re: N900 SDK setup (eclipse & esbox) mysteries
 
Nope. I have Esbox running, installed into a generic Ganymede install in the latest Ubuntu release (karmic?) on x64 - 32bit should be a snap in comparison :)

IIRC, the problem getting base Ganymede running was xulrunner.

Try

sudo apt-get install xulrunner
cd <directory where ganymede is installed>
export GDK_NATIVE_WINDOWS=1
./eclipse -vmargs -Dorg.eclipse.swt.browser.XULRunnerPath=/usr/lib/xulrunner/xulrunner

omeriko9 2010-01-25 12:46

Re: N900 SDK setup (eclipse & esbox) mysteries
 
1 Attachment(s)
Thank you very much for helping :) I'm sure this will help more linux noobs.

the apt-get said it's already installed.

running eclipse after setting the var gave the same small gray window as before, attached a screenshot...

jaark 2010-01-25 12:58

Re: N900 SDK setup (eclipse & esbox) mysteries
 
That's got me stumped :(
I'm not at home so I can't play with my esbox install to help much further.

What is that Warning message? The scaling on the screenshot makes it unreadable.
I'm pretty sure I get a warning when running eclipse, so it's maybe nothing.

Yes, I'm clutching at straws now :)

Another option - have you tried the Maemo SDK Virtual Machines? (http://maemovmware.garage.maemo.org/2nd_edition/) I think that the desktop image has ESbox already installed and configured within it.

omeriko9 2010-01-25 13:04

Re: N900 SDK setup (eclipse & esbox) mysteries
 
The warning is:
"(eclipse:9114): GLib-WARNING **: g_set_prgname() called multiple times".

I wasn't aware of the "out-of-the-box" VM - I'm downloading it right now... Hope I'll have a better experience with this one :)

jaark 2010-01-25 13:07

Re: N900 SDK setup (eclipse & esbox) mysteries
 
Quote:

Originally Posted by omeriko9 (Post 493554)
The warning is:
"(eclipse:9114): GLib-WARNING **: g_set_prgname() called multiple times".

That rings a bell - probably what I get on a working install.

Quote:

I wasn't aware of the "out-of-the-box" VM - I'm downloading it right now... Hope I'll have a better experience with this one :)
Good luck!

Patola 2010-01-27 12:25

Re: N900 SDK setup (eclipse & esbox) mysteries
 
I've got almost everything working when I followed the installation guide. But I have scratchbox 2 installed and ESBox won't detect it :( I mark scratchbox 2 as enabled in the capabilities section but when I try to add a Scratchbox 2 target it says: "No build machine configured or applicable SDKs installed"

Screenshot attached!

http://img191.imageshack.us/img191/8...radetela12.png

jaark 2010-01-27 12:33

Re: N900 SDK setup (eclipse & esbox) mysteries
 
Is there any reason you are installing Scratchbox2? It looks like Scratchbox 1 is installed and working already there.

I'm just using Scratchbox 1 with no problems.

Patola 2010-01-28 17:23

Re: N900 SDK setup (eclipse & esbox) mysteries
 
Never mind, I thought I was using Scratchbox 2 and I was actually using a broken installation of Scratchbox 1. I got it working some time afterwards and thanks for responding.

mangodan2003 2010-02-08 21:05

Re: N900 SDK setup (eclipse & esbox) mysteries
 
I am running x86_64 bit Gentoo Linux

I have managed to get the scratch-box running using the manual instructions - and without using a virtual machine. I managed to log in and build libmdclient and a qt4 mpd client i have been working on and got it to run in the Xephyr X window. I thought i was installing scratchbox2 but later discovered it is in fact scratchbox 1.


I also finally managed to get eclipse to run by downloading the 3.4.2 c/c++ 64 bit build, unpacking it, and doing the same for xulrunner 1.8.0.1 in my home dir and then went through the software update procedure to add esbox. I could not get the pre-packaged esbox to run at all.

However i am unable to make esbox communicate with the scratchbox, It says "Initialsiing RSE..." for a short period and then refuses to go any further, it wont start the application framework and it wont start Xephyr.

Does any body have any ideas on what to try?

I have installed scratchbox2 from Gentoo portage but it seems to only be a very base level which must need toolchains and maemo specifics on top, but i cannot find any docs on how to go about these next steps.

mangodan2003 2010-02-08 22:00

Re: N900 SDK setup (eclipse & esbox) mysteries
 
Just thought i'd add that a similar problem occurs when i try to create a new project, at the step where i have to select a build target it tells me
"No build target(s) selected."
When the box is checked in scratchbox 1
I can see that the startup menu entry seems to work as it mounts the various things for scratchbox but i cannot choose it as a build target and i cannot get it to do the equivalent of af-sb-init.sh start

mangodan2003 2010-02-09 00:13

Re: N900 SDK setup (eclipse & esbox) mysteries
 
Finally found the solution, even though esbox is told the path to scratchbox is /path/to/scratchbox it is in some places looking to find it at /scratchbox.

the solution is to symlink /path/to/scratchbox /scratchbox.

I think i'm finally up and running

jaark 2010-02-09 09:18

Re: N900 SDK setup (eclipse & esbox) mysteries
 
Quote:

Originally Posted by mangodan2003 (Post 517019)
the solution is to symlink /path/to/scratchbox /scratchbox.

I also had odd problems when using a symlink. My environment sis not work correctly until I ditched the symlink and used a bind mount instead ..

mount -o bind /opt/scratchbox /scratchbox

(above done entirely from memory, so may be wrong ;))

I'm working primarily in Python and IIRC, I was hitting problems when esbox was trying to configure the python interpreter environment.

mangodan2003 2010-02-09 15:10

Re: N900 SDK setup (eclipse & esbox) mysteries
 
ok thanks, ill bare that in mind, another bind mount for my fstab.. hehe

lamle 2010-04-25 14:02

Re: N900 SDK setup (eclipse & esbox) mysteries
 
Hi, I have successfully make a .deb file and install in my phone but then after installation there is nothing in the phone and when I open the .deb file in my Linux machine, it just has some structure folders and readme file, nothing more.
i followed exactly like what is said in the document, in esbox choose generate debian structure and then choose create debian package with fremantle-atmel env. I think esbox has some problems with that. There nothing else user can do
I have the same problem using dh-make and dpkg-buildpackage.
Any help please, I really need this help.


All times are GMT. The time now is 02:54.

vBulletin® Version 3.8.8