build problem on Windows

Jeff Mitchell kde-dev at emailgoeshere.com
Wed Oct 8 22:07:14 UTC 2008


Ian Monroe wrote:
> 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

Doing a search revealed this bug:  http://bugs.mysql.com/bug.php?id=438
which suggests that it is needed for some esoteric compilers, but also
fixes problems people have with plain old msvc.  No one explains what it
means, but it should be safe to add, which I will do.

-Jeff



More information about the Amarok mailing list