Error building 0.9.0 on plugin classification

Post Reply
MarcoRotonda
Posts: 7
Joined: Thu Sep 16, 2010 1:27 am

Error building 0.9.0 on plugin classification

Post by MarcoRotonda »

Hi there,
I've tried to compile the newer version after a while I didn't and I had this problem:

Code: Select all

Linking CXX shared library OpenViBE-plugins-classification-dynamic.dll
   Creating library OpenViBE-plugins-classification-dynamic.lib and object OpenViBE-plugins-classification-dynamic.exp
[100%] Built target OpenViBE-plugins-classification-dynamic

Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation.  All rights reserved.

[100%] Built target OpenViBE-plugins-classification-dynamic
Install the project...
-- Install configuration: "Release"
-- Installing: C:/openvibe/openvibe-plugins/classification/trunc/lib/OpenViBE-plugins-classification-dynamic.lib
-- Installing: C:/openvibe/openvibe-plugins/classification/trunc/bin/OpenViBE-plugins-classification-dynamic.dll

_______________________________________________________________________________

Configuring and building openvibe-plugins\classification-gpl\trunc ...

-- The C compiler identification is MSVC
-- The CXX compiler identification is MSVC
-- Check for CL compiler version
-- Check for CL compiler version - 1600
-- Check if this is a free VC compiler
-- Check if this is a free VC compiler - no
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio 10.0/VC/bin/cl.exe
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio 10.0/VC/bin/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio 10.0/VC/bin/cl.exe
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio 10.0/VC/bin/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
--   Found OpenViBE...
--     [  OK  ] lib C:/openvibe/openvibe/trunc/lib/OpenViBE-dynamic.lib
--   Found OpenViBE-toolkit...
--     [  OK  ] lib C:/openvibe/openvibe-toolkit/trunc/lib/OpenViBE-toolkit-dynamic.lib
--   Found OpenViBE module EBML...
--     [  OK  ] lib C:/openvibe/openvibe-modules/ebml/trunc/lib/OpenViBE-module-EBML-dynamic.lib
--   Found OpenViBE module XML...
--     [  OK  ] lib C:/openvibe/openvibe-modules/xml/trunc/lib/OpenViBE-module-XML-dynamic.lib
--   Found OpenViBE module System...
--     [  OK  ] lib C:/openvibe/openvibe-modules/system/trunc/lib/OpenViBE-module-System-dynamic.lib
--   Found OpenViBE plugins global defines...
--   Found it++...
--     [  OK  ] Third party lib C:/openvibe/dependencies/itpp/lib/libblas.a.lib
--     [  OK  ] Third party lib C:/openvibe/dependencies/itpp/lib/libfftw3-3.lib

--     [  OK  ] Third party lib C:/openvibe/dependencies/itpp/lib/liblapack.a.lib
--     [  OK  ] Third party lib C:/openvibe/dependencies/itpp/lib/libgcc.a.lib
--     [  OK  ] Third party lib C:/openvibe/dependencies/itpp/lib/libg2c.a.lib
--     [  OK  ] Third party lib C:/openvibe/dependencies/itpp/lib/itpp.lib
-- Configuring done
-- Generating done
-- Build files have been written to: C:/openvibe/local-tmp/openvibe-plugins/classification-gpl/trunc

Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation.  All rights reserved.

Scanning dependencies of target OpenViBE-plugins-classification-gpl-dynamic
[ 25%] Building CXX object CMakeFiles/OpenViBE-plugins-classification-gpl-dynamic.dir/src/algorithms/classification/ovpCAlgorithmClassifierBliffCFIS.obj
ovpCAlgorithmClassifierBliffCFIS.cpp
[ 50%] Building CXX object CMakeFiles/OpenViBE-plugins-classification-gpl-dynamic.dir/src/algorithms/classification/ovpCAlgorithmClassifierBliffLDA.obj
ovpCAlgorithmClassifierBliffLDA.cpp
[ 75%] Building CXX object CMakeFiles/OpenViBE-plugins-classification-gpl-dynamic.dir/src/algorithms/classification/ovpCAlgorithmClassifierLDA.obj
ovpCAlgorithmClassifierLDA.cpp
C:\openvibe\openvibe-plugins\classification-gpl\trunc\src\algorithms\classification\ovpCAlgorithmClassifierLDA.cpp(61) : warning C4244: 'argument' : conversion from 'unsigned __int64' to 'double', possible loss of data
C:\openvibe\openvibe-plugins\classification-gpl\trunc\src\algorithms\classification\ovpCAlgorithmClassifierLDA.cpp(62) : warning C4244: 'argument' : conversion from 'unsigned __int64' to 'double', possible loss of data
[100%] Building CXX object CMakeFiles/OpenViBE-plugins-classification-gpl-dynamic.dir/src/ovp_main.obj
ovp_main.cpp
Linking CXX shared library OpenViBE-plugins-classification-gpl-dynamic.dll
   Creating library OpenViBE-plugins-classification-gpl-dynamic.lib and object OpenViBE-plugins-classification-gpl-dynamic.exp
itpp.lib(inv.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall std::complex<double>::complex<double>(double const &,double const &)" (__imp_??0?$complex@N@std@@QAE@ABN0@Z) referenced in function "public: void __thiscall itpp::Mat<class std::complex<double> >::set_size(int,int,bool)" (?set_size@?$Mat@V?$complex@N@std@@@itpp@@QAEXHH_N@Z)
OpenViBE-plugins-classification-gpl-dynamic.dll : fatal error LNK1120: 1 unresolved externals LINK failed. with 1120
NMAKE : fatal error U1077: 'C:\openvibe\dependencies\cmake\cmake-2.8.2-win32-x86\bin\cmake.exe' : return code '0xffffffff' Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 10.0\VC\BIN\nmake.exe"' : return code '0x2' Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 10.0\VC\BIN\nmake.exe"' : return code '0x2' Stop.

An error occured during building process
Any idea?

Thanks,

Marco

yrenard
Site Admin
Posts: 645
Joined: Fri Sep 01, 2006 3:39 pm
Contact:

Re: Error building 0.9.0 on plugin classification

Post by yrenard »

Dear MarcoRotonda,

you probably installed the visual 2008 dependencies while compiling with visual 2010.

tell us if that helps,

yann

MarcoRotonda
Posts: 7
Joined: Thu Sep 16, 2010 1:27 am

Re: Error building 0.9.0 on plugin classification

Post by MarcoRotonda »

Hi Yann,
I can't understand how?
I just did a fresh install of vs express 2010.
On the same computer there wasn't any vs before.
Is that possible?
If yes, there is anything I could do?

yrenard
Site Admin
Posts: 645
Joined: Fri Sep 01, 2006 3:39 pm
Contact:

Re: Error building 0.9.0 on plugin classification

Post by yrenard »

Dear MarcoRotonda,

actually yes, you could just reinstall your dependencies. For this to be done, remove the dependencies folder, then run the win32-dependencies installer and take care choosing visual 2010 (default is visual 2008). Then build OpenViBE.

Yann

MarcoRotonda
Posts: 7
Joined: Thu Sep 16, 2010 1:27 am

Re: Error building 0.9.0 on plugin classification

Post by MarcoRotonda »

Hi Yann,
it works great!

Thank you.

Marco

Post Reply