Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > xview

Reply
Thread Tools

xview

 
 
Adam Majewski
Guest
Posts: n/a
 
      02-26-2011
Hi,

I'm trying to run c program using old Xview :
http://inls.ucsd.edu/%7Efisher/Complex/spider.tar.Z

I have compiled test program from :
http://www.linuxjournal.com/files/li.../linuxjournal/
articles/020/2035/2035l1.html

using
gcc sample.c -o sample -I/usr/include/xview -lxview -lolgx -lX11

After run it I have error:
Segmentation fault

Is it possible to run that program ?

Regards

Adam

PS I have 64 bit Linux
 
Reply With Quote
 
 
 
 
Ben Bacarisse
Guest
Posts: n/a
 
      02-26-2011
Adam Majewski <> writes:

> I'm trying to run c program using old Xview :
> http://inls.ucsd.edu/%7Efisher/Complex/spider.tar.Z
>
> I have compiled test program from :
> http://www.linuxjournal.com/files/li.../linuxjournal/
> articles/020/2035/2035l1.html
>
> using
> gcc sample.c -o sample -I/usr/include/xview -lxview -lolgx -lX11
>
> After run it I have error:
> Segmentation fault
>
> Is it possible to run that program ?

<snip>
> PS I have 64 bit Linux


Xview is from the eighties and from what I read it is not the most
portable code. One site suggests that there will never be a native
xview library for 64-bit systems[1]. For 64-bit systems, the code has
to run in 32-bit mode and it's possible the library you have obtained is
not suitable for your system.

[1] http://www.physionet.org/physiotools/xview/
--
Ben.
 
Reply With Quote
 
 
 
 
Edward A. Falk
Guest
Posts: n/a
 
      02-27-2011
In article <ikbnm3$df8$>,
Adam Majewski <> wrote:
>Hi,
>
>I'm trying to run c program using old Xview :
>http://inls.ucsd.edu/%7Efisher/Complex/spider.tar.Z


There's not nearly enough information here to answer your question, but
I can make a couple of suggestions:

Compile the program with the -g option. If you have the sources to
xview, compile them with -g as well. Statically link your application
if you can.

Run the program with the gdb debugger:

$ gdb spider
(gdb) run

When the program segfaults, gdb will give you a pretty good idea of
where it happened and why.

With luck, the problem will be obvious and easy to fix. Without luck,
you'll find yourself in a tar pit.

There are probably other newsgroups better suited to help you with this;
perhaps even one dedicated to X11 and/or xview.

I fell compelled to ask, though: why are you doing this? Xview is a
very very old library. It was written as a portability layer to help
pre-X11 Sunview programs get ported to X11.

--
-Ed Falk,
http://thespamdiaries.blogspot.com/
 
Reply With Quote
 
Adam Majewski
Guest
Posts: n/a
 
      02-28-2011
Dnia Sun, 27 Feb 2011 02:15:19 +0000, Edward A. Falk napisaƂ(a):

> In article <ikbnm3$df8$>, Adam Majewski
> <> wrote:
>>Hi,
>>
>>I'm trying to run c program using old Xview :
>>http://inls.ucsd.edu/%7Efisher/Complex/spider.tar.Z

>
> There's not nearly enough information here to answer your question, but
> I can make a couple of suggestions:
>
> Compile the program with the -g option. If you have the sources to
> xview, compile them with -g as well. Statically link your application
> if you can.
>
> Run the program with the gdb debugger:
>
> $ gdb spider
> (gdb) run
>
> When the program segfaults, gdb will give you a pretty good idea of
> where it happened and why.
>
> With luck, the problem will be obvious and easy to fix. Without luck,
> you'll find yourself in a tar pit.
>
> There are probably other newsgroups better suited to help you with this;
> perhaps even one dedicated to X11 and/or xview.
>
> I fell compelled to ask, though: why are you doing this? Xview is a
> very very old library. It was written as a portability layer to help
> pre-X11 Sunview programs get ported to X11.


Program is intresting. It's algorithm is unique.
It's description is here
http://fraktal.republika.pl/spider.html

Thx for answer.
I will work on it.

Adam

 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57