Hi Dzung,

The better address to use is actually the brlcad-users@lists.sourceforge.net address, which you'll have to subscribe to, as the devs address is moderated/filtered since it often receives content not pertinent to the entire list audience.

Your steps for getting the latest BRL-CAD sources and for compiling are actually fine.  What that error indicates is that you do not have the X11 headers installed, or at least they were not found during configure.  It sounds like you need to install the X11 developer headers for Fedora so that there are several needed files such as /usr/include/X11/Xlib.h among several others.  If you have that header, then it's likely some header mismatch/conflict that will be a little trickier to resolve.  There was a related thread on http://public.kitware.com/pipermail/paraview/2007-April/004884.html that sounds exactly like the problem you've run into, though it doesn't appear to have been resolved there.

Make sure you have the xorg-x11-devel RPM installed for Fedora (at least I think it's called that) and then retry the autogen.sh and configure steps, then followed by make again.  If you'd rather just download a binary, one of these should work much better than the .deb though be sure to read the readme on how to install it: 

http://sourceforge.net/project/showfiles.php?group_id=105292&package_id=113559&release_id=409339

The brief installation summary is to unpack it, then move the usr/brlcad directory to /usr/brlcad/.

Cheers!
Sean



On Aug 10, 2007, at 11:16 PM, Lennon John wrote:

Hi brlcad team,

I am Lenon (Dzung) from Melbourne. I heard about brl-cad and really want to try it on my Fedora 7. Before writing to you, I have sent my problems to Sean and Jan-Pieter, however soon I noticed that devs@brlcad.org is the official address where I should send to.

I tried
to look for the source tarball but I couldn't find it. I read about cvs and then I just used the following two cvs commands:

# cvs -d:pserver:anonymous@brlcad.cvs.sourceforge.net:/cvsroot/brlcad
login

# cvs -z3
-d:pserver:anonymous@brlcad.cvs.sourceforge.net:/cvsroot/brlcad co -P brlcad

After a while I got a folder named "brlcad" occupying more than 135 Mb in my current directory. I cd brlcad and see many sub-folders and files
and there includes autogen.sh and then I followed the instruction of installation from source code. I did this on my office machine and I was totally successful without any error (mged runs perfectly). My office machine is Intel Core 2 Duo (during installation I added -j2 as option for "make" to build faster). However, when I installed on my home
machine (Intel P4 - no option for "make") I always got errors when building and below is just a portion of the last part of the results of the "make" command (./configure ran with no problem beforehand):


/home/user/brlcad/src/other/tk/unix/../generic/tk3d.c: At top level:
/home/user/brlcad/src/other/tk/unix/../generic/tk3d.c:946: error: expected declaration specifiers or ‘...’ before ‘Drawable’
/home/user/brlcad/src/other/tk/unix/../generic/tk3d.c: In function ‘Tk_Fill3DRectangle’:
/home/user/brlcad/src/other/tk/unix/../generic/tk3d.c:982: warning: implicit declaration of function ‘XFillRectangle’
/home/user/brlcad/src/other/tk/unix/../generic/tk3d.c:982: error: ‘Tk_FakeWin’ has no member named ‘display’
/home/user/brlcad/src/other/tk/unix/../generic/tk3d.c:982: error: ‘drawable’ undeclared (first use in this function)
/home/user/brlcad/src/other/tk/unix/../generic/tk3d.c:982: error: ‘TkBorder’ has no member named ‘bgGC’
/home/user/brlcad/src/other/tk/unix/../generic/tk3d.c:989: warning: passing argument 3 of ‘Tk_Draw3DRectangle’ makes integer from pointer without a cast
/home/user/brlcad/src/other/tk/unix/../generic/tk3d.c:989: error: too many arguments to function ‘Tk_Draw3DRectangle’
/home/user/brlcad/src/other/tk/unix/../generic/tk3d.c: At top level:
/home/user/brlcad/src/other/tk/unix/../generic/tk3d.c:1012: error: expected declaration specifiers or ‘...’ before ‘Drawable’
/home/user/brlcad/src/other/tk/unix/../generic/tk3d.c:1014: error: expected declaration specifiers or ‘...’ before ‘XPoint’
/home/user/brlcad/src/other/tk/unix/../generic/tk3d.c: In function ‘Tk_Fill3DPolygon’:
/home/user/brlcad/src/other/tk/unix/../generic/tk3d.c:1028: error: ‘Tk_FakeWin’ has no member named ‘display’
/home/user/brlcad/src/other/tk/unix/../generic/tk3d.c:1028: error: ‘drawable’ undeclared (first use in this function)
/home/user/brlcad/src/other/tk/unix/../generic/tk3d.c:1028: error: ‘TkBorder’ has no member named ‘bgGC’
/home/user/brlcad/src/other/tk/unix/../generic/tk3d.c:1029: error: ‘pointPtr’ undeclared (first use in this function)
/home/user/brlcad/src/other/tk/unix/../generic/tk3d.c:1029: error: ‘Complex’ undeclared (first use in this function)
/home/user/brlcad/src/other/tk/unix/../generic/tk3d.c:1029: error: ‘CoordModeOrigin’ undeclared (first use in this function)
/home/user/brlcad/src/other/tk/unix/../generic/tk3d.c:1032: warning: passing argument 3 of ‘Tk_Draw3DPolygon’ makes integer from pointer without a cast
/home/user/brlcad/src/other/tk/unix/../generic/tk3d.c:1032: error: too many arguments to function ‘Tk_Draw3DPolygon’
/home/user/brlcad/src/other/tk/unix/../generic/tk3d.c: In function ‘BorderInit’:
/home/user/brlcad/src/other/tk/unix/../generic/tk3d.c:1056: error: ‘TkDisplay’ has no member named ‘borderInit’
/home/user/brlcad/src/other/tk/unix/../generic/tk3d.c:1057: error: ‘TkDisplay’ has no member named ‘borderTable’
/home/user/brlcad/src/other/tk/unix/../generic/tk3d.c: At top level: /home/user/brlcad/src/other/tk/unix/../generic/tk3d.c:1079: error: expected ‘)’ before ‘*’ token
/home/user/brlcad/src/other/tk/unix/../generic/tk3d.c:1166: error: expected ‘)’ before ‘*’ token
/home/user/brlcad/src/other/tk/unix/../generic/tk3d.c: In function ‘Tk_Get3DBorderFromObj’:
/home/user/brlcad/src/other/tk/unix/../generic/tk3d.c:1241: error: ‘TkWindow’ has no member named ‘dispPtr’
/home/user/brlcad/src/other/tk/unix/../generic/tk3d.c:1255: error: ‘TkBorder’ has no member named ‘resourceRefCount’[root@myFedora7 brlcad]#
/home/user/brlcad/src/other/tk/unix/../generic/tk3d.c:1256: error: ‘Tk_FakeWin’ has no member named ‘display’
/home/user/brlcad/src/other/tk/unix/../generic/tk3d.c:1256: error: ‘Tk_FakeWin’ has no member named ‘screenNum’
/home/user/brlcad/src/other/tk/unix/../generic/tk3d.c:1256: error: ‘TkBorder’ has no member named ‘screen’
/home/user/brlcad/src/other/tk/unix/../generic/tk3d.c:1257: error: ‘Tk_FakeWin’ has no member named ‘atts’
/home/user/brlcad/src/other/tk/unix/../generic/tk3d.c:1257: error: ‘TkBorder’ has no member named ‘colormap’
/home/user/brlcad/src/other/tk/unix/../generic/tk3d.c:12[root@myFedora7
brlcad]# 77: error: ‘TkDisplay’ has no member named ‘borderTable’
/home/user/brlcad/src/other/tk/unix/../generic/tk3d.c:1277: error: ‘TkDisplay’ has no member named ‘borderTable’
/home/user/brlcad/src/other/tk/unix/../generic/tk3d.c:1282: error: ‘TkBorder’ has no member named ‘nextPtr’
/home/user/brlcad/src/other/tk/unix/../generic/tk3d.c:1283: error: ‘Tk_FakeWin’ has no member named ‘display’
/home/user/brlcad/src/other/tk/unix/../generic/tk3d.c:1283: error: ‘Tk_FakeWin’ has no member named ‘screenNum’
/home/user/brlcad/src/other/tk/unix/../generic/tk3d.c:1283: error: ‘TkBorder’ has no member named ‘screen’
/home/user/brlcad/src/other/tk/unix/../generic/tk3d.c:1284: error: ‘Tk_FakeWin’ has no member named ‘atts’
/home/user/brlcad/src/other/tk/unix/../generic/tk3d.c:1284: error: ‘TkBorder’ has no member named ‘colormap’
/home/user/brlcad/src/other/tk/unix/../generic/tk3d.c:1287: error: ‘TkBorder’ has no member named ‘objRefCount’
/home/user/brlcad/src/other/tk/unix/../generic/tk3d.c: In function ‘TkDebugBorder’:
/home/user/brlcad/src/other/tk/unix/../generic/tk3d.c:1367: error: ‘TkWindow’ has no member named ‘dispPtr’
/home/user/brlcad/src/other/tk/unix/../generic/tk3d.c:1370: error: ‘TkDisplay’ has no member named ‘borderTable’
/home/user/brlcad/src/other/tk/unix/../generic/tk3d.c:1370: error: ‘TkDisplay’ has no member named ‘borderTable’
/home/user/brlcad/src/other/tk/unix/../generic/tk3d.c:1376: error: ‘TkBorder’ has no member named ‘nextPtr’
/home/user/brlcad/src/other/tk/unix/../generic/tk3d.c:1379: error: ‘TkBorder’ has no member named ‘resourceRefCount’
/home/user/brlcad/src/other/tk/unix/../generic/tk3d.c:1381: error: ‘TkBorder’ has no member named ‘objRefCount’
make[4]: *** [tk3d.o] Error 1
make[4]: Leaving directory `/home/user/brlcad/src/other/tk/unix'
make[3]: *** [all-am] Error 2
make[3]: Leaving directory `/home/user/brlcad/src/other/tk'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/user/brlcad/src/other'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/user/brlcad/src'
make: *** [all-recursive] Error 1
[root@myFedora7 brlcad]#


I wonder if the two cvs commands gave me the right source version, I read in the readme file it says version 7.10.2? And that is it for i386
(my home computer) or just for newer x86_64 (my office computer)? Both machines run Fedora 7. I still prefer to download the package from a direct link (as this way assures that I get the right one) however still I cannot find it, only the .dev package is there on the site.

Any of your help is very much appreciated.


Best regards
Lenon
Monash Univ
Melbourne, Vic 3800