some old notes

Issues with “libmicrohttpd” Used -lmicrohttpd . Will ask Sean why this worked. I found the line in the main Makefile but I still dont know where the library is.

Finally got the code to make. Working on playing sound using audioengine package.

Started Interim report. Focused on background sections. Read info on D-Bus, potential experiemnt with GLib and D-Bus and then GLib and XBMC’s D-Bus.

Advertisement
Posted in Uncategorized | Leave a comment

Make already

Spend today chassing down the various libraries used by XBMC to get my “playsound” experiment to compile.

 

  • Had problems finding libhal library.

Found in /usr/lib .

Using the .so files instead of .a files as they link together more easily.

  • Problem where functions in utils cant be called.

The order of -lLIBRARY_TO_INCLUDE is important.

  • General Problem that every time I include a new library It leads to including 4 new ones — I’m at 13 and counting.

 

Started first draft of the background for the Iterim report.

 

Posted in Uncategorized | Leave a comment

Interim Report

Yesterday I had a meeting with Sean and we dicussed some of the  technical issues and the interim report. The short term development goals are to get all the proper libraries to play the sound attached.

Project Plan

Interim Report Due date :

  • The  interim report is due on Friday 11th of February.
  • I want  to have a relatively completed report by 4th February.

Subject Breakdown:

Background (6 pages)

  • XBMC Background
  • DBus
  • Telepathy
  • Communication Protocols(Jabber,.., etc)
  • Why not Skype (Skype kit limitations )
  • Our experimentation with python scripts and the limited use of dbus.
  • XBMC structure
  • FFMPEG
  • Main entry point in XBMC

plan (2 pages)

  • FIll this out

TO DO:

  • Find main entry point for XBMC
  • Get playsound working
  • Draft Backgound.
Posted in XBMC | Leave a comment

Slow and Steady

Spent time getting all my progress so far working in the virtual machine for meeting with Sean. Also researched and feel that I am missing something fundamental with the linking of the libraries.

 

Solved Problems:

  • G++ has complained about a lack of windows specific files even after including the -DLINUX flag. I have not discovered why this is the case. Use D_LINUX instead of DLINUX
  • Getting undefined references even thought the the correct .h files and libraries are included. — This is probably due to incorrect inclusion of the libraries at the linking stage.

Problems:

  • Issue with ffmpeg posted here
Posted in Uncategorized | Leave a comment

Experimenting with the AudioEngine Library

At my last meeting Sean set up a basic makefile for me and directed me to use the AudioEngine(AE) library. This involved including a number of .h files and including the library in the linking state in the make file.

The Goal: play a wav file using the AE library.

Problems:

  • G++ has complained about a lack of windows specific files even after including the -DLINUX flag. I have not discovered why this is the case.
  • Getting undefined references even thought the the correct .h files and libraries are included.

Progress:

Still struggling with the two problems.

Research:

Learned how to use  grep  to find some examples of use of the AE in the XBMC source code. Found some examples but copying them doesn’t work which leads me to believe that the makefile options im using might be wrong.

 

Posted in XBMC | Leave a comment

Update

Okay exams and break are finished so I thought id write a quick update of what did and didn’t get done during the past two months.

First, I got a simple IM client working in XBMC using python that can send and receive messages using gchat and xmpppy .

The rest of the time has been spent trying to implement some basic VoIP functionality and reduce potential risks in the project.When trying to understand how  to play audio  in XBMC initially i looked at the SDL (Simple DirectMedia Layer) multimedia framework in XBMC but after some research and advice from members on the forums it appears that AudioEngine is the way to go.

Unfortunately there does not appear to be any microphone support in XBMC so I will  have to implement this. Video chat needs to be investigated further also.

I have been  writing  a simple c program that can play a sound using the libraries from XBMC. This has involved using make files and c libraries.

 

Posted in XBMC | Leave a comment

Some more experimenting

I have been trying to get a few telepathy-python programs working on ubuntu with the aim of eventually integrating them into a XBMC script.

I am using telepathy-python but documentation is lacking so I have been reading up on telepathy-dbus which telepathy-python sits on top off.

I have had some luck with getting the telepathy-python examples running and developing a few of my own. However, at the moment I am using the Channel Dispatcher and not Mission Control. Getting an example working with Mission Control is the next logical step.

 

Links

Telepathy-python

Telepathy-dbus

Other Useful Links

 

Posted in XBMC | Leave a comment

Lets get Running

Questions to answer this post:

Seeing as telepathy is cross platform what implementation will we use?

How many of the services we  want to add to XBMC (skype,msn,google voice) are supported?

There is a link with a list of  the components and it appears that everything but Skype is supported.

Explore XBMC structure “under the hood”

Looked at all the components listed below and got the code from the svn.
Research how to change XBMC code

I got the source and have read up on coding conventions and patching(more reading needed here.) but i dont understand how to write code that will run on mac/linux and windows.
Research how to get new XBMC code added to release

We can do this by adding a patch to the svn.

At this point the research has split into parts (i) understanding the  XBMC Structure and (ii) figuring out how to use Telepathy:

XBMC

Code Formatting

Patching Source Code

Reference Pages

Components

General

Telepathy

I think the best approach is to try to get telepathy running on windows first .

I found a  guide describing how to do this.

The idea is if I can get telepathy working on windows then I will try to integrate it into XBMC.

I found another guide .

I feel that I may be going about this the wrong way.

Links

Possible dependencies – Telepathy components that ubuntu uses.

New Questions

How limited is XBMC’s d-bus?

Posted in Uncategorized | Leave a comment

Research, research , research.

Ok let’s get straight into it, questions to be answered from last weeks post are:

Can python scripts be run in background?

The short answer is yes. In this post the author manages to launch a backend python script that launches by using the special autoexec.py script file. This project is project is nicely formatted and is quite relavent to what were trying to do. I get the feeling as I read more and more  about the python scripting in XBMC that it is a bit of an afterthought and not coupled tightly enough to the core functionality of XBMC  to be useful to us.

Compare and contrast libpurple and telepathy

I found an article on the differences between the two. Although the author is quite clearly biased towards telepathy it does sound like telepathy could provide the sort of modular VoIP,chat, Video Chat and other support for  XBMC that we want. So after bining libpurple a couple of new questions arrise.

  • Seeing as telepathy is cross platform which implementation will we use?
  • How many of the services we  want to add to XBMC (skype,msn,google voice) are supported?
Explore XBMC structure “under the hood”
Research how to change XBMC code
Research how to get new XBMC code added to release

These questions seem to be answered in the development notes wiki .

Although a brief bit of research has led me to believe that patching/adding code to the XBMC is quite doable more research is needed.

Links :

 

Side Note:

Might be worth trying to get a XBMC mentor.

 

Posted in Uncategorized | Leave a comment

An interesting link

During a bit of recreational reading I came across this interesting link:

Video chat from your couch

I find it  encouraging to see that there is enough  interest in these technologies that people are developing products around them.

 

 

Posted in Uncategorized | Leave a comment