LinuxMCE Forums

General => Developers => Topic started by: danielk on January 22, 2008, 05:47:03 pm

Title: Developer FAQ
Post by: danielk on January 22, 2008, 05:47:03 pm
One of the suggestions for the furums that came up when I was out in Sunnyvale talking to various people about UI3 was to create a a list of frequently asked questions for both this forum, the Users forum. The idea is to make a sticky post to the respective forums with the questions and short answers which point to the wiki for each in depth answer.

So lets figure out what should go in that FAQ in this thread.

My initial suggestions:

Q: Where do I get the sources?
Q: How do I compile the whole shebang?
Q: How do I compile and install a single library/application?
Q: How do I create a new GSD device and sync it to sqlCVS?
Q: How do I translate the UI into my own language?

Title: Re: Developer FAQ
Post by: chewi on January 22, 2008, 06:55:52 pm
...snip
is it considered bad etiquette in such a forum to petition help for such an endeavor when the inevitable confusion arises?  i've no idea how such impressive open development works...
.....snip
If you are working and have a certain problem you can post like this:
I want to do this.
To to this I have done that.
I ran into this problem at that point.
Does anyone have any additional ideas ?

If someone does have an idea, he/she will propably help you.

If you only want to make a feature request because you cannot code and do not have the time to learn it, go to the feature-request forum and discribe your idea there.
The feature-request-forum can be seen as an inspiration for developers. So if someone thinks it's a good idea, he/she is going to try it out. But there's no guaratee.
Discussions about the value of a certain feature belongs into the feature-request forum as well.

The difference between open-source and commercial feature request is that the developers decide for themselves if they want to take on a task. In commercial fields it's only the production manager that makes all the decisions sometimes taking finacials into account. in OSS it's more democratic, i guess.

Of course, you can try to find a developer to do the work for you and pay him. Or set a bounty for a certain feature. See the market place for that.

(maybe some delcaration like this should be made a sticky post in the forums: Posting rules or something)
Title: Re: Developer FAQ
Post by: ddamron on January 22, 2008, 06:59:22 pm
chewi:

It's hard reading your messages because you include your message in with the quote.

Can you maybe scroll down to the end of the [   /quote] and then type your message.

Thanks!

Dan
Title: Re: Developer FAQ
Post by: chewi on January 23, 2008, 10:21:00 am
Actually, I did not have any new input... I just quotet myself from an other thread... No additions made... ;)

But you're right, a link to http://learn.to/quote (German) and it's english version should be in the faq as well...
Title: Re: Developer FAQ
Post by: RichardP on January 23, 2008, 02:07:06 pm

So lets figure out what should go in that FAQ in this thread.


If anyone has the time, I'd really appreciate a few notes on the tools to install. I'm from the Windows world, where everything is done in one single IDE. With seperate tools for everything, it's not so easy to figure out which compiler, debugger, CVS frontend etc etc.

Title: Re: Developer FAQ
Post by: danielk on January 23, 2008, 04:08:30 pm
Richard,
The basic tools are:
  gcc/g++                      linking compilers for C/C++
  emacs/vi/kdevelop       text editors and IDEs of your choosing
  make                          tool for executing makefiles (compile/link/install scripts)
  dpkg-buildpackage       tool for creating debian packages
  dpkg/apt-get/apt-cache tools for managing package installation
  ./configure                  default script name for configuring make options
  autoconf                     tool used to generate some of the makefiles
The LinuxMCE specific tools are:
  MakeRelease_Prep      tool for preparing makefiles, and making other textual replacements
  MakeRelease              tool for running make & dpkg for each package based on info in database
  mysql                         database used by MakeRelease

There may be some that I'm missing, plus we'll need short descriptions on how to use the tools.
Title: Re: Developer FAQ
Post by: Vagabond on January 26, 2008, 12:00:26 am
As the potential user of this thread ;):

It might be a good idea to come up not only with separate answers to the questions, but with a comprehensive, well structured guide/instruction on how to (for example) starting with LMCE freshly installed from the DVD step by step get to fully functional "new GSD device"

Some pieces of this info are spread across the wiki, but each of them is written with its own assumptions (of how environment is set up for example), some are not existing, so its usually very hard to link them up into complete procedure..

You may also suggest some other "end-to-end development use cases" which worth describing in this manner.
Title: Re: Developer FAQ
Post by: tom_say on January 26, 2008, 12:37:31 am
Here go

Question 1

Q: Where do I get the sources?

all source is located at http://svn.charonmedia.org/

Question 2

Q: How do I compile the whole shebang?

# Download snapshot (391MiB)
wget http://www.charonmedia.org/lmce-1465.tbz

# Test checksum to ensure it was downloaded intact.
md5sum lmce-1465.tbz # should be b3d4b3f6b33ff5e6c4641390f2314095

# Update snapshot (uncompressed: 1823MiB either snapshot or updated).
tar xfj lmce-1465.tbz
cd lmce
svn update

# Build from source (optional) to 3692MiB, total source+build = 5515MiB.
./configure
make


Question 3

Q: How do I compile and install a single library/application?

To build Applications, you should fetch it from the SVN repository, then go into Application directory and run:
dpkg-buildpackage -rfakeroot -b

This will build the Application packages (bin,debug,dev) and will put them into parent folder.

Note that if some required packages are missing, it will give you an error and stop. You can install required packages and retry.





Title: Re: Developer FAQ
Post by: ddamron on January 27, 2008, 08:44:15 pm
TomSay,

Great Start! VERY good questions..

Daniel,

Considering the amount of activity with GSD/RUBY, maybe we could post a sticky on that subject.  It's a big beast in itself.. (as I found out)

I could add a bunch to that.. with examples, etc..

Best Regards,

Dan
Title: Re: Developer FAQ
Post by: Matthew on February 10, 2008, 08:49:34 pm
all source is located at http://svn.charonmedia.org/

Question 2

Q: How do I compile the whole shebang?

# Download snapshot (391MiB)
wget http://www.charonmedia.org/lmce-1465.tbz

Isn't the CharonMedia.org SVN the old LMCE versions' source? Isn't the current 0710bN source in http://svn.linuxmce.com/pluto/trunk/src ?
Title: Re: Developer FAQ
Post by: Matthew on February 10, 2008, 08:51:37 pm
One of the suggestions for the furums that came up when I was out in Sunnyvale talking to various people about UI3 was to create a a list of frequently asked questions for both this forum, the Users forum. The idea is to make a sticky post to the respective forums with the questions and short answers which point to the wiki for each in depth answer.

So lets figure out what should go in that FAQ in this thread.

My initial suggestions:

Q: Where do I get the sources?
Q: How do I compile the whole shebang?
Q: How do I compile and install a single library/application?
Q: How do I create a new GSD device and sync it to sqlCVS?
Q: How do I translate the UI into my own language?

Let's structure the FAQ so that its questions are posted in a sticky topic in each forum about which there's a FAQ, and link the FAQ's questions to answers that are wiki articles. The discussion following from the sticky FAQ post can discuss new questions (and answers) to be edited into the top comment in the topic.
Title: Re: Developer FAQ
Post by: Matthew on February 16, 2008, 05:14:49 pm
all source is located at http://svn.charonmedia.org/

Question 2

Q: How do I compile the whole shebang?

# Download snapshot (391MiB)
wget http://www.charonmedia.org/lmce-1465.tbz

Isn't the CharonMedia.org SVN the old LMCE versions' source? Isn't the current 0710bN source in http://svn.linuxmce.com/pluto/trunk/src ?

I would think that "which is the correct SVN" would be a pretty good answer to give, but it can't even get an answer in this FAQ discussion. How is any developer community supposed to help with that level of support?
Title: Re: Developer FAQ
Post by: hari on February 16, 2008, 08:47:46 pm
I would think that "which is the correct SVN" would be a pretty good answer to give, but it can't even get an answer in this FAQ discussion. How is any developer community supposed to help with that level of support?
charonmedia is the development trunk. The linuxmce svn holds the 0710 branch, some pluto branches and the pluto stable code (without proprietary stuff).

regards,
Hari
Title: Re: Developer FAQ
Post by: Matthew on February 16, 2008, 10:10:38 pm
I would think that "which is the correct SVN" would be a pretty good answer to give, but it can't even get an answer in this FAQ discussion. How is any developer community supposed to help with that level of support?
charonmedia is the development trunk. The linuxmce svn holds the 0710 branch, some pluto branches and the pluto stable code (without proprietary stuff).

Since 0710 is the version currently in development, does that mean that the code in the linuxmce.org SVN 0710 branch is the same as the code in the charonmedia.com SVN trunk? Or what is the relationship between those two SVN repos? I think the main question is which SVN code is the one that everything in Mantis is referring to, that is the one to patch for getting into the 0710 release? And what is the complete build procedure for that code? The simple procedure for getting and building the source (http://forum.linuxmce.org/index.php?topic=3953.msg22870#msg22870) tom_say posted in this thread was very tantalizing.
Title: Re: Developer FAQ
Post by: hari on February 16, 2008, 10:31:01 pm
Since 0710 is the version currently in development, does that mean that the code in the linuxmce.org SVN 0710 branch is the same as the code in the charonmedia.com SVN trunk?
danielk and ender do much work to merge changes back to charonmedia from linuxmce. Charonmedia may miss the latest fixes from mantis.

Quote
And what is the complete build procedure for that code? The simple procedure for getting and building the source (http://forum.linuxmce.org/index.php?topic=3953.msg22870#msg22870) tom_say posted in this thread was very tantalizing.
the procedure for the 0710 branch is not for the faint hearted. Therefore we use the builder farm and nightly snapshots.
Daniel invested much time on the configure script and makefile in the charonmedia trunk. That nearly gives you the whole build. I suggest starting with that. You could pull missing pieces from the linuxmce trunk (e.g. mantis fixes) if you need any.

best regards,
hari
Title: Re: Developer FAQ
Post by: Matthew on February 16, 2008, 10:45:21 pm
Since 0710 is the version currently in development, does that mean that the code in the linuxmce.org SVN 0710 branch is the same as the code in the charonmedia.com SVN trunk?
danielk and ender do much work to merge changes back to charonmedia from linuxmce. Charonmedia may miss the latest fixes from mantis.

Quote
And what is the complete build procedure for that code? The simple procedure for getting and building the source (http://forum.linuxmce.org/index.php?topic=3953.msg22870#msg22870) tom_say posted in this thread was very tantalizing.
the procedure for the 0710 branch is not for the faint hearted. Therefore we use the builder farm and nightly snapshots.
Daniel invested much time on the configure script and makefile in the charonmedia trunk. That nearly gives you the whole build. I suggest starting with that. You could pull missing pieces from the linuxmce trunk (e.g. mantis fixes) if you need any.

So if the files to be patched in the charonmedia.com SVN are identical to the ones in the linuxmce.org SVN, then working entirely against the charonmedia files is pretty safe. If the patch doesn't affect the code's API, it's even safer.

The problem could come if the new patch's effect collides with some function elsewhere in the code that's also been patched upstream in the callpath to the newly patched code. Like if the problem is that some data arrives in the wrong format at the code I'm patching, so I switch the data around depending on the bad format in the charonmedia.org SVN code, but meanwhile someone has patched some other code in the linuxmce.org SVN, so now the data doesn't actually arrive in that format anymore (but the charonmedia.org SVN code hasn't caught up to that patch yet). If there's no record of that other "upstream" patch being worked on in a Mantis bug report about what I'm patching. Still possible to collide, if someone isn't reporting in Mantis what they're patching and committing. But probably a very small risk.
Title: Re: Developer FAQ
Post by: danielk on February 17, 2008, 06:22:40 pm
the procedure for the 0710 branch is not for the faint hearted. Therefore we use the builder farm and nightly snapshots.
Daniel invested much time on the configure script and makefile in the charonmedia trunk. That nearly gives you the whole build. I suggest starting with that. You could pull missing pieces from the linuxmce trunk (e.g. mantis fixes) if you need any.


Also, the build scripts in the svn at linuxmce.org will blow away your existing LinuxMCE database and leave you with a system that won't run LinuxMCE.. The charonmedia.org trunk has kinder and gentler build scripts; but, yes I haven't synced in weeks because I'm working on making the linuxmce.org repo replace the one at charonmedia.org. All the fixes in the charonmedia.org trunk will be synced over to linuxmce.org tree and that will become our main repo. Once that's done, the charonmedia.org repo will become a simple mirror of the linuxmce.org repo; aka a hot backup.

The build "farm" is builder32.linuxmce.org + builder64.linuxmce.org. They continuously loop rebuilding the trunk on linuxmce.org. Pluto has their own build "farm" as well, which does pretty much the same thing. FYI There were some problems with the builder machines when they first came online, but I think the scripts are pretty much working now as the builds have succeed for days on both machines. There is still some work left for the scripts, for instance they now overwrite the existing iso's with new ones, which messes up conventional http/ftp/rsync downloading, so if I want to download a particular build I need to log into the machine, hard link to the iso, download from the hard link and then delete the hard link...
Title: Re: Developer FAQ
Post by: ddamron on February 18, 2008, 01:56:29 am
Thanks for that Daniel,

Setting up a community based svn is ALSO not for the faint of heart!

Great work!

Dan
Title: Re: Developer FAQ
Post by: bmac2 on February 19, 2008, 04:06:09 am
Since 0710 is the version currently in development, does that mean that the code in the linuxmce.org SVN 0710 branch is the same as the code in the charonmedia.com SVN trunk?
danielk and ender do much work to merge changes back to charonmedia from linuxmce. Charonmedia may miss the latest fixes from mantis.

Quote
And what is the complete build procedure for that code? The simple procedure for getting and building the source (http://forum.linuxmce.org/index.php?topic=3953.msg22870#msg22870) tom_say posted in this thread was very tantalizing.
the procedure for the 0710 branch is not for the faint hearted. Therefore we use the builder farm and nightly snapshots.
Daniel invested much time on the configure script and makefile in the charonmedia trunk. That nearly gives you the whole build. I suggest starting with that. You could pull missing pieces from the linuxmce trunk (e.g. mantis fixes) if you need any.

So if the files to be patched in the charonmedia.com SVN are identical to the ones in the linuxmce.org SVN, then working entirely against the charonmedia files is pretty safe. If the patch doesn't affect the code's API, it's even safer.

The problem could come if the new patch's effect collides with some function elsewhere in the code that's also been patched upstream in the callpath to the newly patched code. Like if the problem is that some data arrives in the wrong format at the code I'm patching, so I switch the data around depending on the bad format in the charonmedia.org SVN code, but meanwhile someone has patched some other code in the linuxmce.org SVN, so now the data doesn't actually arrive in that format anymore (but the charonmedia.org SVN code hasn't caught up to that patch yet). If there's no record of that other "upstream" patch being worked on in a Mantis bug report about what I'm patching. Still possible to collide, if someone isn't reporting in Mantis what they're patching and committing. But probably a very small risk.



my only question, and I am a total newbie on this project, and am NOT a programmer, but   HUH??  I guess reading your reply confuses me.  Above they kindly posted where to get the sources, and you say no, don't get them there, it is ok to get them here, and it might or might not break something.  I am confused.  If everyone else is getting them from charmedia and patching them there, and you are patching elsewhere, aren't we all at cross paths?  I have done computers since the 80s, but mainly as a networker, and as a College Professor teaching computers, so this is my first endevor into an open source project.  So why not get your code where everyone else does?  I thought I understood daniellek was the "code" keeper of sorts. Is that not right?

Sorry for my confusion, but I am working on some scripts for the project and don't want to put them in the wrong place or screw something up!  We need to all do things the same way or we can be hosed by one person swimming upstream.
Title: Re: Developer FAQ
Post by: tschak909 on February 19, 2008, 04:35:10 am
well, to put it in a nutshell....

there ARE two svn servers

(1) at svn.linuxmce.org - This is where Pluto is building their sources from.

(2) at svn.charonmedia.org - This is where danielk is doing community build work, and where the majority of us community non-pluto people are doing our code.

(2) will become (1) after a merge, but not until after 0710 is released.

-Thom
Title: Re: Developer FAQ
Post by: ddamron on February 19, 2008, 04:36:16 am
well put thom!
Title: Re: Developer FAQ
Post by: Matthew on February 19, 2008, 05:08:59 am
Since 0710 is the version currently in development, does that mean that the code in the linuxmce.org SVN 0710 branch is the same as the code in the charonmedia.com SVN trunk?
danielk and ender do much work to merge changes back to charonmedia from linuxmce. Charonmedia may miss the latest fixes from mantis.

Quote
And what is the complete build procedure for that code? The simple procedure for getting and building the source (http://forum.linuxmce.org/index.php?topic=3953.msg22870#msg22870) tom_say posted in this thread was very tantalizing.
the procedure for the 0710 branch is not for the faint hearted. Therefore we use the builder farm and nightly snapshots.
Daniel invested much time on the configure script and makefile in the charonmedia trunk. That nearly gives you the whole build. I suggest starting with that. You could pull missing pieces from the linuxmce trunk (e.g. mantis fixes) if you need any.

So if the files to be patched in the charonmedia.com SVN are identical to the ones in the linuxmce.org SVN, then working entirely against the charonmedia files is pretty safe. If the patch doesn't affect the code's API, it's even safer.

The problem could come if the new patch's effect collides with some function elsewhere in the code that's also been patched upstream in the callpath to the newly patched code. Like if the problem is that some data arrives in the wrong format at the code I'm patching, so I switch the data around depending on the bad format in the charonmedia.org SVN code, but meanwhile someone has patched some other code in the linuxmce.org SVN, so now the data doesn't actually arrive in that format anymore (but the charonmedia.org SVN code hasn't caught up to that patch yet). If there's no record of that other "upstream" patch being worked on in a Mantis bug report about what I'm patching. Still possible to collide, if someone isn't reporting in Mantis what they're patching and committing. But probably a very small risk.



my only question, and I am a total newbie on this project, and am NOT a programmer, but   HUH??  I guess reading your reply confuses me.  Above they kindly posted where to get the sources, and you say no, don't get them there, it is ok to get them here, and it might or might not break something.  I am confused.  If everyone else is getting them from charmedia and patching them there, and you are patching elsewhere, aren't we all at cross paths?  I have done computers since the 80s, but mainly as a networker, and as a College Professor teaching computers, so this is my first endevor into an open source project.  So why not get your code where everyone else does?  I thought I understood daniellek was the "code" keeper of sorts. Is that not right?

Sorry for my confusion, but I am working on some scripts for the project and don't want to put them in the wrong place or screw something up!  We need to all do things the same way or we can be hosed by one person swimming upstream.

What you saw was me trying to make do with the info that is out there, some of which is contradictory, and much of which is changing weekly/daily. And then learning the definitive info from someone making it definitive. Then trying to think through what using that system while it's in flux would actually be like for people who don't have full developer access to build scripts and build farms.

In other words, I was nearly as confused as you were for a while, but I think I got it straight. I hope you do now, too.
Title: Re: Developer FAQ
Post by: ddamron on February 19, 2008, 05:46:53 am
full developer access to build scripts / build farms?  who has that?
the only build farm I know of is in DanielK's control, no one else has access to that..

I think that's a misnomer, the only thing I personally have access to is the forums.. so that I could implement the Chat java app.

Any further knowledge is from trial and error.. and of course, IRC..
There's LOTS you can learn there.. at any one time, either DanielK, hari, TSCHAK, or myself are there.  Often, 3 of us are in there at the same time..

Last night, I even did a step by step, blow by blow walkthrough on how to hack IR. (looking for possible discrete codes)

Nobody gave me a 'blue' book, I had to search for it. 

building from source, while it's getting better, is still no where near perfect.

There's lots of libs that keep getting updated, etc, etc, I still don't have the whole thing compiling..

But I'm learning as we go... a good rule of thumb I keep is: when you don't know what direction to go, check in IRC, most of the time, SOMEONE has been there.

irc.freenode.net channel #linuxmce

HTH,

Dan
Title: Re: Developer FAQ
Post by: Matthew on February 19, 2008, 06:38:42 am
full developer access to build scripts / build farms?  who has that?
the only build farm I know of is in DanielK's control, no one else has access to that..

The Pluto staff of course have that access. But I didn't even refer to the people who have it, who are besides the point if you're not one of them. What is the point is that for the rest of us, like practically everyone who reads this forum, we still can do something even if we don't have that access. That access is relevant only because with it some of what's necessary here would not be necessary. And supposedly that access is coming, which means that it should get easier, but in the meantime we have to cope with what we've got.
Title: Re: Developer FAQ
Post by: ddamron on February 19, 2008, 07:42:37 am
ahh, i see.. well, all I can say it try... thats what I do.
you *REALY* need to check out the IRC channel.
LOTS of helping going on over there...
hari and I figured out his javamo over there..
TSCHAK keeps us up to date with his MAME stuff, we help people and try to direct them so they don't run into the same problems we did...  It all helps.
Title: Re: Developer FAQ
Post by: hari on February 21, 2008, 11:43:40 pm
http://wiki.linuxmce.org/index.php/Building_From_Source
Title: Re: Developer FAQ
Post by: schaferj on March 01, 2008, 07:16:03 pm
wow,  incredibly helpful.  Victory  is occuring!
thank you,
joseph
Title: Re: Developer FAQ
Post by: lightshow on April 28, 2008, 10:16:37 pm
Code Development

Q: Where do I get the sources and compile on my own?
A: http://wiki.linuxmce.org/index.php/Building_From_Source

Q: What are the basic tools I need to work with the source?
A: http://forum.linuxmce.org/index.php?topic=3953.msg22528#msg22528

Q: How do I compile and install a single library/application?
Quote
To build Applications, you should fetch it from the SVN repository, then go into Application directory and run:
dpkg-buildpackage -rfakeroot -b

This will build the Application packages (bin,debug,dev) and will put them into parent folder.

Note that if some required packages are missing, it will give you an error and stop. You can install required packages and retry.

Q: How do I create a new GSD device and sync it to sqlCVS?


User Interface Development

Q: How can I create a new UI using HADesigner?
A: http://forum.linuxmce.org/index.php?topic=5059.0

Q: How do I translate the UI into my own language?

Support

Q: Where can I go to ask Developers a question?
A: This forum and irc.freenode.net channel #linuxmce  (IRC client such as mIRC needed to connect)

Title: Re: Developer FAQ
Post by: brsisr on May 02, 2008, 10:30:21 pm
Hi ,
I am new in Linux MCE.
I bouth the x-10 controller cm19a , which is not supported by the Linux MCE.
I decided to develop for it new device template.
Following the problem which I found :
1) The page which describes how to configure a new device template is different that I have in linux mce:
http://wiki.linuxmce.org/index.php/Image:EditDeviceTemplate.jpg#filehistory
2) When I try to edit a Ruby code , the web asks from me to create the new new group for my device and after this failed with message :
  Fatal error: mysql error: [1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1] in EXECUTE("SELECT FK_Command,PK_InfraredGroup_Command FROM InfraredGroup_Command WHERE FK_InfraredGroup= ") in /var/www/pluto-admin/include/adodb/adodb-errorhandler.inc.php on line 77

Could some one to help me and provide the explanation how to create a new device template?
Any ideas where to find the manual ?

Thanks :)
Title: Re: Developer FAQ
Post by: hari on May 03, 2008, 12:15:58 am
  Fatal error: mysql error: [1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1] in EXECUTE("SELECT FK_Command,PK_InfraredGroup_Command FROM InfraredGroup_Command WHERE FK_InfraredGroup= ") in /var/www/pluto-admin/include/adodb/adodb-errorhandler.inc.php on line 77

Could some one to help me and provide the explanation how to create a new device template?
Any ideas where to find the manual ?
you are doing all right. Thats a bug of 0710b4.
best regards,
Hari
Title: Re: Developer FAQ
Post by: MediaEngineer on September 03, 2008, 05:34:16 pm
http://wiki.linuxmce.org/index.php/Building_From_Source

I tried to use those instructions to build a test library, Media_Plugin.so, but it failed, as I detailed in another post, "Working Build Process? (http://forum.linuxmce.org/index.php?topic=6159.0)". Can you help me find the correct procedure for working on the current source base? Thanks.
Title: Re: Developer FAQ
Post by: boris on March 23, 2009, 09:32:31 pm
Where can I find  bluetooth sources referenced in /PlutoDHCP/PlutoDHCP.ccp -> /BD/PhoneDevice.h see error below.

I followed all steps outlined at http://wiki.linuxmce.org/index.php/Building_From_Source. And was able to build UpdateMedia.  But I also see "/!\ WARNING: at the moment the sources are moving, so there are some bugs related to sources versions. you may not be able to compile" at http://wiki.linuxmce.org/index.php/Setting_Up_A_Development_Environment.
Is this warning the reason I am not able to locate bluetooth sources?

Code: [Select]
/src/PlutoDHCP$ make
g++ -I. -I.. -I.. -I../DCE -I/usr/include/mysql -W -Wall -pipe -ggdb3  -c -o PlutoDHCP.o PlutoDHCP.cpp
In file included from PlutoDHCP.cpp:53:
../BD/PhoneDevice.h:24:33: error: bluetooth/bluetooth.h: No such file or directory
../BD/PhoneDevice.h:25:30: error: bluetooth/rfcomm.h: No such file or directory
../BD/PhoneDevice.h:26:27: error: bluetooth/hci.h: No such file or directory
../BD/PhoneDevice.h:27:31: error: bluetooth/hci_lib.h: No such file or directory
../pluto_main/Table_Device.h:262: warning: unused parameter ‘iSC_Version’
../pluto_main/Table_Device_DeviceData.h:164: warning: unused parameter ‘iSC_Version’
../pluto_main/Table_DeviceData.h:169: warning: unused parameter ‘iSC_Version’
../pluto_main/Table_DeviceCategory.h:184: warning: unused parameter ‘iSC_Version’
../pluto_main/Table_DeviceTemplate.h:315: warning: unused parameter ‘iSC_Version’
../pluto_main/Table_Installation.h:255: warning: unused parameter ‘iSC_Version’
../BD/PhoneDevice.h:53: error: ‘bdaddr_t’ does not name a type
../BD/PhoneDevice.h: In copy constructor ‘PhoneDevice::PhoneDevice(const PhoneDevice&)’:
../BD/PhoneDevice.h:120: error: ‘m_bdaddrDongle’ was not declared in this scope
../BD/PhoneDevice.h:120: error: ‘const class PhoneDevice’ has no member named ‘m_bdaddrDongle’
PlutoDHCP.cpp: In member function ‘std::string PlutoDHCP::GetDHCPConfig()’:
PlutoDHCP.cpp:298: warning: comparison between signed and unsigned integer expressions
PlutoDHCP.cpp:308: warning: comparison between signed and unsigned integer expressions
PlutoDHCP.cpp:244: warning: unused variable ‘iMoonNumber’
make: *** [PlutoDHCP.o] Error 1
Title: Re: Developer FAQ
Post by: hari on March 23, 2009, 11:27:40 pm
you want bluez-devel
Title: Re: Developer FAQ
Post by: boris on March 24, 2009, 12:32:57 am
you want bluez-devel

Thanks, that did the trick.

ok where do these instructions need to go?  Sorry this is first time I am doing this, so if I make any mistakes I am sorry.
 Run this to install libs
Code: [Select]
sudo apt-get install libbluetooth-dev
Title: Re: Developer FAQ
Post by: hari on March 24, 2009, 01:12:55 am
please no worries!! Mistakes are human. I don't know if we have a wiki page that lists all build dependencies..

We try our best to make this forum a more friendly place for the future.

best regards,
Hari