Skip to contentSkip to conversation

New: libXfont and libXft building failed, cross-compilation error

Buildroot bugzilla at busybox.net 1 participant 10 messages Dec 10, 2011 – Jan 31, 2012

lore
Share & tools
lore
#0 lore raw

https://bugs.busybox.net/show_bug.cgi?id=4592

Summary: libXfont and libXft building failed, cross-compilation
error
Product: buildroot
Version: 2011.11
Platform: PC
OS/Version: Linux
Status: NEW
Severity: minor
Priority: P5
Component: Other
AssignedTo: unassigned at buildroot.uclibc.org
ReportedBy: marioabajo at gmail.com
CC: buildroot at uclibc.org
Estimated Hours: 0.0

Hi :)
I was getting this type of errors when building an arm images with Xorg:

  CC     xftswap.lo
  CC     xftxlfd.lo
  CCLD   libXft.la

/usr/lib/libfreetype.so: file not recognized: File format not recognized
collect2: ld returned 1 exit status
make[3]: *** [libXft.la] Error 1

I was able to correct the problem adding this line to the package definition file xlib_libXfont.mk:
XLIB_LIBXFONT_CONF_ENV = FREETYPE_LIBS=$(STAGING_DIR)/usr/lib

and also to xlib_libXft.mk:
XLIB_LIBXFT_CONF_ENV = FREETYPE_LIBS=$(STAGING_DIR)/usr/lib

Thanks a lot for this great piece of software.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#1 lore raw

[Buildroot] [Bug 4592] libXfont and libXft building failed, cross-compilation error

https://bugs.busybox.net/show_bug.cgi?id=4592

Peter Korsgaard <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED

--- Comment #1 from Peter Korsgaard <[email protected]> 2011-12-11 21:53:05 UTC --- Sorry, I cannot reproduce it here. Please provide some more details:

- What is your exact .config?
- Do you have freetype development headers/libs on your host?
- libXft uses pkg-config to find freetype, and freetype depends on host-pkg-config, so that should be fine. Could you please attach your output/build/xlib_libXft-2.1.14/config.log file?

Thanks.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#2 lore raw

[Buildroot] [Bug 4592] libXfont and libXft building failed, cross-compilation error

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=4592

--- Comment #2 from Mario <[email protected]> 2011-12-12 09:17:01 UTC --- Created attachment 3878
--> https://bugs.busybox.net/attachment.cgi?id=3878
.config file of the buildroot

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#3 lore raw

[Buildroot] [Bug 4592] libXfont and libXft building failed, cross-compilation error

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=4592

--- Comment #3 from Mario <[email protected]> 2011-12-12 09:17:36 UTC --- Created attachment 3884
--> https://bugs.busybox.net/attachment.cgi?id=3884
config.log of the xlib_libXfont package

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#4 lore raw

[Buildroot] [Bug 4592] libXfont and libXft building failed, cross-compilation error

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=4592

--- Comment #4 from Mario <[email protected]> 2011-12-12 09:17:56 UTC --- Created attachment 3890
--> https://bugs.busybox.net/attachment.cgi?id=3890
config.log of the xlib_libXft package

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#5 lore raw

[Buildroot] [Bug 4592] libXfont and libXft building failed, cross-compilation error

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=4592

--- Comment #5 from Mario <[email protected]> 2011-12-12 09:18:21 UTC --- Sorry for the lack of details in the first mail. I'm attaching the .config file. For building i'm using a work station with debian squeeze and i have the development files of libfreetype installed:

turin at cronos:~$ dpkg -l libfreetype6-dev
Desired=Unknown/Install/Remove/Purge/Hold

| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                         Version                      Description

+++-============================-============================-========================================================================
ii libfreetype6-dev 2.4.4-1~bpo60+1 FreeType 2 font
engine, development files

I'm also attaching the config.log files of libXft and libXfont packages. Thanks.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#6 lore raw

[Buildroot] [Bug 4592] libXfont and libXft building failed, cross-compilation error

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=4592

--- Comment #6 from Mario <[email protected]> 2011-12-12 09:19:10 UTC --- Hello,
I was getting similar errors with other packages and i start investigating in other direction when i found the LD_LIBRARY_PATH pointing at /usr/lib . Pointing that env variable to /home/turin/proyectos/mini2440/buildroot/buildroot-2011.11/output/host/usr/lib made the building process without errors. My computer is still compilling, so when it finish y will try to restart the building with a clean LD_LIBRARY_PATH variable to see if this was the problem.
Thanks :)

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#7 lore raw

[Buildroot] [Bug 4592] libXfont and libXft building failed, cross-compilation error

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=4592

--- Comment #7 from Peter Korsgaard <[email protected]> 2011-12-12 09:31:31 UTC --- (In reply to comment #6)

Quoted 7 lines

I was getting similar errors with other packages and i start investigating in other direction when i found the LD_LIBRARY_PATH pointing at /usr/lib . Pointing that env variable to /home/turin/proyectos/mini2440/buildroot/buildroot-2011.11/output/host/usr/lib made the building process without errors. My computer is still compilling, so when it finish y will try to restart the building with a clean LD_LIBRARY_PATH variable to see if this was the problem.

LD_LIBRARY_PATH can indeed screw up stuff. Normally it shouldn't be needed for a location like /usr/lib, so I suggest you delete rather than pointing to your buildroot dir (we already use rpath, so it shouldn't be needed for buildroot either).

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#8 lore raw

[Buildroot] [Bug 4592] libXfont and libXft building failed, cross-compilation error

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=4592

--- Comment #8 from Mario <[email protected]> 2011-12-12 12:16:28 UTC --- Hi,
Ok, setting LD_LIBRARY_PATH to none solves the problems. I,m sorry for the inconveniences. Maybe a note in the FAQ about this would be fine. Thanks for everything :)

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#9 lore raw

[Buildroot] [Bug 4592] libXfont and libXft building failed, cross-compilation error

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=4592

Thomas Petazzoni <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |WORKSFORME

--- Comment #9 from Thomas Petazzoni <[email protected]> 2012-01-31 19:57:10 UTC --- User has said that the problem was solved, and was on his side. Closing the
bug.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.