Bug 26990 - [QT] [ARM] Add pkg-config entry for FontConfig on DRT.pro
Summary: [QT] [ARM] Add pkg-config entry for FontConfig on DRT.pro
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-06 07:59 PDT by Antonio Gomes
Modified: 2009-07-10 04:34 PDT (History)
1 user (show)

See Also:


Attachments
adds fc pkg-config entry into DRT.pro (1.10 KB, patch)
2009-07-06 08:11 PDT, Antonio Gomes
hausmann: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Antonio Gomes 2009-07-06 07:59:37 PDT
On my Linux desktop box for some reason I do not see this problem, but when cross compiling webkit for ARM, it complained about undefined references to FontConfig bits (see below)

(...)
make[1]: Entering directory `/home/root/webkit/WebKitBuild/Release/WebKitTools/DumpRenderTree/qt'
g++ -Wl,-O1 -Wl,-rpath,/home/root/webkit/WebKitBuild/Release/lib -Wl,-rpath,/usr/local/Trolltech/Qt-4.6.0/lib -o ../../../bin/DumpRenderTree WorkQueue.o DumpRenderTree.o main.o jsobjects.o testplugin.o moc_DumpRenderTree.o moc_jsobjects.o    -L/home/root/webkit/WebKitBuild/Release/lib -L/usr/lib -lQtWebKit -lQtGui -L/usr/lib -L/usr/X11R6/lib -lXext -lX11 -lQtCore -lm -lrt -ldl -lpthread
main.o: In function `main':
main.cpp:(.text+0x5c): undefined reference to `FcInit'
main.cpp:(.text+0x60): undefined reference to `FcConfigCreate'
main.cpp:(.text+0x1dc): undefined reference to `FcConfigParseAndLoad'
main.cpp:(.text+0x228): undefined reference to `FcConfigAppFontAddDir'
main.cpp:(.text+0x23c): undefined reference to `FcConfigSetCurrent'
collect2: ld returned 1 exit status
make[1]: *** [../../../bin/DumpRenderTree] Error 1
make[1]: Leaving directory `/home/root/webkit/WebKitBuild/Release/WebKitTools/DumpRenderTree/qt'
make: *** [sub-WebKitTools-DumpRenderTree-qt-DumpRenderTree-pro-make_default-ordered] Error 2
(...)

which is kinda of expected error since there is not pkg-config entry for fontconfig in DumpRenderTree.pro file.

patch coming
Comment 1 Antonio Gomes 2009-07-06 08:11:40 PDT
Created attachment 32306 [details]
adds fc pkg-config entry into DRT.pro
Comment 2 Simon Hausmann 2009-07-10 04:32:44 PDT
Comment on attachment 32306 [details]
adds fc pkg-config entry into DRT.pro

r=me
Comment 3 Simon Hausmann 2009-07-10 04:34:23 PDT
Committing to http://svn.webkit.org/repository/webkit/trunk ...
	M	WebKitTools/ChangeLog
	M	WebKitTools/DumpRenderTree/qt/DumpRenderTree.pro
Committed r45705
	M	WebKitTools/DumpRenderTree/qt/DumpRenderTree.pro
	M	WebKitTools/ChangeLog
r45705 = 3522842c3e09b699ab9618de7aa3d8edf8b793f1 (git-svn)
No changes between current HEAD and refs/remotes/git-svn
Resetting to the latest refs/remotes/git-svn
http://trac.webkit.org/changeset/45705