Re: cmake: stray ‘@’ in program

Bob Friesenhahn <[email protected]> Thu, 23 Jul 2020 20:18:34 -0500 (CDT)
Newsgroups gmane.comp.video.graphicsmagick.help
Message-ID <[email protected]>
On Thu, 23 Jul 2020, Pro Turm wrote:

> I switch my build generator from qmake to cmake. mailto:[email protected]
>
> For some reaseon, cmake does / doesnt something which produces the following
> magick_types.h:95:11: error: stray ‘@’ in program
>
> typedef @INT8_T@ magick_int8_t;
>
> I use the same sources as qmake. So GM should be installed / configured correctly. Do I have to consider something else with cmake ?

Please remind me.  I am assuming that you are using Microsoft Windows? 
Or are you using Linux or some other Unix type system?

If using Microsoft Windows, then I see that the magick/magick_types.h 
header reacts to the definitions WIN32 and/or WIN64.  If one (or both) 
of these was not defined, then the magick_config.h file should have 
been produced by Unix-style 'configure' (from Autoconf) since 
substitutions would have been performed on it.  Without the 
substitutions there are in indeed '@' characters.

For the Visual Studio builds there is a different 
VisualMagick/magick/magick_types.h.in file which becomes 
VisualMagick/magick/magick_types.h after running 'configure.exe'.

So, one can see that there is actually more than one magick_types.h 
file and one of them does have '@' in the original which would be used 
if WIN32 and/or WIN64 is not defined.  However, when configure is used 
the '@foo@' type values are substituted with appropriate values.

Bob
-- 
Bob Friesenhahn
[email protected], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
Public Key,     http://www.simplesystems.org/users/bfriesen/public-key.txt

_______________________________________________
Graphicsmagick-help mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/graphicsmagick-help