|
cmake版本2.8.2;
mingw64使用gcc4.4.5;jpeg使用预先编译好的64位jpeg8b版本;
注释掉osgPlugins可以编译成功,在编译osgPlugins中的jpeg时报错:
- [ 0%] Built target OpenThreads
- [ 64%] Built target osg
- [ 82%] Built target osgUtil
- [100%] Built target osgDB
- [100%] Building CXX object src/osgPlugins/jpeg/CMakeFiles/osgdb_jpeg.dir/ReaderWriterJPEG.obj
- d:/library/OpenSceneGraph-2.9.8/src/osgPlugins/jpeg/ReaderWriterJPEG.cpp: In function 'boolean osgDBJPEG::fill_input_buffer(jpeg_decompress_struct*)':
- d:/library/OpenSceneGraph-2.9.8/src/osgPlugins/jpeg/ReaderWriterJPEG.cpp:159: error: too many arguments to function
- d:/library/OpenSceneGraph-2.9.8/src/osgPlugins/jpeg/ReaderWriterJPEG.cpp:160: error: too many arguments to function
- d:/library/OpenSceneGraph-2.9.8/src/osgPlugins/jpeg/ReaderWriterJPEG.cpp: In function 'void osgDBJPEG::jpeg_istream_src(jpeg_decompress_struct*, std::istream*)':
- d:/library/OpenSceneGraph-2.9.8/src/osgPlugins/jpeg/ReaderWriterJPEG.cpp:244: error: too many arguments to function
- d:/library/OpenSceneGraph-2.9.8/src/osgPlugins/jpeg/ReaderWriterJPEG.cpp:247: error: too many arguments to function
- d:/library/OpenSceneGraph-2.9.8/src/osgPlugins/jpeg/ReaderWriterJPEG.cpp:251: warning: invalid conversion from 'void (*)(jpeg_decompress_struct*)' to 'void (*)()'
- d:/library/OpenSceneGraph-2.9.8/src/osgPlugins/jpeg/ReaderWriterJPEG.cpp:252: warning: invalid conversion from 'boolean (*)(jpeg_decompress_struct*)' to 'boolean (*)()'
- d:/library/OpenSceneGraph-2.9.8/src/osgPlugins/jpeg/ReaderWriterJPEG.cpp:253: warning: invalid conversion from 'void (*)(jpeg_decompress_struct*, long int)' to 'void (*)()'
- d:/library/OpenSceneGraph-2.9.8/src/osgPlugins/jpeg/ReaderWriterJPEG.cpp:254: warning: invalid conversion from 'boolean (*)(jpeg_decompress_struct*, int)' to 'boolean (*)()'
- d:/library/OpenSceneGraph-2.9.8/src/osgPlugins/jpeg/ReaderWriterJPEG.cpp:255: warning: invalid conversion from 'void (*)(jpeg_decompress_struct*)' to 'void (*)()'
- d:/library/OpenSceneGraph-2.9.8/src/osgPlugins/jpeg/ReaderWriterJPEG.cpp: In function 'void osgDBJPEG::init_destination(jpeg_compress_struct*)':
- d:/library/OpenSceneGraph-2.9.8/src/osgPlugins/jpeg/ReaderWriterJPEG.cpp:286: error: too many arguments to function
- d:/library/OpenSceneGraph-2.9.8/src/osgPlugins/jpeg/ReaderWriterJPEG.cpp: In function 'boolean osgDBJPEG::empty_output_buffer(jpeg_compress_struct*)':
- d:/library/OpenSceneGraph-2.9.8/src/osgPlugins/jpeg/ReaderWriterJPEG.cpp:322: error: too many arguments to function
- d:/library/OpenSceneGraph-2.9.8/src/osgPlugins/jpeg/ReaderWriterJPEG.cpp: In function 'void osgDBJPEG::term_destination(jpeg_compress_struct*)':
- d:/library/OpenSceneGraph-2.9.8/src/osgPlugins/jpeg/ReaderWriterJPEG.cpp:349: error: too many arguments to function
- d:/library/OpenSceneGraph-2.9.8/src/osgPlugins/jpeg/ReaderWriterJPEG.cpp:354: error: too many arguments to function
- d:/library/OpenSceneGraph-2.9.8/src/osgPlugins/jpeg/ReaderWriterJPEG.cpp: In function 'void osgDBJPEG::jpeg_stream_dest(jpeg_compress_struct*, std::ostream*)':
- d:/library/OpenSceneGraph-2.9.8/src/osgPlugins/jpeg/ReaderWriterJPEG.cpp:376: error: too many arguments to function
- d:/library/OpenSceneGraph-2.9.8/src/osgPlugins/jpeg/ReaderWriterJPEG.cpp:380: warning: invalid conversion from 'void (*)(jpeg_compress_struct*)' to 'void (*)()'
- d:/library/OpenSceneGraph-2.9.8/src/osgPlugins/jpeg/ReaderWriterJPEG.cpp:381: warning: invalid conversion from 'boolean (*)(jpeg_compress_struct*)' to 'boolean (*)()'
- d:/library/OpenSceneGraph-2.9.8/src/osgPlugins/jpeg/ReaderWriterJPEG.cpp:382: warning: invalid conversion from 'void (*)(jpeg_compress_struct*)' to 'void (*)()'
- d:/library/OpenSceneGraph-2.9.8/src/osgPlugins/jpeg/ReaderWriterJPEG.cpp: In function 'unsigned char* osgDBJPEG::simage_jpeg_load(std::istream&, int*, int*, int*)':
- d:/library/OpenSceneGraph-2.9.8/src/osgPlugins/jpeg/ReaderWriterJPEG.cpp:496: warning: invalid conversion from 'void (*)(jpeg_common_struct*)' to 'void (*)()'
- d:/library/OpenSceneGraph-2.9.8/src/osgPlugins/jpeg/ReaderWriterJPEG.cpp:562: error: too many arguments to function
- d:/library/OpenSceneGraph-2.9.8/src/osgPlugins/jpeg/ReaderWriterJPEG.cpp:587: warning: invalid conversion from 'JSAMPLE*' to 'unsigned char*'
- make[2]: *** [src/osgPlugins/jpeg/CMakeFiles/osgdb_jpeg.dir/ReaderWriterJPEG.obj] Error 1
- make[1]: *** [src/osgPlugins/jpeg/CMakeFiles/osgdb_jpeg.dir/all] Error 2
- make: *** [all] Error 2
复制代码
注意到错误只产生在ReaderWriterJPEG.cpp中,是不是有什么宏定义不正确啊?? |
|