LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Getting only .a no .so files (http://www.linuxquestions.org/questions/linux-software-2/getting-only-a-no-so-files-837031/)

darenw 10-08-2010 04:44 PM

Getting only .a no .so files
 
I'm compiling a library that uses what appear to be the usual configure, automake system. It builds fine, but only makes .a files, not .so files. I know .so are possible, because my machine at work has the same library with .so (and ironically no .a, but that's not a problem)

I've examined all of configure's options, read the INSTALL, and googled, but am puzzled about this one. Haven't heard from the library's author, who might not be available a few day.

crts 10-08-2010 04:56 PM

Quote:

Originally Posted by darenw (Post 4121830)
I'm compiling a library that uses what appear to be the usual configure, automake system. It builds fine, but only makes .a files, not .so files. I know .so are possible, because my machine at work has the same library with .so (and ironically no .a, but that's not a problem)

I've examined all of configure's options, read the INSTALL, and googled, but am puzzled about this one. Haven't heard from the library's author, who might not be available a few day.

Hi,

post the exact commands that you issue and more important tell us the name of the package that you are trying to compile. Most of us are not psychic :)

darenw 10-08-2010 06:19 PM

Quote:

Originally Posted by crts (Post 4121842)
Hi,

post the exact commands that you issue and more important tell us the name of the package that you are trying to compile. Most of us are not psychic :)


What!? This is www.psychiclinuxquestions.org?? :P

I was hoping there'd be some simple generic reason that configure+make would not make .so files, perhaps some goofy env var or known bug in the gnu automake system. But I have built other libraries in the last few days w/o this trouble, getting my .so just fine.

Okay, the package is wcslib, obtainable from http://www.atnf.csiro.au/people/mcalabre/WCS/

The exact commands are just the plain:

bash> configure
bash> make

John VV 10-08-2010 07:28 PM

?? have you read ./configure --help ????

and this is Arch i take it YOU DO not want to install the program to /usr/local ??? right
you want to but it into /usr
you might want to use the --prefix configure command

also did you read the files INSTALL and README
from the INSTALL
Code:

  zcat wcslib-4.5.tar.gz | tar pvxf -
  cd wcslib-4.5

then if you do not need to specify any configuration options, simply run

  gmake

you run gmake not configure
unless you want to tweak / hack the code then
Code:


  ./configure --prefix=/some/other/dir
  gmake

Use

  ./configure --help

to list configure's options.  Useful options are

  --with-pgplotinc
  --with-pgplotlib
  --with-cfitsioinc
  --with-cfitsiolib

and you STILL run gmake

i will have to look into this
i use ISIS 3 my self for reprojecting image data from spacecraft

crts 10-08-2010 07:56 PM

Hi,

just downloaded the file and build it. Just untar the package and cd into the directory. There you just can run
Code:

make
make check
sudo make install

Make sure that your make is GNU make, as mentioned in the INSTALL instructions. This should be case, I have not heard of a linux distro that uses something else then GNU make. More important, check that 'make' is at least version 3.79.1.
My make version:
Code:

$ make --version
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for x86_64-pc-linux-gnu
$

Hope this helps.

darenw 10-08-2010 10:25 PM

I've got the same make version. All the basics of building seem to be okay. Most configure scripts I've known take an --enable-shared option, but that had no effect on this one.

I tried autoconfigure, since there's a configure.ac file for it. Now there's a libwcs.so.4.5.4, but no libpgsbox.so.* which is the thing the big app needs.


All times are GMT -5. The time now is 03:50 PM.