Difference between revisions of "LogitechLCD"

From Second Life Wiki
Jump to navigation Jump to search
(New page: == Logitech LCD Library Generation == The latest builds for the Second Life Viewer contain support for the Logitech LCD G15 keyboards and Z-10 LCD speakers on a windows build. The view...)
 
Line 34: Line 34:


Jake Simpson - Linden Labs, November 2007
Jake Simpson - Linden Labs, November 2007
[[Category:Compiling viewer]]

Revision as of 07:45, 1 July 2008

Logitech LCD Library Generation

The latest builds for the Second Life Viewer contain support for the Logitech LCD G15 keyboards and Z-10 LCD speakers on a windows build.


The viewer comes complete with everything required to actually compile with Logitech support, however we have also made available both the original Logitech SDK that we used to construct our imported libraries, plus our slight modification of them. The SDK comes with a prebuilt lib (lgLcd.lib) that is necessary for the viewer to compile (providing the code to use it is activated) and we also generate a second lib (EZ_LCD_Wrapper.lib) from code in their SDK that is also required by the viewer


The zip file contains the project which generates the EZ_LCD_Wrapper.lib that is used by the newview project.


This code is effectively the same as the SDK that logitech releases directly (found in the root\libraries\include\Logitech_LCD directory of the second life viewer project), however it has been modified to generate a .lib file, and some of the constants have been modified to make text scroll faster.


To load the app, use either the \Samples\MultiplePages\MultiplePages.sln (for VS 2003) or the \Samples\MultiplePages\MultiplePages_vc8.sln (for VS 2005).


The resulting generated lib will need to be moved to the Second Life viewer project directory \root\libraries\i686-win32\lib_debug as well as \root\libraries\i686-win32\lib_release


Note that the viewer project will also require the root library that comes with the logitech SDK - if you upgrade the SDK you will need to copy across the new version of lgLcd.lib into the \root\libraries\i686-win32\lib_debug and \root\libraries\i686-win32\lib_release directories, as well as update the include files found in root\libraries\include\Logitech_LCD, which are taken directly from the logitech SDK


NOTE also that in order to compile with logitech LCD keyboard capability turned on, you need to change the


  1. define LL_LCD_COMPILE 0

to

  1. define LL_LCD_COMPILE 1


inside of llpreprocessor.h, found in the llcommon project.

Jake Simpson - Linden Labs, November 2007