Hi,

Yesterday i tred to run my soya's app in the latest release of ubuntu,
and i got fatal errors about opengl symbols not found in soya's
library (.so file)

After taking a look, it seems that GL and GLU were not present in the
linker pass. I manually executed gcc adding -lGL -lGLU and it worked.

I've no idea why now is an error and not before, and no idea from
where were we getting the opengl parts before (maybe GLEW?).

Anyway, if any of you can take a look onto this... seems that no one
on Ubuntu noticed yet (no bug reports on soya's package, but it's
impossible to run anything with soya.)

I created a patch. But someone should take a look on this, and make
sure if the link is needed or not. I don't have Ubuntu on my computers
and i don't know if i could reproduce the bug again.
From 02893f96d43f2c24fab3e0d860e44d146eed1686 Mon Sep 17 00:00:00 2001
From: David Martinez Marti <[email protected]>
Date: Mon, 23 May 2011 16:56:58 +0200
Subject: [PATCH] Link to openGL and GLU, in some systems (ubuntu) seems to be
 necesary

---
 soya/setup.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/soya/setup.py b/soya/setup.py
index 61e5023..3cb56a4 100644
--- a/soya/setup.py
+++ b/soya/setup.py
@@ -128,9 +128,9 @@ if endian == "big":
 #from config import *
 
 if sys.platform[:3] == "win":
-	LIBS = ["m", "glew32", "SDL", "SDL_mixer", "freetype", "cal3d", "stdc++", "ode"]
+	LIBS = ["m", "glew32", "SDL", "SDL_mixer", "freetype", "cal3d", "stdc++", "ode","opengl32","glut"]
 else:
-	LIBS = ["m", "GLEW", "SDL", "freetype", "cal3d", "stdc++","ode"]
+	LIBS = ["m", "GLEW", "SDL", "freetype", "cal3d", "stdc++","ode","GL","GLU"]
 	FRAMEWORKS=[]
 
 SOYA_PYREX_SOURCES  = ["_soya.pyx", "matrix.c", "chunk.c"]
-- 
1.7.5.1

_______________________________________________
Soya-user mailing list
[email protected]
https://mail.gna.org/listinfo/soya-user

Reply via email to