cmbnb-demo's People
cmbnb-demo's Issues
Compiling demo for windows
Hello! Just wanna first say thanks for sharing your code online!
I have having some issues with the compilation of binaries for windows.
Windows 10
MATLAB R2017a
GCC v4.9.2
I am trying to compile the binaries for the above setup. Below is the mex command I am executing. Some changes have been made to link the libs for lmwblas and openmp.
mex -v C:\TDM-GCC-64\lib\gcc\x86_64-w64-mingw32\4.9.2\libgomp.a CXXFLAGS="$CXXFLAGS -Wall -std=c++11 -fopenmp" CXXOPTIMFLAGS='$CXXOPTIMFLAGS -Ofast -DNDEBUG' LDOPTIMFLAGS="$LDOPTIMFLAGS -fopenmp -O2"...
-lmwblas -L'C:\Program Files\MATLAB\R2017a\extern\lib\win64\microsoft\' -Iinclude/ -Ithird_party/eigen3 ...
-output mex/rot3_matches...
src/rot3_matches.cpp ...
src/geometry.cpp ...
src/bnb_rsearch_3dof_matches.cpp
However it is throwing me this error:
Error using mex
In file included from include/matches_indexation.h:81:0,
from C:\Users\AIR LAB\OneDrive - Singapore University of Technology and
Design(1)\PhD\Experiments\DVS\dataset\CMBNB-demo\src\bnb_rsearch_3dof_matches.cpp:20:
include/matches_indexation.hpp: In function 'void multiply_aux(reg::Matrix3X&, reg::Matrix3&, const
reg::Matrix3X&)':
include/matches_indexation.hpp:32:79: error: cannot convert 'long int*' to 'const ptrdiff_t* {aka
const long long int*}' for argument '3' to 'void dgemm(const char*, const char*, const ptrdiff_t*,
const ptrdiff_t*, const ptrdiff_t*, const double*, const double*, const ptrdiff_t*, const double*,
const ptrdiff_t*, const double*, double*, const ptrdiff_t*)'
dgemm(chn, chn, &m, &n, &m, &alpha, R.getPr(), &m, X.x, &m, &beta, Y.x, &m);
^
In file included from include/euc_matches_indexation.h:68:0,
from C:\Users\AIR LAB\OneDrive - Singapore University of Technology and
Design(1)\PhD\Experiments\DVS\dataset\CMBNB-demo\src\bnb_rsearch_3dof_matches.cpp:21:
include/euc_matches_indexation.hpp: In function 'void _multiply_aux(reg::Matrix3X&, reg::Matrix3&,
const reg::Matrix3X&)':
include/euc_matches_indexation.hpp:30:79: error: cannot convert 'long int*' to 'const ptrdiff_t* {aka
const long long int*}' for argument '3' to 'void dgemm(const char*, const char*, const ptrdiff_t*,
const ptrdiff_t*, const ptrdiff_t*, const double*, const double*, const ptrdiff_t*, const double*,
const ptrdiff_t*, const double*, double*, const ptrdiff_t*)'
dgemm(chn, chn, &m, &n, &m, &alpha, R.getPr(), &m, X.x, &m, &beta, Y.x, &m);
Seems like a casting error. But I am sure you were able to compile fine on your setup, so I wanted to get your input on this. Hope you would be able to advise.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.