build problem on Windows
Ian Monroe
ian at monroe.nu
Wed Oct 8 21:22:15 UTC 2008
On Wed, Oct 8, 2008 at 2:25 PM, Andre Canrinus <andre at canrinus.nl> wrote:
> 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).>
The 5.1 rc has it as well. 4.1 might work OK, but its not supported.
> 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
I have 0 clue what #defin __LCC__ does, so I can't really speak on the
correctness of this code. :D
> #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