LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-08-2010, 03:44 PM   #1
darenw
Member
 
Registered: Mar 2009
Location: Very humid Central Florida
Distribution: ArchLinux
Posts: 30

Rep: Reputation: 1
Question 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.
 
Old 10-08-2010, 03:56 PM   #2
crts
Senior Member
 
Registered: Jan 2010
Posts: 1,604

Rep: Reputation: 446Reputation: 446Reputation: 446Reputation: 446Reputation: 446
Quote:
Originally Posted by darenw View Post
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
 
Old 10-08-2010, 05:19 PM   #3
darenw
Member
 
Registered: Mar 2009
Location: Very humid Central Florida
Distribution: ArchLinux
Posts: 30

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by crts View Post
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
 
Old 10-08-2010, 06:28 PM   #4
John VV
Guru
 
Registered: Aug 2005
Posts: 12,955

Rep: Reputation: 1721Reputation: 1721Reputation: 1721Reputation: 1721Reputation: 1721Reputation: 1721Reputation: 1721Reputation: 1721Reputation: 1721Reputation: 1721Reputation: 1721
?? 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

Last edited by John VV; 10-08-2010 at 06:34 PM.
 
Old 10-08-2010, 06:56 PM   #5
crts
Senior Member
 
Registered: Jan 2010
Posts: 1,604

Rep: Reputation: 446Reputation: 446Reputation: 446Reputation: 446Reputation: 446
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.
 
Old 10-08-2010, 09:25 PM   #6
darenw
Member
 
Registered: Mar 2009
Location: Very humid Central Florida
Distribution: ArchLinux
Posts: 30

Original Poster
Rep: Reputation: 1
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.
 
  


Reply

Tags
build, configure, make


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
need to rsync only selected files (--files-from) also need to delete files on dest. ? BrianK Linux - General 5 10-22-2009 09:52 PM
Trouble with making a bash script to read in different files and rename output files. rystke Linux - Software 1 05-07-2009 08:00 AM
in copy files or ls files the command want to invert select some files how to?? hocheetiong Linux - Newbie 3 06-27-2008 06:32 AM
converting a doc/ppt Windows files in html files under linux env agrosu Programming 7 02-23-2006 03:07 PM
How to filter files in files and files which are in a sub-directory with "grep"? Piero Linux - Newbie 9 08-29-2003 02:38 AM


All times are GMT -5. The time now is 05:57 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration