[gs-devel] Re: muPDF link failure
Pranay Pramod
pranay.pramod at gmail.com
Tue Jul 10 19:53:25 PDT 2007
Thanks Ralph!
I have been able to compile the source of Fitz muPDF.
However, when i execute the install command (as per ReadMe intruction) -
jam install
am getting this:
--------------------------
Compiler is GCC with Mingw
Building RELEASE target
don't know how to make PUBLIC
don't know how to make CHANGES
...found 354 target(s)...
...can't find 2 target(s)...
...can't make 2 target(s)...
...skipped <installed>PUBLIC for lack of PUBLIC...
...skipped <installed>CHANGES for lack of CHANGES...
...skipped 2 target(s)...
----------------------------
The Jamfile has
===============
SubDir TOP ;
InstallFile $(BINDIR) : PUBLIC ;
InstallFile $(BINDIR) : CHANGES ;
SubInclude TOP base ;
SubInclude TOP stream ;
SubInclude TOP world ;
SubInclude TOP raster ;
SubInclude TOP fonts ;
SubInclude TOP mupdf ;
SubInclude TOP apps ;
===================
Looks like a trivial issue, but please suggest me what should I do.
Thanks again!
Pranay
On 7/10/07, Pranay Pramod <pranay.pramod at gmail.com> wrote:
>
> I was getting most of the errors because of misplaced library headers.
> Now, however, I still have three targets failing while linking...
>
> ----------------------------------------------------------------
> Compiler is GCC with Mingw
> Building RELEASE target
> ...found 352 target(s)...
> ...updating 3 target(s)...
> Link build\release\pdftool.exe
>
> gcc -o build\release\pdftool.exe build\release\pdftool.o
> build\release\libmupdf.a build\release\libfonts.a build\release\libraster.a
> build\release\libworld.a build\release\libstream.a build\release\libbase.a
> -Lc:/msys/1.0/local/lib -lfreetype -ljpeg -lz -lm
>
> ...failed Link build\release\pdftool.exe ...
> Link build\release\apparition.exe
>
> gcc -o build\release\apparition.exe build\release\winmain.o
> build\release\winres.o build\release\libpdfapp.a build\release\libmupdf.a
> build\release\libfonts.a build\release\libraster.a build\release\libworld.a
> build\release\libstream.a build\release\libbase.a -Lc:/msys/1.0/local/lib
> -lfreetype -ljpeg -lz -lm -lgdi32 -lcomdlg32 -mwindows
>
> ...failed Link build\release\apparition.exe ...
> Link build\release\npmupdf.dll
>
> gcc -shared -Wl,--kill-at -o build\release\npmupdf.dll
> build\release\npwin.o build\release\moz_winres.o build\release\moz_main.o
> build\release\libmupdf.a build\release\libfonts.a build\release\libraster.a
> build\release\libworld.a build\release\libstream.a build\release\libbase.a
> -Lc:/msys/1.0/local/lib -lfreetype -ljpeg -lz -lm -lgdi32
>
> ...failed Link build\release\npmupdf.dll ...
> ...failed updating 3 target(s)...
>
> c:\mingw\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe:
> cannot find -lfreetype
> collect2: ld returned 1 exit status
> c:\mingw\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe:
> cannot find -lfreetype
> collect2: ld returned 1 exit status
> c:\mingw\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe:
> cannot find -lfreetype
> collect2: ld returned 1 exit status
>
> -----------------------------------------------------------------
> my Jamrule says
>
> if $(OS) = MINGW
> {
> FREETYPECC ?= -Ic:/msys/1.0/local/include -Ic:/msys/1.0/local/include/freetype2 ;
>
>
> FREETYPELD ?= -Lc:/msys/1.0/local/lib -lfreetype ;
> }
>
> FREETYPECC ?= "`freetype-config --cflags`" ;
> FREETYPELD ?= "`freetype-config --libs`" ;
>
> where do i look for this missing -lfreetype??
> please guide me.
> Thanks!
> Pranay
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ghostscript.com/pipermail/gs-devel/attachments/20070710/44dffd31/attachment-0002.htm
More information about the gs-devel
mailing list