zyzorro / zyphp Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/zyphp
Automatically exported from code.google.com/p/zyphp
1, X development software package is needed.
2, Qtlibrary need the fontconfig2.4.2 ,so fontconfig2.4.2 code rebuilding
is needed,
this is a issue in building this . when coming into linking step, it use
/usr/lib/libexpat.so ,not /usr/lib64/libexpat.so
fix it is :
ln -s /usr/lib64/libexpat.so /usr/lib/libexpat.so
3, when linking panda manager, it still tip you:
/opt/qtsdk-2009.01/qt/lib/libQtGui.so: undefined reference to
`FcFreeTypeQueryFace'
collect2: ld returned 1 exit status
export LD_LIBRARY_PATH=/your/new/fontconfig/lib is needed.
Original issue reported on code.google.com by [email protected]
on 12 Apr 2010 at 2:23
CentOS 5.2 + Qt 4.5 + FcFreeTypeQueryFace
Posted by theitdepartment on March 15, 2009
So with all the buzz around the new release of Qt 4.5, you may be like me
and have been desperately wanting to give it a whirl. Has this happened to
you yet?
/opt/qtsdk-2009.01/qt/lib/libQtGui.so: undefined reference to
`FcFreeTypeQueryFace'
collect2: ld returned 1 exit status
Someone’s got some ’splainin to do. Lucky for you, that’s me. Basically,
the people at fontconfig did not add this API call until 2.4.2. From
fontconfig’s ChangeLog 2.4.2:
commit 72ffe6536a6825a32095c8185aff836a12326ac5
Author: Keith Packard
Date: Sat Dec 2 13:22:27 2006 -0800
Add FcFreeTypeQueryFace external API. Bug #7311.
Expose ability to build an FcPattern directly from an FT_Face
object.
configure.in | 4 ++--
doc/fcfreetype.fncs | 17 +++++++++++++++-
fontconfig/fcfreetype.h | 6 ++++++
src/fcfreetype.c | 50 ++++++++++++++++++++++++++-----------------
----
4 files changed, 52 insertions(+), 25 deletions(-)
Problem is for us CentOS 5.2 users, we’re given a version 2.4.1-7 from
“upstream” It’s not a big deal, we can just compile fontconfig from
source
… wait, did I just say compile? No worries, it’s easy.
1. Compile fontconfig 2.4.2 from source
Note: Throughout this step, I used fontconfig 2.4.2 since this is the
minimum required version, but I tested this with the latest version 2.6.0
so just replace the version numbers accordingly if you choose to use 2.6.0.
[user@localhost ~]$ cd /usr/src
[user@localhost /usr/src]$ wget http://fontconfig.org/release/fontconfig-
2.4.2.tar.gz
[user@localhost /usr/src]$ tar -zxf fontconfig-2.4.2.tar.gz
[user@localhost /usr/src]$ cd fontconfig-2.4.2
[user@localhost /usr/src/fontconfig-2.4.2]$ ./configure --
prefix=/opt/fontconfig-2.4.2
... (note: 'configure' output omitted for brevity) ...
[user@localhost /usr/src/fontconfig-2.4.2]$ make
... (note: 'make' output omitted for brevity) ...
[user@localhost /usr/src/fontconfig-2.4.2]$ make install
... (note: 'make install' output omitted for brevity) ...
Note: I chose to install into /opt/fontconfig-2.4.2 since I like keeping my
“deviations” from upstream organized.
2. Add the fontconfig library location to your project’s .pro file
LIBS += -L/opt/fontconfig-2.4.2/lib
3. Recompile and that’s it!
Now I can’t guarantee you will not have any ‘make’ errors due to library
dependencies but I’m pretty sure that if you got as far as you did to
receive this error, you will have every *-devel package needed by
fontconfig already installed on your system.
This entry was posted on March 15, 2009 at 7:24 pm and is filed under
Development. Tagged: CentOS, Qt. You can follow any responses to this entry
through the RSS 2.0 feed. You can leave a response, or trackback from your
own site.
Original issue reported on code.google.com by [email protected]
on 25 Mar 2010 at 6:36
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.