[Scribus] Compiling lprof

Atlantic Tech Solutions tech
Wed Aug 20 05:46:11 CEST 2003


On Tue, 2003-08-19 at 19:03, mpdickens at tlanta.com wrote:
> Hello!
> 
> I've downloaded lprof and am having some problems getting it to compile 
> on Linux (I've tried Redhat and Mandrake....). Anyway, I've figured the 
> UIC=$(QTDIR) thing out, but now I've got problems with liblcms. 
> Basically, the compile complains about lcmsprf.h not being present
> 
> I thought I would ask and see if anybody on the list has already figured 
> this out before I start hacking at the make file. Any and all help is 
> appreciated.
> 
> I would really like to tune the color on the systems we use Scribus on. 
> But, the prerequiste is a working lprof tool kit.....
> 
> 
> Best regards
> 
> Marvin Dickens
> Alpharetta, Georgia
> 
Hints for compiling the profilers. I have compiled these dozens of times
on RH 8 (trying to built RH RPMS for Scribus users) and cannot remember
problems on RH 9. 

Get the latest lcms beta: http://www.littlecms.com/lcms-1.11.tar.gz It
has fixes which directly benefit Scribus now and I have had zero
stability problems. 

lcms 1.11 now uses autoconf. 

export CFLAGS="-march= -mmmx or msse or msse2 -O2" && export
CXXFLAGS="-march= -mmmx or -msse or -msse2 -O2" 

-mmmx or -msse or -msse2 speed up some of the math functions

-mmmx=i686 or pentium2

-msse=pentium3

-msse2=pentium4

*The last two options are only for GCC 3.2+

then:

 ./configure --enable-integer-arithmetic && make && make check ** 

** This is to benefit Scribus when applying or changing profiles. Good
for about at 30-40% speed boost. This will be the default in the final
package. 

lcms 1.11 also includes a python module which can be built..but it will
not build on RH until Marti Maria adds my fixes for the makefiles. 

lcms 1.11 also has Black Point Compensation a la PS6+ which helps to
balance colors in RGB-CMYK transforms among other benefits. It is still
"experimental", but it seems to work as intended. 

I will have RH 8/9 RPMS for 1.11 as soon as Marti releases the final.

Now for the profilers:


I have found it better to go into each of the directories and hand edit
all of the makefiles to set compiler flags ex: -O2 -march= -mmmx etc, as
above as well as explicitly list the qt include directories. Just a
couple of minutes work. 

Note also, the makefiles look for -lqt or libqt.so which might be a
missing symbolic link to libqt-mt.so You may need to add this to
wherever you have the Qt libs. 

That said, I have compiled these "out of the box" using the defaults
just untarring the source and entering $ make. 

The missing lcmsprf.h is actually in the /include in the source tarball.
Unless you have modified the top level include directory it should find
it. I just looked at the makefiles and there is a pointer to this
include directory.

Background: The profilers were primarily developed on Windows and my
guess only Suse, judging from the makefiles. Hence -O4 in the cflags. 

Marti has mentioned work is ongoing for an improved version of the
profilers, probably to be released sometime after 1.11 is done.

The monitor profiler and scanner profiler work very well. The monitor
profiler is at least as accurate, if not more, than Adove Gamma is you
are familiar with it. 

Hope that helps. The above will be added to the docs pretty soon. 

Peter




More information about the scribus mailing list