How to install a specific toolbox which embedded C/C++ - matlab

Installing this toolbox (link of this here) is my aim. To do that, I must install 2 other toolbox, they are toolbox_graph (link to download) and toolbox_fast_marching (http://www.ceremade.dauphine.fr/~peyre/teaching/manifold/tp3.html)
My problem occured when I tried to compile them because they had been embedded with C/C++. I had installed Win7 64bit, after that Win7 32bit for Matlab can be comportable with Visual C 2010, ... etc. Beside that, i also install GCC but Matlab did not recognize GCC. Despite all things i did, i was unsuccesfully.

Related

How to compile something using arm-none-eabi-gcc on windows

I am trying to build a project for a raspberry pi 4, using windows 10 as the building platform, I have the compiler installed, arm-none-eabi-gcc however every piece of information I've learned about it relates to how to run it on a linux machine, and I don't really want to run a vm just to load the linux environment, so how do I run the compiler on windows 10, Do I run it from Cmd? or is there a different method to do this?
You could check this PreBuilt GNU Toolchain for building natively on Win10.
Otherwise you could also setup a WSL environment in your win10, then you would also be able use any linux toolchains.
You can download the IDE DS-5 Community Edition
https://developer.arm.com/tools-and-software/embedded/legacy-tools/ds-5-development-studio/editions/community-edition
You can download the toolchains:
https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-a/downloads
Then follow the steps in this tutorial:
https://developer.arm.com/tools-and-software/embedded/legacy-tools/ds-5-development-studio/resources/tutorials/getting-started-with-ds-5-ce-and-armv8-foundation-platform
https://community.arm.com/developer/tools-software/tools/b/tools-software-ides-blog/posts/running-bare-metal-software-on-the-raspberry-pi-3-using-arm-ds-5
You should have the arm-none-eabi-gcc.exe for Windows Compile.
Also, you have the linux environment like MinGW and use installed terminal(xterm).
then, you have to copy the .so files into MinGW /lib or /usr/lib folder under C:/MinGW.
Hope this would be helpful for you.

Install LibSVM for Matlab R2014a in Windows 8.1

I have a problem, I can not install the library LIBSVM (for the SVM training). I look this video: https://www.youtube.com/watch?v=Wz_4h_bH7-c
but when I type "mex -setup" Matlab shows to me an error: "Error using mex
No supported compiler or SDK was found. For options, visit
http://www.mathworks.com/support/compilers/R2014a/win64. "
Please, help to me
Thanks
You have to install a supported C/C++ for Matlab to run the make instruction (the make instruction compiles the LibSVM source code).
Download (and install) Microsoft Windows SDK 7.1, close and reopen Matlab and then run mex -setup to check that Matlab detects your compiler. Hope it does fix your problem.
Same story on Mac OS X by the way: you have to install XCode for Matlab to detect a supported C/C++ compiler.

Where can I install G++/GCC for windows 8?

Newbie programmer here, I'm getting an error when using Eclipse saying
"G++/GCC not found in path"
So apparently I need a compiler? I need a download link to g++ since I can't find it anywhere on the web.. I went on to GNU collection's website but there is NO download link for G++,
thanks.
The usual resources would be MinGW (32-bits) or MinGW-W64 (64-bits). Start with these links
MinGW-w32 vs. MinGW
MinGW — Minimalist GNU for Windows
MinGW-w64 - for 32 and 64 bit Windows (Since the mingw-w64 project on sourceforge.net is moving to mingw-w64.org i suggest to use mingw-w64.org)
mingw-w64 — GCC for Windows 64 & 32 bits

Why my m-file compiled with mcc does not run on my laptop (with Matlab) and on my pc (with MCR 8.2)?

I compiled an M-file on my laptop, obtaining an EXE file (lets say myexe.exe). I have MATLAB 2011b installed.
If I double click on myexe.exe, or if I run it from MATLAB command prompt with !myexe.exe, a window pops up saying:
Could not find version 7.16 of MCR. Attempting to load mclmcrrt7_16.dll.
Please install the correct version of the MCR.
Now, MATLAB Compiler Runtime (MCR) should be a standalone set of shared libraries that enables the execution of compiled MATLAB applications or components in computers in which MATLAB is not installed. I have MATLAB on my PC so why is it complaining about MCR?
Also, I copied this file to another computer in which I do not have MATLAB but I have MCR 8.2, it gives me the same error. I thought MCR was ensuring backward compatibility. Should I copy the MCR version 7.16 from my laptop to my PC and install it (I saw it is located in C:\Program Files\MATLAB\R2011b\toolbox\compiler\deploy\win64\MCRInstaller.exe, and I saw here that 7.14 is the MCR corresponding to MATLAB 2011b)?
What about my Laptop? Do I have to install MCR version 7.16 also there? I don't get why I should.
thanks
A.

How to use MPI (openMPI or MPICH2) with minGW - GNU gfortran compiler

I am using the eclipse PTP IDE to develop MPI code, I want to be able to compile MPI on windows, it seems to provide c++ and c binding, but I am writing using fortran and gfortran compiler and would like to work in windows, the current problem doesn't exist on linux because there it is possible to compile the libraries locally in linux and use the .mod modules.
I wanted to compile the modules using cygwin but the GNU gfortran version on cygwin is too old, and I wasn't successful openMPI or MPICH2 on windows using miniGW
any suggestions? maybe using c++ binding in fortran 2003, I write my code in fortran 2003 so it support this feature.
Documentation on this issue is lacking.
Thank you.
According to the MPICH2 Installer's Guide MPICH2 can be built under cygwin (see section 9.3 of the same document), so the version of gfortran shouldn't be an issue. Have you followed the instructions in this document (in particular section 2)?