|
OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD. |
|
Thread Tools | Display Modes |
|
|||
sxiv image viewer
I've installed it from a port tree, but the problem with it is that
I can't change the source code, thus I won't be able to have my keybindings. Compiling it from source results in missing libraries: Code:
./sxiv.h:27:10: fatal error: 'Imlib2.h' file not found #include <Imlib2.h> ^~~~~~~~~~ Code:
/usr/local/include/Imlib2.h:28:10: fatal error: 'X11/Xlib.h' file not found #include <X11/Xlib.h> ^~~~~~~~~~~~ I have a silly idea of changing the fetch url of the source code in sxiv port, but I have no idea how to. Maybe I'm not seeing what's wrong here at all, help me out guys. |
|
|||
Tell me if I'm wrong
cd /usr/ports/graphics/sxiv make patch mkdir -p /usr/ports/pobj/sxiv cd /usr/ports/pobj/sxiv cp ~/fileiwanttoedit $(pwd)/ vi fileiwanttoedit cd /usr/ports/graphics/sxiv make update-patches make install Is that it? |
|
||||
No. The top level source directory is $WRKBUILD, which at the moment is /usr/ports/pobj/sxiv-26/sxiv-26. Patches are created as unified diff(1)s against .orig files. So spend time with the Porter's Handbook and the bsd.port.mk(5) man page instead of guessing your way to a solution.
Edited to add: I'm sorry, but you did ask me to tell you if you were wrong, and there's a whole lot of wrong in your process as currently written. Some additional errors: not using the mystuff branch and not adding or updating the Makefile's $REVISION variable. One could cause data loss when the ports tree is revised, the other would cause package signature errors that could lead to library or other dependency mismatch problems, or replacement of your custom application with the standard package from a Project mirror. Last edited by jggimi; 5th October 2021 at 03:19 AM. |
|
|||
Alright, it seems that I'm expecting instant results and looking for a short solution, but then why did I install OpenBSD in the first place. Thank you for your feedback, you undoubtedly have the competence, so, I'll do as you said.
|
|
|||
The port also tells you what libraries you need installed:
Code:
LIB_DEPENDS = devel/libinotify \ graphics/imlib2 \ graphics/libexif Code:
$ CFLAGS="-O2 -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -I/usr/local/include -I/usr/local/include/inotify" LDFLAGS="-L/usr/X11R6/lib -L/usr/local/lib -L/usr/local/lib/inotify -linotify -Wl,-rpath /usr/local/lib/inotify" make |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PDF editor / viewer | PapaParrot | OpenBSD Packages and Ports | 5 | 26th October 2017 01:16 AM |
xkcd-viewer being stubborn both on -current and stable | daemonfowl | OpenBSD Packages and Ports | 7 | 19th July 2013 03:23 AM |
recommendations on a picture viewer | divadgnol67 | OpenBSD General | 11 | 3rd April 2011 09:52 PM |
Help installing Hippo viewer... | bforest | FreeBSD Ports and Packages | 10 | 20th March 2010 02:17 PM |
Image Titles | JMJ_coder | Feedback and Suggestions | 4 | 1st July 2008 05:40 AM |