Comments (6)
Yes: I've done so before--
the CMakeLists should do so by default
otherwise I believe you can pass
LD_FLAGS=-static ./configure
from lepton.
Using cmake as described in README has indeed produced static binary. Thanks!
Maybe it would be worth mentioning in README? :)
from lepton.
It turns out that lepton compiled with cmake+make is much slower at compression (0.34 MiB/sec on my Linux machine) than lepton compiled with autogen.sh + configure + make (2.75 MiB/sec, same machine, same input).
Any idea why what may be the case?
Thanks.
from lepton.
LDFLAGS=-static ./configure && make also produces statically linked lepton, which is as fast as dynamically linked one produced by configure and make. Still I think it would be good to fix slowness of lepton when using cmake, so that others don't run into it.
from lepton.
sorry for the late response
with cmake you need to specifically tell it to build in RELEASE mode without debug flags
cmake .. -DCMAKE_BUILD_TYPE=Release
otherwise it will build with a ton of self check features enabled. Not a great default to have, I suppose
from lepton.
Ah, ok. I have never used cmake before, and living mostly in Java and Go worlds, I have long forgotten about concept of release builds :-) Thanks for help.
from lepton.
Related Issues (20)
- Feat.req. Irfanview plugin
- Help needed in understanding certain parts of the program. HOT 1
- How to compile MSVC2017 x64 build? HOT 1
- Assert fail in component_info.hh:24 HOT 1
- Assert fail in jpgcoder.cc:4945 HOT 1
- Assert fail in nd_array.hh:158 HOT 3
- Assert fail in jpgcoder.cc:4157 HOT 1
- Assert fail in jpgcoder.cc:2162 HOT 1
- Assert fail in jpgcoder.cc:4129 HOT 1
- AddressSanitizer: heap-buffer-overflow
- in lepton, which algorithm to implememnt the idct function?
- Rare lepton crash on decompression HOT 2
- wasm support?
- UNSUPPORTED_JPEG
- lepton crash with specific image
- Options to build for ARM? HOT 3
- Add SECURITY.md HOT 2
- [Bug]A heap-buffer-overflow was discovered in function aligned_dealloc():src/lepton/bitops.cc:108
- lepton crash when deal with a file
- Lepton denial-of-service with specially crafted JPEG files
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lepton.