A new method of auto-measuring the roundness error by means of the linear CCD (charge coupled device) is proposed. The principle and design process of the system to measure the roundness error using the Lloyd mirror, linear CCD image-processing system are described. The measuring results indicate that the accurate, real-time and on-line measuring of the roundness error can be realized.