Compiling new version of OpenViBE

Post Reply
karthiks
Posts: 78
Joined: Thu Sep 02, 2010 2:43 pm
Location: Université Libre de Bruxelles

Compiling new version of OpenViBE

Post by karthiks »

Hey,

I just updated my OpenViBE source with the new files. I am now unable to compile. I get the following error:

Code: Select all

E:\Openvibe\openvibe-applications\acquisition-server\trunc\src\field-trip-protocol\ovasCDriverFieldtrip.cpp(9) : fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory
NMAKE : fatal error U1077: 'C:\PROGRA~1\MICROS~1.0\VC\bin\cl.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.
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

Press any key to continue . . .
I am using Win7, x86, VC++ 2010 express is installed.
Regards,

Karthik

lbonnet
Site Admin
Posts: 417
Joined: Wed Oct 07, 2009 12:11 pm

Re: Compiling new version of OpenViBE

Post by lbonnet »

Hi karthiks,

As stated in the relaese note, new dependencies were added.
On windows pthread is needed to compile a new driver.

Before compiling the new sources, you have to re-install the dependencies.
Please run win32-install_dependencies.exe, clean the cmake cache (delete local-tmp folder) and compile the software once again.

Hope this helps !

Laurent
Follow us on twitter >> openvibebci

Checkout my (old) blog for some OpenViBE tips & tricks : here !

karthiks
Posts: 78
Joined: Thu Sep 02, 2010 2:43 pm
Location: Université Libre de Bruxelles

Re: Compiling new version of OpenViBE

Post by karthiks »

lbonnet wrote:Hi karthiks,

As stated in the relaese note, new dependencies were added.
On windows pthread is needed to compile a new driver.

Before compiling the new sources, you have to re-install the dependencies.
Please run win32-install_dependencies.exe, clean the cmake cache (delete local-tmp folder) and compile the software once again.

Hope this helps !

Laurent
Hey Laurent,

D'oh. I should have read the release note. Everything installed fine now. But, I have a new issue now.

When I try to run the OpenViBE acquisition server, I get the message - The program can't start because pthreadVCE2.dll is missing from your computer. Try reinstalling the program to fix the problem. I have cleaned and reinstalled everything twice now. But the issue remains.

When I start the designer, it gets stuck on this message and never proceeds forward -

Code: Select all

################################################################################
######
##
    ##
##  WARNING : Microsoft Visual Studio Common tools initialisation script not fou
nd  ##
##
    ##
################################################################################
######
[  INF  ] Created kernel loader, trying to load kernel module
[  INF  ] Kernel module loaded, trying to get kernel descriptor
[  INF  ] Got kernel descriptor, trying to create kernel
[  INF  ] Adding [../bin/OpenViBE-plugins-*.dll]
[  INF  ] Added 2 plugin object descriptor(s) from [../bin/OpenViBE-plugins-acqu
isition-dynamic.dll]
[  INF  ] Added 8 plugin object descriptor(s) from [../bin/OpenViBE-plugins-clas
sification-dynamic.dll]
[  INF  ] Added 1 plugin object descriptor(s) from [../bin/OpenViBE-plugins-clas
sification-gpl-dynamic.dll]
[  INF  ] Added 1 plugin object descriptor(s) from [../bin/OpenViBE-plugins-feat
ure-extraction-dynamic.dll]
[  INF  ] Added 17 plugin object descriptor(s) from [../bin/OpenViBE-plugins-fil
e-io-dynamic.dll]
[  INF  ] Added 11 plugin object descriptor(s) from [../bin/OpenViBE-plugins-sam
ples-dynamic.dll]
[  INF  ] Added 29 plugin object descriptor(s) from [../bin/OpenViBE-plugins-sig
nal-processing-dynamic.dll]
[  INF  ] Added 22 plugin object descriptor(s) from [../bin/OpenViBE-plugins-sig
nal-processing-gpl-dynamic.dll]
[  INF  ] Added 17 plugin object descriptor(s) from [../bin/OpenViBE-plugins-sim
ple-visualisation-dynamic.dll]
[  INF  ] Added 12 plugin object descriptor(s) from [../bin/OpenViBE-plugins-sti
mulation-dynamic.dll]
[  INF  ] Added 19 plugin object descriptor(s) from [../bin/OpenViBE-plugins-str
eam-codecs-dynamic.dll]
[  INF  ] Added 3 plugin object descriptor(s) from [../bin/OpenViBE-plugins-stre
aming-dynamic.dll]
[  INF  ] Added 7 plugin object descriptor(s) from [../bin/OpenViBE-plugins-tool
s-dynamic.dll]
[  INF  ] Added 4 plugin object descriptor(s) from [../bin/OpenViBE-plugins-vrpn
-dynamic.dll]
I have tried waiting for 10 minutes but nothing happens.

Thank you for the help.
Regards,

Karthik

lbonnet
Site Admin
Posts: 417
Joined: Wed Oct 07, 2009 12:11 pm

Re: Compiling new version of OpenViBE

Post by lbonnet »

Hi karthiks,

I forgot to tell you something...
When adding a new dependency we also add its DLL folder to the windows PATH variable, so openvibe can find every DLL it needs.
This is done by the script win32-init_env_command.cmd. This file has also been updated with the pthread dependency. Please delete this file in your scripts folder.
A new one will be generated at build time with the updated win32-init_env_command.cmd-skeleton file.

L-
Follow us on twitter >> openvibebci

Checkout my (old) blog for some OpenViBE tips & tricks : here !

karthiks
Posts: 78
Joined: Thu Sep 02, 2010 2:43 pm
Location: Université Libre de Bruxelles

Re: Compiling new version of OpenViBE

Post by karthiks »

Dear Laurent,

It solved my openvibe server issue. But the designer problem is still there as described in the previous post.

Any suggestions?
Regards,

Karthik

lbonnet
Site Admin
Posts: 417
Joined: Wed Oct 07, 2009 12:11 pm

Re: Compiling new version of OpenViBE

Post by lbonnet »

Hi khartiks,

The next step after loading all the plugins (vrpn is the last loaded) should be the designer re-opening the latest scenario(s) used.
These scenarios are defined in the generated file openvibe-designer.conf in C:\document and settings\[login]\.
You can remove this file, maybe it's somehow corrupted.

Other option: please set in your configuration file openvibe.conf the following tokens :

Code: Select all

Kernel_MainLogLevel = Debug
Kernel_ConsoleLogLevel = Trace
Then run the designer, wait a bit, and close.

Send us then the log file (log/openvibe-designer.log).

Maybe we will see where the program fails.

Laurent
Follow us on twitter >> openvibebci

Checkout my (old) blog for some OpenViBE tips & tricks : here !

karthiks
Posts: 78
Joined: Thu Sep 02, 2010 2:43 pm
Location: Université Libre de Bruxelles

Re: Compiling new version of OpenViBE

Post by karthiks »

Dear Laurent,
lbonnet wrote: The next step after loading all the plugins (vrpn is the last loaded) should be the designer re-opening the latest scenario(s) used.
These scenarios are defined in the generated file openvibe-designer.conf in C:\document and settings\[login]\.
You can remove this file, maybe it's somehow corrupted.
I did this, but it did not work.
lbonnet wrote: Other option: please set in your configuration file openvibe.conf the following tokens :

Code: Select all

Kernel_MainLogLevel = Debug
Kernel_ConsoleLogLevel = Trace
Then run the designer, wait a bit, and close.

Send us then the log file (log/openvibe-designer.log).

Maybe we will see where the program fails.

Laurent
It seems to fail at creating Ogre root object. I have attached the log file.

Thank you
Attachments
openvibe-designer.log
(22.78 KiB) Downloaded 254 times
Regards,

Karthik

lbonnet
Site Admin
Posts: 417
Joined: Wed Oct 07, 2009 12:11 pm

Re: Compiling new version of OpenViBE

Post by lbonnet »

Hi karthiks,

Indeed it fails in the middle of the Ogre startup process, but without any error message.
If we compare your log to a clean one, it seems like Ogre fails to load its plugins, starting with OpenGL Renderer.

Do you have a local version of Ogre installed on your computer (maybe it could mess up with the openvibe dependency)?

I don't manage to reproduce this behavior on the same setup (win7/x86/visual 2010).

Is this happening also with the latest version of openvibe (fresh SVN checkout from scratch)?

Laurent-
Follow us on twitter >> openvibebci

Checkout my (old) blog for some OpenViBE tips & tricks : here !

karthiks
Posts: 78
Joined: Thu Sep 02, 2010 2:43 pm
Location: Université Libre de Bruxelles

Re: Compiling new version of OpenViBE

Post by karthiks »

Hey Laurent,

Yes, a fresh checkout has the same problem. this is a detailed console level output -

Code: Select all

[ TRACE ] Initializing Ogre
[ TRACE ] Ogre configuration file ../share/openvibe-kernel-omk/ogre.cfg
[ TRACE ] Ogre plugins file E:\Openvibe\scripts\..\dependencies\ogre/bin/release
/Plugins.cfg
[ TRACE ] Creating Ogre root object...
[ DEBUG ] <Ogre3D::Log> Creating resource group General
[ DEBUG ] <Ogre3D::Log> Creating resource group Internal
[ DEBUG ] <Ogre3D::Log> Creating resource group Autodetect
[ DEBUG ] <Ogre3D::Log> SceneManagerFactory for type 'DefaultSceneManager' regis
tered.
[ DEBUG ] <Ogre3D::Log> Registering ResourceManager for type Material
[ DEBUG ] <Ogre3D::Log> Registering ResourceManager for type Mesh
[ DEBUG ] <Ogre3D::Log> Registering ResourceManager for type Skeleton
[ DEBUG ] <Ogre3D::Log> MovableObjectFactory for type 'ParticleSystem' registere
d.
[ DEBUG ] <Ogre3D::Log> OverlayElementFactory for type Panel registered.
[ DEBUG ] <Ogre3D::Log> OverlayElementFactory for type BorderPanel registered.
[ DEBUG ] <Ogre3D::Log> OverlayElementFactory for type TextArea registered.
[ DEBUG ] <Ogre3D::Log> Registering ResourceManager for type Font
[ DEBUG ] <Ogre3D::Log> ArchiveFactory for archive type FileSystem registered.
[ DEBUG ] <Ogre3D::Log> ArchiveFactory for archive type Zip registered.
[ DEBUG ] <Ogre3D::Log> DDS codec registering
[ DEBUG ] <Ogre3D::Log> FreeImage version: 3.13.1
[ DEBUG ] <Ogre3D::Log> This program uses FreeImage, a free, open source image l
ibrary supporting all common bitmap formats. See http://freeimage.sourceforge.ne
t for details
[ DEBUG ] <Ogre3D::Log> Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,
lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,
psd,cut,xbm,xpm,gif,hdr,g3,sgi,exr,j2k,j2c,jp2,pfm,pct,pict,pic,bay,bmq,cr2,crw,
cs1,dc2,dcr,dng,erf,fff,hdr,k25,kdc,mdc,mos,mrw,nef,orf,pef,pxn,raf,raw,rdc,sr2,
srf,arw,3fr,cine,ia,kc2,mef,nrw,qtk,rw2,sti,drf,dsc,ptx,cap,iiq,rwz
[ DEBUG ] <Ogre3D::Log> Registering ResourceManager for type HighLevelGpuProgram

[ DEBUG ] <Ogre3D::Log> Registering ResourceManager for type Compositor
[ DEBUG ] <Ogre3D::Log> MovableObjectFactory for type 'Entity' registered.
[ DEBUG ] <Ogre3D::Log> MovableObjectFactory for type 'Light' registered.
[ DEBUG ] <Ogre3D::Log> MovableObjectFactory for type 'BillboardSet' registered.

[ DEBUG ] <Ogre3D::Log> MovableObjectFactory for type 'ManualObject' registered.

[ DEBUG ] <Ogre3D::Log> MovableObjectFactory for type 'BillboardChain' registere
d.
[ DEBUG ] <Ogre3D::Log> MovableObjectFactory for type 'RibbonTrail' registered.
[ DEBUG ] <Ogre3D::Log> Loading library .\RenderSystem_Direct3D9
[ DEBUG ] <Ogre3D::Log> Installing plugin: D3D9 RenderSystem
[ DEBUG ] <Ogre3D::Log> D3D9 : Direct3D9 Rendering Subsystem created.
[ DEBUG ] <Ogre3D::Log> D3D9: Driver Detection Starts
[ DEBUG ] <Ogre3D::Log> D3D9: Driver Detection Ends
[ DEBUG ] <Ogre3D::Log> Plugin successfully installed
[ DEBUG ] <Ogre3D::Log> Loading library .\RenderSystem_GL
[ DEBUG ] <Ogre3D::Log> Installing plugin: GL RenderSystem
[ DEBUG ] <Ogre3D::Log> OpenGL Rendering Subsystem created.
Another install on a separate PC doesn't have this issue and , on that PC, after this the line says Plugin successfully installed. ( I am not sure if this information is helpful)

Thanks.
Regards,

Karthik

karthiks
Posts: 78
Joined: Thu Sep 02, 2010 2:43 pm
Location: Université Libre de Bruxelles

Re: Compiling new version of OpenViBE

Post by karthiks »

Any updates or new suggestions?
Regards,

Karthik

lbonnet
Site Admin
Posts: 417
Joined: Wed Oct 07, 2009 12:11 pm

Re: Compiling new version of OpenViBE

Post by lbonnet »

Hi there,
Sorry, the team is a bit reduced with everyone's summer vacation.

I'm still not capable of reproducing this problem on any computer here :s

Meanwhile, you can deactivate Ogre so that openvibe won't even try to load it. You will lost the 3D visualization though.

In your local configuration file (openvibe.conf), add the following token :

Code: Select all

Kernel_3DVisualisationEnabled = false
And Ogre won't be initialized at all.

We will try to reproduce this behavior to correct potential bug...

Tell us if it works without the 3D visualizations.

Laurent-
Follow us on twitter >> openvibebci

Checkout my (old) blog for some OpenViBE tips & tricks : here !

karthiks
Posts: 78
Joined: Thu Sep 02, 2010 2:43 pm
Location: Université Libre de Bruxelles

Re: Compiling new version of OpenViBE

Post by karthiks »

lbonnet wrote:Hi there,
Sorry, the team is a bit reduced with everyone's summer vacation.

I'm still not capable of reproducing this problem on any computer here :s
:-s
Meanwhile, you can deactivate Ogre so that openvibe won't even try to load it. You will lost the 3D visualization though.

In your local configuration file (openvibe.conf), add the following token :

Code: Select all

Kernel_3DVisualisationEnabled = false
And Ogre won't be initialized at all.

We will try to reproduce this behavior to correct potential bug...

Tell us if it works without the 3D visualizations.

Laurent-
This works fine. The designer loads.

Thanks. Hopefully we can figure out what is wrong.
Regards,

Karthik

karthiks
Posts: 78
Joined: Thu Sep 02, 2010 2:43 pm
Location: Université Libre de Bruxelles

Re: Compiling new version of OpenViBE

Post by karthiks »

Hey Laurent,

Hope everyone's summer vacation was good. I am still unable to resolve this problem without disabling Ogre. Any ideas?
Regards,

Karthik

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

Re: Compiling new version of OpenViBE

Post by yrenard »

Dear karthiks,

I believe there is an issue with your graphic card driver. Please try to update them.

Best regards,
Yann

Post Reply