maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Converting .ipk to .deb in Maemo SDK (ESbox) (https://talk.maemo.org/showthread.php?t=68794)

deny_winarto 2011-01-23 03:20

Converting .ipk to .deb in Maemo SDK (ESbox)
 
Ok so i'm trying to run ipk to deb converter script made by anpaza from here

So i set up Maemo SDK under VMware player, then i try running the script in ESbox,
but this is what i got

http://i957.photobucket.com/albums/a...arto/maemo.jpg

Did i do it correctly?
Because i don't see any app at all in there?:confused:

Creamy Goodness 2011-01-23 04:50

Re: Converting .ipk to .deb in Maemo SDK (ESbox)
 
uhhh whats a screenshot of the desktop supposed to show, this makes me think you don't know the programs on an n900 are in the menu which is the 6 blue squares at the top left...

deny_winarto 2011-01-23 05:03

Re: Converting .ipk to .deb in Maemo SDK (ESbox)
 
Quote:

Originally Posted by Creamy Goodness (Post 926495)
uhhh whats a screenshot of the desktop supposed to show, this makes me think you don't know the programs on an n900 are in the menu which is the 6 blue squares at the top left...

I'm completely new at this, so what exactly do i have to do?
Anpaza said in the "readme" file to open the "Makefile" on a scratchbox..
So i opened it on ESbox just like the SS above..
Then i run it on Maemo application framework..
But i get the n900 desktop with no "makefile" app in it...

And i've searched the main menu (6 blue squares, like you said) and there's no makefile app in it.. did i do it correctly?:confused:

Is that a correct way to run makefile??

deny_winarto 2011-01-23 07:45

Re: Converting .ipk to .deb in Maemo SDK (ESbox)
 
Anyone?
My only problem is running the "makefile" on ESbox ...

Joorin 2011-01-23 19:45

Re: Converting .ipk to .deb in Maemo SDK (ESbox)
 
A "makefile", typically, contains rules for building something. You can't "run" it. You use the "make" command that will interpret the makefile and perform the actions specified in it.

So, I'm guessing your main confusion stems from what environment to use for what task. To build, using make and a makefile, scratchbox is typically used if you're not using some other setup.

To then run the application you either move it to the N900 and run it from there of you use the ESbox thingy (I guess, I don't use that nor scratchbox).

ymartin59 2011-01-23 20:58

Re: Converting .ipk to .deb in Maemo SDK (ESbox)
 
You should read effectively the provided "README" file, the command to invoke, in the folder containing the Makefile and .ipk files is:
make deb-all

The command must be invoked after /scratchbox/login to compile for Maemo5 either for x86 or ARM.

deny_winarto 2011-01-24 03:37

Re: Converting .ipk to .deb in Maemo SDK (ESbox)
 
Quote:

Originally Posted by ymartin59 (Post 926947)
You should read effectively the provided "README" file, the command to invoke, in the folder containing the Makefile and .ipk files is:
make deb-all

The command must be invoked after /scratchbox/login to compile for Maemo5 either for x86 or ARM.

Thanks i managed to run scratcbox in x-terminal but i got this error

Code:


maemo@maemo-desktop:~$ /scratchbox/login

Welcome to Scratchbox, the cross-compilation toolkit!

Use 'sb-menu' to change your compilation target.
See /scratchbox/doc/ for documentation.

[sbox-FREMANTLE_X86: ~] > cd /maemo
bash: cd: /maemo: No such file or directory
[sbox-FREMANTLE_X86: ~] > cd /home/user/maemo
bash: cd: /home/user/maemo: No such file or directory
[sbox-FREMANTLE_X86: ~] > cd /home/maemo
[sbox-FREMANTLE_X86: ~] > makefile
bash: makefile: command not found
[sbox-FREMANTLE_X86: ~] > Makefile
bash: Makefile: command not found
[sbox-FREMANTLE_X86: ~] > make deb-all
make: *** No rule to make target `deb-all'.  Stop.
[sbox-FREMANTLE_X86: ~] >

I put the "makefile" in "maemo" folder so it should work

btw isn't there any easier way to do this ?

basically there are only 5 steps once you have the ipk file right?

Code:

sudo gainroot
preenv
cd /
tar xvf /home/user/MyDocs/game.tar
cd /opt/preenv/usr/palm/applications/com.glu.app.transg1/transg1
chmod +rwx game.exe
cd ..
desktopgen appinfo.json

1. run preenv
2. Extract the game.tar(Assuming you have the .tar, which can be done in PC)
3. creating folder for that game
4. create permission for the executable file
5. generate desktop icon

Isn't there any easier method to automate 4 steps above (with .deb files)?

deny_winarto 2011-01-24 09:21

Re: Converting .ipk to .deb in Maemo SDK (ESbox)
 
Anyone?
Could anyone tell me what i'm doing wrong?

Creamy Goodness 2011-01-24 17:11

Re: Converting .ipk to .deb in Maemo SDK (ESbox)
 
you're probably just not running the stuff in the right places.
try using the ls command to see what is in the folder before trying to run stuff!
here's a hint: /scratchbox/users/?????/home/????? on those host machine maps to the home directory you are put in when you log into scratchbox.
(the ????? on mine is my name)

Boemien 2011-06-30 17:51

Re: Converting .ipk to .deb in Maemo SDK (ESbox)
 
No one can help having a solution???


All times are GMT. The time now is 01:55.

vBulletin® Version 3.8.8