Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ Developers corner » Build fails with freetype 2.6.3
Build fails with freetype 2.6.3 [message #46001] Sun, 14 February 2016 12:05 Go to next message
tomas is currently offline  tomas
Messages: 6
Registered: February 2016
Promising Member
Hi.

I tried compiling the latest stable release on Arch linux which unfortunately failed.
The problem seems to be caused by a recent change in the include guard naming in freetype where leading underscores (__) have been removed:
sourceforge.net/projects/freetype/files/freetype2/2.6.3/
I changed the file uppsrc/plugin/FT_fontsys/ft2build.h and added the new macro name which did the trick for me Razz but perhaps it should be done in another way.

#ifndef __FT2_BUILD_GENERIC_H__
#define __FT2_BUILD_GENERIC_H__

#ifndef FT2BUILD_H_
#define FT2BUILD_H_

#include <plugin/FT_fontsys/config/ftheader.h>

#endif /* FT2BUILD_H_ */

#endif /* __FT2_BUILD_GENERIC_H__ */
Re: Build fails with freetype 2.6.3 [message #46007 is a reply to message #46001] Tue, 16 February 2016 10:45 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 12051
Registered: November 2005
Ultimate Member
Thanks, however for now I am scratching my head about how plugin/FT_fontsys in involved in building of theide?

Mirek
Re: Build fails with freetype 2.6.3 [message #46008 is a reply to message #46007] Tue, 16 February 2016 11:20 Go to previous messageGo to next message
dolik.rce is currently offline  dolik.rce
Messages: 1758
Registered: August 2008
Location: Czech Republic
Senior Contributor

Via messed up includes e.g. in GtkDrawText.cpp:
[  426s] In file included from uppsrc/plugin/FT_fontsys/ft2build.h:34:0,
[  426s]                  from uppsrc/plugin/FT_fontsys/ftoutln.h:24,
[  426s]                  from /usr/src/packages/BUILD/upp/src/upp-x11-src-9482/uppsrc/CtrlCore/GtkDrawText.cpp:7:
[  426s] uppsrc/plugin/FT_fontsys/config/ftheader.h:173:0: warning: "FT_FREETYPE_H" redefined
[  426s]  #define FT_FREETYPE_H  <plugin/FT_fontsys/freetype.h>
[  426s]  ^


Full log from OBS is attached.

Honza
  • Attachment: log.txt
    (Size: 296.91KB, Downloaded 92 times)
Re: Build fails with freetype 2.6.3 [message #46044 is a reply to message #46008] Mon, 22 February 2016 20:46 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 12051
Registered: November 2005
Ultimate Member
Well, I only see it in GtkDrawText.cpp.

I have fixed it by changing to

#include <freetype2/freetype/ftoutln.h>

Hopefully it will fix the issue...

Mirek
Re: Build fails with freetype 2.6.3 [message #46068 is a reply to message #46044] Sat, 27 February 2016 21:00 Go to previous message
tomas is currently offline  tomas
Messages: 6
Registered: February 2016
Promising Member
I tried a new nightly build and everything compiles now.

Thanks
Tomas
Previous Topic: [REJECTED]: VarArgs class for U++ (va_ macros replacement, in U++ stlye)
Next Topic: Unable to compile examples using g++ 5.3.0
Goto Forum:
  


Current Time: Sun Oct 20 18:13:47 CEST 2019

Total time taken to generate the page: 0.01202 seconds