Author Topic: Nokia 770 Orbiter  (Read 57069 times)

dopey

  • Guru
  • ****
  • Posts: 223
    • View Profile
Nokia 770 Orbiter
« on: July 25, 2007, 08:50:19 am »
I have been working on building the orbiter for the Nokia 770. I got most of the way there, but I got stuck at a build error while building the orbiter bin.

First thing I noticed is that the build instructions in the Wiki is woefully out of date. Despite that, I did some google-ing, built the environment and the dependencies that aren't available as packages (SDL_gfx, libXmu, libhid, mysql[just the libs], and xextproto). I then built the Orbiter shared libraries, which built fine. Finally once I got to last step of the build process, which is to build the orbiter bin, I received the following build time error:

Code: [Select]
g++ -c -I.. -I../DCE -I/usr/include/mysql -DDEBUG -DTHREAD_LOG -DLOG_ALL_QUERIES -I/opt/libxine1-pluto/include -I/opt/libsdl1.2-1.2.7+1.2.8cvs20041007/include -I/opt/libsdl1.2-1.2.7+1.2.8cvs20041007/include/SDL -I/usr/include/SDL -DORBITER -DCACHE_IMAGES -DENABLE_MOUSE_BEHAVIOR -I../Splitter -I../OrbiterGen -I../SDL_Helpers -I/usr/X11R6/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -Wall -fPIC -ggdb3 -g -O0 Linux/HIDInterface.cpp -o Linux/HIDInterface.o
In file included from Linux/../OrbiterData.h:32,
                 from Linux/../Orbiter.h:39,
                 from Linux/HIDInterface.cpp:35:
Linux/../DesignObj_Orbiter.h: In member function `void DesignObj_Orbiter::m_GraphicToDisplay_set(std::string, int, bool, bool)':
Linux/../DesignObj_Orbiter.h:79: warning: unused variable 'k'
Linux/HIDInterface.cpp: In constructor `PlutoHIDInterface::PlutoHIDInterface(DCE::Orbiter*)':
Linux/../Orbiter.h:460: error: `pthread_mutexattr_t DCE::Orbiter::m_MutexAttr' is protected
Linux/HIDInterface.cpp:55: error: within this context
Linux/HIDInterface.cpp: In member function `void PlutoHIDInterface::ProcessHIDEvents()':
Linux/../Orbiter.h:427: error: `OrbiterFileBrowser_Collection*DCE::Orbiter::m_pOrbiterFileBrowser_Collection' is protected
Linux/HIDInterface.cpp:144: error: within this context
Linux/HIDInterface.cpp:79: warning: unused variable 'c'
Linux/HIDInterface.cpp:79: warning: unused variable 'i'
Linux/HIDInterface.cpp:79: warning: unused variable 'a'
Linux/HIDInterface.cpp: In member function `bool PlutoHIDInterface::ProcessBindRequest(char*)':
Linux/../Orbiter.h:427: error: `OrbiterFileBrowser_Collection*DCE::Orbiter::m_pOrbiterFileBrowser_Collection' is protected
Linux/HIDInterface.cpp:181: error: within this context
Linux/../Orbiter.h:427: error: `OrbiterFileBrowser_Collection*DCE::Orbiter::m_pOrbiterFileBrowser_Collection' is protected
Linux/HIDInterface.cpp:193: error: within this context
Linux/../Orbiter.h:427: error: `OrbiterFileBrowser_Collection*DCE::Orbiter::m_pOrbiterFileBrowser_Collection' is protected
Linux/HIDInterface.cpp:194: error: within this context
Linux/../Orbiter.h:427: error: `OrbiterFileBrowser_Collection*DCE::Orbiter::m_pOrbiterFileBrowser_Collection' is protected
Linux/HIDInterface.cpp:197: error: within this context
Linux/HIDInterface.cpp: In member function `bool PlutoHIDInterface::SetActiveRemote(int, bool)':
Linux/../Orbiter.h:427: error: `OrbiterFileBrowser_Collection*DCE::Orbiter::m_pOrbiterFileBrowser_Collection' is protected
Linux/HIDInterface.cpp:293: error: within this context
make: *** [Linux/HIDInterface.o] Error 1

Any thoughts on how to proceed would be much appreciated.

kir

  • Guru
  • ****
  • Posts: 183
    • View Profile
Re: Nokia 770 Orbiter
« Reply #1 on: July 25, 2007, 11:25:30 am »
I know about another effort to build an Orbiter for Maemo platform. Please consider this link, maybe it will save your time: http://smart-home-blog.com/writes/nokia770-as-plutohome-orbiter-os2006/

dopey

  • Guru
  • ****
  • Posts: 223
    • View Profile
Re: Nokia 770 Orbiter
« Reply #2 on: July 25, 2007, 12:04:17 pm »
Wow thanks. That makes things much easier for me!!

BTW, I did get past that one error. I just had to ignore the advise in the wiki to remove the hid dependency. It did fail later on though. Still, doesn't matter as this has already been done. Thanks again!

nite_man

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1019
  • Want to work with LinuxMCE
    • View Profile
    • Smart Home Blog
Re: Nokia 770 Orbiter
« Reply #3 on: July 25, 2007, 04:12:52 pm »
Hi dopey,

I built the Orbiter for Nokia770/N800 together with Chris from Plutohome. So, you can find in maemo garage (https://garage.maemo.org/frs/?group_id=162) all dependencies and binary Orbiter. Please, let me know how it works under LinuxMCE because I didn't have any chance to test it :)
Michael Stepanov,
My setup: http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup
Russian LinuxMCE community: http://linuxmce.ru

nite_man

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1019
  • Want to work with LinuxMCE
    • View Profile
    • Smart Home Blog
Re: Nokia 770 Orbiter
« Reply #4 on: August 03, 2007, 10:11:40 pm »
I tested an Orbiter for Nokia N800 together with LinuxMCE RC1. It works fine. So, I'm going to build a Debian package next week. You can download tar from here - https://garage.maemo.org/frs/download.php/1708/pluto-nokia-orbiter-2.0.0.45-060707.tar.gz
Michael Stepanov,
My setup: http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup
Russian LinuxMCE community: http://linuxmce.ru

dopey

  • Guru
  • ****
  • Posts: 223
    • View Profile
Re: Nokia 770 Orbiter
« Reply #5 on: August 11, 2007, 03:59:55 am »
I'm sorry it took so long to reply. I've been busy with my day job...

I did get it to work on the standard install of the Nokia 770 on OS 2006. I should note, however, that I had already built all the dependencies (manually copied over, no packages), so I only used your pre-compiled version of the Orbiter and shared libraries. I did have some stability issues (it crashes randomly and unexpectedly).

I use OS 2007 Hacker Edition on my Nokia 770, though, and that failed because of some deps.  I was planning on building the missing, or non-working deps, but I think I'll start with using your newly created package and work from there.

Right now, however, I'm going to install LinuxMCE 0704 on my Core. I'll have to take care of the Orbiters afterwards.

nite_man

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1019
  • Want to work with LinuxMCE
    • View Profile
    • Smart Home Blog
Re: Nokia 770 Orbiter
« Reply #6 on: August 11, 2007, 03:29:43 pm »
Hi dopey,

Some dependences available via Application Manager (you should activate Red Pill mode), some should be downloaded from Maemo garage (https://garage.maemo.org/frs/?group_id=162) and installed manually. There is a special issue for os2006/os2007 Hacker Edition. You need add bora repository to be able install libxmu6. So, please, try to install all dependences as Debian packages and let me know if you'll have some troubles. Also, yesterday I built a package for Nokia770/N800 for LinuxMCE 1.1 and Plutohome 2.0.0.45. so, you can get it and try.

The problem with random crashes is possible related with weak WiFi on Nokia770. I compared it with N800 and can say that WiFi on N800 much much stabler than on Nokia770. As I understand even short time of loosing connection causes Orbiter crash.
Michael Stepanov,
My setup: http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup
Russian LinuxMCE community: http://linuxmce.ru

dopey

  • Guru
  • ****
  • Posts: 223
    • View Profile
Re: Nokia 770 Orbiter
« Reply #7 on: August 12, 2007, 03:07:13 pm »
I do have the bora repository, but the package is marked as incompatible. The version for 2006 is also marked as incompatible... The three packages that I need to install is libxmu6, libhid0, and libxt6. libxmu6 and libxt6 are marked as incompatible and libhid0 depends on libusb, which is marked as incompatible. The fact that I'm afraid I'm going to have to face is that even if I do get this installed by rebuilding the packages above using version 3.0 of the dev kit (the version Hacker Edition uses) I will still probably have to re-build some of the other dependencies that I manually installed.

The stability problems is the main reason that I went to Hacker Edition. Many people report stability issues in 2006 and that those issues went away when Hacker Edition was installed. I can also testify to this, especially with the web browser. I also like the fact that 2007 automatically connects to WiFi; it was just annoying having to connect manually in 2006.

P.S. The Core re-install isn't going as well as I'd hoped, so I'm probably going to have to put this part of the project on hold until I get the core fully functional. Hopefully this won't take longer then 1 or 2 weeks (the whole day job thing usually means weekends only for me)...
« Last Edit: August 12, 2007, 03:11:20 pm by dopey »

nite_man

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1019
  • Want to work with LinuxMCE
    • View Profile
    • Smart Home Blog
Re: Nokia 770 Orbiter
« Reply #8 on: August 12, 2007, 07:06:38 pm »
I'm confused a bit. What do you mean 're-build some of the other dependencies'? If you want to use the Orbiter you need just install some packages from application manager and some of them download from Maemo garage and install manually. I installed all of them on os2006, os2007 Hacker edition and os2007. Moreover, many people had successes installation of them. It's really not clear for me why you cannot do the same. libxmu6 belongs to bora repository, libhid0 can be find om Maemo garage, libusb and libxt6 are parts of mistral. I suspect maybe you have some customizations on your device which conflict with maemo and nokia packages.
Michael Stepanov,
My setup: http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup
Russian LinuxMCE community: http://linuxmce.ru

dopey

  • Guru
  • ****
  • Posts: 223
    • View Profile
Re: Nokia 770 Orbiter
« Reply #9 on: August 14, 2007, 12:51:39 am »
I don't have any customizations other than some apps (basic apps like Xterm and dropbear) installed from the maemo repositories. I know where the packages are, I even downloaded them manually after adding the repository didn't work. When I try to install it manually it says the package is incompatible.

I said I might have to re-build some of the other dependencies, because if some of them won't install it's usually a safe bet that some that did install won't actually run because it was compiled against different libraries. A straight package conflict would be fairly easy to fix and it should display in the problems tab. If I remember correctly it saying that the package is incompatible means there is a deep dependency problem relating to the system (usually libc or other main shared library), this is why I'm thinking about rebuilding.

nite_man

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1019
  • Want to work with LinuxMCE
    • View Profile
    • Smart Home Blog
Re: Nokia 770 Orbiter
« Reply #10 on: August 14, 2007, 12:36:50 pm »
Hmmm ... It seems that you try to install wrong packages. Are you sure that you download the packages for your OS? There are dependencies for os2005 and for os2006 (which are also situated for os2007). Because, you're the first who has the problems with installation of Orbiter's dependencies. That's why I try to understand why it happens and how to solve that.

If you don't have any big customizations you can re-flash your Nokia770 and start from the beginning. I'm going to update the Nokia770 Orbiter manual today. Hope it'll solve your problem.
Michael Stepanov,
My setup: http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup
Russian LinuxMCE community: http://linuxmce.ru

caiman

  • Veteran
  • ***
  • Posts: 119
    • View Profile
Re: Nokia 770 Orbiter
« Reply #11 on: August 15, 2007, 12:02:46 am »
Hi Michael,

Nokia 770 here, OS 2007-hacker edition fresh install. I'll give some links to try answer the queries above...

I have activated red pill (http://www.deal-times.com/content/view/36/), added the maemo repository and maemo extras repository (http://maemo.org/community/wiki/ApplicationRepositories#head-369f33ae286ce0361aa5640a92300b4d6314346a)

then I installed the orbiter for OS2007 (plutohomeorbiter-2.0.0.45-01_armel.deb), using the deb on the same page for the dependencies.

The orbiter installed fine, but when I launch it, it says " PlutohomeOrbiter - loading" for a few seconds, then nothing happens.

Any idea how to troubleshoot this ?

Sam

dopey

  • Guru
  • ****
  • Posts: 223
    • View Profile
Re: Nokia 770 Orbiter
« Reply #12 on: August 15, 2007, 12:08:50 am »
Yes, I'll re-flash again. I've already done this, but since others are getting this to work I must have missed something, and since I don't really have any data on it yet it won't hurt to try. I downloaded the Orbiter package for OS2007. I did use the OS2006 dependency packages that you created, when the package wasn't available in the repositories.

On a side note, when I ran this on OS2006 I still had issues with dependencies, I can't remember exactly which one's, but hid was one of them. I found that odd as the packages were built for OS2006... In that case I just rebuilt the dependencies (including hid) and copied them over manually. I didn't bother with a package as it was only a test. As previously stated it worked fine after this.

dopey

  • Guru
  • ****
  • Posts: 223
    • View Profile
Re: Nokia 770 Orbiter
« Reply #13 on: August 15, 2007, 12:13:46 am »
Micheal, can try starting the Orbiter through Xterm? This will allow it to display any error messages that it might need to and give you a log file to look at. You can start the orbiter with the following command (replace %CoreIP% and %OrbiterNumber% with the correct values):
Code: [Select]
Orbiter -r %CoreIP% -d %OrbiterNumber% -l orbiter.log

nite_man

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1019
  • Want to work with LinuxMCE
    • View Profile
    • Smart Home Blog
Re: Nokia 770 Orbiter
« Reply #14 on: August 15, 2007, 12:31:33 pm »
Hi Michael,

Nokia 770 here, OS 2007-hacker edition fresh install. I'll give some links to try answer the queries above...

I have activated red pill (http://www.deal-times.com/content/view/36/), added the maemo repository and maemo extras repository (http://maemo.org/community/wiki/ApplicationRepositories#head-369f33ae286ce0361aa5640a92300b4d6314346a)

then I installed the orbiter for OS2007 (plutohomeorbiter-2.0.0.45-01_armel.deb), using the deb on the same page for the dependencies.

The orbiter installed fine, but when I launch it, it says " PlutohomeOrbiter - loading" for a few seconds, then nothing happens.

Any idea how to troubleshoot this ?

As dopey suggested run the Orbiter from xterm:
Code: [Select]
Orbiter -r <core_IP> -d <Orbiter ID>To get debug info run the Orbiter like that
Code: [Select]
Orbiter -r <core_IP> -d <Orbiter ID> > ~/MyDoc/.documents/orbiter.log 2>&1It's needed because some critical errors aren't forwarded to the log. Also, be sure that you have establish WiFi connection before start the Orbiter.
Michael Stepanov,
My setup: http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup
Russian LinuxMCE community: http://linuxmce.ru