I'm having trouble compiling MyM 1.36 and 1.09 on Windows, both WinXP (32) and Windows 7.
The Windows 7 computer is the biggest problem, as I have no binary for this - the other ones I can continue using, with version 1.0.9.
I have downloaded MySQL 5.1.49 today, as well as zlib 125. Apparently, there are no dependency issues.
On Windows 7, the following happens: (Using matlab r2010a, Visual Studio 2010)
Matlab input:
Thanks in advance for any help. I would also appreciate it if someone would simply make a 64bit windows binary available for the program.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2011-01-05
I had the same issue using Microsoft Visual C++ 2010 express edition, but the code can be compiled using Microsoft Visual C++ 2008 express edition.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2011-01-11
mex -I".\zlib125-dll\include" -I"C:\Program Files\MySQL\MySQL Server 5.5\include" -L".\zlib125-dll\lib" -L"C:\Program Files\MySQL\MySQL Server 5.5\lib" -lzdll -lmysqlclient ".\mym_src_v1.36\mym_src_v1.36\mym.cpp" LINKFLAGS="$LINKFLAGS /NODEFAULTLIB:LIBCMT"
This worked with the following:
-Windows 7 64-bit
-Matlab 2010a 64-bit
-MySQL 5.5
-Visual Studio Pro Trial 2010
(Matlab 2010a needs some mexopts for VS2010 but they are freely available from the matlab website).
However, this does not work with
-Windows 7 32-bit
-Matlab 2010b 32-bit
-MySQL 5.5
-Visual Studio Pro Trial 2010.
Unfortunately I uninstalled VS2010 before I could copy-paste the error messages but it had something to do with missing external compression something-or-other.
I will update after I try the 32-bit setup with VS 2008 express.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am currently using MinGW (the latest stable release) and Matlab 2010a. I have installed the MySQL Server 5.5 binaries for windows and now want to get this tool working though Matlab. I have tried to compile it but I keep getting, no matter what I do, the same errors as above. The seemingly unresolved symbols with libz. I have tried to find some solutions but I can not find a good answer. The version of libz that I installed is 1.2.3 (I think). Does anybody know what the issue with the unresolved libz references is? Any and all help is appreciated. I would give more info but I am at home now and not close to my computer at work. Thanks in advance.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2011-09-12
Hello,
Has anyone had recent success in compiling mym? I have had the same problems as 1 and 4 and have tried both visual studio 2008 and 2010.
I am running windows xp, other than that i have the same configurations as jimttt.
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I just struggled for several hours with the same issue as above (comment 4), and finally got it to work. I have matlab r2010b, Windows 7 32 bit, and visual studio 2010. The problem seems to be something in zlib.lib in the MySQL directory. If you replace the "-lz" or "-lzlib" with "-lzlibwapi" (and point to zlib125dll as library location) it should work.
So my final command is:
mex -I'C:\Program Files\MySQL\Connector C 6.0.2\include' -I'C:\zlib-1.2.7' -L'C:\Program Files\MySQL\MySQL Server 5.5\lib' -L'C:\Program Files\MySQL\Connector C 6.0.2\lib\opt' -L'C:\zlib125dll\dll32' -lmysqlclient -lzlibwapi mym.cpp
I then also had to copy zlibwapi.dll and libmysql.dll to C:\system32 in order to run mym once compiled.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I'm having trouble compiling MyM 1.36 and 1.09 on Windows, both WinXP (32) and Windows 7.
The Windows 7 computer is the biggest problem, as I have no binary for this - the other ones I can continue using, with version 1.0.9.
I have downloaded MySQL 5.1.49 today, as well as zlib 125. Apparently, there are no dependency issues.
On Windows 7, the following happens: (Using matlab r2010a, Visual Studio 2010)
Matlab input:
matlab output:
Thanks in advance for any help. I would also appreciate it if someone would simply make a 64bit windows binary available for the program.
I had the same issue using Microsoft Visual C++ 2010 express edition, but the code can be compiled using Microsoft Visual C++ 2008 express edition.
mex -I".\zlib125-dll\include" -I"C:\Program Files\MySQL\MySQL Server 5.5\include" -L".\zlib125-dll\lib" -L"C:\Program Files\MySQL\MySQL Server 5.5\lib" -lzdll -lmysqlclient ".\mym_src_v1.36\mym_src_v1.36\mym.cpp" LINKFLAGS="$LINKFLAGS /NODEFAULTLIB:LIBCMT"
This worked with the following:
-Windows 7 64-bit
-Matlab 2010a 64-bit
-MySQL 5.5
-Visual Studio Pro Trial 2010
(Matlab 2010a needs some mexopts for VS2010 but they are freely available from the matlab website).
However, this does not work with
-Windows 7 32-bit
-Matlab 2010b 32-bit
-MySQL 5.5
-Visual Studio Pro Trial 2010.
Unfortunately I uninstalled VS2010 before I could copy-paste the error messages but it had something to do with missing external compression something-or-other.
I will update after I try the 32-bit setup with VS 2008 express.
Same error with VS 2008 express.
I am currently using MinGW (the latest stable release) and Matlab 2010a. I have installed the MySQL Server 5.5 binaries for windows and now want to get this tool working though Matlab. I have tried to compile it but I keep getting, no matter what I do, the same errors as above. The seemingly unresolved symbols with libz. I have tried to find some solutions but I can not find a good answer. The version of libz that I installed is 1.2.3 (I think). Does anybody know what the issue with the unresolved libz references is? Any and all help is appreciated. I would give more info but I am at home now and not close to my computer at work. Thanks in advance.
Hello,
Has anyone had recent success in compiling mym? I have had the same problems as 1 and 4 and have tried both visual studio 2008 and 2010.
I am running windows xp, other than that i have the same configurations as jimttt.
Thanks
I just struggled for several hours with the same issue as above (comment 4), and finally got it to work. I have matlab r2010b, Windows 7 32 bit, and visual studio 2010. The problem seems to be something in zlib.lib in the MySQL directory. If you replace the "-lz" or "-lzlib" with "-lzlibwapi" (and point to zlib125dll as library location) it should work.
So my final command is:
mex -I'C:\Program Files\MySQL\Connector C 6.0.2\include' -I'C:\zlib-1.2.7' -L'C:\Program Files\MySQL\MySQL Server 5.5\lib' -L'C:\Program Files\MySQL\Connector C 6.0.2\lib\opt' -L'C:\zlib125dll\dll32' -lmysqlclient -lzlibwapi mym.cpp
I then also had to copy zlibwapi.dll and libmysql.dll to C:\system32 in order to run mym once compiled.