Unable to compile IM Windows in StaticST mode

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
markmarques
Posts: 88
Joined: 2010-06-29T14:36:09-07:00
Authentication code: 8675308

Unable to compile IM Windows in StaticST mode

Post by markmarques »

using the latest windows source file
----
2011-04-30 6.6.9-7 Cristy <quetzlzacatenango@image...>
* New version 6.6.9-7.
---
Trying to compile with HDRI enabled and Quantum 32 :
defined in the magick-config.h file ...
I am trying to compile a Static version with the previous settings and I get this :

Error 126 fatal error C1057: unexpected end of file in macro expansion d:\ImageMagick-source\coders\png.c 5805

I tried to check all the function definitions in that line but with No Success ...

Of course several other errors appear :
Error 294 fatal error LNK1181: cannot open input file '..\lib\core_db_coders_.lib' UTIL_compare
due to the preivous one...

Previous versions did not have such problems ...
Any comments ?
Last edited by markmarques on 2011-06-14T09:34:41-07:00, edited 2 times in total.
markmarques
Posts: 88
Joined: 2010-06-29T14:36:09-07:00
Authentication code: 8675308

Re: unable to compile IM Windows - Errors in png.c (VS2005)

Post by markmarques »

Update:
Solved the png.c file problem but now I get this error for each exe:

error LNK2019: unresolved external symbol _RegisterAAIImage referenced in function _RegisterStaticModules core_db_magick_.lib
error LNK2019: unresolved external symbol _RegisterHDRImage referenced in function _RegisterStaticModules core_db_magick_.lib
error LNK2019: unresolved external symbol _UnregisterAAIImage referenced in function _UnregisterStaticModules core_db_magick_.lib
error LNK2019: unresolved external symbol _UnregisterHDRImage referenced in function _UnregisterStaticModules core_db_magick_.lib
fatal error LNK1120: 4 unresolved externals d:\ImageMagick-source\VisualMagick\bin\convert.exe 1

This time the "go to definition" on error does no work ... :(

Downloaded the latest windows source zip frmo the FTP 05 05 2011 ... 6.6.9-8 version

Any ideas ?
markmarques
Posts: 88
Joined: 2010-06-29T14:36:09-07:00
Authentication code: 8675308

Re: Unable to compile IM Windows

Post by markmarques »

Just to report that I am still unable to compile the IM due to the previous post error ...

Trying to compile from the windows source code in
2011-05-15 6.6.9-9

If I define :
MAGICKCORE_QUANTUM_DEPTH = 32


I get those errors:
error LNK2019: unresolved external symbol _RegisterHDRImage referenced in function _RegisterStaticModules core_db_magick_.lib
error LNK2019: unresolved external symbol _RegisterAAIImage referenced in function _RegisterStaticModules core_db_magick_.lib

Any ideas how to solve those errors ?
markmarques
Posts: 88
Joined: 2010-06-29T14:36:09-07:00
Authentication code: 8675308

Re: Unable to compile IM Windows

Post by markmarques »

Still unable to compile IM in Windows ...
using the 6.7.0-5 2011-06-07 source version

and flag : MAGICKCORE_QUANTUM_DEPTH = 32

Even If disable the MAGICK_HDRI define flag I still keep getting :
error LNK2019: unresolved external symbol _RegisterHDRImage referenced in function _RegisterStaticModules core_db_magick_.lib

Does anyone knows what is happening ?
How can I solve this external reference problem ?
markmarques
Posts: 88
Joined: 2010-06-29T14:36:09-07:00
Authentication code: 8675308

Re: Unable to compile IM Windows in StaticST mode

Post by markmarques »

After I some fiddling with the source code I noticed this:
Only after I installed the Windows binary 6.7.0-7 version and decompressed the correct source version
I was enable to compile the latest version.

Although further test should be done I suppose that something ( dll , variable , link dependency ) is activated only with the binary install....

So now I can compile the DynamicMT with HDRI and Quantum = 32 withou any problems....

Any ideas ?
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Unable to compile IM Windows in StaticST mode

Post by anthony »

It is great when the user answers his own question, but also reports it. :-)
Kudos to markmarques
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply