Overview
Features
Download
Documentation
Community
Add-Ons & Services

mysql build failed

Please post support and help requests here.

mysql build failed

Postby GrimTheFourth » 02 Jul 2014, 05:57

When the buildwin.cmd reached the mysql build it started failing. The mysql is what I primarily need so how can I fix it so that it successfully builds?
GrimTheFourth
 
Posts: 2
Joined: 01 Jul 2014, 04:46

Re: mysql build failed

Postby DonChunior » 02 Jul 2014, 08:17

Have you read the README file?
There is some useful information about building the MySQL libraries and its external dependencies.
BOINC - Donate computing power instead of money
DonChunior
 
Posts: 10
Joined: 30 Oct 2012, 08:43

Re: mysql build failed

Postby waynix » 27 Aug 2014, 13:22

I had problems with building POCO with the build script, I had installed mysql and set the variable MYSQL_DIR in the buildscript to the correct path.
Adding "DIR %MYSQL_INCLUDE%" to line 45 of buildwin.cmd did return the header files needed by poco but the compilation of the solution MySQL_x64_vs110.sln still reported that the include mysql.h was missing.
Code: Select all
P:\ILECT\poco>buildwin.cmd 110 build all both x64 samples tests msbuild
 Datenträger in Laufwerk C: ist System
 Volumeseriennummer: 0000-0000

 Verzeichnis von C:\Program Files\MySQL\MySQL Connector C 6.1\include

27.08.2014  10:53    <DIR>          .
27.08.2014  10:53    <DIR>          ..
11.06.2014  05:10             3.654 big_endian.h
11.06.2014  05:10             2.555 byte_order_generic.h
11.06.2014  05:10             1.504 byte_order_generic_x86.h
11.06.2014  05:10             5.193 decimal.h
11.06.2014  05:10             4.297 errmsg.h
11.06.2014  05:10             7.078 keycache.h
11.06.2014  05:10             3.134 little_endian.h
27.08.2014  10:53    <DIR>          mysql
11.06.2014  05:10            29.219 mysql.h
11.06.2014  06:26            98.278 mysqld_ername.h
11.06.2014  06:26            36.517 mysqld_error.h
11.06.2014  05:10            24.846 mysql_com.h
11.06.2014  05:10             1.313 mysql_com_server.h
11.06.2014  05:10             1.142 mysql_embed.h
11.06.2014  05:10             2.172 mysql_time.h
11.06.2014  06:26               989 mysql_version.h
11.06.2014  05:10             2.009 my_alloc.h
11.06.2014  05:10             5.488 my_byteorder.h
11.06.2014  05:10             3.678 my_compiler.h
11.06.2014  06:25            12.311 my_config.h
11.06.2014  05:10             8.281 my_dbug.h
11.06.2014  05:10             2.940 my_dir.h
11.06.2014  05:10             6.163 my_getopt.h
11.06.2014  05:10            25.504 my_global.h
11.06.2014  05:10             1.506 my_list.h
11.06.2014  05:10             1.978 my_net.h
11.06.2014  05:10            19.960 my_pthread.h
11.06.2014  05:10            40.760 my_sys.h
11.06.2014  05:10             2.821 my_xml.h
11.06.2014  05:10            34.935 m_ctype.h
11.06.2014  05:10            11.037 m_string.h
11.06.2014  05:10             7.098 sql_common.h
11.06.2014  06:26            13.677 sql_state.h
11.06.2014  05:10             1.678 sslopt-case.h
11.06.2014  05:10             2.511 sslopt-longopts.h
11.06.2014  05:10             1.968 sslopt-vars.h
11.06.2014  05:10             2.282 typelib.h
              36 Datei(en),        430.476 Bytes
               3 Verzeichnis(se), 29.018.877.952 Bytes frei

I temporarily fixed the problem by manually adding the mysql paths to the vcxproj files in the poco\Data\MySQL folder.
My build command was:
Code: Select all
buildwin.cmd 110 build all both x64 samples tests msbuild
Currently using develop
waynix
 
Posts: 3
Joined: 27 Aug 2014, 11:47

Re: mysql build failed

Postby alex » 29 Aug 2014, 02:13

It depends which version of POCO and which build tool you are using. If devenv, you must have /useenv. Generally speaking, buildwin was a pain with it's brain dead language so now we also have a Powershell build script that should build fine.
alex
 
Posts: 1132
Joined: 11 Jul 2006, 16:27
Location: United_States

Re: mysql build failed

Postby waynix » 29 Aug 2014, 10:00

I did build from the develop branch i cloned from github (ded5af27db738da8985af4360eb0e611e23fe08b).

I don't know the powershell very good but there seems to be an error in line 65.
The line is missing a quotation mark it the statement: ${Env:$lib_$var"}

Code: Select all
63: function Add-Env-Var([string] $lib, [string] $var)
64: {
65:     if ((${Env:$var} -eq $null) -or (-not ${Env:$var}.Contains(${Env:$lib_$var"})))
66:     {
Currently using develop
waynix
 
Posts: 3
Joined: 27 Aug 2014, 11:47

Re: mysql build failed

Postby alex » 30 Aug 2014, 01:30

See if it works with this fix
alex
 
Posts: 1132
Joined: 11 Jul 2006, 16:27
Location: United_States


Return to Support

Who is online

Users browsing this forum: No registered users and 1 guest