GithubHelp home page GithubHelp logo

Comments (4)

laurentkneip avatar laurentkneip commented on July 17, 2024

Hi,

Yes I am aware of the problem and know the solution. I will take care of it
on monday.

Sorry for the delay, I had a deadline coming up.

laurent
On Wed, Nov 5, 2014 at 10:35 PM, Daphnee [email protected] wrote:

Hi,

I tried to install opengv under windows in order to use it with Matlab but
the installation failed.

I Firstly extracted opengv and cmake in C:\ (C:\cmake and C:\opengv).

Then did:
cd C:\cmake\bin
PATH=%PATH%;%cd%;
After that, I added a build file in opengv directory and did:
cd C:\opengv\build
Then:
cmake -G "Visual Studio 10" ..
as I'm using Visual Studio 2010, the following message appeared:
-- The C compiler identification is MSVC 16.0.40219.1
-- The CXX compiler identification is MSVC 16.0.40219.1
-- Check for working C compiler using: Visual Studio 10 2010
-- Check for working C compiler using: Visual Studio 10 2010 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler using: Visual Studio 10 2010
-- Check for working CXX compiler using: Visual Studio 10 2010 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Configuring done
-- Generating done
-- Build files have been written to: C:/opengv/build

And finally:
msbuild opengv.sln /p:Configuration=Release
Several warnings appeared (2723) for instance the following ones:

c:\opengv\third_party\eigen\src\core\mapbase.h(145): warning C4710:
'__thisca
ll Eigen::MatrixBase,3
,1,1> >::MatrixBase,3,
1,1> >(void)' : fonction non inline
[C:\opengv\build\random_generators.vcxproj]

c:\opengv\test\random_generators.cpp(135): warning C4710: 'struct
Eigen::Comm
aInitializer > __thiscall Eigen::DenseBas
e >::operator<<(double const &)' : foncti
on non inline [C:\opengv\build\random_generators.vcxproj]

c:\opengv\third_party\eigen\src\core\plainobjectbase.h(422): warning
C4710: '
__thiscall Eigen::MatrixBase >::MatrixBas
e >(void)' : fonction non inline [C:\open
gv\build\random_generators.vcxproj]

c:\opengv\third_party\eigen\src\core\plainobjectbase.h(422): warning
C4710: '
__thiscall Eigen::DenseStorage::DenseStorage(vo
id)' : fonction non inline [C:\opengv\build\random_generators.vcxproj]

c:\opengv\third_party\eigen\src\core\products\coeffbasedproduct.h(150):
warni
ng C4710: '__thiscall Eigen::MatrixBase gen::Matrix const &,class
Eigen::Matrix con
st &,6> >::MatrixBase ,3,3,0,3,3> const &,class Eigen::Matrix const &,6>

(void)' :
fonction non inline [C:\opengv\build\random_generators.vcxproj]

c:\opengv\third_party\eigen\src\core\plainobjectbase.h(422): warning
C4710: '
__thiscall Eigen::MatrixBase >::MatrixBas
e >(void)' : fonction non inline [C:\open
gv\build\random_generators.vcxproj]

c:\opengv\third_party\eigen\src\core\plainobjectbase.h(422): warning
C4710: '
__thiscall Eigen::DenseStorage::DenseStorage(vo
id)' : fonction non inline [C:\opengv\build\random_generators.vcxproj]

c:\opengv\third_party\eigen\src\core\plainobjectbase.h(439): warning
C4710: '
__thiscall Eigen::MatrixBase >::MatrixBas
e >(void)' : fonction non inline [C:\open
gv\build\random_generators.vcxproj]

c:\opengv\third_party\eigen\src\core\plainobjectbase.h(439): warning
C4710: '
__thiscall Eigen::DenseStorage::DenseStorage(in
t,int,int)' : fonction non inline
[C:\opengv\build\random_generators.vcxproj]
c:\opengv\third_party\eigen\src\core\cwiseunaryop.h(68): warning C4710:
'__th
iscall Eigen::CwiseUnaryOpImpl e>,class Eigen::Matrix const ,struct
Eigen::Dense>::CwiseUnar
yOpImpl,class Eigen::Matrix<
double,3,1,0,3,1> const ,struct Eigen::Dense>(void)' : fonction non inline
[C:
opengv\build\random_generators.vcxproj]

And the following error:
"c:\opengv\build\opengv.sln" (cible par défaut) (1) ->
"c:\opengv\build\opengv.vcxproj.metaproj" (cible par défaut) (3) ->
"c:\opengv\build\opengv.vcxproj" (cible par défaut) (4) ->
(ClCompile cible) ->
..\src\absolute_pose\modules\main.cpp(32): fatal error C1083: Impossible
d'ouvrir
le fichier include : 'Eigen/NonLinearOptimization' : No such file or direc
tory [c:\opengv\build\opengv.vcxproj]

2723 Avertissement(s)
1 Erreur(s)

Temps écoulé 00:00:54.18

Help me please to solve it.


Reply to this email directly or view it on GitHub
#11.

from opengv.

laurentkneip avatar laurentkneip commented on July 17, 2024

I "fixed" it. PLease test.

from opengv.

Daphnee avatar Daphnee commented on July 17, 2024

Thank you for your help, the build was successfully done but when I tried to install the library under Matlab, I got linking errors for instance:
"opengv.obj : error LNK2019: symbole externe non résolu "public: __thiscall opengv::absolute_pose::MACentralAbsolute::MACentralAbsolute(double const *,double const *,int,int)" (??0MACentralAbsolute@absolute_pose@opengv@@QAE@PBN0HH@Z) référencé dans la fonction _mexFunction "
I simply did mex -setup and chose the same compiler with wich I builded the library, set the path in matlab as c:\opengv\matlab and did:

mex -I../include -I../third_party -I../third_party/eigen3 -L../lib/Release -lopengv opengv.cpp
Am-I doing something wrong?

from opengv.

laurentkneip avatar laurentkneip commented on July 17, 2024

Which compiler did you use? Did you consistently use 32 or 64 bit? You
cannot mix them.

Cheers,
Laurent
On 20/11/2014 11:01 PM, "Daphnee" [email protected] wrote:

Thank you for your help, the build was successfully done but when I tried
to install the library under Matlab, I got linking errors for instance:
"opengv.obj : error LNK2019: symbole externe non résolu "public:
__thiscall
opengv::absolute_pose::MACentralAbsolute::MACentralAbsolute(double const
*,double const *,int,int)" (??0MACentralAbsolute@absolute_pose@opengv@@QAE
https://github.com/QAE@PBN0HH@Z) référencé dans la fonction
_mexFunction "
I simply did mex -setup and chose the same compiler with wich I builded
the library, set the path in matlab as c:\opengv\matlab and did:

mex -I../include -I../third_party -I../third_party/eigen3 -L../lib/Release
-lopengv opengv.cpp


Reply to this email directly or view it on GitHub
#11 (comment).

from opengv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.