You are not logged in.

#1 2012-07-09 06:17:01

debdj
Member
Registered: 2012-01-19
Posts: 163

[Solved] Help compiling the pkg - oggsvideotools

I was looking for a command line slideshow creator.
ffmpeg can be used, but  it has some limitations. Afterall its not for making slideshows wink

So I found this tool: http://dev.streamnik.de/files.html

Here's the source

while compiling I get this error:

/tmp/oggs/oggvideotools-0.8a/src/oggCat.cpp: In function ‘int oggCatCmd(int, char**)’:
/tmp/oggs/oggvideotools-0.8a/src/oggCat.cpp:252:65: error: ‘getopt’ was not declared in this scope
/tmp/oggs/oggvideotools-0.8a/src/oggCat.cpp:262:32: error: ‘optarg’ was not declared in this scope
/tmp/oggs/oggvideotools-0.8a/src/oggCat.cpp:372:11: error: ‘optind’ was not declared in this scope
make[2]: *** [src/CMakeFiles/oggCat.dir/oggCat.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/oggCat.dir/all] Error 2
make: *** [all] Error 2

There're some patch files on the web which are probably distribution specific. I could not use them.
The AUR pkg is useless.

Would be great if somebody can help me out.

Last edited by debdj (2012-07-10 20:18:11)

Offline

#2 2012-07-10 16:51:06

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: [Solved] Help compiling the pkg - oggsvideotools

This could be due to a missing/not-found header file, better put up the entire output of compiling (use a pastebin site).


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2012-07-10 17:09:18

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,442
Website

Re: [Solved] Help compiling the pkg - oggsvideotools

I got the AUR package to work with the following patch applied to the list of files below

24a25,26
> #else
> #include <unistd.h>

files:

oggCat.cpp
oggCut.cpp
oggDump.cpp
oggLength.cpp
oggSilence.cpp
oggSlideshow.cpp
oggTranscode.cpp

-------------------------------------------

edit: here's a working PKGBUILD excerpt.  Modify the build function as follows adding the for loop:

  cmake . -DCMAKE_INSTALL_PREFIX=/usr
  for _f in Cat Cut Dump Length Silence Slideshow Transcode; do
    sed -i '24a #else' ./src/ogg${_f}.cpp
    sed -i '25a #include <unistd.h>' ./src/ogg${_f}.cpp
  done
}

If this works for you, please inform the maintainer of the AUR package of the problem and direct them here for a proposed solution.

note: there is  probably a much more elegant way to apply such a change, I don't use sed's 'a' command much and I don't know if there is a simpler way to give sed a list of files rather than looping.  This does, however, work perfectly well here.

Last edited by Trilby (2012-07-10 18:11:08)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#4 2012-07-10 18:03:53

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: [Solved] Help compiling the pkg - oggsvideotools

I think the ls at the end of the fillist is a typo smile

Offline

#5 2012-07-10 18:11:20

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,442
Website

Re: [Solved] Help compiling the pkg - oggsvideotools

Yup, it was, thanks.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#6 2012-07-10 19:51:31

debdj
Member
Registered: 2012-01-19
Posts: 163

Re: [Solved] Help compiling the pkg - oggsvideotools

Thanks a lot trilby!

The sed command is okay.
It could be a little efficient though..

sed -i '24a #else\n#include <unistd.h>' ./src/ogg${_f}.cpp

This will work as well.

And I informed the maintainer.

Last edited by debdj (2012-07-10 20:17:53)

Offline

Board footer

Powered by FluxBB