RE: [Lcms-user] testcms fails with Error #12288; Bad file format
An ICC-based CMM for color management
Brought to you by:
mm2
From: Jonathan W. <JW...@mm...> - 2001-06-19 12:30:59
|
Marti, Thanks for the quick reply but unfortunately it didn't solve the problem. I re-downloaded the .tar.gz file from the lcms website (filesize 242443 bytes) just in case. I believe Alphas are little endian but I tried with the big endian toggle anyway and it gave exactly the same error output. I also tried using the makefile instead of install.gcc, again with and without the big endian toggle, and I always get the same error message. Using the makefile means I compile with the bundled 'cc' compiler rather than gcc. I also tried 'USE_FLOAT' rather than 'USE_C' (leaving big endian NOT defined) without any success. Any further thoughts? Jonathan. =3D=3D=3D=3D=3D Original Message from MAIL@INTERNET (Mart=ED Maria) {ma...@li...} at 19/06/01 17:59 >Hi, > >Is this machine big endian? If so... is the USE_BIG_ENDIAN >toggle on lcms.h set? Do you have tried makefile? > >Seems like math is working, but the profile reading fails, assure >file lcmslabi.icm is not corrupted.. but i guess all comes from >endian stuff. > >Hope this helps >Mart=ED. > > >----- Original Message ----- >From: "Jonathan Wall" <JW...@mm...> >To: <lcm...@li...> >Sent: Tuesday, June 19, 2001 8:03 AM >Subject: [Lcms-user] testcms fails with Error #12288; Bad file format > > >> Hi there, >> >> I am using a DEC Alpha with Digital Unix 4.0D and gcc 2.95.3. I have >> compiled lcms with the lcms-1.07.tar.gz distribution using a modified >> install.gcc script. No other files have been changed. The script is: >> >> echo '*********************************************************** ' >> echo 'This is really simple... No autoconf, no make, just build ' >> echo 'by brute force the static liblcms.a library and place it ' >> echo 'on /usr/lib and icc34.h, lcms.h on /usr/include. ' >> echo 'You should take a look on lcms.h to set toggles properly ' >> echo 'before running this dumb script! ' >> echo '*********************************************************** ' >> echo 'Wait ...' >> cd src >> gcc -g -O2 -c *.c >> ar cru liblcms.a *.o >> BASEDIR=3D/usr/disk1/system/software/apps >> cp liblcms.a $BASEDIR/lib >> cp lcms.h $BASEDIR/include >> cp icc34.h $BASEDIR/include >> ranlib $BASEDIR/lib/liblcms.a >> cd .. >> echo 'Building testbed...' >> cd testbed >> gcc -I../src -g -O2 testcms.c $BASEDIR/lib/liblcms.a -o testcms -lm >> echo 'done!' >> >> The compilation completes sucessfully (as far as I can tell) but when I >run >> the testcms program I get the following output: >> >> little cms testbed. ver 1.2 build Jun 19 2001 12:04:02 >> >> Testing fixed point: 2.8848960205 =3D 2.8848 >> 0.437499269828536 =3D 0.4375 >> Testing fixed scaling...Ok! >> Testing linear interpolation ...Ok! 1349946 tics >> Testing descending tables (linear interpolation) ...Ok! >> Emulating sRGB from primaries & White point: >> >> sRGB final matrix is: >> [ 0.436066 0.385147 0.143066 ] >> [ 0.222488 0.716873 0.060608 ] >> [ 0.013916 0.097076 0.714096 ] >> >> lcms calculated matrix is: >> [ 0.436066 0.385114 0.143105 ] >> [ 0.222493 0.716923 0.060627 ] >> [ 0.0139346 0.0970567 0.714108 ] >> >> Testing CIELab conversion: >> lcms: Error #12288; Bad file format >> >> What is the problem here? Hopefully someone can provide an explanation. >> >> Thanks in advance, >> >> Jonathan. >> >> >> >> J.M.Wall, Engineer, CFD Simulation Group. >> >> Mott MacDonald Limited >> Registered in England No. 1243967 >> Registered office St Anne House >> Wellesley Road, Croydon CR9 2UL >> Tel: +44 (0)20 8774 2382 >> Fax: +44 (0)20 8681 5706 >> Email: jw...@mm... >> >> >> _______________________________________________ >> Lcms-user mailing list >> Lcm...@li... >> http://lists.sourceforge.net/lists/listinfo/lcms-user >> >> J.M.Wall, Engineer, CFD Simulation Group. Mott MacDonald Limited Registered in England No. 1243967 Registered office St Anne House Wellesley Road, Croydon CR9 2UL Tel: +44 (0)20 8774 2382 Fax: +44 (0)20 8681 5706 Email: jw...@mm... |