Re: [Jprogramming] OpenGL on Linux

2012-11-18 Thread bill lam
Which one, gtk2 or gtk3 did you use? I tried both of them worked. There were very few feedbacks on jgtk/opengl and I have only one linux box to test, therefore I really don't know what was wrong in your situation. If you can show how you got the gl context using libx11.so then it might be easie

Re: [Jprogramming] OpenGL on Linux

2012-11-18 Thread Alex Giannakopoulos
To add a bit of information: I tried a Radeon HD2400 card in place of the GeForce 8600 in my 64-bit Linux system. This time the system did not even get a chance to announce that it could not obtain a context, it crashed J(gtk) and closed all its windows as soon as the demo OpenGL program was run.

Re: [Jprogramming] OpenGL on Linux

2012-11-15 Thread Alex Giannakopoulos
Sorry, don't think I can help at the moment, I link against freeglut when I write in C, however I'll keep an eye out for code that accesses the x.orgNVidia driver directly (when I figure out how it's all plumbed). On 15 November 2012 14:30, bill lam wrote: > The hardest part should be getting th

Re: [Jprogramming] OpenGL on Linux

2012-11-15 Thread bill lam
The hardest part should be getting the opengl context, after that it should be fairly standard in all platforms. If there will some simple opengl demo source codes in plain C that can work with GeForce, then we may try to translate that into J. Чтв, 15 Ноя 2012, Michael Dykman писал(а): > You may

Re: [Jprogramming] OpenGL on Linux

2012-11-15 Thread Michael Dykman
You may be on the money with that one. I was unable to get GL working on a Linux 64 with a Geforce card in spite of considerable effort. On 2012-11-15 3:19 AM, "Alex Giannakopoulos" wrote: Thanks Bill That seems to narrow the problem down to Nvidia GeForce cards on 64-bit hardware. I'll keep

Re: [Jprogramming] OpenGL on Linux

2012-11-15 Thread Alex Giannakopoulos
Thanks Bill That seems to narrow the problem down to Nvidia GeForce cards on 64-bit hardware. I'll keep you posted on anything else I notice. On 15 November 2012 01:29, bill lam wrote: > I use 64-bit debian, on-board ati graphics with radeon driver from > x.org > > Linux debian 3.3.0-rc6-amd64

Re: [Jprogramming] OpenGL on Linux

2012-11-14 Thread bill lam
I use 64-bit debian, on-board ati graphics with radeon driver from x.org Linux debian 3.3.0-rc6-amd64 #1 SMP Mon Mar 5 20:53:11 UTC 2012 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI RS880 [Radeon HD 4200] Чтв, 15 Ноя 2012, Alex Giannakopoulos писал(а): > Hi All (especially B

Re: [Jprogramming] OpenGL on Linux

2012-11-14 Thread Alex Giannakopoulos
Hi All (especially Bill) Some of you may remember that a few days ago I wrote describing the problems I was having, trying to get OpenGL (both 701 and 602) to run on my Linux system. Well, I had the opportunity to try it on a number of systems, and on the basis of what I saw, I am now pretty sure

Re: [Jprogramming] OpenGL on Linux

2012-10-14 Thread Alex Giannakopoulos
Well, I edited all the options you suggested, Bill, and also the occurrence in the file glx.ijs, with every possible combination, and nothing worked. Damn. Oh, well, back to C++ for now then (bleah!) where at least OpenGL works. Hope I sort it out sometime soon, I'd much rather be working in J. Th

Re: [Jprogramming] OpenGL on Linux

2012-10-14 Thread bill lam
Not sure which lib was selected. You may edit the file ~addons/api/gl3/gl3.ijs and change the lines libgl=: 'libGL.so.1' libglu=: 'libGLU.so.1' to (eg) libglu=: '/usr/lib/libGLU.so.1' I have not installed any proprietary video driver to test, so there may be some issues there. Пнд, 15 Окт

Re: [Jprogramming] OpenGL on Linux

2012-10-14 Thread Alex Giannakopoulos
My system is Ubuntu Lucid 64 (LTS) I installed all J addons via pacman, right from the start! When I try to run something like: load '~addons/demos/opengl/simple/gldemos.ijs' or load '~addons/demos/opengl/demo/gldemo.ijs' the GTK windows open properly, but nothing is rendered, the message ret

Re: [Jprogramming] OpenGL on Linux

2012-10-14 Thread bill lam
I tested opengl (both 32 and 64-bits) worked in my debian. The context is provided by x11. Perhaps some addons such as api/x11 are missing. Install that addon and try again. If it still fails, then install all addons. You can always un-install addons in pacman. run demos by load '~addons/demos/op

Re: [Jprogramming] OpenGL on Linux

2012-10-14 Thread Alex Giannakopoulos
Decided to try 701, I had been putting it off... Quite nice, I found, the gtk ide seems OK, I also updated all the pacman stuff. I like it, I might carry on with it (I was a bit wary of anything new, my J is not that strong anyway) Guess what? Still no joy on the OpenGL front. It says "OpenGL OK"

Re: [Jprogramming] OpenGL on Linux

2012-10-14 Thread bill lam
The libGL and libGLU provided by mesa are fine although you should most probably already using libGL/libGLU provided by the nvidia driver. The problem is related to OSMesa (off-screen mesa), I suppose the libOSMesa6 is new enough and using libOSMesa7 won't help. I have never used osmesa and have n

Re: [Jprogramming] OpenGL on Linux

2012-10-14 Thread Alex Giannakopoulos
Thanks for that Bill I got the latest (*.64) base library and de-installed the freeglut stuff. >locate libOSMesa is reporting /usr/lib/libOSMesa.so /usr/lib/libOSMesa.so.6 /usr/lib/libOSMesa.so.6.5.3 So that seems fine. It is still not working though. The "opengl simple" demos open blank b

Re: [Jprogramming] OpenGL on Linux

2012-10-13 Thread bill lam
the j602 install from jsoftware.com is the oldest, the current verson is 64. pacman is the package manager in the menu of the ijx window. You should update it first. After that, I guess you can un-install freeglut dev and it can still work. Вск, 14 Окт 2012, Alex Giannakopoulos писал(а): > My vers

Re: [Jprogramming] OpenGL on Linux

2012-10-13 Thread Alex Giannakopoulos
My version is Engine: j602/2008-03-03/16:45 Library: 6.02.023 Is that very old? I have no idea how to use pacman, I found this: http://www.jsoftware.com/wsvn/web/trunk/pacman/ but not sure what to do about it. If it is really old, I may just download again from jsoftware.com and reinstall. S

Re: [Jprogramming] OpenGL on Linux

2012-10-13 Thread bill lam
You must use a very old version of J602 base library, please update base library from pacman first. The opengl (or simple opengl?) demo requires osmesa in linux j602, so I guess you still have to install that package, try in your shell $ sudo aptitude search libosmesa to obtain the actual packag

Re: [Jprogramming] OpenGL on Linux

2012-10-13 Thread Alex Giannakopoulos
Right OK, a bit of an update: I additionally installed the freeglut dev kit, and the first reported proplem has gone away. Now the dialog box with the 'Demos' opens, and what's more, most of the demos seem to run OK. However, there is still a problem with the OpenGL ones: If I click on the 'open

Re: [Jprogramming] OpenGL on Linux

2012-10-13 Thread bill lam
That should be the only use of find_dll not yet fixed. Please try in bash shell, $ locate libOSMesa.so and report what will be the output. (should be something like /usr/lib/libOSMesa.so.6) I did not install osmesa so not sure if nvdia opengl driver will conflict with osmesa or not. Сбт, 13 О

[Jprogramming] OpenGL on Linux

2012-10-13 Thread alexgian
Hi - I thought I might try some OpenGL cookery on my Linux (Ubuntu) system, but I have no luck as it is currently set up. If I try anything involving OpenGL, eg. the 'Demos' I get the following message: 'wdhandler' error in: jijs_demos_button could not locate dll GL: find_dll ('could not