maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Games (https://talk.maemo.org/forumdisplay.php?f=12)
-   -   Help porting pingus to N900 (https://talk.maemo.org/showthread.php?t=60106)

mornage 2010-08-10 17:58

Help porting pingus to N900
 
1st I am not sure if this should be here or in the development thread. Sorry if this is in the wrong place and feel free to move it.

I was thinking today about how good it would be to play to lemmings natively on my N900 (I'm sure I could play through an emulator or dosbox but it isn't the same). I then thought that maybe this would be a great opportunity for me to learn something...

I have no real experience in developing anything; a little bit of VB I learnt from a book a few years ago, a little look at the SDK and a go at forking and compiling wOOts rotation daemon, but I am sure with some help I will be able to do something.

I have looked on-line for an open source lemmings and found pingus which I think would be perfect so I have downloaded the source code to my ubuntu VM.

My plan was to move them from here to scratch box and compile it to see what happened but I realised that I do not know how I would move things into from ubuntu to scratchbox so thought I could upload the source to git, the fork it to scratchbox but that is where I got stuck. I have no idea how to commit the source to git.

I am hoping a kind soul on here will be willing to guide me through what needs to be done to get pingus working or at the very least throw some links at me with info on where to start,

Edit: I have the source code in scratchbox now but am struggling to compile it.

CepiPerez 2010-08-10 20:12

Re: Help porting pingus to N900
 
You need boost and scons to compile pingus
Those librarys are in repositories, but I didn't try them.
Pingus should compile when you get them

mornage 2010-08-10 20:16

Re: Help porting pingus to N900
 
OK, I have kind of worked out github a bit and now have pushed the source code to the repo (http://github.com/mornage/Maemo-pingus). I'm hoping this will make is easier for people to give me advice.

I cannot get it to compile in scratch box though. qmake alone requires arguments. qmake -project creates .pro file that enables me to run qmake to create a make file. make then fails
Code:

src/file_reader.hpp:41: error: 'boost' has not been declared
src/file_reader.hpp:41: error: expected `)' before '<' token
src/file_reader.hpp:81: error: 'boost' has not been declared
src/file_reader.hpp:81: error: ISO C++ forbids declaration of 'shared_ptr' with no type
src/file_reader.hpp:81: error: expected ';' before '<' token
In file included from src/action_holder.cpp:21:
src/pingus_level.hpp:92: error: 'boost' has not been declared
src/pingus_level.hpp:92: error: ISO C++ forbids declaration of 'shared_ptr' with no type
src/pingus_level.hpp:92: error: expected ';' before '<' token
make: *** [action_holder.o] Error 1


mornage 2010-08-10 20:18

Re: Help porting pingus to N900
 
Quote:

Originally Posted by CepiPerez (Post 782034)
You need boost and scons to compile pingus
Those librarys are in repositories, but I didn't try them.
Pingus should compile when you get them

I got scons but cannot get boost.

From the install.unix file it tells me
Code:

apt-get install libboost-signals-dev libboost-dev
but scratchbox cannot find those packages. apt-get install boost isn't found either.

MiK546 2010-08-10 20:51

Re: Help porting pingus to N900
 
Well, from what I found out libboost-dev is avaible for Fremantle from Extras-Devel (I think you have to enable it in scratchbox too to be able to get th lbboost-dev) but libboost-signals-dev is only avaible for Diablo, so you have to port it yourself to Fremantle.

mornage 2010-08-10 21:07

Re: Help porting pingus to N900
 
Oh no!!!! I don't have a clue how I would port that!

I did get libboost-dev though, thanks. Make did get further too but failed again, probably because I'm missing -signals- :(

MiK546 2010-08-10 21:19

Re: Help porting pingus to N900
 
As far as I know it's just a matter of a recompile (and possibly optifying), but I think you should wait until somebody who actually has ported something replyes since I haven't even tryed to compile anything ever in my life.

mornage 2010-08-10 21:52

Re: Help porting pingus to N900
 
Thanks, I found a guide explaining how to port a diablo app to fremantle. It is in the process of packaging now so hopefully I will soon be able to at least compile pingus.

DaSilva 2010-08-10 22:09

Re: Help porting pingus to N900
 
Sounds great and I hope you will have success!

pigeond 2010-08-10 22:30

Re: Help porting pingus to N900
 
FWIW, I installed Pingus inside Easy Debian chroot. It actually works pretty well as long as you set the right screen size. However the control isn't really designed for a touchscreen. So, for example, I keep selecting the wrong pingus or action which could ruin the game completely.

Looking forward to a true Maemo port.

mornage 2010-08-11 08:46

Re: Help porting pingus to N900
 
Its not going well :(

I managed to package libboost-signals-dev but it conflicted with the existing libboost-dev and libboost. Removed them and tried again with with libboost-signals-dev which required various packages. Fortunately, they had all packaged when I did libboost-signals-dev. This stopped libboost-dev installing. I tried to compile pingus anyway but got faults. Probably because of the missing libboost-dev.

Gonna re-install scratchbox tonight and start again from scratch.

seanmcken 2014-03-01 11:57

Re: Help porting pingus to N900
 
please help how to use this libboost-signals ???? please help, im trying since 3 hours now, i did search on internet no any instructors found please help


All times are GMT. The time now is 16:28.

vBulletin® Version 3.8.8