Re: XView Universal binaries
Re: XView Universal binaries
- Subject: Re: XView Universal binaries
- From: Scott Buchanan <email@hidden>
- Date: Tue, 28 Mar 2006 14:35:02 -0800
Hi,
there are at least two others of us working on this, myself and Prof.
Logan Donaldson from York University Toronto.
I have the xview and olgx library code currently in an xcode project
that is building universal binaries and works, for the most part.
There remain problems with the notifier/select and textsw and ttysw.
For example the simple program
/*
* sample_tty.c -- create a base frame with a tty subwindow.
* This subwindow runs a UNIX command specified in an argument
* vector as shown below. The example does a "man cat".
*/
#include <stdio.h>
#include <xview/canvas.h>
#include <xview/scrollbar.h>
#include <xview/xview.h>
#include <xview/tty.h>
#include <xview/textsw.h>
int main(argc, argv)
int argc;
char *argv[ ];
{
Textsw textsw;
Frame frame;
xv_init(XV_INIT_ARGC_PTR_ARGV, &argc, argv, NULL);
frame = (Frame)xv_create(NULL, FRAME, NULL);
textsw = (Textsw)xv_create(frame, TEXTSW,
TEXTSW_FILE_CONTENTS, "/Users/scott/psellcl",
TEXTSW_MEMORY_MAXIMUM, 0,
NULL);
window_fit(frame);
//xv_set(text, TEXTSW_FILE_CONTENTS, "./ttytst.c", TEXTSW_FIRST, 0,
NULL);
xv_main_loop(frame);
return(0);
}
fails to load any file. You can type in the window, and you can use
the pop-up menu to 'include' a file but not to 'open' a file. Also,
I have to (arbitrarily) comment out one FD_CLR call in the notifier
functions to even get gdb to load the program. If not I get a BAD
KERN ADDRESS at 0x000000 for every xview program. (not sure about
the working of BAD KERN ADDRESS as I don't want to make it happen
again right now.
I'd be happy to send you a tarball of the project or correspond
directly as we have to solve this soon.
Thanks,
Scott Buchanan
________________________________________________________
Scott Buchanan WEB: http://www.4dneuroimaging.com
President & CEO e-mail: email@hidden
4-D Neuroimaging Tel: (858) 458-5657
9727 Pacific Heights Blvd . Fax: (858) 458-5698
San Diego, CA 92091
USA
________________________________________________________
This email and any files transmitted with it are confidential
and intended solely for the use of the individual or entity to
whom they are addressed. If you have received this email
in error please notify the system manager.
On Mar 28, 2006, at 2:15 PM, Eric Linton wrote:
Hi,
I am using several X11 GUI applications that depend on the Xview
libraries. These compile and run well on my PPC Mac but I would
like to make Universal version of these programs. I have modified
the makefile to look in the Developers tools where the universal
libraries are and when I run the make file all of the *.o files are
made fat.
But the difficulty comes during the linking which can not find the
i386 arch type in the xview linking libraries, since well the xview
libraries only have one <arch> structure and not a second <arch>
structure for i386.
Does anyone have or know how to make xview universal linking
libraries? The same think happens for the olgx libraries during
linking as well.
The xview linking libraries I have are libxview.3.2.dylib,
libxview.a, libxview.sa.3.2 and libxviw.dylib which is a link to
libxview.3.2.dylib. The olgx libraries are libolgx.a, libolgx.
3.2.dylib and libolgx.dylib which is a link to libolgx.3.2.dylib.
So are there universal libraries arch PPC and arch i386 available,
or just i386 ones then I could create two separate applications
then use lipo to glue them together into one universal application?
I have talked with a few other users of xview programs and they
have this problem as well and can not convert a lot of scientific
programs to the Intel Macs.
TIA,
Eric
_______________
Dr. Eric W. Linton
Research Associate
Michigan State University
S-140 Plant Biology Labs
East Lansing, MI 48824 USA
email: email@hidden
Phone: 517-432-0669
iChatAV: lintonericw
MacGDE: http://www.msu.edu/~lintone/macgde/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/
mailman/options/x11-users/email@hidden
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden