dropbox / lepton

Lepton is a tool and file format for losslessly compressing JPEGs by an average of 22%.
https://blogs.dropbox.com/tech/2016/07/lepton-image-compression-saving-22-losslessly-from-images-at-15mbs/
Apache License 2.0
5.01k stars 355 forks source link

Audit_arch value inavalable #105

Open sanjitpush opened 6 years ago

sanjitpush commented 6 years ago

Hi, I'm trying to experiment with lepton for my software portability class, however when I try to run lepton on one of my class servers I get these errors:

src/io/seccomp-bpf.hh:61:3: warning: #warning "Platform does not support seccomp filter yet" [-Wcpp] src/io/Seccomp.cc:58:4: error: #error "AUDIT_ARCH value unavailable" /# error "AUDIT_ARCH value unavailable" ^~~~~

and

src/lepton/jpgcoder.cc: In function ‘int app_main(int, char**)’: src/lepton/jpgcoder.cc:855:13: error: ‘builtin_cpu_supports’ was not declared in this scope builtin_cpu_supports("avx2") I'm compiling with the option you gave in issue 71 .

Is there any advice you can give?

Thank you, Sanjit

danielrh commented 6 years ago

in Seccomp.cc you can change all instances of #ifdef __linux to #if 0 and just avoid the security code altogether you could pull that into a compile flag in cmake if you'd like