You are not logged in.

#1 2004-10-16 13:38:32

zeppelin
Member
From: Athens, Greece
Registered: 2004-03-05
Posts: 807
Website

problem with compiling PyOpenGL

src/Togl-1.6/togl.c: In function `Togl_Configure':
src/Togl-1.6/togl.c:1070: warning: passing arg 5 of pointer to function from incompatible pointer type
src/Togl-1.6/togl.c: In function `Togl_Cmd':
src/Togl-1.6/togl.c:1256: warning: 'main' is usually a function
src/Togl-1.6/togl.c: In function `Togl_CreateWindow':
src/Togl-1.6/togl.c:1608: warning: unused variable `winPtr'
creating build/Togl-1.6-tk8.4
gcc -pthread -shared -march=i686 -O2 -pipe build/temp.linux-i686-2.3/src/Togl-1.6/togl.o -L/usr/lib -L/usr/lib -Lbuild/temp.linux-i686-2.3 -L/usr/lib -L/usr/lib -Lbuild/temp.linux-i686-2.3 -lGL -lX11 -lXext -lGLU -lXmu -lXt -lm -ltcl8.4 -ltk8.4 -linterface_util -o build/Togl-1.6-tk8.4/Togl.so
/usr/bin/ld: cannot find -lX11
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
==> ERROR: Build Failed.  Aborting...

I think somewhere sth needs to be patched so as to include -L/usr/X11R6/lib which I believe will make the linker find X11
so it should look:
gcc foo.c -L/usr/X11R6/lib -lx11

we have pygtkglext in staging yet we don't have PyOpenGL [which I believe is required to pygtkglext to run] {all the apps I've tried compalin about Missing PyOpenGL}

if someone who hasn't headache wants to patch this, you're so welcome:

pkgname=pyopengl
pkgver=2.0.1.08
pkgrel=1
pkgdesc="PyOpenGL is the cross platform Python binding to OpenGL and related APIs"
depends=(python glut pil python-numeric)
url="http://pyopengl.sf.net"
source=(http://dl.sourceforge.net/$pkgname/PyOpenGL-$pkgver.tar.gz)
license="BSD"

build() {
  cd $startdir/src/PyOpenGL-$pkgver
  # python is sooooo cool!
  /usr/bin/python setup.py install --root=$startdir/pkg

}

Offline

#2 2004-10-16 21:13:45

zeppelin
Member
From: Athens, Greece
Registered: 2004-03-05
Posts: 807
Website

Re: problem with compiling PyOpenGL

the closed my bug report replying:

This bug has already been fixed in CVS and should show up in a new release sometime this weekend.

so let's just wait

Offline

Board footer

Powered by FluxBB