Skip to contentSkip to conversation

xf86-video-nouveau on OpenBSD

error rustyBSD 2 participants 2 messages Apr 11, 2012 1 message not in the archive

lore
Share & tools
lore

rustyBSD

author
#0 lore raw

Hi,
I'm trying to compile nouveau on OpenBSD, but I always get an error message.

I have already compiled libdrm like this :
echo "/usr/X11R6/share/aclocal" >> /usr/local/share/aclocal/dirlist ./configure --enable-nouveau-experimental-api
make
make install

There wasn't any problem.

Then, I try to compile xf86-video-nouveau with :
./configure
make

But I get this error message :

  CC     nvc0_exa.lo
  CC     nvc0_xv.lo
  CC     drmmode_display.lo

drmmode_display.c: In function 'drmmode_page_flip':
drmmode_display.c:1319: warning: implicit declaration of function 'drmModePageFlip'
drmmode_display.c: In function 'drmmode_screen_init':
drmmode_display.c:1476: error: 'drmEventContext' has no member named 'page_flip_handler'
*** Error code 1

Stop in /home/xf86-video-nouveau-0.0.10/xf86-video-nouveau/src (line 448 of Makefile).
*** Error code 1

Stop in /home/xf86-video-nouveau-0.0.10/xf86-video-nouveau (line 373 of Makefile).
*** Error code 1

Stop in /home/xf86-video-nouveau-0.0.10/xf86-video-nouveau (line 282 of Makefile).

Any idea ?Is there anybody who can help me ?

Thanks !

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#2 lore raw
In reply to a message not in the archive
Quoted 2 lines · rustyBSD

Hi,
I'm trying to compile nouveau on OpenBSD, but I always get an error message.

Hello rusty

One thing that you should be aware is that you would need a drm(or ported) kernel module as nouveau does provide KMS only

Secondly, take into account that I'm not a BSD person

Quoted 6 lines

I have already compiled libdrm like this :
echo "/usr/X11R6/share/aclocal" >> /usr/local/share/aclocal/dirlist ./configure --enable-nouveau-experimental-api
make
make install

By doing so you are installing everything to /usr/local

Quoted 7 lines

There wasn't any problem.

Then, I try to compile xf86-video-nouveau with :
./configure
make

Quoted 8 lines

But I get this error message :

  CC     nvc0_exa.lo
  CC     nvc0_xv.lo
  CC     drmmode_display.lo

drmmode_display.c: In function 'drmmode_page_flip':
drmmode_display.c:1319: warning: implicit declaration of function 'drmModePageFlip'

'drmModePageFlip' is defined in xf86drmMode.h
Which in your case cannot be found due to being provided by libdrm (located in /usr/local)
Or
The build system may be using outdated xf86drm* headers

Quoted 9 lines

drmmode_display.c: In function 'drmmode_screen_init':
drmmode_display.c:1476: error: 'drmEventContext' has no member named 'page_flip_handler'
*** Error code 1

Stop in /home/xf86-video-nouveau-0.0.10/xf86-video-nouveau/src (line 448 of Makefile).
*** Error code 1

Quoted 8 lines

Stop in /home/xf86-video-nouveau-0.0.10/xf86-video-nouveau (line 373 of Makefile).
*** Error code 1

Stop in /home/xf86-video-nouveau-0.0.10/xf86-video-nouveau (line 282 of Makefile).

Any idea ?Is there anybody who can help me ?

From what I can see you have two options
* Install libdrm to /usr
...; ./configure --enable-nouveau-experimental-api --prefix=/usr/; ...

or
* Consult with OpenBSD/automake guys how to educate automake that the headers are located in /us/local

Cheers,
Emil

Quoted 2 lines

Thanks !