Rank: 121815 based on 0 downloads (last 30 days) and 0 file submitted
photo

Peter D

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by Peter
Updated File Comments Rating
18 Jun 2010 mpgwrite The MPEG converter takes a MATLAB movie matrix and writes the movie to disk as an MPEG file. Author: David Foti

Hi all,

Having trouble installing this on Windows Server 2008 R2 (just the server version of Win7) x64. Am running Matlab x64 and wish to compile for Matlab x64.

To get Visual Studio 2008, I followed the guides from here:

http://www.mathworks.com/support/solutions/en/data/1-6IJJ3L/index.html?solution=1-6IJJ3L
http://comkat.case.edu/comkat/comkat_wiki/index.php?title=Support:Tech_notes

However, it does not compile. When I set the makedll file to have -WIN32, then I get the following error upon compilation:

Microsoft (R) Incremental Linker Version 9.00.21022.08
Copyright (C) Microsoft Corporation. All rights reserved.

C:\Users\Peter\AppData\Local\Temp\5\mex_B85E032C-8380-4648-37B1-46C637B83C7B\mpgwrite.obj C:\Users\Peter\AppData\Local\Temp\5\mex_B85E032C-8380-4648-37B1-46C637B83C7B\mfwddct.obj C:\Users\Peter\AppData\Local\Temp\5\mex_B85E032C-8380-4648-37B1-46C637B83C7B\postdct.obj C:\Users\Peter\AppData\Local\Temp\5\mex_B85E032C-8380-4648-37B1-46C637B83C7B\huff.obj C:\Users\Peter\AppData\Local\Temp\5\mex_B85E032C-8380-4648-37B1-46C637B83C7B\bitio.obj C:\Users\Peter\AppData\Local\Temp\5\mex_B85E032C-8380-4648-37B1-46C637B83C7B\mheaders.obj C:\Users\Peter\AppData\Local\Temp\5\mex_B85E032C-8380-4648-37B1-46C637B83C7B\iframe.obj C:\Users\Peter\AppData\Local\Temp\5\mex_B85E032C-8380-4648-37B1-46C637B83C7B\pframe.obj C:\Users\Peter\AppData\Local\Temp\5\mex_B85E032C-8380-4648-37B1-46C637B83C7B\bframe.obj C:\Users\Peter\AppData\Local\Temp\5\mex_B85E032C-8380-4648-37B1-46C637B83C7B\psearch.obj C:\Users\Peter\AppData\Local\Temp\5\mex_B85E032C-8380-4648-37B1-46C637B83C7B\bsearch.obj C:\Users\Peter\AppData\Local\Temp\5\mex_B85E032C-8380-4648-37B1-46C637B83C7B\block.obj C:\Users\Peter\AppData\Local\Temp\5\mex_B85E032C-8380-4648-37B1-46C637B83C7B\mpeg.obj C:\Users\Peter\AppData\Local\Temp\5\mex_B85E032C-8380-4648-37B1-46C637B83C7B\subsampl.obj C:\Users\Peter\AppData\Local\Temp\5\mex_B85E032C-8380-4648-37B1-46C637B83C7B\jrevdct.obj C:\Users\Peter\AppData\Local\Temp\5\mex_B85E032C-8380-4648-37B1-46C637B83C7B\frame.obj C:\Users\Peter\AppData\Local\Temp\5\mex_B85E032C-8380-4648-37B1-46C637B83C7B\fsize.obj
Creating library C:\Users\Peter\AppData\Local\Temp\5\mex_B85E032C-8380-4648-37B1-46C637B83C7B\templib.x and object C:\Users\Peter\AppData\Local\Temp\5\mex_B85E032C-8380-4648-37B1-46C637B83C7B\templib.exp
MSVCRT.lib(crtdll.obj) : error LNK2019: unresolved external symbol __imp_Sleep referenced in function _CRT_INIT
MSVCRT.lib(gs_report.obj) : error LNK2019: unresolved external symbol __imp_TerminateProcess referenced in function __report_gsfailure
MSVCRT.lib(gs_report.obj) : error LNK2019: unresolved external symbol __imp_GetCurrentProcess referenced in function __report_gsfailure
MSVCRT.lib(gs_report.obj) : error LNK2019: unresolved external symbol __imp_UnhandledExceptionFilter referenced in function __report_gsfailure
MSVCRT.lib(gs_report.obj) : error LNK2019: unresolved external symbol __imp_SetUnhandledExceptionFilter referenced in function __report_gsfailure
MSVCRT.lib(gs_report.obj) : error LNK2019: unresolved external symbol __imp_IsDebuggerPresent referenced in function __report_gsfailure
MSVCRT.lib(gs_report.obj) : error LNK2019: unresolved external symbol RtlVirtualUnwind referenced in function __report_gsfailure
MSVCRT.lib(gs_report.obj) : error LNK2019: unresolved external symbol RtlLookupFunctionEntry referenced in function __report_gsfailure
MSVCRT.lib(gs_report.obj) : error LNK2019: unresolved external symbol __imp_RtlCaptureContext referenced in function __report_gsfailure
MSVCRT.lib(dllmain.obj) : error LNK2019: unresolved external symbol __imp_DisableThreadLibraryCalls referenced in function DllMain
MSVCRT.lib(gs_support.obj) : error LNK2019: unresolved external symbol __imp_QueryPerformanceCounter referenced in function __security_init_cookie
MSVCRT.lib(gs_support.obj) : error LNK2019: unresolved external symbol __imp_GetTickCount referenced in function __security_init_cookie
MSVCRT.lib(gs_support.obj) : error LNK2019: unresolved external symbol __imp_GetCurrentThreadId referenced in function __security_init_cookie
MSVCRT.lib(gs_support.obj) : error LNK2019: unresolved external symbol __imp_GetCurrentProcessId referenced in function __security_init_cookie
MSVCRT.lib(gs_support.obj) : error LNK2019: unresolved external symbol __imp_GetSystemTimeAsFileTime referenced in function __security_init_cookie
mpgwrite.mexw64 : fatal error LNK1120: 15 unresolved externals

C:\MATLAB\R2007B\BIN\MEX.PL: Error: Link of 'mpgwrite.mexw64' failed.

??? Error using ==> mex at 208
Unable to complete successfully.

Error in ==> makedll at 3
mex -DWIN32 mpgwrite.c mfwddct.c postdct.c huff.c bitio.c mheaders.c iframe.c ...

When I change it to -WIN64, I get the following error:

bitio.c
c:\users\peter\desktop\mpgwritex64\src\byteord.h(74) : fatal error C1083: Cannot open include file: 'netinet/in.h': No such file or directory

C:\MATLAB\R2007B\BIN\MEX.PL: Error: Compile of 'bitio.c' failed.

??? Error using ==> mex at 208
Unable to complete successfully.

Error in ==> makedll at 3
mex -DWIN64 mpgwrite.c mfwddct.c postdct.c huff.c bitio.c mheaders.c iframe.c ...

After some Googling of netinet/in.h, I found out that this is a Linux specific header library! Thus, I am surprised that this code works in Windows AT ALL. I am very confused as to why some previous people got this to work on Windows 64 (e.g. Cassandra and Anas) and yet I cannot. Any help would be sorely appreciated; I have already sunk about 5 hours into figuring this out...

Contact us