[Xastir] Compile issues

Rodney Baker rodney.baker at optusnet.com.au
Sun Sep 30 05:55:18 EDT 2007


Tony Hunt wrote:
> Thanks all for the replies .. Some of these are good and useful indeed..
>
> Ive actually got a working version of 1.90 xastir on there now but without
> raster maps. This sounds like it would be easy to fix with imagemagick but
> the development files still allude me. I think its actually libmagick5-dev
> that I am looking for but if I try and install that it had many dependancy
> issues which are not resolvable. I looked at some of the dependancies and
> they also have depandancies. Its another one of those dependancy blackholes
> that just gets to be a bigger pit as you look down it..
>   

That is what apt and other package managers are supposed to manage for 
you. This is one of the hardest things about compiling from source; 
solving dependencies on dependencies (known as dependency hell).
> Now I will tell you how I got 1.90 going.. Dont cringe too much but I loaded
> a binary for 1.40 xastir that was premade for this old distro. and then
> compiled 1.90 on top of that. Although they have different directory
> structures I deleted the 1.40 xastir binary executable and I seem to have a
> working 1.90. Pretty rough I know and very cludgey but obviuosly something
> is in the 1.40 binary which fixes the segfaults I had .. Its not the
> ultimate and in time I can likely pull apart the 1.40 binary and see just
> whats in there. It proves something I guess..
>   
Ugly but it works...
> In the mean time I dont have any raster maps till I get 1.90 to compile with
> imagemagick development files. Ive found the imagemagick web site. They have
> a source file up there that I could download and try and compile. Its about
> 6 or so megs I think but are the development files in there ??
>   
Yes. By definition, if you compile from source it will also build the 
header files necessary to build other apps against it, but you'll have 
to resolve the dependencies for ImageMagick...
> ImageMagick-6.3.5-10.i386.rpm is about 4 megs. I could use alien to convert
> this to a deb but are the development files in there ??
>   
No. The development package is pretty well always labelled as 
<app_name>_devel or <app_name>-devel or -dev or something similar (with 
the same version appended as the application). These packages are much 
smaller and only contain the header files needed by the compiler when 
building other apps against the libraries.

You need to edit /etc/apt/sources.list and make sure that the necessary 
repositories are enabled (uncomment the lines by removing the leading 
#). The repositories are generally in pairs - one for the base packages 
and a separate entry for the development packages. You'll probably need 
to uncomment the lines for Universe and Universe Development 
repositories. Other Debian/Ubuntu users may have more input on which 
repositories are needed.

Rodney.
> Tony Hunt  VK5AH
>
> ----- Original Message ----- 
> From: "Alex Carver" <kf4lvz at yahoo.com>
> To: "Tony Hunt" <wavetel at internode.on.net>
> Sent: Sunday, September 30, 2007 10:39 AM
> Subject: Re: [Xastir] Compile issues
>
>
>   
>> The apt utilities includes a function called apt-cache
>> that will let you search for packages and give you a
>> hand.
>>
>> Usage would be:
>>
>> apt-cache search <partial package name>
>>
>> For example, searching for anything with shapelib:
>>
>> apt-cache search shapelib*
>>
>> Yields:
>>
>> gpsmanshp - A Tcl interface to shapelib
>> libshp-dev - C API for reading and writing ArcView
>> Shapefiles
>> libshp1 - C API for reading and writing ArcView
>> Shapefiles
>> shapelib - C API for reading and writing ArcView
>> Shapefiles
>>
>>
>> You can also do this with libmagick* and you'll be
>> able to spot the development libraries.
>>
>> I'm not sure what the segfaulting is from but you
>> don't need ImageMagick or GraphicsMagick or even
>> geotiff to initially start Xastir.  However, dbfawk is
>> needed to parse some data like the maps.  You may have
>> to download the shapelib source code separately
>> (outside of Debian's apt system) to get that working.
>>
>>
>>
>>
>> --- Tony Hunt <wavetel at internode.on.net> wrote:
>>
>>     
>>> Hi Rod .. I is learning alot still ..
>>>
>>> To answer your question with another question..
>>> I have installed imagemagick  libmotif  libmotif-dev
>>>  but I have no idea
>>> what the name of the image magick development file
>>> is.
>>> Bear in mind this is equivalent to a Debian v3.0
>>> Woody system. I notice
>>> that libmagick5 is installed with another package
>>> (probably imagemegick) .
>>>
>>> http://packages.debian.org/source/sarge/imagemagick
>>> Just looking at that web page maybee there is a
>>> libmagick5-dev package at a
>>> guess for woody in the archives ??
>>>  Maybee if  Hamish is watching he will know whats
>>> missing ..
>>>
>>> It nearly ran last night after a make install ..
>>> Came up with the xastir
>>> window and then segfaulted .. I have been looking at
>>> the libraries needed
>>> and trolling the debian website for clues but
>>> excatly what the
>>> library/dependancies names are isnt allways easy to
>>> figure out although Ive
>>> managed to make some progress since the last email..
>>>
>>> When the configure finnishes it says there is no
>>> imagemagick support so
>>> theres a clue.
>>>
>>> Here are the warnings and clues
>>>
>>> "Warning can not find image magick include files"
>>> (this is probably the
>>> killer by what you say Rod)
>>> "Warning  geotiff requires libproj" ---   I have not
>>> been able to find a
>>> libproj myself
>>> "Warning dbfawk requires both pcre and shapelib" -- 
>>> I cant find these in
>>> debian either
>>>
>>> When I run xastir up it segfaults with these
>>> comments
>>> "Perhaps no XPM or imagemagick library support is
>>> installed" which sorta
>>> connects back to where we started ..
>>>
>>> So what am I looking for here in the dark exactly ??
>>>
>>> Tony Hunt VK5AH
>>>
>>> ----- Original Message ----- 
>>> From: "Rodney Baker" <rodney.baker at optusnet.com.au>
>>> To: "Tony Hunt" <wavetel at internode.on.net>
>>> Cc: "Xastir mailing list" <xastir at xastir.org>
>>> Sent: Saturday, September 29, 2007 10:29 PM
>>> Subject: Re: [Xastir] Compile issues
>>>
>>>
>>>       
>>>> On Fri, September 28, 2007 09:48, Tony Hunt wrote:
>>>>         
>>>>> Heres the results from the configure.. The make
>>>>>           
>>> does not seem to produce
>>>       
>>>>> a binary. And it configures with no support for
>>>>>           
>>> anything really. The
>>>       
>>>>> config.logs are here
>>>>>           
>>> http://www.users.on.net/~wavetel/temp/configlogs.zip
>>>       
>>>>> I can see its got issues with shapefil.h  pcre.h
>>>>>           
>>>   XpmI.h  gdal.h
>>>       
>>>>> db.h   magick/api.h Now this is familiar
>>>>>           
>>> "WARNING: *** Cannot find
>>>       
>>>>> ImageMagick include
>>>>> files:  Building w/o ImageMagick support. ***"
>>>>> And thats just v1.6.0
>>>>>           
>>>> Tony,
>>>>
>>>> Have you installed the ImageMagick-devel packages?
>>>>         
>>> You need not only to
>>>       
>>>> install the base packages but also the development
>>>>         
>>> packages for each of
>>>       
>>>> the dependencies. These contain the missing header
>>>>         
>>> files that are needed
>>>       
>>>> for other applications to compile against the
>>>>         
>>> various libraries.
>>>       
>>>> You should enable the relevant dev repositories in
>>>>         
>>> the apt repository
>>>       
>>>> configuration file and then do apt-get
>>>>         
>>> <package>-devel. If, however, you
>>>       
>>>> have compiled each of the dependencies from source
>>>>         
>>> the headers will also
>>>       
>>>> have been installed. You may need to specify where
>>>>         
>>> the headers have been
>>>       
>>>> installed with the appropriate parameters passed
>>>>         
>>> to configure (do
>>>       
>>>> configure --help to get the list of available
>>>>         
>>> switches).
>>>       
>>>> Regards,
>>>> Rodney.
>>>>
>>>>         
>>>>> Maybee its just too hard to make it go on this
>>>>>           
>>> system but there is good
>>>       
>>>>> reason to try. If I can get it going I would
>>>>>           
>>> like to make a deb file
>>> with
>>>       
>>>>> checkinstall
>>>>>
>>>>> Tony VK5AH
>>>>>           
>>> _______________________________________________
>>> Xastir mailing list
>>> Xastir at xastir.org
>>>
>>>       
>> http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir
>>     
>>
>>
>>
>>     
> ____________________________________________________________________________
> ________
>   
>> Moody friends. Drama queens. Your life? Nope! - their life, your story.
>>     
> Play Sims Stories at Yahoo! Games.
>   
>> http://sims.yahoo.com/
>>
>>     
>
>   


-- 
ÿþR




More information about the Xastir mailing list