|
SageTV Github Development Discussion related to SageTV Open Source Development. Use this forum for development topics about the Open Source versions of SageTV, hosted on Github. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
Freetype Font UnsatisfiedLinkError in Linux
I've been investigating another issue in V9 on Linux. When my extender connects, I get a bunch of these errors:
Code:
Tue 2/2 0:26:10.529 [MiniUIServerConnection@1decba4d] Error loading Freetype Font; trying to load Java font instead; error=java.lang.UnsatisfiedLinkError: sage.FreetypeFont.loadFreetypeLib0()J Interestingly, there is another copy of the sage_FreetypeFont.h file in native/include that does *not* have the leading underscores. Can anyone confirm if removing the leading underscores is the correct fix, and will it cause any problems for the Windows build? I can't find any other code in the project that has them.
__________________
Server: HP DL380 G6, VMware ESXi 5.0 with HW passthrough for USB and Firewire, 4 x HD-PVR, ZFS storage SageTV: Production: 7.1.9+Java 1.6.0_32 on XP, Test: 9.0.4.291+Java 1.8.0_72 on Linux 64-bit Clients: 2 x Sage HD200 Extender, 1 x Sage HD100 Extender Sources: 4 x Motorola DCH-3200 (firewire channel changing), HD Homerun Prime, OpenDCT 0.5.7 |
#2
|
||||
|
||||
Yeah, that fixes the problem. I never figured out why this was an issue...but did figure out how to fix it (just like you).
I'm fairly sure you need the underscores for the Windows version though...but what's very odd is the other GNU stuff compiled on Windows with JNI didn't have that issue (imageloader library). This one was totally a mystery to me. If you want to make a version of it that's conditional on OS for the underscores, I'd definitely approve that commit.
__________________
Jeffrey Kardatzke Founder of SageTV |
#3
|
|||
|
|||
I think I figured this out. Using gcc/MinGW, I was able to build a working Windows DLL from the same code I used on Linux--without the underscores--and it works fine in V7.1.9 on XP. The issue appears to be related to some linker options that are needed to satisfy the underscore requirement for Windows.
I built two versions of the DLL using different linker options. The first one used similar options to what was in the original Makefile.win, and it failed when I tested it in SageTV: Code:
Wed 2/10 3:19:34.181 [AWT-EventQueue-0@888e6c] Error loading Freetype Font; trying to load Java font instead; error=java.lang.UnsatisfiedLinkError: sage.FreetypeFont.loadFreetypeLib0()J Wed 2/10 3:19:34.270 [AWT-EventQueue-0@888e6c] Error loading Freetype Font; trying to load Java font instead; error=java.lang.UnsatisfiedLinkError: sage.FreetypeFont.loadFreetypeLib0()J Wed 2/10 3:19:34.270 [AWT-EventQueue-0@888e6c] Error loading Freetype Font; trying to load Java font instead; error=java.lang.UnsatisfiedLinkError: sage.FreetypeFont.loadFreetypeLib0()J Code:
Wed 2/10 3:21:33.668 [AWT-EventQueue-0@888e6c] Creating new FreeType font face for fonts\DejaVuSans size=15 style=0 from=C:\Program Files\SageTV\SageTV\fonts\DejaVuSans.ttf Wed 2/10 3:21:33.670 [AWT-EventQueue-0@888e6c] Loading new font to cache font=MetaFont[fonts\DejaVuSans, size=15, style=0, height=17.0, ascent=14.0, descent=4.0, leading=-1.0, class=class sage.FreetypeFont] Wed 2/10 3:21:33.697 [AWT-EventQueue-0@888e6c] Deriving FreeType font face for fonts\DejaVuSans size=22 style=0 from=C:\Program Files\SageTV\SageTV\fonts\DejaVuSans.ttf
__________________
Server: HP DL380 G6, VMware ESXi 5.0 with HW passthrough for USB and Firewire, 4 x HD-PVR, ZFS storage SageTV: Production: 7.1.9+Java 1.6.0_32 on XP, Test: 9.0.4.291+Java 1.8.0_72 on Linux 64-bit Clients: 2 x Sage HD200 Extender, 1 x Sage HD100 Extender Sources: 4 x Motorola DCH-3200 (firewire channel changing), HD Homerun Prime, OpenDCT 0.5.7 |
#4
|
||||
|
||||
Quote:
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#5
|
|||
|
|||
Quote:
__________________
Server: HP DL380 G6, VMware ESXi 5.0 with HW passthrough for USB and Firewire, 4 x HD-PVR, ZFS storage SageTV: Production: 7.1.9+Java 1.6.0_32 on XP, Test: 9.0.4.291+Java 1.8.0_72 on Linux 64-bit Clients: 2 x Sage HD200 Extender, 1 x Sage HD100 Extender Sources: 4 x Motorola DCH-3200 (firewire channel changing), HD Homerun Prime, OpenDCT 0.5.7 |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Font question | Ikarius | SageTV Studio | 1 | 09-02-2009 06:54 AM |
Linux (Ubuntu 7.10) - Placeshifter font too long | ltitran | SageTV Linux | 9 | 04-09-2008 06:00 AM |
Placeshifter has java.lang.UnsatisfiedLinkError | vhurst | SageTV Placeshifter | 0 | 02-28-2007 01:21 AM |
Font Size | TripleTapper | SageTV Media Extender | 4 | 12-12-2006 03:19 PM |
Font size for EPG | srothwell | SageTV Software | 4 | 08-04-2004 01:00 PM |