[MDEV-3037] LP:756966 - OQGRAPH engine build problem on Win64 Created: 2011-04-10  Updated: 2014-05-27  Resolved: 2014-05-26

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: 10.0.7, 10.0.8, 10.0.9, 10.0.10
Fix Version/s: 10.0.11

Type: Bug Priority: Minor
Reporter: Arjen Lentz (Inactive) Assignee: Andrew McDonnell
Resolution: Fixed Votes: 1
Labels: Launchpad, oqgraph
Environment:

Win64


Attachments: XML File LPexportBug756966.xml     Text File LPexportBug756966_error.txt    

 Description   

Vlad reports:

The current state of OQGRAPH (on Windows) is that:

  • it can be built on 32 bit. Use the instruction on how to build MariaDB on
    Windows ( sent the link in one of me previous replies), additionally

a) Download boost distribution and unpack it on some directory on the build
machine (I'm unpacking it into C:\boost_1_46_1)

b) set environment variable BOOST_ROOT to the root directory of the boost
"installation" (on my machine it is C:\boost_1_46_1)

c) apply this patch

=== modified file 'storage/oqgraph/CMakeLists.txt'
— storage/oqgraph/CMakeLists.txt 2010-09-15 15:29:57 +0000
+++ storage/oqgraph/CMakeLists.txt 2011-04-10 15:51:02 +0000
@@ -13,6 +13,13 @@

  1. along with this program; if not, write to the Free Software
  2. Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
    USA

+FIND_PACKAGE(Boost)
+
+IF(Boost_FOUND)
+ INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})
+ SET(CMAKE_REQUIRED_INCLUDES ${Boost_INCLUDE_DIRS})
+ENDIF()
+
INCLUDE (CheckCXXSourceCompiles)
CHECK_CXX_SOURCE_COMPILES(
"#include <boost/version.hpp>

  • it cannot be built on 64 bit, due to "'boost::add_edge' : ambiguous call
    to overloaded function" errors (on both places where add_edge is used)
    The full error message is in the attachment. I cannot find trivial way to
    fix it (if you look at the message, even understanding what it says seems
    to require pretty good knowledge of boost graph templates and OQGRAPH
    structures)

The above means I cannot just enable OQGRAPH with the a) b) c) steps above,
as this will break entire build on 64 bit Windows. You need to fix this
error, or alternatively be good with not having OQGRAPH on x64 (I can do
that by adding some code to the above patch to disable 64 bit OQGRAPH
builds).



 Comments   
Comment by Arjen Lentz (Inactive) [ 2011-04-10 ]

Re: OQGRAPH engine build problem on Win64

Comment by Arjen Lentz (Inactive) [ 2011-04-10 ]

error.txt
LPexportBug756966_error.txt

Comment by Arjen Lentz (Inactive) [ 2011-04-10 ]

Re: OQGRAPH engine build problem on Win64
For Antony to check the Win64 error, see if the issue can be worked around inside the OQGRAPH engine or whether an upstream path to the Boost Graph Library is required.

Comment by Kristian Nielsen [ 2012-03-02 ]

Re: OQGRAPH engine build problem on Win64
It's been almost 1 year with no activity from upstream. There seems little point in keeping this open for mariadb - there are no plans from mariadb project to take over maintenance of OQGraph. We will do without oqgraph on windows for now if needed.

Comment by Rasmus Johansson (Inactive) [ 2012-03-02 ]

Launchpad bug id: 756966

Comment by Andrew McDonnell [ 2014-04-11 ]

I have just managed to build with oqgraph on Windows 64 bit.

Will try and push fixes to launchpad shortly. See https://lists.launchpad.net/oqgraph-dev/msg00279.html for some further information

Comment by Andrew McDonnell [ 2014-04-11 ]

Changes pushed to

http://launchpad.net/~andymc73/maria/oqgraph-maintenance/

Build instructions for JUDY prerequisite are included in storage/oqgraph/cmake/FindJudy.cmake

Tested with Visual Studio 2010 Express + Windows SDK 7.1 64

Comment by Andrew McDonnell [ 2014-05-26 ]

This seems to have been merged into trunk.

I added some basic documentation: https://mariadb.com/kb/en/building-under-windows/ so I hope I can take the liberty of closing this now...

Comment by Arjen Lentz (Inactive) [ 2014-05-27 ]

So it builds on Win x64 now?


Arjen Lentz, Exec.Director @ Open Query (http://openquery.com.au)
Australian peace of mind for your MySQL/MariaDB infrastructure.

Follow us http://openquery.com.au/blog/ & http://twitter.com/openquery

Generated at Thu Feb 08 06:45:53 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.