Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8449805
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T10:48:36+00:00 2026-06-10T10:48:36+00:00

I am in the process of cross-compiling Fontconfig for Windows using Mingw-w64 (the host

  • 0

I am in the process of cross-compiling Fontconfig for Windows using Mingw-w64 (the host is Ubuntu 12.04 64-bit). The process consists of the following steps:

  1. Compile and install the build dependencies (Freetype and eXpat).

  2. Run ./configure:

    ./configure --host=i686-win64-mingw32 --prefix=/usr/i686-w64-mingw32
    
  3. The ./configure process completes without error and I run make:

    make
    
  4. Unfortunately something goes wrong here:

    ...
      CCLD   libfontconfig.la
    i686-w64-mingw32-gcc: error: /usr/i686-w64-mingw32/lib/libexpat.lib:
        No such file or directory
    

As you can see, libtool is looking for libexpat.lib for some strange reason (which doesn’t exist) instead of libexpat.a (which does exist).

What’s going on here?


Edit: to make things more confusing, these same steps work perfectly on Ubuntu 12.10 (Quantal). I have no clue why it’s failing on 12.04 (Precise). A diff of the output from the commands above yields no difference until the line containing the error above.


Further edit: I’ve extracted the raw command being run that generates the error:

/bin/bash ../libtool --silent --tag=CC --mode=link i686-w64-mingw32-gcc -O2 -ve
rsion-info 7:2:6 -no-undefined -export-symbols fontconfig.def -o libfontconfig.l
a -rpath /usr/i686-w64-mingw32/lib fcatomic.lo fcblanks.lo fccache.lo fccfg.lo 
fccharset.lo fcdbg.lo fcdefault.lo fcdir.lo fcformat.lo fcfreetype.lo fcfs.lo fc
init.lo fclang.lo fclist.lo fcmatch.lo fcmatrix.lo fcname.lo fcpat.lo fcserializ
e.lo fcstat.lo fcstr.lo fcxml.lo ftglue.lo -L/usr/i686-w64-mingw32/lib -lfreetyp
e -L/usr/i686-w64-mingw32/lib -lexpat

The call to i686-w64-mingw32-gcc becomes:

--------------------------------------------------------------------------------
i686-w64-mingw32-gcc -shared .libs/libfontconfig-1.dll.def .libs/fcatomic.o .lib
s/fcblanks.o .libs/fccache.o .libs/fccfg.o .libs/fccharset.o .libs/fcdbg.o .libs
/fcdefault.o .libs/fcdir.o .libs/fcformat.o .libs/fcfreetype.o .libs/fcfs.o .lib
s/fcinit.o .libs/fclang.o .libs/fclist.o .libs/fcmatch.o .libs/fcmatrix.o .libs/
fcname.o .libs/fcpat.o .libs/fcserialize.o .libs/fcstat.o .libs/fcstr.o .libs/fc
xml.o .libs/ftglue.o -L/usr/i686-w64-mingw32/lib /usr/i686-w64-mingw32/lib/libfr
eetype.dll.a /usr/i686-w64-mingw32/lib/libexpat.lib -O2 -o .libs/libfontconfig-1
.dll -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker .libs/libfontco
nfig.dll.a
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T10:48:37+00:00Added an answer on June 10, 2026 at 10:48 am

    So it turns out the problem wasn’t with Fontconfig at all but with eXpat. The environment used to build eXpat didn’t have Mingw-w64’s C++ compiler installed and for some reason that resulted in a file named libexpat.a instead of libexpat.dll.a.

    Once I retried the build with the g++-mingw-w64 Install g++-mingw-w64 package installed, it succeeded.

    Incidentally, the reason that the Quantal build succeeded while the Precise build failed is due to the fact that g++-mingw-w64 Install g++-mingw-w64 is not a dependency of mingw-w64 Install mingw-w64 on Precise but has become a dependency on Quantal.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm in the process of cross-compiling GTK+ 3.4.4 for Windows. I have already cross-compiled
I'm in the process of implementing a cross-platform (Mac OS X, Windows, and Linux)
Is there any way I can cross-compile C/C++ code for Windows (XP, Vista, Win7),
How do we create multi thread or process? For cross platform using C language?
I had a similar problem as the user posting at the following location: Cross-Process
I wrote a process explorer using C with GUI interface. I want to add
I'm currently working on a cross-platform mobile app and have gone through the process
I'm in the process of creating a small currency conversion script using the money.js
I'm trying to get Deleporter to do some cross process integration testing. The tests
I am in the process of writing a cross platform Swing based application in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.