build problem on Windows
Andre Canrinus
andre at canrinus.nl
Wed Oct 8 19:25:14 UTC 2008
In an attempt to get amarok build on Windows the build process stops with
an error message that MySQL Embedded can not be found.
I installed MySLQ Embedded (Version 4.1, being the latest to my knowledge).
This didn't solve my problem.
After digging further, I discovered the build process is unable to compile the
following snippet (from
\svn\trunk\extragear\multimedia\amarok\cmake\modules\FindMySQLAmarok.cmake).
check_cxx_source_compiles( "#include <mysql.h>\nint main() { int i =
MYSQL_OPT_USE_EMBEDDED_CONNECTION; }" HAVE_MYSQL_OPT_EMBEDDED_CONNECTION )
Manually compiling this source reveiled an error message. After changing the
snippet above in:
check_cxx_source_compiles( "#ifdef _WIN32\n
# define __LCC__\n
#endif\n
#include <mysql.h>\nint main() { int i = MYSQL_OPT_USE_EMBEDDED_CONNECTION; }"
HAVE_MYSQL_OPT_EMBEDDED_CONNECTION )
MySQL Embedded is detected successfully.
Can you give me a clue whether the change above is correct ??
thanks in advance.
andre
More information about the Amarok
mailing list