twilly / odvr

Olympus Digital Voice Recorder Driver
GNU General Public License v3.0
28 stars 11 forks source link

DEB Package #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I've compiled a .deb. It's a Checkinstall, so it's really basic, but it
should work well enough until a real .deb is created.

Original issue reported on code.google.com by baseball...@gmail.com on 15 Jan 2008 at 10:24

Attachments:

GoogleCodeExporter commented 9 years ago
This might be a bug in checkinstall as it seems to include your
/var/cache/apt/pkgcache.bin file. A .deb for odvr really should be only about 
100 KiB
or so.

Original comment by tristan....@gmail.com on 15 Jan 2008 at 10:33

GoogleCodeExporter commented 9 years ago
Here's another one, using DebianPackageMaker (I really need to learn real 
packaging).
The only bug is that you need to manually reload udev (I'll figure out how to 
do that
soon, I hope).

Original comment by baseball...@gmail.com on 16 Jan 2008 at 2:50

Attachments:

GoogleCodeExporter commented 9 years ago
Ok, we're much closer now. The binary should be placed in /usr/bin instead of
/usr/local/bin, and there should be dependencies on libusb and libsndfile.

I'm a little unsure of how to properly build a package myself, but I'll do 
anything
needed to help get one made.

Original comment by tristan....@gmail.com on 16 Jan 2008 at 6:44

GoogleCodeExporter commented 9 years ago
Really? The makefile told me to put it into /usr/local/bin:

install: odvr
    install -o root -g root -m 755 odvr /usr/local/bin

Here's the next version with dependencies (libsndfile1 and  and /usr/bin. It's 
been
tested to work, even in my Ubuntu virtual machine (which is basically a vanilla 
install).

Original comment by baseball...@gmail.com on 16 Jan 2008 at 7:31

Attachments:

GoogleCodeExporter commented 9 years ago
Normally the default prefix of freshly compiled source is /usr/local instead of 
/usr.
That makefile needs a work-over anyway :P.

Anyway, that deb looks good enough for now. I'll keep this ticket to open as 
it'd be
nice to have a proper deb building procedure.

Original comment by tristan....@gmail.com on 16 Jan 2008 at 7:46

GoogleCodeExporter commented 9 years ago
Definitely agree. I really need to try and learn some .deb skills...

Original comment by baseball...@gmail.com on 16 Jan 2008 at 7:52

GoogleCodeExporter commented 9 years ago
I finally learned some basic deb skills. Here's the result:

Original comment by baseball...@gmail.com on 23 Jan 2008 at 3:58

Attachments:

GoogleCodeExporter commented 9 years ago
Hey, that looks pretty good! Do you have a file and/or packaging procedure to do
this? I'd like to roll this into the source tarball.

Original comment by tristan....@gmail.com on 23 Jan 2008 at 7:23

GoogleCodeExporter commented 9 years ago
This is what I used to make it:
http://www.linuxdevices.com/articles/AT8047723203.html

It's still a fairly basic DEB, but it's better than checkinstall...

Original comment by baseball...@gmail.com on 23 Jan 2008 at 7:26

GoogleCodeExporter commented 9 years ago
Did you make those postinst and prerm scripts? Also, please attach the control 
file
and releated. I'll pop it into the tarball.

Original comment by tristan....@gmail.com on 23 Jan 2008 at 7:51

GoogleCodeExporter commented 9 years ago
postinst and prerm? I didn't, but I didn't see the need to.

Here's the CONTROL.

Original comment by baseball...@gmail.com on 23 Jan 2008 at 9:48

Attachments:

GoogleCodeExporter commented 9 years ago
The package will need, at least, a postinst script. After installing a udev 
rule,
we'll need to have udev reload to pick up the change. I can write it up.

Original comment by tristan....@gmail.com on 23 Jan 2008 at 10:02

GoogleCodeExporter commented 9 years ago
I just made a 0.1.3 release. Here's the postinst script. If you can, make a 
i386 deb
and I'll put it up on the downloads page.

Original comment by tristan....@gmail.com on 24 Jan 2008 at 8:43

Attachments:

GoogleCodeExporter commented 9 years ago
Uh oh... now I can't make:
gcc -g -O2 -Wall   -c -o olympusdvr.o olympusdvr.c
olympusdvr.c:23:21: error: sndfile.h: No such file or directory
olympusdvr.c:24:17: error: usb.h: No such file or directory
olympusdvr.c: In function ‘set_error’:
olympusdvr.c:63: warning: implicit declaration of function ‘vsnprintf’
olympusdvr.c: In function ‘find_odvr’:
olympusdvr.c:85: warning: implicit declaration of function ‘usb_get_busses’
olympusdvr.c:85: warning: assignment makes pointer from integer without a cast
olympusdvr.c:85: error: dereferencing pointer to incomplete type
olympusdvr.c:86: error: dereferencing pointer to incomplete type
olympusdvr.c:86: error: dereferencing pointer to incomplete type
olympusdvr.c:87: error: dereferencing pointer to incomplete type
olympusdvr.c:88: error: dereferencing pointer to incomplete type
olympusdvr.c: In function ‘trace_hexdump’:
olympusdvr.c:100: warning: implicit declaration of function ‘fprintf’
olympusdvr.c:100: warning: incompatible implicit declaration of built-in 
function
‘fprintf’
olympusdvr.c:100: error: ‘stderr’ undeclared (first use in this function)
olympusdvr.c:100: error: (Each undeclared identifier is reported only once
olympusdvr.c:100: error: for each function it appears in.)
olympusdvr.c: In function ‘try_usb_bulk_write’:
olympusdvr.c:118: warning: implicit declaration of function ‘usb_bulk_write’
olympusdvr.c:125: warning: implicit declaration of function ‘usb_strerror’
olympusdvr.c: In function ‘try_usb_bulk_read’:
olympusdvr.c:140: warning: implicit declaration of function ‘usb_bulk_read’
olympusdvr.c: In function ‘odvr_open’:
olympusdvr.c:183: warning: implicit declaration of function ‘usb_init’
olympusdvr.c:184: warning: implicit declaration of function 
‘usb_find_busses’
olympusdvr.c:186: warning: implicit declaration of function 
‘usb_find_devices’
olympusdvr.c:190: warning: implicit declaration of function ‘usb_open’
olympusdvr.c:190: warning: assignment makes pointer from integer without a cast
olympusdvr.c:198: warning: implicit declaration of function 
‘usb_claim_interface’
olympusdvr.c:201: warning: implicit declaration of function ‘usb_close’
olympusdvr.c: In function ‘odvr_close’:
olympusdvr.c:241: warning: implicit declaration of function ‘usb_reset’
olympusdvr.c: In function ‘odvr_reset’:
olympusdvr.c:274: warning: implicit declaration of function ‘usleep’
olympusdvr.c: In function ‘cmd_check’:
olympusdvr.c:296: warning: implicit declaration of function 
‘usb_interrupt_read’
olympusdvr.c: In function ‘odvr_model’:
olympusdvr.c:367: warning: implicit declaration of function ‘snprintf’
olympusdvr.c:367: warning: incompatible implicit declaration of built-in 
function
‘snprintf’
olympusdvr.c: In function ‘odvr_quality_name’:
olympusdvr.c:521: warning: incompatible implicit declaration of built-in 
function
‘snprintf’
olympusdvr.c: In function ‘odvr_save_wav’:
olympusdvr.c:691: error: ‘SNDFILE’ undeclared (first use in this function)
olympusdvr.c:691: error: ‘out’ undeclared (first use in this function)
olympusdvr.c:692: error: ‘SF_INFO’ undeclared (first use in this function)
olympusdvr.c:692: error: expected ‘;’ before ‘out_fmt’
olympusdvr.c:703: error: ‘out_fmt’ undeclared (first use in this function)
olympusdvr.c:721: warning: implicit declaration of function 
‘sf_format_check’
olympusdvr.c:727: warning: implicit declaration of function ‘sf_open_fd’
olympusdvr.c:727: error: ‘SFM_WRITE’ undeclared (first use in this function)
olympusdvr.c:737: warning: implicit declaration of function ‘sf_write_short’
olympusdvr.c:739: warning: implicit declaration of function ‘sf_close’
make: *** [olympusdvr.o] Error 1

Do you want a new ticket?

Original comment by baseball...@gmail.com on 26 Jan 2008 at 1:46

GoogleCodeExporter commented 9 years ago
The all target has not changed in the Makefile.

olympusdvr.c:23:21: error: sndfile.h: No such file or directory
olympusdvr.c:24:17: error: usb.h: No such file or directory

That suggests that you do not have the -dev packages installed for libusb and
libsndfile. Did you install these or move them around? Try:

$ find /usr/include -type f -iname 'usb.h'

Original comment by tristan....@gmail.com on 26 Jan 2008 at 2:21

GoogleCodeExporter commented 9 years ago
I feel REALLY REALLY stupid. I uninstalled them before, and forgot about it.

Here's the i386:

Original comment by baseball...@gmail.com on 26 Jan 2008 at 2:31

Attachments:

GoogleCodeExporter commented 9 years ago
Heh, that's alright. I'll be posting that deb shortly.

Original comment by tristan....@gmail.com on 26 Jan 2008 at 2:46

GoogleCodeExporter commented 9 years ago
There's a new release today. I'd like a x86 Ubuntu package if you're up for it 
:-).

Original comment by tristan....@gmail.com on 10 Apr 2008 at 1:20

GoogleCodeExporter commented 9 years ago
Here ya go!

Original comment by baseball...@gmail.com on 10 Apr 2008 at 12:41

Attachments:

GoogleCodeExporter commented 9 years ago
New bugfix release this time. Post a package if you can :).

Original comment by tristan....@gmail.com on 14 Apr 2008 at 11:05

GoogleCodeExporter commented 9 years ago
I'll get on it (probably tomorrow) but ya may wanna change your deb thats up 
now to
odvr-0.1.4.1_amd64.deb.

Original comment by baseball...@gmail.com on 15 Apr 2008 at 12:28

GoogleCodeExporter commented 9 years ago
Whoops! Nice catch!

Original comment by tristan....@gmail.com on 15 Apr 2008 at 12:35

GoogleCodeExporter commented 9 years ago
Sorry, GCode was acting funky.

Original comment by baseball...@gmail.com on 15 Apr 2008 at 10:04

Attachments:

GoogleCodeExporter commented 9 years ago
Posted :).

Original comment by tristan....@gmail.com on 15 Apr 2008 at 10:14

GoogleCodeExporter commented 9 years ago
Hello @ all,

can anybody make a new .deb package including the patch for vn2000-pc ?
Due to intellectual poblems ;-) i'am not able to compile it by myself.

Regards

Thomas Vill

Original comment by thomas.v...@gmx.de on 10 Apr 2009 at 10:43

GoogleCodeExporter commented 9 years ago
Hi Thomas,

you can find my take on creating deb-packages of odvr in my repository:
  deb http://debian.sntech.de/debian/ sid main contrib

It consists of the two packages "odvr" and "odvr-sandec". 
For odvr-sandec to work you will need the san_dec.dll (not included in the 
package
for obvious copyright-reasons) in your 
~/.wine/drive_c/windows/system32-directory.

Heiko

Original comment by mmin...@googlemail.com on 12 Apr 2009 at 4:26

andy-drew commented 6 years ago

Also, a .deb (or snap, nowadays) would be very useful, besides a GUI…