-
Notifications
You must be signed in to change notification settings - Fork 37
Issue With MatLab Binaries #223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Could you try the following: Matlab ships its own version of libstdc++-6.dll and thus does not bother to look for the one from mingw. The renaming will force Matlab to look for other available libstdc++-6.dll and if your path is set correct it will find mingw's. |
Thank you for the prompt response. I make the directed changes, and I am still receiving the same error message. I have prepended the path environmental variable value in my advanced system settings with the following path: |
Yes, that sounds right. Apart from that, have you added 'C:\Users\Evan_S\SG\matsgpp to Matlabs pathtool? Finally could you please tell me the exact error message you receive? |
Yes, MINGW-x64 is installed properly. The complete error is: |
This doesn't help much. I am used to much more verbose error messages telling which libraries are missing. Apparently in a case like yours it is common to use the Dependency Walker to find out which libraries are missing. This error message can also happen when trying to run a mex file that was compiled with another version of MATLAB. Which version of MATLAB are you using? The MATLAB binaries were compiled with 2017a |
We have also just released SG++ 3.3, including Matlab binaries which are compiled on Windows 10 with Matlab R2018a. |
I have downloaded the recent release according to the installation guidelines (Windows 10, MinGW-w64 8.1.0-posix-seh-rt_v6-rev0, MATLAB R2018b), but I cannot get the example "sgpp.Grid.createLinearGrid(2)" to run. The following error message pops up: Invalid` MEX-file 'PATH2BINARIES\matsgppmex.mexw64': This issue occurs whether MinGW's or Matlab's version of the DLL is used. Do you have an idea how to fix this? |
@EDShapiro and @aleks01s We changed the build environment for the latest release and as a result the steps in the Wiki seem to be outdated. We now use msys2 as a way to install an up-to-date version of mingw64 and the subsequent gcc runtime. Could you please try and remove your existing mingw64 installation and any remaining traces of any Paths pointing to it? After that try and see if these rough instructions work for you:
After that you should be able to start MATLAB and follow the usual instructions to test the sgpp installation. |
Hi again, |
I have followed the instructions for using MatLab binaries directly.
-I have installed version 6.3.0 of MinGW_w64, and prepended the path to the binaries to the path environmental variable, both in CMD and in system settings.
When trying to run sgpp.Grid.createLinearGrid(2) in MatLab I get the following error:
Invalid MEX-file 'C:\Users\Evan_S\SG\matsgpp\matsgppmex.mexw64': The specified module could not be found..
Even though I can see this file in directory.
Can you tell me how to fix this?
The text was updated successfully, but these errors were encountered: