Thank you weibullguy, besides this error, I also have many other errors in configuration step, but now I have successfully configured BALL library, but I got so many errors in the MAKE step, below is my steps:
Install BALL on Ubuntu 8.10
1. Downloading BALL Library from BALL website
www.ballview.org.
2. 解压 BALL
# tar zxvf BALL-version.tar.gz
3. # cd /path-to-ball/source
4. # ./confiure
note:
I got many problems in this step:
1) "can't find the OpenGL headers ..."
Command: # apt-get install mesa-common-dev mesademos libgl1-mesa-dev libglu1-mesa-dev freeglut3-dev
# apt-get install libsdl-image1.2-dev
# apt-get install libsdl1.2-dev
# apt-get install libgl1-mesa-swx11-dev
2) "GLEW not find" (thanks to weibullguy)
Command:
# apt-get install glew-utils
# apt-get install libglew1.5
# apt-get install libglew1.5-dev
3) "QT headers... (not found!)"
在“应用程序-添加/删除”里面安装了QT4的全部
4) "libQtCore... (not found!)"
Command:
# apt-get install libQtCore4 (But it can work!!!)
# ./configure --with-qt-libs=DIR
Then, I have successfully configured BALL ! My makefile has been created!
5. # make
note: I got many errors in this step, below is the make output:
logStream.C: In member function ‘virtual int BALL::LogStreamBuf::sync()’:
logStream.C:76: 警告: 建议在‘for’空语句体的‘;’前添加一个空格或者在其周围显式地加上花括号
logStream.C:83: 错误: ‘strncpy’在此作用域中尚未声明
logStream.C:92: 错误: ‘memcpy’在此作用域中尚未声明
make[2]: *** [logStream.o] 错误 1
make[1]: *** [subdirs] 错误 1
make: *** [dirs] 错误 2
I do not know what's wrong, anybody who can help me??
6. # make install (Till now, I never execute this step.)
I can not make BALL, please help me! thank you very much!
best wishes! -nicegiving