oqgraph-dev team mailing list archive
-
oqgraph-dev team
-
Mailing list archive
-
Message #00280
Re: I just got oqgraph to build on Windows
Great achievement.
I don’t have a Windows machine (or image) to test on since I decommissioned XP last year.
Regards,
Antony.
On Apr 10, 2014, at 9:01 PM, bugs@xxxxxxxxxxxxxxxxxxx wrote:
> Finally!
>
> libjudy - 1.0.5
>
> At the moment I have it so you have to manually build libjudy in its own tree then specify an environment variable (as is needed for boost) so cmake can find it
>
> The compiler fix was to move an inline explicit template function in oqgraph_shim into the struct edge weight map:
>
> === modified file storage/oqgraph/oqgraph_shim.h
> --- storage/oqgraph/oqgraph_shim.h 2013-08-12 12:14:55 +0000
> +++ storage/oqgraph/oqgraph_shim.h 2014-04-11 03:26:55 +0000
> @@ -184,6 +184,10 @@
> typedef edge_info key_type;
> typedef boost::readable_property_map_tag category;
> edge_weight_property_map(const graph& g) : _g(g) { }
> + friend inline reference
> + get(const edge_weight_property_map& p, const key_type& key)
> + { return key.weight(); }
> +
> const graph& _g;
> };
>
> @@ -438,16 +442,6 @@
>
> inline property_map<
> oqgraph3::graph,
> - edge_weight_t>::const_type::reference
> - get(const property_map<oqgraph3::graph,
> - edge_weight_t>::const_type& p,
> - const property_map<
> - oqgraph3::graph,
> - edge_weight_t>::const_type::key_type& key)
> - { return key.weight(); }
> -
> - inline property_map<
> - oqgraph3::graph,
> edge_index_t>::const_type::reference
> get(edge_index_t,
> const oqgraph3::graph&,
>
> I worked this out after several hours of painstaking copy/paste into one SSCCE (http://sscce.org) C++ file
>
>
> Visual Studio 2010 Express + Windows 7.1 SDK
>
> Microsoft (R) C/C++ Optimizing Compiler Version 16.00.30319.01 for x64
> Copyright (C) Microsoft Corporation. All rights reserved.
>
> C:\Andrew\mariadb\lptrack\bld>mysql-test\mysql-test-run.pl --suite oqgraph
> Logging: C:/Andrew/mariadb/lptrack/mysql-test/mysql-test-run.pl --suite oqgraph
>
> VS config: RelWithDebInfo
> vardir: C:/Andrew/mariadb/lptrack/bld/mysql-test/var
> Removing old var directory...
> Creating var directory 'C:/Andrew/mariadb/lptrack/bld/mysql-test/var'...
> Checking supported features...
> MariaDB Version 10.0.8-MariaDB
> - SSL connections supported
> Using suites: oqgraph
> Collecting tests...
> Installing system database...
> Using server port 2741
>
> ==============================================================================
>
> TEST RESULT TIME (ms) or COMMENT
> --------------------------------------------------------------------------
>
> worker[1] Using MTR_BUILD_THREAD 300, with reserved ports 16000..16019
> oqgraph.general-innodb 'innodb' [ pass ] 423
> oqgraph.boundary_conditions [ pass ] 146
> oqgraph.create_attr [ pass ] 403
> oqgraph.create_attr_legacy [ pass ] 421
> oqgraph.general-Aria [ pass ] 331
> oqgraph.general-MyISAM [ pass ] 366
> oqgraph.invalid_operations [ pass ] 49
> oqgraph.isnull [ pass ] 54
> oqgraph.legacy_upgrade [ pass ] 58
> oqgraph.regression_1133093 [ pass ] 60
> oqgraph.regression_1134355 [ pass ] 51
> oqgraph.regression_1195735 [ pass ] 55
> oqgraph.regression_1196020 [ pass ] 159
> oqgraph.regression_1196027 [ pass ] 53
> oqgraph.regression_1196036 [ pass ] 65
> oqgraph.regression_1213120 [ pass ] 337
> oqgraph.regression_1233113 [ pass ] 49
> oqgraph.regression_796647 [ pass ] 47
> oqgraph.regression_796647b [ pass ] 86
> oqgraph.regression_796647c [ pass ] 56
> oqgraph.regression_drop_after [ pass ] 79
> oqgraph.social [ pass ] 34450
> --------------------------------------------------------------------------
> The servers were restarted 1 times
> Spent 37.798 of 71 seconds executing testcases
>
> Completed: All 22 tests were successful.
>
>
> --
> Mailing list: https://launchpad.net/~oqgraph-dev
> Post to : oqgraph-dev@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~oqgraph-dev
> More help : https://help.launchpad.net/ListHelp
References