GithubHelp home page GithubHelp logo

easteriq / matlab-unpackraw Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 22 KB

mex for importing raw camera files into MATLAB images

License: GNU General Public License v3.0

MATLAB 10.41% C++ 89.59%

matlab-unpackraw's People

Contributors

easteriq avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

matlab-unpackraw's Issues

MEX compile error using Matlab r2020a

I've tried compiling the MEX but got this error:

buildMexunpackRaw
Building with 'MinGW64 Compiler (C++)'.
Y:\Matlab\-- tools\LibRaw\unpackRaw.cpp:49:0: warning: "OUT" redefined
     #define OUT RawProcessor.imgdata.params
 
In file included from C:/ProgramData/MATLAB/SupportPackages/R2020a/3P.instrset/mingw_w64.instrset/x86_64-w64-mingw32/include/windef.h:8:0,
                 from C:/ProgramData/MATLAB/SupportPackages/R2020a/3P.instrset/mingw_w64.instrset/x86_64-w64-mingw32/include/windows.h:69,
                 from C:/ProgramData/MATLAB/SupportPackages/R2020a/3P.instrset/mingw_w64.instrset/x86_64-w64-mingw32/include/winsock2.h:23,
                 from LibRaw-0.20.0/libraw/libraw_datastream.h:32,
                 from LibRaw-0.20.0/libraw/libraw.h:67,
                 from Y:\Matlab\-- tools\LibRaw\unpackRaw.cpp:6:
C:/ProgramData/MATLAB/SupportPackages/R2020a/3P.instrset/mingw_w64.instrset/x86_64-w64-mingw32/include/minwindef.h:61:0: note: this is the location of the previous definition
 #define OUT
 

Error using mex
C:\Users\UserName\AppData\Local\Temp\mex_68548340412311_10008\unpackRaw.obj:unpackRaw.cpp:(.text+0x37):
undefined reference to `LibRaw::LibRaw(unsigned int)'
C:\Users\UserName\AppData\Local\Temp\mex_68548340412311_10008\unpackRaw.obj:unpackRaw.cpp:(.text+0x91):
undefined reference to `LibRaw::open_file(char const*, long long)'
C:\Users\UserName\AppData\Local\Temp\mex_68548340412311_10008\unpackRaw.obj:unpackRaw.cpp:(.text+0xcf):
undefined reference to `LibRaw::unpack()'
C:\Users\UserName\AppData\Local\Temp\mex_68548340412311_10008\unpackRaw.obj:unpackRaw.cpp:(.text+0x141):
undefined reference to `LibRaw::dcraw_process()'
C:\Users\UserName\AppData\Local\Temp\mex_68548340412311_10008\unpackRaw.obj:unpackRaw.cpp:(.text+0x15a):
undefined reference to `LibRaw::dcraw_make_mem_image(int*)'
C:\Users\UserName\AppData\Local\Temp\mex_68548340412311_10008\unpackRaw.obj:unpackRaw.cpp:(.text+0x246):
undefined reference to `LibRaw::~LibRaw()'
C:\Users\UserName\AppData\Local\Temp\mex_68548340412311_10008\unpackRaw.obj:unpackRaw.cpp:(.text+0x3c9):
undefined reference to `LibRaw::~LibRaw()'
collect2.exe: error: ld returned 1 exit status


Error in buildMexunpackRaw (line 6)
    mex(['-L' libpath 'lib'], '-llibraw',...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.