Hi,

It seems latest versions of SWIG does handle things differently.
Just substitute SWIGTYPE_LPGAMMATABLE by
SWIGTYPE_p_GAMMATABLE in the lcms.i file.

I'm commiting this fix to the CVS.
Regards,
--
Marti Maria
The littlecms project.
www.littlecms.com


----- Original Message ----- From: "Randy McMurchy" <[EMAIL PROTECTED]>
To: <lcms-user@lists.sourceforge.net>
Sent: Thursday, April 14, 2005 5:29 PM
Subject: [Lcms-user] SWIG/Python compilation error



Hi all,

I'm trying to compile the LCMS package but it is stumbling trying
to build the SWIG/Python module. Here is the relevant lines giving
problems from the lcms.i file (which is used to autogenerate the
lcms_wrap.cxx source)

if ((SWIG_ConvertPtr(tmp[0], (void **) &gamma[0], SWIGTYPE_LPGAMMATABLE,1)) == -1) return NULL;
if ((SWIG_ConvertPtr(tmp[1], (void **) &gamma[1], SWIGTYPE_LPGAMMATABLE,1)) == -1) return NULL;
if ((SWIG_ConvertPtr(tmp[2], (void **) &gamma[2], SWIGTYPE_LPGAMMATABLE,1)) == -1) return NULL;


This code in the lcms.i file produces identical lines in lcms_wrap.cxx
(in two places) which is actually used during compilation.

Compilation fails with this message:

lcms_wrap.cxx:8731: error: `SWIGTYPE_LPGAMMATABLE' undeclared (first use this function)

Though it seems that declaring this identifier should be easy
enough, I'm so weak on c++ that I'm not sure what to do, especially
since the c++ code is autogenerated from SWIG source.

Anyone have any pointers or tips on how I could patch the SWIG source
so that the SWIGTYPE_LPGAMMATABLE identifier would be declared.

Here's pertinent details:

GCC-3.4.3
SWIG-1.3.24
Python-2.4.1
LCMS-1.14

Thanks in advance for any help on this subject.

--
Randy

rmlscsi: [GNU ld version 2.15.94.0.2 20041220] [gcc (GCC) 3.4.3]
[GNU C Library stable release version 2.3.4] [Linux 2.6.10 i686]
10:24:01 up 12 days, 9:57, 3 users, load average: 0.63, 0.35, 0.15


------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Lcms-user mailing list Lcms-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lcms-user



--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.16 - Release Date: 18/04/2005





-- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.9.18 - Release Date: 19/04/2005



-------------------------------------------------------
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
_______________________________________________
Lcms-user mailing list
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user

Reply via email to