Windows 7 64でmingw-w64(ルーベンビルド)を使用しています。
libodb-mysql (http://www.codesynthesis.com/products/odb/) をビルドするには libmysqlclient.a が必要です。しかし、元の Windows 64 mysql ビルドには、.a ライブラリはありません (mysqlclient.lib のみ)。Reimp は機能しません (.a ライブラリではなく、名前に異なる整数が含まれる多数のファイルを生成します)。
MySQL Community Server 5.5.28 をビルドしようとしています。
コマンド シーケンス:
cmake -G "MSYS Makefiles" .
make
私は得た
[ 11%] Building C object strings/CMakeFiles/strings.dir/ctype-mb.c.obj
[ 11%] Building C object strings/CMakeFiles/strings.dir/ctype-simple.c.obj
In file included from C:/Users/CanisMajor/Downloads/mysql-5.5.28/include/my_sys.h:44:0,
from c:/Users/CanisMajor/Downloads/mysql-5.5.28/strings/ctype-simple.c:19:
C:/Users/CanisMajor/Downloads/mysql-5.5.28/include/my_pthread.h:59:3: error: unknown type name 'CONDITION_VARIABL
E'
C:/Users/CanisMajor/Downloads/mysql-5.5.28/include/my_pthread.h:102:8: error: redefinition of 'struct timespec'
In file included from d:\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.7.1/../../../../x86_64-w64-mingw32/include/pro
cess.h:12:0,
from C:/Users/CanisMajor/Downloads/mysql-5.5.28/include/my_global.h:128,
from c:/Users/CanisMajor/Downloads/mysql-5.5.28/strings/ctype-simple.c:16:
d:\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.7.1/../../../../x86_64-w64-mingw32/include/sys/types.h:89:8: note: o
riginally defined here
In file included from C:/Users/CanisMajor/Downloads/mysql-5.5.28/include/my_sys.h:44:0,
from c:/Users/CanisMajor/Downloads/mysql-5.5.28/strings/ctype-simple.c:19:
C:/Users/CanisMajor/Downloads/mysql-5.5.28/include/my_pthread.h:715:5: error: unknown type name 'SRWLOCK'
make[2]: *** [strings/CMakeFiles/strings.dir/ctype-simple.c.obj] Error 1
make[1]: *** [strings/CMakeFiles/strings.dir/all] Error 2
mak
e: *** [all] Error 2
あなたはなにか考えはありますか?