LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-04-2014, 07:29 AM   #1
knobby67
Member
 
Registered: Mar 2006
Posts: 627

Rep: Reputation: 43
libfreetype issue


Hi All
I was running code in lubuntu13.04 and everything was well. I updated to lubuntu 14.04 and have come up with an issue with freetype library. I get an error that I can't work out I'm sure it's some update issue but can't work it out. Basically when I compile my code give this issue ( and many more that seems to be linked )

usr/include/freetype2/fterrors.h:151:34: error: expected ‘}’ before ‘(’ token
FT_ERRORDEF( FT_ERR_CAT( FT_ERR_PREFIX, e ), v, s )
^
/usr/include/freetype2/fterrors.h:133:33: note: in definition of macro ‘FT_ERRORDEF’
#define FT_ERRORDEF( e, v, s ) e = v,
^
/usr/include/freetype2/fterrdef.h:34:3: note: in expansion of macro ‘FT_NOERRORDEF_’
FT_NOERRORDEF_( Ok, 0x00, \
^
/usr/include/freetype2/fterrors.h:151:49: error: expected ‘)’ before ‘,’ token
FT_ERRORDEF( FT_ERR_CAT( FT_ERR_PREFIX, e ), v, s )



In my makefile I set headers and link with
Code:
GAME_LIBS = -lfreetype 
-DINCDIR =  -ISource -I/usr/include/freetype2
in my code I include freetype with
Code:
#include <ft2build.h>
#include <freetype/freetype.h>
#include <freetype/ftglyph.h>
#include <freetype/ftoutln.h>
#include <freetype/fttrigon.h>
I can see in my /usr/include/freetype2 I have a load of .h files and the sub folder freetype. usr/libs includes various freetype .a .so files.

Can anyone advise how I can track down this build error?
Thanks in advance
 
Old 11-04-2014, 09:11 AM   #2
knobby67
Member
 
Registered: Mar 2006
Posts: 627

Original Poster
Rep: Reputation: 43
OK solved it, commenting out the header gets it to work
Code:
#include <freetype/freetype.h>
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Joystick and USB issue, randomly connects, also caused a mouse issue. tim.sloane Linux - Hardware 1 08-08-2012 09:05 AM
libfreetype.so.6 dependency error when install OpenOffice on Slackware13 konzo Linux - Software 4 08-25-2010 01:55 PM
gcc looking in wrong directory for libfreetype.so while compiling xorg-server-1.1.1 Wunderbred Linux - Software 10 03-18-2010 11:14 AM
Trouble mounting ipod. Hal issue and mount point issue. okos Slackware 2 05-10-2009 11:51 PM
libfreetype-devel Joe Jarvis Linux - Software 13 03-27-2005 06:56 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration