Compiling raw2dng on Ubuntu

Started by sgofferj, February 09, 2015, 01:52:24 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sgofferj

I'm trying to compile raw2dng on Ubuntu but I'm not getting anywhere...
sgofferj@enterprise:~/hudson-magic-lantern-703ee626326d/modules/lv_rec$ make raw2dng
make: hg: Command not found
[ GCC      ]   raw2dng
In file included from /usr/include/stdint.h:25:0,
                 from /usr/lib/gcc/x86_64-linux-gnu/4.8/include/stdint.h:9,
                 from ../../src/chdk-dng.c:43:
/usr/include/features.h:374:25: fatal error: sys/cdefs.h: No such file or directory
#  include <sys/cdefs.h>
                         ^
compilation terminated.
make: *** [raw2dng] Error 1


Is there a static 64bit build somewhere available? I don't really want to start installing all kinds of additional stuff which I don't need, like ARM cross compiler, etc. on my workstation...
18+ years Linux user, wolf-fan, hobby photographer and -filmmaker
EOS 6D, EOS 7D

sgofferj

I guess 2 weeks is an OK time to wait before upping the thread...? :)
18+ years Linux user, wolf-fan, hobby photographer and -filmmaker
EOS 6D, EOS 7D

dmilligan

Quote from: sgofferj on February 09, 2015, 01:52:24 PM

make: hg: Command not found

You might want to install hg (mercurial)

Quote from: sgofferj on February 09, 2015, 01:52:24 PM
Is there a static 64bit build somewhere available?
No. It's actually trying to compile as 32 bit (-m32), and that's why you're getting the error about sys/cdefs.h. You need to install the gcc 32 bit development libraries and headers.

http://stackoverflow.com/questions/23498237/compile-program-for-32bit-on-64bit-linux-os-causes-fatal-error

The other option would be to modify the code and makefile to allow compiling for 64 bit.

sgofferj

18+ years Linux user, wolf-fan, hobby photographer and -filmmaker
EOS 6D, EOS 7D