Problem compiling SDK samples with VS2012

Problem compiling SDK samples with VS2012

imagem de John S.

When compiling the included samples with Visual Studio 2012 I get a LNK2038 error - compiler version mismatch, MSC_VER is '1700', not '1600'. I assume the libraries are made to work with VS2008/2010, as in the documentation. Is there any workaround for this issue or are you planning to release libraries which are compatible with VS2012?

Thanks,

John S

15 posts / 0 new
Último post
Para obter mais informações sobre otimizações de compiladores, consulte Aviso sobre otimizações.
imagem de David Lu (Intel)

Hi John,

Do you have Visual Studio 2008 or Visual Studio 2010? Right now, The Perceptual Computing SDK only works under Visual Studio 2008 and 2010. We did have plan to release libraries that works under Visual Studio 2012.

Thanks,
David

imagem de John S.

Hi David, thanks for your reply. I've installed visual studio 2010 and the samples are working. Do you know of a release date for the libraries, we are working with vs2012 and it's a bit of a pain to switch back and forth between ide's.

Thanks again for the quick reply!
John

imagem de David Lu (Intel)

Hi John, as I told you early, we did have such plan. I am sorry I do not have a definitive date right now. We will discuss this internally and I'll update this thread once I do have one. Thanks, David

imagem de Mikhail Nikolsky (Intel)

Hi John,
The problem is most probably in libpxcutils.lib.
Please open sample\common\libpxcutils.sln in Visual Studio 2012 and rebuild it to regenerate libpxcutils.lib in 2012 format. After that try to build sample application.
Does it help?
Thanks, Mikhail

imagem de daflippers

Hi Mikhail,

I don't know what John found but I did what you said and got:

Migration Report - libpxcutils
Overview
Project Path Errors Warnings Messages
libpxcutils libpxcutils.vcproj 0 13 2
Solution libpxcutils.sln 0 1 2

and 5 warnings in the build.

I then opened camera_viewer which would previously not build et voila! up and running.

I have moved the samples to a folder under My Documents. Whoever put samples in Program Files should be severely chastised.

David

imagem de TY

I have the same problem. Unfortunately I only have VS2012 Express, which can't be used to convert the project.

imagem de Xintian Wu (Intel)

You can create your own project files and include anything you might use under sample/common/src for your application.

imagem de TY

Thank you for getting back. It works well now.

imagem de Nicolae Popovici (Intel)

I did all teh aboev and while I can compile the camera_viewer sol succesfully when running I get the following message (Failed lo locate video stream(s). Do I need the Creative camera for this sample to work? Or will it work with the integrated camera as well?

imagem de David Lu (Intel)

Yes, you need use Creative camera in order to use Intel PerC SDK. Thanks.

imagem de daflippers

Hi David,

That's not quite true. The Speech synthesis, Speech recognition , Face detection, Landmark detection and probably audio recorder will work without the Creative camera. I just tested the first four with no Creative Camera attached.

I note there is now the opportunity to get the Creative camera FoC http://software.intel.com/en-us/blogs/2012/12/10/perceptual-challenge-ta... - I wish this had been announced before I bought my camera :o(

David

imagem de Mikhail Nikolsky (Intel)

camera_viewer sample designed to work with depth camera (if no -sdname option).
You can make it working with webcamera if either specify -sdname option or remove the following line from camera_viewer.cpp file and recompile:


capture.SetFilter(cmdl.m_sdname?cmdl.m_sdname:L"DepthSense Device 325");

imagem de Nicolae Popovici (Intel)

Thanks Mikhail for the workaround. I can confirm that camera_viewer works under VS2012. As well as face_detection sample.

imagem de daflippers

Hi Nicolae,

I can confirm all Beta 2 samples compile and run in VS2012.

First timers might want to check out another thread I started: http://software.intel.com/en-us/forums/topic/338014

David

Faça login para deixar um comentário.