moving from Mac to Linux (Ubuntu 9.10)

Hi,

I need to run my OF application, which I’ve so far been developing on a Mac, on Linux. I’ve just installed Ubuntu 9.10 and tried running an example app (the graphics one) only to get some strange results: the application appears without a window frame in the foreground on top of codeblocks. While it’s running i’m unable to switch to any other applications without the OF app reappearing in the foreground. There also seems to be some slight video corruption when trying to switch applications. Is there any way to run it in a moveable window frame which can be placed in the background? I’m going to need to do this with my own app as it’s one that interacts with other software.

Cheers,

Chris

Hi could you please post the contents of your main.cpp file for your app?

The code in there determines the setup of your window, and hopefully this should explain your symptoms.

[quote author=“grimus”]Hi could you please post the contents of your main.cpp file for your app?

The code in there determines the setup of your window, and hopefully this should explain your symptoms.[/quote]

Hi,

i’m running the graphicsExample app, whose main.cpp is:

  
int main( ){  
  
    ofAppGlutWindow window;  
	ofSetupOpenGL(&window, 1024,768, OF_WINDOW);			// <-------- setup the GL context  
  
	// this kicks off the running of my app  
	// can be OF_WINDOW or OF_FULLSCREEN  
	// pass in width and height too:  
	ofRunApp( new testApp());  
  
}  
  

I get the same problem when running the other examples.

mmmh, that shouldn’t be happening, when running in OF_WINDOW. it seems the behaivour when you run the app in OF_GAME_MODE.

What graphics card do you have?

[quote author=“arturo”]mmmh, that shouldn’t be happening, when running in OF_WINDOW. it seems the behaivour when you run the app in OF_GAME_MODE.

What graphics card do you have?[/quote]

This is happening on a ATI Radeon 9800 Pro. I’ve also tried a laptop running Ubuntu 9.04 with an ATI Mobility Radeon 9600 and experienced similar problems.

do you have the drivers installed? try in System > Administration > Hardware drivers. there should be a driver for your graphics card.

if not can you post the first lines of the output of glxinfo. just open a terminal, and type glxinfo.

Also it’s often good while developing to switch off desktop effects as sometimes compiz causes conflicts which results in flickering or other weird behaviour.

This can found done via System->Preferences->Appearance->Visual Effects (set to none).

luma: I have experienced the same same issues (and others) with ATI cards in Ubuntu 9.04. Using the proprietary drivers and turning off Visual effects did fix this symptom.

However, just a general warning… on ATI video cards that presented this issue, I had a host of other problems when running apps. i.e.: Graphic corruptions, issues when running at different resolutions or using two displays.

In the end I’ve swapped out all my Linux rigs with Nvidia cards, who’s drivers seem to play much nicer with Linux OpenGL apps.

Yes, unfortunately ATI cards on linux have a history of being buggy, which also means that I too only ever purchase machines with Nvidia cards.

Yes, unfortunately ATI cards on linux have a history of being buggy, which also means that I too only ever purchase machines with Nvidia cards. Nvidia support is really good.

Hi everyone, many thanks for all your help. I turned off visual effects and now everything works fine.

Cheers,

Chris