Thank you for the answer, I'll try to be more specific.
I modified the previous driver trying to let it works under windows, I modified only the part related to the connection, all the rest is the same code.
I modified also the FindThirdPartyGMobiLabPlusAPI.cmake adding the "WIN32 section" and when i compile openvibe the compiler create a gMobilabPlus.dll (I don't understand your phrase
Quote:
The driver should not be compiled in the form of a DLL
also the ThinkGear make a dll file and if i try to eliminate and play the Acquisition Server this last one crash on loading ) but when i open the server my driver not appears in the comboBox.
It means this:
the file gMOBIlabplus.h is found on including gMOBIlabplus.h in ovasCDriverGTecGMobiLabPlus.cpp
the file gMOBIlabplus.h is NOT found on including ovasCDriverGTecGMobiLabPlus.cpp in ovasCAcquisitionServerGUI.cpp
Part of Log when i compile with "win32-build.cmd"
Code:
-- Found OpenViBE plugins global defines...
-- Found boost...
-- Found GTK+...
-- [ OK ] Third party lib G:/Work_andrea/openvibe-0.12.0-svn3107-src/dependencies/gtk/lib/gtk-win32-2.0.lib
-- [ OK ] Third party lib G:/Work_andrea/openvibe-0.12.0-svn3107-src/dependencies/gtk/lib/gdk-win32-2.0.lib
...
...
...
--
We Are under WINDOWS
----
G:/Work_andrea/BCI-API/gMOBIlabplus
----
-- Found gMobilabPlusCAPI...
-- [ OK ] lib G:/Work_andrea/BCI-API/gMOBIlabplus/gMOBIlabplus.lib
...
...
Scanning dependencies of target OpenViBE-acquisition-server-dynamic
[ 2%] Building CXX object CMakeFiles/OpenViBE-acquisition-server-dynamic.dir/src/gtec-gmobilabplus/ovasCDriverGTecGMobiLabPlus.obj
cl : Command line warning D9002 : ignoring unknown option '-mms-bitfields'
cl : Command line warning D9002 : ignoring unknown option '-mms-bitfields'
ovasCDriverGTecGMobiLabPlus.cpp
[ 5%] Building CXX object CMakeFiles/OpenViBE-acquisition-server-dynamic.dir/src/ovasCAcquisitionServerGUI.obj
cl : Command line warning D9002 : ignoring unknown option '-mms-bitfields'
cl : Command line warning D9002 : ignoring unknown option '-mms-bitfields'
ovasCAcquisitionServerGUI.cpp
G:\Work_andrea\openvibe-0.12.0-svn3107-src\openvibe-applications\acquisition-server\trunc\src\ovasCAcquisitionServerGUI.cpp(363) : warning C4244: 'initializing' : conversion from 'OpenViBE::uint64' to 'OpenViBE::float64', possible loss of data
G:\Work_andrea\openvibe-0.12.0-svn3107-src\openvibe-applications\acquisition-server\trunc\src\ovasCAcquisitionServerGUI.cpp(617) : warning C4244: 'argument' : conversion from 'OpenViBE::uint64' to 'gdouble', possible loss of data
G:\Work_andrea\openvibe-0.12.0-svn3107-src\openvibe-applications\acquisition-server\trunc\src\ovasCAcquisitionServerGUI.cpp(618) : warning C4244: 'argument' : conversion from 'OpenViBE::uint64' to 'gdouble', possible loss of data
G:\Work_andrea\openvibe-0.12.0-svn3107-src\openvibe-applications\acquisition-server\trunc\src\ovasCAcquisitionServerGUI.cpp(619) : warning C4244: 'argument' : conversion from 'OpenViBE::uint64' to 'gdouble', possible loss of data
Linking CXX executable OpenViBE-acquisition-server-dynamic.exe
---> Copying dll file G:/Work_andrea/BCI-API/gMOBIlabplus/gMobilabPlus.dll for the g.Tec g.MobilabPlus driver.
[100%] Built target OpenViBE-acquisition-server-dynamic
Part of "ovasCAcquisitionServerGUI.cpp"
Code:
#include <iostream>
cout<<"Trying to load driver"<<endl;
#if defined TARGET_HAS_ThirdPartyGMobiLabPlusAPI
m_vDriver.push_back(new CDriverGTecGMobiLabPlus(m_pAcquisitionServer->getDriverContext()));
cout<<"Driver Loaded"<<endl;
#endif
Thanks
Andrea