In Windows compilation mariadb

Source: Internet
Author: User

Os:windows XP SP3

ide:vs2010

First install the following tools:

(1) Bazzar

Https://launchpad.net/bzr/2.5/2.5.1/+download/bzr-2.5.1-1-setup.exe

(2) Bison from GnuWin32

Http://jaist.dl.sourceforge.net/project/gnuwin32/bison/2.4.1/bison-2.4.1-setup.exe

(3) Cmake

Https://cmake.org/files/v3.4/cmake-3.4.3-win32-x86.exe

V3.4.3 can be run in XP.

Then perform the compilation:

Check the system variable path to ensure that the following settings are included:

C:\Program Files\bazaar; C:\GnuWin32\bin; C:\BOOST_1_61_0; C:\boost_1_61_0\boost; C:\boost_1_61_0\bin\vc10\lib; C:\Program Files\cmake\bin

(1) CMake.

Microsoft Windows XP [version5.1.2600] (C) All rights reserved1985-2001Microsoft corp.c:\documents and Settings\Administrator>d:d:\>CD mariadb-5.5. theD:\mariadb-5.5. the>mkdirbldd:\mariadb-5.5. the>CD bldd:\mariadb-5.5. the\bld>CMake .--Building for: Visual StudioTen  .--Running CMake version3.4.3--The C compiler identification is MSVC16.0.40219.1--The CXX compiler identification is MSVC16.0.40219.1--Check forWorking C compiler using:visual StudioTen  .--Check forWorking C compiler using:visual StudioTen  .--Works--Detecting C compiler ABIInfo--Detecting C compiler ABIInfo- Done--Check forWorking CXX compiler using:visual StudioTen  .--Check forWorking CXX compiler using:visual StudioTen  .--Works--Detecting CXX compiler ABIInfo--Detecting CXX compiler ABIInfo- Done--detecting CXX Compile features--detecting CXX compile Features- Done--looking forisNaN--looking forisNaN-Not found--looking forsnprintf--looking forsnprintf-Not found--looking for_snprintf--looking for_SNPRINTF-found--MariaDB5.5. the--Check size of void *--Check size of void *- Done--Packaging as:mariadb-5.5. the-Win32--looking forpthread.h--looking forPthread.h-Not found--Found threads:true--looking forisNaN--looking forisNaN-Not found--Check size of time_t--Check size of time_t- Done--performing Test struct_timespec_has_tv_sec--Performing Test struct_timespec_has_tv_sec-Failed--performing Test struct_timespec_has_tv_nsec--Performing Test struct_timespec_has_tv_nsec-Failed--looking forMalloc_stats_printinchJemalloc--looking forMalloc_stats_printinchJemalloc-Not found--performing Test Have_wvla--Performing Test Have_wvla-Failed--performing Test Have_werror--Performing Test Have_werror-Failed--Boost version:1.61.0--performing Test have_xucred--Performing Test have_xucred-Failed--looking forMFC--looking forMFC-found--Configuring Done--generating Done--Build files have been written to:d:/mariadb-5.5. the/bldd:\mariadb-5.5. the\bld>
View Code

(2) sql/sql_locale.cc

Open this file with your UE and save it as the same name. The difference is that change "Format"!

(3) Generate SLN

CMake--build. --config Relwithdebinfo

(4) Compiling

Use VS2010 to open Bld/mysql.sln and compile.

Finally, copy the file.

Copy the following two files to overwrite the D:\progFiles\MariaDB55\bin to replace the programs that cannot be run in XP.

Bld\sql\relwithdebinfo\mysqld.exe

Bld\sql\relwithdebinfo\mysqld.pdb

Reference Documentation:

1. Building MariaDB on Windows

https://mariadb.com/kb/en/mariadb/Building_MariaDB_on_Windows/

2. About Mysqld is not a valid Win32 program

Http://www.cnblogs.com/xiaobin-hlj80/p/5500152.html

3. Install the Boost library (Windows)

Http://www.cnblogs.com/xiaobin-hlj80/p/5503842.html

In Windows compilation mariadb

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.