We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpOpenGL and 3D Libraries › no OpenGL window in Linux exported apps
Page Index Toggle Pages: 1
no OpenGL window in Linux exported apps (Read 892 times)
no OpenGL window in Linux exported apps
Dec 7th, 2009, 1:37am
 
hello,
I made a simple application for rendering of volumetric data in processing and OpenGL
http://nanosurf.fzu.cz/wiki/doku.php?id=cloudview

however, if I run the linux version of exporded (compiled) application it runs just console, no graphical window appears.
There is no error message nor fail (fall). The program looks like he even don't know that he should show some graphics.

if I run it from processing IDE (from source) it works well (with graphical window) on Linux, Windows, MacOS ....
if I run the Windows or MacOS version of exported the application, it runs also normally

if I run simple exported aplication like
Code:

size(300,300);

on linux, it works alos well (the window apprear)

=> I think the problem could be something arround JOGL. I'm not sure if it can find JOGL on the linux, but than it should make an error or not?

also it uses P5Control but it's doesn't look as a problem.

I tested it on SuSE 10.3, can anybody else download it and test on other linux platform? May be this is just because of some specific configuration of this computer.
Re: no OpenGL window in Linux exported apps
Reply #1 - Dec 7th, 2009, 2:05am
 
I tested export application

Code:

import javax.media.opengl.*;
import javax.media.opengl.glu.*;
import com.sun.opengl.util.*;
import processing.opengl.*;
import java.nio.*;

void setup(){
size(300,300,OPENGL);
println("setup");
}

void draw(){
println("draw");
background(255);
line(50,50,250,250);
};


and it also show an window,
so I really don't know whats the problem with CloudView
http://nanosurf.fzu.cz/wiki/lib/exe/fetch.php?media=cloudview:cloudview_16_linux.zip
Re: no OpenGL window in Linux exported apps
Reply #2 - Dec 7th, 2009, 2:42am
 
Ok, I found the reason. I specified Code:
import controlP5.*; 

in other than main source file. Because of this the compiler didn't consider to use and/or export controlP5 (or something like this), but why just for linux?
If I move Code:
import controlP5.*; 

from gui.pde (side file) to CloudView_16.pde (main application source file) it works.  Cheesy

But this is quite strange bug - linux specific and with no error message. I thing it should be tracked, people sould know.  Wink
Page Index Toggle Pages: 1