Configure error vtk on vs2010, win7 64bit? - visual-studio-2010

I have this error when configure vtk on visual studio 2010, win7-64bit
The C compiler identification is unknow
The CXX compiler identification is unknown
Check if the system is big endian
Searching 16 bit integer
What's may be a problem?

Related

is visual studio community compatible with cuda 8.0 on windows 10 64 bit machine

I have a 64-bit machine with windows 10 OS and NVIDIA GeForce GT 740M display adapter. If I download Visual Studio Community, then will it be compatible with Cuda 8.0?
I checked the installation guide: http://docs.nvidia.com/cuda/cuda-installation-guide-microsoft-windows/#axzz4Uh4y5eqy. There was a table called Windows Compiler Support in CUDA 8.0. I did not understand what they meant by Native x86_64 and Cross (x86_32 on x86_64).
Please tell me what they mean, and if my machine will be compatible.
According to installation guide you mentioned, you need to install Visual Studio Community 2015. It wouldn't support Cross (x86_32 on x86_64), which means you would not be able to build 32-bit (x86_32) applications on your machine. Native x86_64 compiler allows build applications for your local, x86_64 system, and by default it would always be supported on a x86_64 system.

OpenAcc for Windows

Using Visual Studio I am able to build and execute C++ code that uses CUDA on my workstation equipped with a geforce gtx 560 ti GPU. I have also downloaded the OpenACC toolkit from NVIDIA Developer website, and I want to install it for my Windows OS. However, I keep reading that I need a linux based OS to install, but that the PGI compiler is supported by Windows. Is it possible to install the OpenAcc for Windows and build/execute in Visual Studio?
PGI supports C and Fortran on Windows, Linux and MacOSX. C++ is available on Linux. The Portland Visual Fortran (PVF) product is a VS plugin. The C compiler is available via the command line. OpenACC is supported in both C and Fortran on Windows.
I've never tried it with Visual Studio, but I have downloaded the PGI compiler for Windows and built an OpenACC code using their trial license. They sell a product called PGI Visual Fortran which does integrate with VS, so I would expect that you can do the same with the C and C++ compilers.

Mex setup for matlab Win8

I'm trying to setup mex in matlab and I got a message
"No supported SDK or compiler was found on this computer.
For a list of supported compilers, see
http://www.mathworks.com/support/compilers/R2012b/win64.html" But this sdk is not suitable for WIn8. And I have already installed visual studio 2013. I don't understand why it can't find the compiler. Please help me.

mex setup for Matlab

I am having some trouble with the mex setup in terms of selecting a compiler. I have attempted to install windows SDK 7.1 but it fails each time. According to THIS forum it is because i have visual studio 10.0 installed (which I do). So ideally i should be able to set up mex with this compiler. But when i try i get the following error:
Welcome to mex -setup. This utility will help you set up
a default compiler. For a list of supported compilers, see
http://www.mathworks.com/support/compilers/R2012a/win64.html
Please choose your compiler for building MEX-files:
Would you like mex to locate installed compilers [y]/n? n
Select a compiler:
[1] Intel C++ 12.0 (with Microsoft Software Development Kit (SDK) linker)
...
[14] Microsoft Visual C++ 2010
[0] None
Compiler: 14
Warning: The default location for Microsoft Visual C++ 2010 compiler is:
"C:\Program Files (x86)\Microsoft Visual Studio 10.0"
but either that directory does not exist or the configuration
is invalid.
*****************************************************************************
Error: Microsoft Visual C++ 2010 requires the Microsoft Windows Software
Development Kit (SDK), but the SDK cannot be found. Examine your
Microsoft Visual C++ 2010 installation.
*****************************************************************************
Error using mex (line 206)
Unable to complete successfully.
So obviously i do need SDK??? I have tried un-installing the SDK 7.1 from microsoft several times but no luck.
I have thought that maybe i need to manually point mex deeper into the visual studio file system in order to find the compiler, any ideas about that?
I am using Windows 7 64 bit with matlab R2012a.
Thanks for your help.
I don't know the reason for this but this is how I got it right.
Uninstall all versions of Microsoft Visual C++ Redistributable from your computer.
Install Microsoft Visual C++ 2010 Service Pack 1 Compiler Update for the Windows SDK 7.1 from here: https://www.microsoft.com/en-in/download/details.aspx?id=4422
Try mex -setup again.

Setting up mex to use the Visual Studio 2010 compiler

I have Visual Studio 2010 installed. However, MATLAB doesn't find the compiler.
>> mex -setup
Please choose your compiler for building external interface (MEX) files:
Would you like mex to locate installed compilers [y]/n? y
Select a compiler:
[0] None
Compiler:
If I answer n to the question, I get the following
Would you like mex to locate installed compilers [y]/n? n
Select a compiler:
[1] Intel C++ 11.1 (with Microsoft Visual C++ 2008 SP1 linker)
[2] Intel C++ 9.1 (with Microsoft Visual C++ 2005 SP1 linker)
[3] Intel Visual Fortran 11.1 (with Microsoft Visual C++ 2008 SP1 linker)
[4] Intel Visual Fortran 11.1 (with Microsoft Visual C++ 2008 Shell linker)
[5] Intel Visual Fortran 10.1 (with Microsoft Visual C++ 2005 SP1 linker)
[6] Microsoft Visual C++ 2005 SP1
[7] Microsoft Visual C++ 2008 Express
[8] Microsoft Visual C++ 2008 SP1
[0] None
Compiler: 8
The default location for Microsoft Visual C++ 2008 SP1 compilers is C:\Program Files (x86)\Microsoft Visual Studio 9.0,
but that directory does not exist on this machine.
Use C:\Program Files (x86)\Microsoft Visual Studio 9.0 anyway [y]/n? n
Please enter the location of your compiler: [C:\Program Files (x86)\Microsoft Visual Studio 9.0]
What is the easiest way to compile my c++ code to make it available in MATLAB? Install Visual C++ 2008? oO
It depends on what MATLAB version you are using. R2010b supports VS2010 out of the box. If you have R2010a, there is a patch available:
Update From the World of MEX: Visual Studio 2010 Support
How can I use Microsoft Visual C++ 2010 to create MEX files with MATLAB 7.10 (R2010a)?
There are more than 1 ways of working around your problem, and only one involves money :)
Buy/Upgrade to a new Matlab version (R2010b recognizes and works with VS2010).
You don't have to install the full VS2008 package, the old Windows SDK v7.0 is enough. Once installed, matlab should recognize is when you do a mbuild -setup.
As you yourself suggested, install VS2008.
For future reference: http://www.mathworks.com/support/compilers/R2010b/index.html
You can also make your c++ code available to Matlab without using mex. Matlab is capable of loading external DLLs and calling their functions. So you can wrap your code into a DLL, and bypass mex entirely.
Generally, I found this to be an easier way of calling C or C++ code from matlab. The drawback is that you would not have all the facilities for manipulating matlab data structures that mex provides. You can still pass data back and forth, some things are more cumbersome, such as allocating an array in C and giving the ownership of it to matlab.

Resources