You are not logged in.

#1 2014-06-19 21:34:19

throbscottle
Member
Registered: 2011-11-05
Posts: 55

[SOLVED] How to create a .a file

I'm trying to install a printer driver from the manufacturer, for a Konica-Minolta Magicolor 2530dl. They supply an rpm and also source code, so I'm trying to build from source. It has a dependence on lcms.a, which isn't in any of the 64bit lcms packages. (well, it is in the multilib one but that isn't useful).

I believe that to get this I'd have to compile my own lcms (the driver expects it to be /usr/local, so that's ok), but I don't know what to do to get the .a output file.

Hope someone can help, or suggest a better way (not the gutenprint driver please, as it's not nearly as good) and I'll be really grateful for ever... smile

Last edited by throbscottle (2014-06-22 09:33:35)

Offline

#2 2014-06-19 21:48:51

libernux
Member
From: Netherlands
Registered: 2009-09-29
Posts: 53

Re: [SOLVED] How to create a .a file

The standard makepkg.conf is responsible for the fact that the makepkg command deletes the .a files when it makes a pkg.
See the comments in /etc/makepkg.conf and look for static libs and adjust the default.
This should leave the .a files in your pkg.


I was born with nothing and I still got most of it

Offline

#3 2014-06-19 22:06:31

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,185

Re: [SOLVED] How to create a .a file

I wouldn't adjust the defaults in makepkg.conf, just add 'staticlibs' to the options array in the PKGBUILD when you need static libraries.

Offline

#4 2014-06-19 22:10:04

libernux
Member
From: Netherlands
Registered: 2009-09-29
Posts: 53

Re: [SOLVED] How to create a .a file

Scimmia, your answer is better than mine.
Thanks for clearing this up.


I was born with nothing and I still got most of it

Offline

#5 2014-06-20 21:47:51

throbscottle
Member
Registered: 2011-11-05
Posts: 55

Re: [SOLVED] How to create a .a file

Ok thanks for that. I tried the staticlibs option, but I don't get lcms.a - I get this:

 lcms-static]$ find -name lcms.*
./pkg/lcms/usr/include/lcms.h
./pkg/lcms/usr/lib/pkgconfig/lcms.pc
./src/lcms-1.19/Projects/BorlandC_5.5/lcms.rc
./src/lcms-1.19/Projects/VC2005/lcms.rc
./src/lcms-1.19/Projects/VC2005/lcms.sln
./src/lcms-1.19/Projects/VC2005/lcms.vcproj
./src/lcms-1.19/Projects/VC2008/lcms.rc
./src/lcms-1.19/Projects/VC2008/lcms.sln
./src/lcms-1.19/Projects/VC2008/lcms.vcproj
./src/lcms-1.19/Projects/VC6/lcms.dsp
./src/lcms-1.19/Projects/VC6/lcms.dsw
./src/lcms-1.19/Projects/VC6/lcms.opt
./src/lcms-1.19/Projects/VC6/lcms.rc
./src/lcms-1.19/Projects/VC7/lcms.rc
./src/lcms-1.19/Projects/VC7/lcms.sln
./src/lcms-1.19/Projects/VC7/lcms.vcproj
./src/lcms-1.19/include/lcms.h
./src/lcms-1.19/lcms.pc
./src/lcms-1.19/lcms.pc.in
./src/lcms-1.19/python/lcms.i
./src/lcms-1.19/python/lcms.py
./src/lcms-1.19/src/lcms.def 

What am I doing wrong?

Offline

#6 2014-06-20 23:11:22

throbscottle
Member
Registered: 2011-11-05
Posts: 55

Re: [SOLVED] How to create a .a file

Oh, it shows up when I do the install, so that's ok. Printer driver installed. Yay smile

Offline

#7 2014-06-23 15:47:04

kahrkunne
Member
Registered: 2013-08-24
Posts: 88

Re: [SOLVED] How to create a .a file

I'd just like to throw this out there for everyone: "a .a file" doesn't mean anything. It's just a filename; you can literally run

touch file.a

and make "a .a file". It won't do what you want your file to do though.

Offline

Board footer

Powered by FluxBB