Comments (10)
It is probably needed to pass CPPFLAGS
and LDFLAGS
in the make
invocation so the include files and libraries can be picked up, e.g.:
$ make CPPFLAGS=-I/usr/local/include LDFLAGS="-L/usr/local/lib -Wl,-R/usr/local/lib"
...will probably DTRT.
from sxiv.
LINK sxiv
ld: error: unable to find library -lImlib2
ld: error: unable to find library -lX11
ld: error: unable to find library -lXft
ld: error: unable to find library -lfontconfig
ld: error: unable to find library -lexif
ld: error: unable to find library -lgif
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1
from sxiv.
Maybe you can make a patch config.mk or something that supports FreeBSD as well
from sxiv.
Sorry, there was a copypasto: I missed /lib
in LDFLAGS
.
Please retry!
from sxiv.
make CPPFLAGS=-I/usr/local/include LDFLAGS="-L/usr/local/lib
-Wl,-R/usr/local/lib"
LINK sxiv
ld: error: undefined symbol: inotify_init1
referenced by autoreload_inotify.c
autoreload_inotify.o:(arl_init)
ld: error: undefined symbol: inotify_rm_watch
referenced by autoreload_inotify.c
autoreload_inotify.o:(arl_setup)
referenced by autoreload_inotify.c
autoreload_inotify.o:(arl_setup)
referenced by autoreload_inotify.c
autoreload_inotify.o:(arl_handle)
ld: error: undefined symbol: inotify_add_watch
referenced by autoreload_inotify.c
autoreload_inotify.o:(arl_setup)
referenced by autoreload_inotify.c
autoreload_inotify.o:(arl_setup)
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1
Stop.
make: stopped in /usr/home/cjg/suckless/sxiv
from sxiv.
Passing AUTORELOAD=nop
as a Make flag similar to CPPFLAGS
and LDFLAGS
should disable inotify
support and probably address this issue too.
from sxiv.
thanks, thats crazy all these flags I have to use. I still think a config.mk would be much easier.
from sxiv.
I would just use the package provided by your favourite package system (and/or look for possible adjustments there!). :)
Without using pkg-config
- and for AUTORELOAD
probably also checking it at configure time - I think that also having a config.mk
thingie would need manual intervention (it would only move some variables currently present in Makefile
to a separate file).
from sxiv.
I just find that structure easier to follow and modify like the other suckless programs.
from sxiv.
so what can I put in my Makefile edit so I can just type make?
from sxiv.
Related Issues (20)
- AVIF (AV1 Image File Format) support HOT 2
- [question] Is it possible to suprress the title bar? HOT 5
- SVG Support
- error opening tiny tga file HOT 3
- title can't include -
- Error when filename has an emoji HOT 1
- Alternative keybinding for i_toggle_animation
- How do I remove gaps / spaces around images? HOT 5
- sxiv cannot handle filenames with newlines in input mode HOT 1
- Feature request: add `-0` option to output files terminated by a null character HOT 1
- Embed option don't seems to work HOT 1
- Dependent fullscreen mode
- save filenames of marked files HOT 1
- Error opening X display HOT 1
- Support for opening JPEG-XL files HOT 1
- Links in README broken HOT 5
- How to make zoom and panning more smooth HOT 2
- GIFs play much more slowly when scaled up for fullscreen / larger window
- Should we unify our efforts to make a post-mortem Sxiv? HOT 74
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 sxiv.