Trying to build pecl/haru on Windows.

[email protected] (Richard Quadling)
Newsgroups php.internals.win
Message-ID <[email protected]>
Hi.

I'm trying to build pecl/haru for windows.

My working config.nice.bat is ...

cscript /nologo configure.js  "--disable-zts" "--enable-bbcode=shared"
"--enable-debug-pack" "--enable-win32service=shared"
"--with-imagick=shared" %*


If I add ...

--with-haru=shared

then I get unresolved errors.

C:\php-sdk\php_53dev\vc9\x86\PHP_5_3>nmake

Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.

EXT gd build complete
EXT bbcode build complete
   Creating library Release\php_haru.lib and object Release\php_haru.exp
haru.obj : error LNK2019: unresolved external symbol _HPDF_Free
referenced in function _php_harudoc_dtor
haru.obj : error LNK2019: unresolved external symbol _HPDF_CheckError
referenced in function _php_haru_check_error

[SNIPPED]

haru.obj : error LNK2019: unresolved external symbol
_HPDF_Outline_SetOpened referenced in function
_zim_HaruOutline_setOpened
haru.obj : error LNK2019: unresolved external symbol
_HPDF_Outline_SetDestination referenced in function
_zim_HaruOutline_setDestination
Release\php_haru.dll : fatal error LNK1120: 172 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
9.0\VC\Bin\cl.exe"' : return code '0x2'
Stop.





My configure output is ...

C:\php-sdk\php_53dev\vc9\x86\PHP_5_3>configure --disable-zts
--enable-bbcode=shared --enable-crt-debug --enable-debug-pack
--enable-win32service=shared --with-imagick=shared  --with-haru=shared
Saving configure options to config.nice.bat
Checking for cl.exe ...  <in default path>
  Detected compiler MSVC9 (Visual C++ 2008)
  Detected 32-bit compiler
Checking for link.exe ...  C:\Program Files\Microsoft Visual Studio 9.0\VC\Bin
Checking for nmake.exe ...  <in default path>
Checking for lib.exe ...  <in default path>
Checking for bison.exe ...  <in default path>
Checking for re2c.exe ...  <in default path>
  Detected re2c version 0.13.5
Checking for zip.exe ...  <in default path>
Checking for lemon.exe ...  <not found>
Checking for mc.exe ...  C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin
Checking for mt.exe ...  C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin

Build dir: Release
PHP Core:  php5.dll and php5.lib

Checking for wspiapi.h ...  <in default path>
Enabling IPv6 support
Checking for NewAPIs.h ...  <not found>
Checking for NewAPIs.h ...  <not found>
Enabling SAPI sapi\cgi
Enabling SAPI sapi\cli
Enabling extension ext\bcmath
Enabling extension ext\calendar
Checking for library oleaut32.lib ... <in LIB path> OleAut32.Lib
Enabling extension ext\com_dotnet
Checking for mscoree.h ...  <in default path>
Enabling extension ext\ctype
Enabling extension ext\date
Enabling extension ext\ereg
Enabling extension ext\filter
Enabling extension ext\ftp
Checking for library libjpeg_a.lib;libjpeg.lib ... ..\deps\lib\libjpeg_a.lib
Checking for library freetype_a.lib;freetype.lib ... ..\deps\lib\freetype_a.lib
Checking for library libpng_a.lib;libpng.lib ... ..\deps\lib\libpng_a.lib
Checking for gd.h ...  ext\gd\libgd
Checking for png.h ...  C:\php-sdk\php_53dev\vc9\x86\deps\include\libpng12
Checking for library libiconv_a.lib;libiconv.llib ... ..\deps\lib\libiconv_a.lib
Checking for iconv.h ...  C:\php-sdk\php_53dev\vc9\x86\deps\include
Checking for library T1_StaticMD.lib ... <not found>
WARNING: t1lib not enabled; libraries and headers not found

Checking for library User32.lib ... <in LIB path> User32.Lib
Checking for library Gdi32.lib ... <in LIB path> Gdi32.Lib
Enabling extension ext\gd [shared]
Enabling extension ext\hash
Checking for library libiconv_a.lib ... ..\deps\lib\libiconv_a.lib
Checking for iconv.h ...  C:\php-sdk\php_53dev\vc9\x86\deps\include
Enabling extension ext\iconv
Enabling extension ext\json
Checking for library ws2_32.lib ... <in LIB path> WS2_32.Lib
Enabling extension ext\mysqlnd
Checking for library odbc32.lib ... <in LIB path> odbc32.lib
Checking for library odbccp32.lib ... <in LIB path> odbccp32.lib
Checking for sql.h ...  <in default path>
Checking for sqlext.h ...  <in default path>
Enabling extension ext\odbc
Enabling extension ext\pcre
Enabling extension ext\reflection
Enabling extension ext\session
Enabling extension ext\spl
Checking for timelib_config.h ...  ext/date/lib
Enabling extension ext\standard
Enabling extension ext\tokenizer
Checking for zlib.h ...  C:\php-sdk\php_53dev\vc9\x86\deps\include
Enabling extension ext\zip
Checking for library zlib_a.lib;zlib.lib ... ..\deps\lib\zlib_a.lib
Checking for zlib.h ...  C:\php-sdk\php_53dev\vc9\x86\deps\include
Enabling extension ext\zlib
Enabling extension ..\pecl\bbcode [shared]
Checking for library libhpdf.lib ... ..\deps\lib\libhpdf.lib
Checking for library libpng.lib ... ..\deps\lib\libpng.lib
Checking for library zlib.lib ... ..\deps\lib\zlib.lib
Checking for hpdf.h ...  C:\php-sdk\php_53dev\vc9\x86\deps\include\libharu
Enabling extension ..\pecl\haru [shared]
Checking for wand/MagickWand.h ...  C:\php-sdk\php_53dev\vc9\x86\deps\include
Checking for library CORE_RL_wand_.lib ... ..\deps\lib\CORE_RL_wand_.lib
Checking for library CORE_RL_magick_.lib ... ..\deps\lib\CORE_RL_magick_.lib
Enabling extension ..\pecl\imagick [shared]
Enabling extension ..\pecl\win32service [shared]
Checking for library libxml2_a_dll.lib;libxml2_a.lib ...
..\deps\lib\libxml2_a_dll.lib
Checking for library libiconv_a.lib;iconv_a.lib;libiconv.lib;iconv.lib
... ..\deps\lib\libiconv_a.lib
Checking for libxml/parser.h ...  C:\php-sdk\php_53dev\vc9\x86\deps\include
Enabling extension ext\libxml
Enabling extension ext\dom
Enabling extension ext\phar
        Native OpenSSL support in Phar disabled
Enabling extension ext\simplexml
Enabling extension ext\wddx
Checking for timelib_config.h ...  ext/date/lib
Enabling extension ext\xml
Enabling extension ext\xmlreader
Checking for libxml/xmlwriter.h ...  C:\php-sdk\php_53dev\vc9\x86\deps\include
Enabling extension ext\xmlwriter

Creating build dirs...
Generating files...
Generating Makefile
Generating main/internal_functions.c
        [content unchanged; skipping]
Generating main/config.w32.h
Done.



Enabled extensions:
-------------------------
| Extension    | Mode   |
-------------------------
| bbcode       | shared |
| bcmath       | static |
| calendar     | static |
| com_dotnet   | static |
| ctype        | static |
| date         | static |
| dom          | static |
| ereg         | static |
| filter       | static |
| ftp          | static |
| gd           | shared |
| haru         | shared |
| hash         | static |
| iconv        | static |
| imagick      | shared |
| json         | static |
| libxml       | static |
| mysqlnd      | static |
| odbc         | static |
| pcre         | static |
| phar         | static |
| reflection   | static |
| session      | static |
| simplexml    | static |
| spl          | static |
| standard     | static |
| tokenizer    | static |
| wddx         | static |
| win32service | shared |
| xml          | static |
| xmlreader    | static |
| xmlwriter    | static |
| zip          | static |
| zlib         | static |
-------------------------


Enabled SAPI:
-------------
| Sapi Name |
-------------
| cgi       |
| cli       |
-------------


-------------------------------------------
|               |                         |
-------------------------------------------
| Build type    | Release                 |
| Thread Safety | No                      |
| Compiler      | MSVC9 (Visual C++ 2008) |
| Architecture  | x86                     |
-------------------------------------------


Type 'nmake' to build PHP




I'm using libhpdf.dll and libhpdf.lib from libharu_2_0_8_win32 from
http://libharu.org/wiki/Downloads

Everything is as would expect and is as I have done in the past.

So. A little lost.

Any ideas please?

Regards,

Richard Quadling.




-- 
-----
Richard Quadling
"Standing on the shoulders of some very clever giants!"
EE : http://www.experts-exchange.com/M_248814.html
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
ZOPA : http://uk.zopa.com/member/RQuadling
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.