Jerome Glisse wrote:

Adam K Kirchhoff wrote:

Vladimir Dergachev wrote:

r200_context.h:98:1: warning: this is the location of the previous definition
r300_ioctl.c: In function `r300ClearBuffer':
r300_ioctl.c:67: error: `drm_r300_cmd_header_t' undeclared (first use in this function)



^^^^^^^^^^^^^^^^^^^^^^^^^^


Know what I'm doing wrong?




There are instructions in the readme about replacing regular Mesa drm with
a link to the one from r300_driver - perhaps you did not follow them exactly ?


The defintion of drm_r300_cmd_header_t is picked up from there and is not present in regular Mesa drm.




6. Make sure your Mesa build uses drm/shared-core/radeon_drm.h from this source tree (i.e. set the DRM_SOURCE_PATH environment variable to <r300_driver>/drm, cd <r300_driver>/drm ; ln -s shared-core shared (because shared is no longer in the CVS tree because it is a left over).

Two problem :-)

1) When you first check out the r300_driver tree, it includes a "shared" directory. If you follow the instructions exactly, you end up with:

<r300_driver>/drm/shared/shared --> <r300_driver>/drm/shared-core

Which I assume is incorrect. You have to update your tree with "cvs update -dP" in order to eliminate the empty "shared" directory. Make sense?

That screwed me up at first. But, even with that fixed, I still get the build problems.

[ [EMAIL PROTECTED] - ~/saved/source/Mesa ]: echo $DRM_SOURCE_PATH
/home/adamk/r300_driver/drm
[ [EMAIL PROTECTED] - ~/saved/source/Mesa ]: ls -l /home/adamk/r300_driver/drm/
total 32
drwxrwxr-x 2 adamk adamk 4096 Jan 12 14:15 CVS
-rw-rw-r-- 1 adamk adamk 607 Oct 25 13:27 README
drwxrwxr-x 10 adamk adamk 4096 Jan 12 14:04 bsd
drwxrwxr-x 3 adamk adamk 4096 Jan 12 14:04 libdrm
drwxrwxr-x 3 adamk adamk 4096 Jan 12 14:04 linux-core
drwxrwxr-x 3 adamk adamk 4096 Jan 12 14:04 scripts
lrwxrwxr-x 1 adamk adamk 11 Jan 12 14:15 shared -> shared-core
drwxrwxr-x 3 adamk adamk 4096 Jan 12 14:04 shared-core
drwxrwxr-x 3 adamk adamk 4096 Jan 12 14:04 tests


This is where it fails, again:

gcc -c -I. -I../../../../../src/mesa/drivers/dri/common -Iserver -I../../../../../../drm/shared -I../../../../../../drm/linux -I../../../../../include -I../../../../../include/GL/internal -I../../../../../src/mesa -I../../../../../src/mesa/main -I../../../../../src/mesa/glapi -I../../../../../src/mesa/math -I../../../../../src/mesa/transform -I../../../../../src/mesa/shader -I../../../../../src/mesa/swrast -I../../../../../src/mesa/swrast_setup -I../dri_client -I../dri_client/imports -Wall -O -g -std=c99 -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE -DDRI_NEW_INTERFACE_ONLY -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DCOMPILE_R300 -DGLX_DIRECT_RENDERING -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE -DDRI_NEW_INTERFACE_ONLY -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DCOMPILE_R300 -DGLX_DIRECT_RENDERING r300_ioctl.c -o r300_ioctl.o
In file included from r300_ioctl.c:47:
r300_context.h:58: warning: redefinition of `uint32_t'
/usr/include/stdint.h:52: warning: `uint32_t' previously declared here
r300_context.h:59: warning: redefinition of `uint8_t'
/usr/include/stdint.h:49: warning: `uint8_t' previously declared here
In file included from r300_ioctl.c:47:
r300_context.h:124:1: warning: "TEX_ALL" redefined
In file included from r200_ioctl.h:44,
from radeon_lock.h:38,
from r300_context.h:54,
from r300_ioctl.c:47:
r200_context.h:98:1: warning: this is the location of the previous definition
r300_ioctl.c: In function `r300ClearBuffer':
r300_ioctl.c:67: error: `drm_r300_cmd_header_t' undeclared (first use in this function)


Adam

I my memory are no too bad you have to make a link to linux too. In the drm
folder issue a :
ln -s linux-core linux


thus you end up with :

drwxrwxr-x   2 adamk adamk 4096 Jan 12 14:15 CVS
-rw-rw-r--   1 adamk adamk  607 Oct 25 13:27 README
drwxrwxr-x  10 adamk adamk 4096 Jan 12 14:04 bsd
drwxrwxr-x   3 adamk adamk 4096 Jan 12 14:04 libdrm
lrwxrwxr-x   1 adamk adamk   11 Jan 12 14:15 linux -> linux-core
drwxrwxr-x   3 adamk adamk 4096 Jan 12 14:04 linux-core
drwxrwxr-x   3 adamk adamk 4096 Jan 12 14:04 scripts
lrwxrwxr-x   1 adamk adamk   11 Jan 12 14:15 shared -> shared-core
drwxrwxr-x   3 adamk adamk 4096 Jan 12 14:04 shared-core
drwxrwxr-x   3 adamk adamk 4096 Jan 12 14:04 tests

Then it should compile with few warnings but no errors :)

Maybe we should update our drm cvs copy in r300_dri...

best,
Jerome Glisse


Unfortunately that didn't help :-(

[ [EMAIL PROTECTED] - ~/saved/source/Mesa ]: ls -l ~adamk/r300_driver/drm/
total 32
drwxrwxr-x   2 adamk adamk 4096 Jan 12 14:15 CVS
-rw-rw-r--   1 adamk adamk  607 Oct 25 13:27 README
drwxrwxr-x  10 adamk adamk 4096 Jan 12 14:04 bsd
drwxrwxr-x   3 adamk adamk 4096 Jan 12 14:04 libdrm
lrwxrwxr-x   1 adamk adamk   10 Jan 12 15:19 linux -> linux-core
drwxrwxr-x   3 adamk adamk 4096 Jan 12 14:04 linux-core
drwxrwxr-x   3 adamk adamk 4096 Jan 12 14:04 scripts
lrwxrwxr-x   1 adamk adamk   11 Jan 12 14:15 shared -> shared-core
drwxrwxr-x   3 adamk adamk 4096 Jan 12 14:04 shared-core
drwxrwxr-x   3 adamk adamk 4096 Jan 12 14:04 tests

Yet "make linux-dri" dies at the same place

Adam



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to