I'm trying to install ACADO Toolkit to use it with Matlab and have troubles.
In user manual (page:8) (can be seen here), it says to install Visual C++ compiler and restart the computer. I did that part. As a second step, it says that write mex -setup on Matlab and when I did that it gives errors:
Error using mex
No supported compiler or SDK was found. You can install the freely available MinGW-w64 C/C++ compiler; see Install MinGW-w64
Compiler. For more options, visit http://www.mathworks.com/support/compilers/R2016b/win64.html.
I also tried to install MinGW-w64 compiler and it wasn't installed and give installation error and said:
"There was a problem installing the third-party software".
What should I do to fix it?
Related
I have Matlab 2022b, Windows 11. In Matlab mex -setup cpp yields
MEX configured to use 'Microsoft Visual C++ 2022' for C++ language compilation
At the command prompt, nvcc --version yields:
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2022 NVIDIA Corporation
Built on Mon_Oct_24_19:40:05_Pacific_Daylight_Time_2022
Cuda compilation tools, release 12.0, V12.0.76
Build cuda_12.0.r12.0/compiler.31968024_0
When I try to run this file, I get this error:
Error using mex
Supported compiler not detected. For options, visit https://www.mathworks.com/support/compilers.
Error in mexcuda (line 168)
[varargout{1:nargout}] = mex(mexArguments{:});
Error in mexGPUall (line 7)
mexcuda -largeArrayDims spikedetector3.cu
Selecting 'MinGW64 Compiler (C++)' in Matlab gives the same error.
I found this thread. At least one of the participants is trying to run the same application I am, Kilosort. I tried downloading and installing Visual Studio 2019. Having done that mex -setup cpp does not give me any more options for C++ compilers than I had before.
Does anyone have any idea about how I can install a compiler that will allow me to execute that file, and run Kilosort?
MATLAB used to have a very stringent GPU-hardware/CUDA toolkit/MATLAB version compatibility requirement that went all the way down to the digit after the decimal point.
You may need to check that the version of Visual Studio you install is compatible with your version of CUDA. Simply keeping everything up-to-date will not be enough.
However, Mathworks have been vague on this since R2022.
I suppose you may either use an earlier version with a certain combination of release versions that have been tested to work (we followed that table and got Kilosort up and running), or attempt some variation on the newer versions.
If you were successful, please also share your toolchain configuration so that others may benefit from your experience. .
I just downloaded VS Code and I'm trying to execute C++ program on it.
I followed the VS Code C++ Get Started Guide, installed the latest version of MinGW-w64 via MSYS2 in drive D:/ and did all the steps on MSYS2 website.
I added the environment path D:\msys64\mingw64\bin
I also installed the C/C++ extension.
However, when I try to execute C++ program, it shows this error message.
How do I change the compiler path to D:\?
I have been trying to get an R package downloaded that requires clang and go fortran to be built. I have neither installed on this computer, and since I am using a common computer I do not have the ability to install Xcode.
I downloaded the clang and fortran packages supplied by R at:
https://cran.r-project.org/bin/macosx/tools/
After installing them I still get the same error: configure: error: C compiler cannot create executables
I am new to creating path modifications and such and wondered if anyone could help?
I saw that his was not answered still, what I ended up doing was installing clang and gofortran through Homebrew, which worked.
I have to use c++ 11 for class and I was wondering how I go about setting that up on a MAC? I need to be sure it is specifically c++ 11 or I will fail.
I liked the themes in VS Code and would like to do it with this program, but I am open to suggestions.
One answer would be to use Xcode, but personally I use Atom as my text editor and have several different compilers installed.
You will most likely need to install Xcode just for the build tools that come with it. You could install GCC or Clang via Homebrew or a package manager of your choice.(Yyou will need a working C++ compiler to install Gcc or clang via homebrew)
My suggested course of action would be to:
Install Xcode (From Mac App Store)
Install Homebrew(optional)
Install GCC and or Clang (optional)
Install a text editor like Atom or VSCode
The latest versions of GCC, Clang And Apples LLVM compiler will be able to compile C++11 and C++14.
If you choose to go with Atom, VSCode, etc... you will need to learn how to compile from the command line or use Make(Which is what I usually do)
It sounds to me like you go to a school that uses MS Visual Studio and you are seeking a replacement? If so you may run into trouble down the line not having Visual Studio. If your courses are going to be using Visual Studio I might suggest Dual Booting your Mac with Windows and Installing Visual Studio on there.(Though you will need copies of each, but your school may provide. Mine did) That is how I got through most of my programming classes that depended on Visual Studio.
EDIT:
Additionally you will need to make sure that you have make installed on your system. Try running make -v from your terminal. If you get command not found you will need to install it, it comes with Xcode or you can install it via Homebrew.
I have installed Xcode 4.0 (XCode Toolset, System Tools and Documentation components only), but have Netbeans with the C/C++ plugin. However when I try to create a new C++ project in Netbeans it tells me that no compiler was found on my system. The recommended course of action is to install Xcode, which I have done so.
How do I get Netbeans to recognize that I already have Xcode?
Most likely, you reinstall Xcode and this time don't uncheck the option that installs the compiler, etc. under /usr/bin for command line use. What's wrong with just having a full installation of Xcode?
If that doesn't work, it may be an incompatibility due to Xcode 4 installing to /Xcode4 instead of /Developer. You can fix that with a symlink or by installing Xcode 3.