.mexglx in windows XP

조회 수: 15 (최근 30일)
Aaditya
Aaditya 2012년 2월 2일
편집: faraz 2013년 9월 30일
hey all....
I am not able to run .mexglx files in windows XP 32 bit platform... the matlab codes were originally written using 64 bit linux platform.... How to convert it so that it gets executed in XP???
Could anyone please help me out ??

채택된 답변

Benjamin Schwabe
Benjamin Schwabe 2012년 2월 2일
Do you have the sourcecode that was used for the generation of the mexglx? If not, I have no clue and I assume that there is no way but code disassembly... If you have the sourcecode, create the mex-file on your own by using the mex-command and change the reference to the mexglx accordingly.

추가 답변 (6개)

Walter Roberson
Walter Roberson 2012년 2월 2일
You cannot execute a Linux mex file on MS Windows. You will, as Benjamin suggests, need to rebuild the mex from source.

Aaditya
Aaditya 2012년 2월 4일
yeah ... i have the source code... the error that i get is
Unable to load mex file: C:\Documents and Settings\computer\Desktop\26.1\SamplePtrsFromRegionsMex.dll. The specified module could not be found.
??? Invalid MEX-file 'C:\Documents and Settings\computer\Desktop\26.1\SamplePtrsFromRegionsMex.dll': The specified module could not be found.
But , i have SamplePtrsFromRegionsMex.dll in my current working directory ..
but still i get such error msg....
  댓글 수: 2
Jan
Jan 2012년 2월 4일
How did you compile the source code? The error message appears, if you run a DLL, but some used library functions are missing.
Ken Atwell
Ken Atwell 2012년 2월 5일
What version of MATLAB are you using? I'm surprised that your MEX file recompiled for Windows carries the extension ".dll". I would expect it to be ".mex32".
Also, can you tell us the command line to MEX you are using, and any output MEX returns?

댓글을 달려면 로그인하십시오.


Aaditya
Aaditya 2012년 2월 9일
First i used matlab 7.0.... But now i have changed it and now i use matlab 7.9.
i got .mexw32 files created. But when i start running the codes in matlab7.9, i get the following error
Invalid MEX-file 'D:\pathname\myMex.mexw32': The specified module could not be found.
However, this .mexw32 file is located in my working directory. But still i get that error.

Jan
Jan 2012년 2월 9일
I've asked you already: How did you compile the C-file? The error message appears e.g., if you compile the C-file on one computer with MSVC, but run it on another computer without installing the required distributables.

Aaditya
Aaditya 2012년 2월 9일
i got the code from the link,
Its BPLR code. I first compiled two .m files 'bplr_startup.m' and 'bplr_compile_mex.m', as it was mentioned in README.
I got the above said error when i compiled 'bplr_compile_mex.m'.
When i compiled the program , i got the following error..
Extract BPLR... multiple segmentations... 146 segments obtained sampling ptrs... ??? Undefined function or method 'SamplePtrsFromRegionsMex' for input arguments of type 'cell'.
Error in ==> uniformSamplePtrsFromRegions_ at 25 [dt_max sample_ptrs] = SamplePtrsFromRegionsMex(dt, bbox, grid_spacing);
Error in ==> createUniformSamplePtrsFromDT_ at 8 [ptrs scales ptrs_region] = uniformSamplePtrsFromRegions_(regions, sample_grid_spacing, supp_radius_thresh);
Error in ==> detectBPLR at 25 [ptrs edges scales] = createUniformSamplePtrsFromDT_(regions, im, ucm, contour_im, order_k, sample_grid_spacing);
Error in ==> demo at 111 BPLR = detectBPLR(im, ucm, gPb_thin, order_k, euc_f, im_dim, min_nseg, max_nseg, grid_space, min_elem_scale);
Error in ==> example at 14 [BPLR, phog] =demo(img_file, rsz, order_k, euc_f, min_nseg, max_nseg, grid_space, min_elem_scale, magnif, phog_L, n_angle_bin, n_length_bin);
So sir, can u please see that link and run it in ur computer.

Aaditya
Aaditya 2012년 2월 10일
We compiled the .cc files using a MSVC 6.0 compiler and got the .mexw32 one.

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by