09/07/13 20:47:18 /DC8mWdL
fedora11で、recfriioをコンパイルしようとすると、エラーが出る。
偉い人教えてー。
<変更点>
・Makefile
LIBS = -lpthread -lboost_thread -lboost_filesystem `pkg-config --libs glib-2.0`
・usbops.hpp
#include <linux/usb_ch9.h>
[root@rec recfriior4]# make
g++ -O2 -g -Wall -pthread -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DB25 `pkg-config --cflags glib-2.0` -c -o recfriio.o recfriio.cpp
g++ -O2 -g -Wall -pthread -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DB25 `pkg-config --cflags glib-2.0` -c -o usbops.o usbops.cpp
g++ -O2 -g -Wall -pthread -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DB25 `pkg-config --cflags glib-2.0` -c -o error.o error.cpp
g++ -O2 -g -Wall -pthread -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DB25 `pkg-config --cflags glib-2.0` -c -o IoThread.o IoThread.cpp
In file included from IoThread.cpp:14:
RingBuf.hpp:90: error: ‘condition’ in namespace ‘boost’ does not name a type
RingBuf.hpp: In member function ‘void RingBuf<T>::setReady(T*)’:
RingBuf.hpp:188: error: ‘cond’ was not declared in this scope
RingBuf.hpp: In member function ‘const T* RingBuf<T>::getPopPtr(unsigned int)’:
RingBuf.hpp:233: error: ‘cond’ was not declared in this scope
RingBuf.hpp: In member function ‘void RingBuf<T>::interrupt()’:
RingBuf.hpp:260: error: ‘cond’ was not declared in this scope
make: *** [IoThread.o] エラー 1
CentOS5.2だと問題なく、コンパイルできたのだが。。。