GNOMECGLcodingHelp   <<--BACK            HOME            UP --^           NEXT-->>  Demo-2
side4linux, a simple integrated development environment!

GNOMECGL Demo-1  Load, Re-Compile and Run the 'Sample1' project's visuals, an OpenGL 2D Project.

Purpose: 
Requirements:

Exercise-1: Load basic Project and re-compile it.
  1. Open 'side4linux' and click on 'Project>Open Project' in the Main Menue.
  2. Select 'DEMOS>SIDEdemos>GNOMECGL>Sample1>sample1.prf' as in figure-1 below and click on 'Open' in the Dialog Box.
  3. Re-Build the Project to ensure that it links with your installation's dynamic libraries.
  4. 'Build>Autogen Project'
  5. 'Build>Make Clean'
  6. Notice the 'Build Status Window' ( third from left at the bottom of the screen ) says 'Pbuild: OK!'.  If not check the 'Output Window' for errors like missing library.
  7. Now open the Glade-3 GUI builder program, 'Edit Project>Edit Project Visuals with Glade-3'
  8. ( un-dock the windows and shrink the Main window to about one third screen size )
  9. Double click on the 'mainWindow' widget in the 'Inspector' window to make it appear in the 'Main' window ( figure-2 ).
  10. Notice the 'hatched area' in the middle of the 'mainWindow' widget, in 'main.c' there will be inserted here a 'Horizontal Container Widget' (hbox1) in line 137.
  11. Now close the Glade-3 GUI Builder program.
  12. Click on 'Open-TXT' and open 'main.c'.
  13. Notice in line 140 ,     gtk_container_add(GTK_CONTAINER(hbox1),GTK_WIDGET(glarea));.
  14. This is our 'glarea' widget where we can render OpenGL images using OpenGL commands.

Fig-1

Fig-2

Exercise-2: Run the Project and Discover other features.
  1. Change to another workspace and open a terminal program in 'SIDE/DEMOS/SIDEdemos/GNOMECGL/Sample1/src'.
  2. We will 'run' the Program 'sample1' in a terminal.
  3. and run the program ( ./sample1 ) notice the full stop and forward slash to run a program in the current directory to get the following messages ( or similar ),
db@wks1:~/Data/Projects/SIDE/DEMOS/SIDEdemos/GNOMECGL/Sample1/src$ ./sample1

Trying local 'glade' file
Local 'glade' file found!

(sample1:7169): libglade-WARNING **: could not find signal handler 'on_save1_activate'.

(sample1:7169): libglade-WARNING **: could not find signal handler 'on_preferences1_activate'.

(sample1:7169): libglade-WARNING **: could not find signal handler 'on_quit1_activate'.

(sample1:7169): libglade-WARNING **: could not find signal handler 'on_cut1_activate'.

(sample1:7169): libglade-WARNING **: could not find signal handler 'on_about1_activate'.

(sample1:7169): libglade-WARNING **: could not find signal handler 'on_open1_activate'.

(sample1:7169): libglade-WARNING **: could not find signal handler 'on_paste1_activate'.

(sample1:7169): libglade-WARNING **: could not find signal handler 'on_clear1_activate'.

(sample1:7169): libglade-WARNING **: could not find signal handler 'on_new1_activate'.

(sample1:7169): libglade-WARNING **: could not find signal handler 'on_save_as1_activate'.

(sample1:7169): libglade-WARNING **: could not find signal handler 'on_properties1_activate'.

(sample1:7169): libglade-WARNING **: could not find signal handler 'on_copy1_activate'.
gdk_gl_choose_visual() visual depth = 24
Mesa: CPU vendor: GenuineIntel
Mesa: MMX cpu detected.
Mesa: SSE cpu detected.
Mesa: Not testing OS support for SSE, leaving enabled.
Mesa: Mesa 7.0.2 DEBUG build Jan 12 2008 13:36:46



Fig-3


We will provide other demos as 'side4linux' develops to cover GNOME visual programming and integration into a real world machine controller.

GUI interface made with Gtk and Glade GUI demo built with Glade