[coin-discuss] problem on Linux using simple test program
Tamer Fahmy tamer at ims.tuwien.ac.atThu Dec 16 03:54:37 CET 2004
- Previous message: [coin-discuss] problem on Linux using simple test program
- Next message: [coin-discuss] problem on Linux using simple test program
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Mi, 2004-12-15 at 16:26 -0800, Rich Cook wrote: > Oh, crap. I'm sorry, I'm totally wrong on this one. I'm working on > Linux and on OS X. This particular issue cropped up on Linux, and I > mistakenly gave you the OS X information. I am a retard. :-) > Different issue coming on OS X. Cannot compile. > Let me do that again. Here are the outputs of your commands on LINUX. hmpf, and you didn't tell me again which linux distro or SoXt version or even OpenMotif version you are using... > # note that glxgears works fine to this display, for example. > rcook at pengra1 (rcook): echo $DISPLAY > 134.9.14.71:0.0 ok, so you are running osx on the other side! ;) hopefully you didn't say "xhost +". apart from your problem, you should really use X11 forwarding for such session by calling "ssh -X linux-box". if that doesn't work enable X11Forwarding in your /etc/sshd/sshd_config and restart your sshd daemon... anyways, try to build and run the following source: #include <Xm/Xm.h> #include <Xm/Label.h> main(int argc, char *argv[]) { Widget toplevel, msg; Arg al[10]; int ac; toplevel=XtInitialize(argv[0],"",NULL,0,&argc,argv); ac=0; XtSetArg(al[ac],XmNlabelString, XmStringCreate("hello",XmSTRING_DEFAULT_CHARSET)); ac++; msg=XtCreateManagedWidget("msg",xmLabelWidgetClass,toplevel,al,ac); XtRealizeWidget(toplevel); XtMainLoop(); } now compile it with: gcc -o foo foo.c -I/usr/X11R6/include/ -L/usr/X11R6/lib -lX11 -lXt -lXm if this gives you the same error as before, compile it again by specifying the reverse order of libraries: gcc -o foo foo.c -I/usr/X11R6/include/ -L/usr/X11R6/lib -lXm -lXt -lX11 now if this works you suddenly might understand why i asked you to compile your source with "soxt-config" and see how this works out. ;) look at your libraries for your linker and play with the order. google at http://groups.google.com/ for "X Error of failed request: BadWindow (invalid Window parameter) X_DeleteProperty". you should find a lot of information reg. your error there... check out subject 302 of the Motif FAQ reg. this issue: http://www.rahul.net/kenton/faqs/Motif-FAQ.html#302 cheers, tamer. -- robot farm: machines good, people bad! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /pipermail/coin-discuss/attachments/20041216/807f60ec/attachment.bin
- Previous message: [coin-discuss] problem on Linux using simple test program
- Next message: [coin-discuss] problem on Linux using simple test program
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the coin-discuss mailing list