Sunday, October 28, 2007

Compiling ArgyllCMS on Ubuntu 7.10 Gutsy Gibbon

That's my log of what I had to do to build ArgyllCMS 0.7b7 from source on my laptop with Ubuntu 7.10.
  1. add yourself to the src group
    # sudo vim /etc/group
    change the line
    src:x:40:
    to
    src:x:40:yourusername
    note that yourusername is just a placeholder for your Ubuntu username
  2. install the jam build tool - use FTJam
    # sudo apt-get install ftjam
  3. install the X11 XVidMode development package
    # sudo apt-get install libxxf86vm-dev
  4. create a directory for Argyll in /usr/src , e.g.
    # mkdir argyllcms
    and enter it
    # cd argyllcms
  5. download latest Argyll version (use a beta version if available)
    # wget http://www.argyllcms.com/argyllV0.70Beta7_src.zip
    Always watch out on the Argyll website (http://www.argyllcms.com) what the latest version is and exchange the name in the above command
  6. unzip the downloaded file - watch out: there's no folder created and the content is extracted into your current directory!
    # unzip argyllV0.70Beta7_src.zip
  7. Run the build script
    # sh makeall.ksh
Now you should have your own Argyll binaries in the respective subfolders.

9 comments:

Hubert said...

Why do you need to create a /usr/src and a src group?

You can just compile argylle in your home directory.

Stefan Döhla said...

That's a relict of the old days: Whatever you build on your own and install on the system goes to /usr/src . I still do it and would recommend it to anyone else.

Tomás said...

Don't work for me.

I have Ubuntu Gutsy Gibbon and I can't install Argyll.

------------
spectro
----------
...found 329 target(s)...
...updating 17 target(s)...
Cc dispsup.o
En el fichero incluído de dispsup.c:34:
dispwin.h:54:38: error: X11/extensions/scrnsaver.h: No existe el fichero ó directorio

cc -c -DUNIX -D_THREAD_SAFE -O2 -I. -I../h -I../cgats -I../icc -I../numlib -I../xicc -I../libusb -I/usr/X11R6/include -o dispsup.o dispsup.c

...failed Cc dispsup.o ...
Cc dispwin.o
En el fichero incluído de dispwin.c:59:
dispwin.h:54:38: error: X11/extensions/scrnsaver.h: No existe el fichero ó directorio

cc -c -DUNIX -D_THREAD_SAFE -O2 -I. -I../h -I../cgats -I../icc -I../numlib -I../xicc -I../libusb -I/usr/X11R6/include -o dispwin.o dispwin.c

...failed Cc dispwin.o ...
...skipped printread for lack of dispsup.o...
...skipped spotread for lack of dispsup.o...
...skipped filmread for lack of dispsup.o...
Link displin
/usr/bin/ld: cannot find -lXss
collect2: ld devolvió el estado de salida 1

cc -DUNIX -D_THREAD_SAFE -L/usr/X11R6/lib -lX11 -lXext -lXxf86vm -lXinerama -lXau -lXdmcp -lXss -ldl -o displin displin.o ../cgats/libcgats.a ../numlib/libnum.a -lm -lpthread

...failed Link displin ...
Cc dispcal.o
En el fichero incluído de dispcal.c:62:
dispwin.h:54:38: error: X11/extensions/scrnsaver.h: No existe el fichero ó directorio

cc -c -DUNIX -D_THREAD_SAFE -O2 -I. -I../h -I../cgats -I../icc -I../numlib -I../rspl -I../spectro -I../xicc -I../spectro -I../gamut -I../target -I../plot -I../libusb -I/usr/X11R6/include -o dispcal.o dispcal.c

...failed Cc dispcal.o ...
...skipped dispcal for lack of dispcal.o...
Cc dispread.o
En el fichero incluído de dispread.c:49:
dispwin.h:54:38: error: X11/extensions/scrnsaver.h: No existe el fichero ó directorio

cc -c -DUNIX -D_THREAD_SAFE -O2 -I. -I../h -I../cgats -I../icc -I../numlib -I../xicc -I../libusb -I/usr/X11R6/include -o dispread.o dispread.c

...failed Cc dispread.o ...
...skipped dispread for lack of dispread.o...
Cc sa_dispwin.o
En el fichero incluído de dispwin.c:59:
dispwin.h:54:38: error: X11/extensions/scrnsaver.h: No existe el fichero ó directorio

cc -c -DUNIX -D_THREAD_SAFE -O2 -DSTANDALONE_TEST -I. -I../h -I../numlib -I../cgats -I../icc -I/usr/X11R6/include -o sa_dispwin.o dispwin.c

...failed Cc sa_dispwin.o ...
...skipped dispwin for lack of sa_dispwin.o...
Link fakeread
/usr/bin/ld: cannot find -lXss
collect2: ld devolvió el estado de salida 1

cc -DUNIX -D_THREAD_SAFE -L/usr/X11R6/lib -lX11 -lXext -lXxf86vm -lXinerama -lXau -lXdmcp -lXss -ldl -o fakeread fakeread.o libinsttypes.a ../icc/libicc.a ../xicc/libxicc.a ../xicc/libxcolorants.a ../gamut/libgamut.a ../cgats/libcgats.a ../rspl/librspl.a ../numlib/libnum.a ../plot/libplot.a ../libusb/libusb.a -lm -lpthread

...failed Link fakeread ...
Link synthread
/usr/bin/ld: cannot find -lXss
collect2: ld devolvió el estado de salida 1

cc -DUNIX -D_THREAD_SAFE -L/usr/X11R6/lib -lX11 -lXext -lXxf86vm -lXinerama -lXau -lXdmcp -lXss -ldl -o synthread synthread.o libinsttypes.a ../icc/libicc.a ../xicc/libxicc.a ../xicc/libxcolorants.a ../gamut/libgamut.a ../cgats/libcgats.a ../rspl/librspl.a ../numlib/libnum.a ../plot/libplot.a ../libusb/libusb.a -lm -lpthread

...failed Link synthread ...
Link spec2cie
/usr/bin/ld: cannot find -lXss
collect2: ld devolvió el estado de salida 1

cc -DUNIX -D_THREAD_SAFE -L/usr/X11R6/lib -lX11 -lXext -lXxf86vm -lXinerama -lXau -lXdmcp -lXss -ldl -o spec2cie spec2cie.o libinsttypes.a ../icc/libicc.a ../xicc/libxicc.a ../xicc/libxcolorants.a ../gamut/libgamut.a ../numlib/libnum.a ../cgats/libcgats.a ../plot/libplot.a ../libusb/libusb.a -lm -lpthread

...failed Link spec2cie ...
Link spyd2en
/usr/bin/ld: cannot find -lXss
collect2: ld devolvió el estado de salida 1

cc -DUNIX -D_THREAD_SAFE -L/usr/X11R6/lib -lX11 -lXext -lXxf86vm -lXinerama -lXau -lXdmcp -lXss -ldl -o spyd2en spyd2en.o vinflate.o ../numlib/libnum.a -lm -lpthread

...failed Link spyd2en ...
Link monctest
/usr/bin/ld: cannot find -lXss
collect2: ld devolvió el estado de salida 1

cc -DUNIX -D_THREAD_SAFE -L/usr/X11R6/lib -lX11 -lXext -lXxf86vm -lXinerama -lXau -lXdmcp -lXss -ldl -o monctest monctest.o moncurve.o ../numlib/libnum.a ../plot/libplot.a -lm -lpthread

...failed Link monctest ...
...failed updating 11 target(s)...
...skipped 6 target(s)...

Anders said...

Tomás: I got my spyder today and ran into the same problem. This solved it:
sudo apt-get install libxss-dev

Anders said...
This comment has been removed by the author.
Stefan Döhla said...

Thanks for reporting. I didn't have this problem, so I wasn't able to give a qualified answer.

oldsoundguy said...

found this in a search and am attempting to install but have a problem.
When I attempt to install FTJam I get the following ad nausium:

/var/lib/scrollkeeper/eu/scrollkeeper_cl.xml:1: parser error : Document is empty

^
/var/lib/scrollkeeper/eu/scrollkeeper_cl.xml:1: parser error : Start tag expected, '<' not found

^
/var/lib/scrollkeeper/eu/scrollkeeper_cl.xml:1: parser error : Document is empty

^
/var/lib/scrollkeeper/eu/scrollkeeper_cl.xml:1: parser error : Start tag expected, '<' not found

I close the terminal and re open .. attempting to install ANYTHING (such as the sudo apt-get install libxss-dev gets:

E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem. (which I do)

Causing an endless loop.

oldsoundguy said...

add to the above .. even after rebooting, same issues.

Andy said...

Regarding the 'scrollkeeper' errors, this tip fixed them for me.

Where I'm running into trouble now is compiling Argyllcms. In my terminal window, I get a bunch of errors: here are some of them for examples:

don't know how to make ../target/ofps.o",

In file included from dispsup.c:34:
dispwin.h:53:37: error: X11/extensions/Xinerama.h: No such file or directory

In file included from dispwin.c:59:
dispwin.h:53:37: error: X11/extensions/Xinerama.h: No such file or directory

dispwin.h:53:37: error: X11/extensions/Xinerama.h: No such file or directory

cc -c -DUNIX -D_THREAD_SAFE -O2 -I. -I../h -I../cgats -I../icc -I../numlib -I../rspl -I../spectro -I../xicc -I../spectro -I../gamut -I../target -I../plot -I../libusb -I/usr/X11R6/include -o dispcal.o dispcal.c

...failed Cc dispcal.o ...
...skipped dispcal for lack of dispcal.o...



cc -c -DUNIX -D_THREAD_SAFE -O2 -I. -I../h -I../cgats -I../icc -I../numlib -I../xicc -I../libusb -I/usr/X11R6/include -o dispsup.o dispsup.c

...failed Cc dispsup.o ...


These are examples of the errors that show up in the terminal; I haven't pasted the whole thing. Any ideas? I'm fairly new to Linux and so I'm unlikely to have any packages beyond the absolute basic ones. I'm running Ubuntu 7.10 on a Dell Inspiron 1520. Any help you could give would be really appreciated!

Thanks,
Andy