Hi!
I tried to compile dvbcut on NetBSD. The first try was with the "stable"
version 0.5.4 using SCons and it failed horribly 8-/
Then I discovered the svn-version with automake and tried it. After
same reckless patching I got it working!
Great program! Thank you very much!
What I had to do to get it running on NetBSD 5.0BETA/i386:
* There was no confugure script. I had to call automake, which is a little
bit counter-intuitive.
* NetBSD has no byteswap.h NETBSD has bswap16, bswap32 and bswap64 in libc.
I had to delete the include directive and change the names to bswap16/32.
* The linker did not add the required option -Wl,-R/LIBPATH to the final
linking line. I cut and pasted the line and added -Wl,-R/usr/pkg/lib
-Wl,-R/usr/pkg/qt3/lib to pick up the libraries. I do not know how to add
this to the automake framework
After that, it works with the included ffmpeg.
If somebody is interested, I can guard the changes with
#if defined(__NetBSD__), so they are hopefully not intrusive to Linux.
Bernhard //
\X/
*** dvbcut-svn/src/index.h Tue Dec 16 09:21:42 2008
--- dvbcut-zza/src/index.h Tue Dec 16 06:58:08 2008
***************
*** 22,28 ****
#define _DVBCUT_INDEX_H
#include <stdint.h>
! #include <byteswap.h>
#include <set>
#include <vector>
#include "types.h"
--- 22,28 ----
#define _DVBCUT_INDEX_H
#include <stdint.h>
! /* #include <byteswap.h> */
#include <set>
#include <vector>
#include "types.h"
*** dvbcut-svn/src/defines.h Tue Dec 16 09:21:42 2008
--- dvbcut-zza/src/defines.h Tue Dec 16 06:58:37 2008
*************** static inline int videostream(int s=0)
*** 46,54 ****
#define mbo32(x) \
((((x) & 0xff000000) >> 24) | (((x) & 0x00ff0000) >> 8) | \
(((x) & 0x0000ff00) << 8) | (((x) & 0x000000ff) << 24))
! #define htom32(x) (__bswap_32(x))
#define mbo16(x) ((((x) >> 8) & 0xff) | (((x) & 0xff) << 8))
! #define htom16(x) (__bswap_16(x))
#else
#define mbo32(x) (x)
#define htom32(x) (x)
--- 46,54 ----
#define mbo32(x) \
((((x) & 0xff000000) >> 24) | (((x) & 0x00ff0000) >> 8) | \
(((x) & 0x0000ff00) << 8) | (((x) & 0x000000ff) << 24))
! #define htom32(x) (bswap32(x))
#define mbo16(x) ((((x) >> 8) & 0xff) | (((x) & 0xff) << 8))
! #define htom16(x) (bswap16(x))
#else
#define mbo32(x) (x)
#define htom32(x) (x)
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
DVBCUT-user mailing list
DVBCUT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dvbcut-user