Win7 + VS2010 + CMake,, compiler error

Post Reply
alex369
Posts: 11
Joined: Thu Oct 13, 2011 4:37 am

Win7 + VS2010 + CMake,, compiler error

Post by alex369 »

Hi,,,

Can someone help me to check this problem?
I downloaded the latest stable version Openvibe 0.13.1. I am using VS2010.
When i want to bulid this openvibe, it always show me the following error. I have uninstalled the previours version of CMake. And also re-running the Win32-clean. Still the problem occurs.

Can someone one give me some suggestion to fix this one?
Thank you very much.

Code: Select all

 to prevent data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
plugins/ovIAlgorithm.h : warning C4819: The file contains a character that canno
t be represented in the current code page (936). Save the file in Unicode format
 to prevent data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
plugins\ovIPluginObject.h : warning C4819: The file contains a character that ca
nnot be represented in the current code page (936). Save the file in Unicode for
mat to prevent data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
plugins/ovIAlgorithmDesc.h : warning C4819: The file contains a character that c
annot be represented in the current code page (936). Save the file in Unicode fo
rmat to prevent data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
plugins\ovIPluginObjectDesc.h : warning C4819: The file contains a character tha
t cannot be represented in the current code page (936). Save the file in Unicode
 format to prevent data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
plugins/ovIBoxAlgorithm.h : warning C4819: The file contains a character that ca
nnot be represented in the current code page (936). Save the file in Unicode for
mat to prevent data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
plugins\ovIPluginObject.h : warning C4819: The file contains a character that ca
nnot be represented in the current code page (936). Save the file in Unicode for
mat to prevent data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
plugins/ovIBoxAlgorithmDesc.h : warning C4819: The file contains a character tha
t cannot be represented in the current code page (936). Save the file in Unicode
 format to prevent data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
plugins\ovIPluginObjectDesc.h : warning C4819: The file contains a character tha
t cannot be represented in the current code page (936). Save the file in Unicode
 format to prevent data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
plugins\ovIPluginObject.h : warning C4819: The file contains a character that ca
nnot be represented in the current code page (936). Save the file in Unicode for
mat to prevent data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
plugins\ovIPluginObjectDesc.h : warning C4819: The file contains a character tha
t cannot be represented in the current code page (936). Save the file in Unicode
 format to prevent data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
plugins\ovIPluginObject.h : warning C4819: The file contains a character that ca
nnot be represented in the current code page (936). Save the file in Unicode for
mat to prevent data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
plugins\ovIPluginObjectDesc.h : warning C4819: The file contains a character tha
t cannot be represented in the current code page (936). Save the file in Unicode
 format to prevent data loss
[100%] Building CXX object CMakeFiles/OpenViBE-acquisition-server-dynamic.dir/sr
c/tmsi-refa32b/ovasCDriverTMSiRefa32B.obj
cl : Command line warning D9002 : ignoring unknown option '-mms-bitfields'
cl : Command line warning D9002 : ignoring unknown option '-mms-bitfields'
ovasCDriverTMSiRefa32B.cpp
E:\ncl_EEG\OpenVibe\openvibe-0.13.1-svn3210-src\openvibe-applications\acquisitio
n-server\trunc\src\tmsi-refa32b\ovasCDriverTMSiRefa32B.cpp : warning C4819: The
file contains a character that cannot be represented in the current code page (9
36). Save the file in Unicode format to prevent data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe-applications\acquisitio
n-server\trunc\src\tmsi-refa32b\../ovasIDriver.h : warning C4819: The file conta
ins a character that cannot be represented in the current code page (936). Save
the file in Unicode format to prevent data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
ovCIdentifier.h : warning C4819: The file contains a character that cannot be re
presented in the current code page (936). Save the file in Unicode format to pre
vent data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
ovCString.h : warning C4819: The file contains a character that cannot be repres
ented in the current code page (936). Save the file in Unicode format to prevent
 data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
ovCString.h : warning C4819: The file contains a character that cannot be repres
ented in the current code page (936). Save the file in Unicode format to prevent
 data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
ovIMatrix.h : warning C4819: The file contains a character that cannot be repres
ented in the current code page (936). Save the file in Unicode format to prevent
 data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
ovIObject.h : warning C4819: The file contains a character that cannot be repres
ented in the current code page (936). Save the file in Unicode format to prevent
 data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
ovCIdentifier.h : warning C4819: The file contains a character that cannot be re
presented in the current code page (936). Save the file in Unicode format to pre
vent data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
ovCMatrix.h : warning C4819: The file contains a character that cannot be repres
ented in the current code page (936). Save the file in Unicode format to prevent
 data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
ovIMatrix.h : warning C4819: The file contains a character that cannot be repres
ented in the current code page (936). Save the file in Unicode format to prevent
 data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
ovIStimulationSet.h : warning C4819: The file contains a character that cannot b
e represented in the current code page (936). Save the file in Unicode format to
 prevent data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
ovIObject.h : warning C4819: The file contains a character that cannot be repres
ented in the current code page (936). Save the file in Unicode format to prevent
 data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
ovCStimulationSet.h : warning C4819: The file contains a character that cannot b
e represented in the current code page (936). Save the file in Unicode format to
 prevent data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
ovIStimulationSet.h : warning C4819: The file contains a character that cannot b
e represented in the current code page (936). Save the file in Unicode format to
 prevent data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
ovIMemoryBuffer.h : warning C4819: The file contains a character that cannot be
represented in the current code page (936). Save the file in Unicode format to p
revent data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
ovIObject.h : warning C4819: The file contains a character that cannot be repres
ented in the current code page (936). Save the file in Unicode format to prevent
 data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
ovCMemoryBuffer.h : warning C4819: The file contains a character that cannot be
represented in the current code page (936). Save the file in Unicode format to p
revent data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
ovIMemoryBuffer.h : warning C4819: The file contains a character that cannot be
represented in the current code page (936). Save the file in Unicode format to p
revent data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
ovIObject.h : warning C4819: The file contains a character that cannot be repres
ented in the current code page (936). Save the file in Unicode format to prevent
 data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
ovIObject.h : warning C4819: The file contains a character that cannot be repres
ented in the current code page (936). Save the file in Unicode format to prevent
 data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
ovIKernelLoader.h : warning C4819: The file contains a character that cannot be
represented in the current code page (936). Save the file in Unicode format to p
revent data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
ovIObject.h : warning C4819: The file contains a character that cannot be repres
ented in the current code page (936). Save the file in Unicode format to prevent
 data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
ovIKernelLoader.h : warning C4819: The file contains a character that cannot be
represented in the current code page (936). Save the file in Unicode format to p
revent data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
kernel/ovIKernelContext.h : warning C4819: The file contains a character that ca
nnot be represented in the current code page (936). Save the file in Unicode for
mat to prevent data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
kernel\../ovIObject.h : warning C4819: The file contains a character that cannot
 be represented in the current code page (936). Save the file in Unicode format
to prevent data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
kernel/ovITypeManager.h : warning C4819: The file contains a character that cann
ot be represented in the current code page (936). Save the file in Unicode forma
t to prevent data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
kernel\log\ovILogListener.h : warning C4819: The file contains a character that
cannot be represented in the current code page (936). Save the file in Unicode f
ormat to prevent data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
kernel/log/ovILogListener.h : warning C4819: The file contains a character that
cannot be represented in the current code page (936). Save the file in Unicode f
ormat to prevent data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
kernel/player/ovIPlayer.h : warning C4819: The file contains a character that ca
nnot be represented in the current code page (936). Save the file in Unicode for
mat to prevent data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
kernel/plugins/ovIPluginManager.h : warning C4819: The file contains a character
 that cannot be represented in the current code page (936). Save the file in Uni
code format to prevent data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
kernel/plugins/ovIPluginModule.h : warning C4819: The file contains a character
that cannot be represented in the current code page (936). Save the file in Unic
ode format to prevent data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
kernel/scenario/ovIBox.h : warning C4819: The file contains a character that can
not be represented in the current code page (936). Save the file in Unicode form
at to prevent data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
kernel/scenario/ovIBoxIO.h : warning C4819: The file contains a character that c
annot be represented in the current code page (936). Save the file in Unicode fo
rmat to prevent data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
kernel/scenario/ovIBoxProto.h : warning C4819: The file contains a character tha
t cannot be represented in the current code page (936). Save the file in Unicode
 format to prevent data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
kernel/scenario/ovIComment.h : warning C4819: The file contains a character that
 cannot be represented in the current code page (936). Save the file in Unicode
format to prevent data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
kernel/scenario/ovILink.h : warning C4819: The file contains a character that ca
nnot be represented in the current code page (936). Save the file in Unicode for
mat to prevent data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
kernel/scenario/ovIProcessingUnit.h : warning C4819: The file contains a charact
er that cannot be represented in the current code page (936). Save the file in U
nicode format to prevent data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
kernel/scenario/ovIScenario.h : warning C4819: The file contains a character tha
t cannot be represented in the current code page (936). Save the file in Unicode
 format to prevent data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
plugins/ovIPluginObject.h : warning C4819: The file contains a character that ca
nnot be represented in the current code page (936). Save the file in Unicode for
mat to prevent data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
plugins\../ovIObject.h : warning C4819: The file contains a character that canno
t be represented in the current code page (936). Save the file in Unicode format
 to prevent data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
plugins/ovIPluginObjectDesc.h : warning C4819: The file contains a character tha
t cannot be represented in the current code page (936). Save the file in Unicode
 format to prevent data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
plugins\../ovIObject.h : warning C4819: The file contains a character that canno
t be represented in the current code page (936). Save the file in Unicode format
 to prevent data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
plugins/ovIAlgorithm.h : warning C4819: The file contains a character that canno
t be represented in the current code page (936). Save the file in Unicode format
 to prevent data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
plugins\ovIPluginObject.h : warning C4819: The file contains a character that ca
nnot be represented in the current code page (936). Save the file in Unicode for
mat to prevent data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
plugins/ovIAlgorithmDesc.h : warning C4819: The file contains a character that c
annot be represented in the current code page (936). Save the file in Unicode fo
rmat to prevent data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
plugins\ovIPluginObjectDesc.h : warning C4819: The file contains a character tha
t cannot be represented in the current code page (936). Save the file in Unicode
 format to prevent data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
plugins/ovIBoxAlgorithm.h : warning C4819: The file contains a character that ca
nnot be represented in the current code page (936). Save the file in Unicode for
mat to prevent data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
plugins\ovIPluginObject.h : warning C4819: The file contains a character that ca
nnot be represented in the current code page (936). Save the file in Unicode for
mat to prevent data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
plugins/ovIBoxAlgorithmDesc.h : warning C4819: The file contains a character tha
t cannot be represented in the current code page (936). Save the file in Unicode
 format to prevent data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
plugins\ovIPluginObjectDesc.h : warning C4819: The file contains a character tha
t cannot be represented in the current code page (936). Save the file in Unicode
 format to prevent data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
plugins\ovIPluginObject.h : warning C4819: The file contains a character that ca
nnot be represented in the current code page (936). Save the file in Unicode for
mat to prevent data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
plugins\ovIPluginObjectDesc.h : warning C4819: The file contains a character tha
t cannot be represented in the current code page (936). Save the file in Unicode
 format to prevent data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
plugins\ovIPluginObject.h : warning C4819: The file contains a character that ca
nnot be represented in the current code page (936). Save the file in Unicode for
mat to prevent data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe\trunc\include\openvibe\
plugins\ovIPluginObjectDesc.h : warning C4819: The file contains a character tha
t cannot be represented in the current code page (936). Save the file in Unicode
 format to prevent data loss
e:\ncl_eeg\openvibe\openvibe-0.13.1-svn3210-src\openvibe-applications\acquisitio
n-server\trunc\src\ovasIHeader.h : warning C4819: The file contains a character
that cannot be represented in the current code page (936). Save the file in Unic
ode format to prevent data loss
E:\ncl_EEG\OpenVibe\openvibe-0.13.1-svn3210-src\openvibe-applications\acquisitio
n-server\trunc\src\tmsi-refa32b\ovasCDriverTMSiRefa32B.cpp(382) : error C2001: n
ewline in constant
E:\ncl_EEG\OpenVibe\openvibe-0.13.1-svn3210-src\openvibe-applications\acquisitio
n-server\trunc\src\tmsi-refa32b\ovasCDriverTMSiRefa32B.cpp(494) : warning C4244:
 '=' : conversion from 'double' to 'OpenViBE::float32', possible loss of data
E:\ncl_EEG\OpenVibe\openvibe-0.13.1-svn3210-src\openvibe-applications\acquisitio
n-server\trunc\src\tmsi-refa32b\ovasCDriverTMSiRefa32B.cpp(498) : warning C4244:
 '=' : conversion from 'double' to 'OpenViBE::float32', possible loss of data
E:\ncl_EEG\OpenVibe\openvibe-0.13.1-svn3210-src\openvibe-applications\acquisitio
n-server\trunc\src\tmsi-refa32b\ovasCDriverTMSiRefa32B.cpp(520) : warning C4244:
 'initializing' : conversion from 'const OpenViBE::uint64' to 'OpenViBE::uint32'
, possible loss of data
NMAKE : fatal error U1077: 'D:\PROGRA~1\MICROS~1.0\VC\bin\cl.exe' : return code
'0x2'
Stop.
NMAKE : fatal error U1077: '"D:\Program Files\Microsoft Visual Studio 10.0\VC\BI
N\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"D:\Program Files\Microsoft Visual Studio 10.0\VC\BI
N\nmake.exe"' : return code '0x2'
Stop.

An error occured during building process

Press any key to continue . . .

alex369
Posts: 11
Joined: Thu Oct 13, 2011 4:37 am

Re: Win7 + VS2010 + CMake,, compiler error

Post by alex369 »

This problem has been fixed.

Code: Select all

E:\ncl_EEG\OpenVibe\openvibe-0.13.1-svn3210-src\openvibe-applications\acquisitio
n-server\trunc\src\tmsi-refa32b\ovasCDriverTMSiRefa32B.cpp(520) : warning C4244:
 'initializing' : conversion from 'const OpenViBE::uint64' to 'OpenViBE::uint32'
, possible loss of data
NMAKE : fatal error U1077: 'D:\PROGRA~1\MICROS~1.0\VC\bin\cl.exe' : return code
'0x2'
Stop.
NMAKE : fatal error U1077: '"D:\Program Files\Microsoft Visual Studio 10.0\VC\BI
N\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"D:\Program Files\Microsoft Visual Studio 10.0\VC\BI
N\nmake.exe"' : return code '0x2'
Stop.

An error occured during building process

Press any key to continue . . .
As we can see, the compiling is stopped by the file "ovasCDriverTMSiRefa32B.cpp". I found another post have similar problem only differ in the OS. I took the same file uploaded by jlegeny see viewtopic.php?f=4&t=576 and replace the same file in my openvibe project. Problem solved, except there are still a lot of warnings. But the Openvibe can function properly. I acutally tried on server PC, in Win7 + Vs2010 enviorment, 3 computers are failed in compile the source code if ovasCDriverTMSiRefa32B.cpp has not been replaced. Is this a bug in the current release? It would be very useful if someone can tell me why this error occurred in the first place.

And i have an other question, i also download a installer file for testing my gtec Usbamp device. In the installation version, i can find the gtec support in the server list, whereas this device's driver can not be found in my complied version. Can someone explaine me how to get gtec device supported in the source file? Do i need to program something extra?

Thank you very much
Wang Yubo

But it will be very useful if someone can tell me why this error happened.

alex369
Posts: 11
Joined: Thu Oct 13, 2011 4:37 am

Re: Win7 + VS2010 + CMake,, compiler error

Post by alex369 »

And i also dig a little deeper. I compared the new file which provided by jlegeny and the old file which responsible for my failed compiling. Here is the difference between two files.

In the left panel is the new file, in the right panel is the old file. The difference is highlight in a red box. I do not what happened there, but definitely some coding error. When i compile the source code, there are a lot of warnings related to this coding.

Can someone explain what is wrong with this code. I also tried with the SVN version, the error remains.
Attachments
Untitled.png
Untitled.png (46.53 KiB) Viewed 5581 times

jlegeny
Posts: 239
Joined: Tue Nov 02, 2010 8:51 am
Location: Mensia Technologies Paris FR
Contact:

Re: Win7 + VS2010 + CMake,, compiler error

Post by jlegeny »

Hello Alex,

thanks for this bug report. I have modified the files and the encoding should not be a problem as of now.

Thank you
Jozef

Post Reply