The best way to compile custom drivers is as a plugin, this means you can
build the driver from outside the player source tree.
An example of building a plugin driver is included in the player source in
The steps you followed are mostly correct, but you will need to edit
acinclude.m4 as well to include your driver and make sure it is enabled in
configure. If you are adding a new folder to the source tree you will also
need to add the folder to the configure.ac file so the Makefile is created.
I hope this gives some assistance.
On 5/30/07, mkozak <s0nicfan@...> wrote:
> In my other topic I was given a novatel driver for use with my GPS, but am
> unsure exactly how to proceed. I checked the web site, but the tutorial on
> installing custom drivers is listed as "TO DO". From what I can gather
> through various web sites, I have done the following:
> 1. Created a folder in the /drivers directory called "novatel"
> 2. copied the novatel.cc (and necessary files) file to this new directory
> 3. compiled using: g++ -Wall -g3 `pkg-config --cflags playercore` -c
> and then using: g++ -shared -nostartfiles -o novatel.so novatel.o
> 4. from there I go into the /libplayerdrivers folder and then open up
> 5. I then place the following statement inside and outside of the
> player_register_drivers() function:
> #ifdef INCLUDE_NOVATELGPS
> void NovatelGPSDriver_Register(DriverTable* table);
> 6. From here I copy the Makefile.am, Makefile.in, and Makefile files to
> /novatel directory from the /gps directory
> 7. I modify Makefile.am to fit to the novatel driver.
> 8. I modify Makefile and Makefile.in with a search/replace on the word
> garminnmea with the word novatel (a cheap fix, but the regular make files
> are really long and I don't quite have my head wrapped around them).
> At this point I re-configure/compile from source, and try using my new
> driver by referencing "novatel" in the .cfg file rather than "garminnmea"
> Using the above method, I don't get any compile errors, but it still
> recognize the novatel driver after compile. What steps am I missing, or
> am I doing wrong?
> View this message in context:
> Sent from the playerstage-users mailing list archive at Nabble.com.
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> Playerstage-users mailing list
This email is intended for the addressee only and may contain privileged
and/or confidential information