Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-3037

LP:756966 - OQGRAPH engine build problem on Win64

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 10.0.7, 10.0.8, 10.0.9, 10.0.10
    • Fix Version/s: 10.0.11
    • Component/s: None
    • Labels:
    • Environment:
      Win64

      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).

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            arjenlentz Arjen Lentz added a comment -

            error.txt
            LPexportBug756966_error.txt

            Show
            arjenlentz Arjen Lentz added a comment - error.txt LPexportBug756966_error.txt
            Hide
            arjenlentz Arjen Lentz added a comment -

            Re: OQGRAPH engine build problem on Win64

            Show
            arjenlentz Arjen Lentz added a comment - Re: OQGRAPH engine build problem on Win64
            Hide
            arjenlentz Arjen Lentz added a comment -

            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.

            Show
            arjenlentz Arjen Lentz added a comment - 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.
            Hide
            knielsen Kristian Nielsen added a comment -

            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.

            Show
            knielsen Kristian Nielsen added a comment - 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.
            Hide
            ratzpo Rasmus Johansson added a comment -

            Launchpad bug id: 756966

            Show
            ratzpo Rasmus Johansson added a comment - Launchpad bug id: 756966
            Hide
            andymc73 Andrew McDonnell added a comment -

            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

            Show
            andymc73 Andrew McDonnell added a comment - 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
            Hide
            andymc73 Andrew McDonnell added a comment -

            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

            Show
            andymc73 Andrew McDonnell added a comment - 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
            Hide
            andymc73 Andrew McDonnell added a comment -

            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...

            Show
            andymc73 Andrew McDonnell added a comment - 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...
            Hide
            arjenlentz Arjen Lentz added a comment -

            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

            Show
            arjenlentz Arjen Lentz added a comment - 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

              People

              • Assignee:
                andymc73 Andrew McDonnell
                Reporter:
                arjenlentz Arjen Lentz
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: