(2015-09-10, 02:51)tmm1 Wrote: Quote:Can we rebuild a linux version off the latest windows?
I've ported the latest version of comskip to be POSIX compatible, and it now works on both mac and linux.
Furthermore, Erik has graciously accepted my patches back into the official version. This means all three major platforms can now use the latest and greatest comskip features.
You can build comskip for linux or mac directly from the git repository under Erik's account: https://github.com/erikkaashoek/Comskip
Hallo,
great news.
Unfortunately I'm not able to build it with linux. I tried up-to-date Arch as well as Ubuntu 14.04 LTS and Ubuntu 15.04 (x64 on a standard PC).
In Arch I installed argtable2 before and when I make I get the following errors:
ccextratorwin/general_loop.c: Auf höchster Ebene:
ccextratorwin/general_loop.c:513:14: Fehler: expected »=«, »,«, »;«, »asm« or
»__attribute__« before »process_block« LONG __cdecl process_block (unsigned char
*data, LONG length) ^ ccextratorwin/general_loop.c: In Funktion »general_loop«:
ccextratorwin/general_loop.c:1201:9: Warnung: Implizite Deklaration der Funktion
»process_block« [-Wimplicit-function-declaration] got = process_block (fbuffer, inbuf);
^ Makefile:79: die Regel für Ziel „ccextratorwin/general_loop.o“ scheiterte make:
*** [ccextratorwin/general_loop.o] Fehler 1
In Ubuntu (after installing libargtable2-dev libavformat-dev) I get the following warnings / errors:
In file included from comskip.c:15:0:
comskip.c: In function ‘LoadFile’:
platform.h:118:29: warning: ignoring return value of ‘getcwd’, declared with attribute warn_unused_result [-Wunused-result]
#define _getcwd(x, y) getcwd(x, y)
^
comskip.c:8124:5: note: in expansion of macro ‘_getcwd’
_getcwd(cwd, 256);
^
comskip.c: In function ‘LoadCutScene’:
comskip.c:9397:14: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(&csbrightness[i], sizeof(int), 1, cutscene_file);
^
comskip.c: In function ‘InputReffer’:
comskip.c:12721:10: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
fgets(line, sizeof(line), raw); // Read first line
^
comskip.c:12740:10: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
fgets(line, sizeof(line), raw); // Skip second line
^
comskip.c: In function ‘ProcessCSV’:
comskip.c:13342:10: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
fgets(line, sizeof(line), in_file); // Skip first line
^
comskip.c:13344:14: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
fgets(line, sizeof(line), in_file); // Skip second line
^
make: *** [comskip.o] Fehler 1
Do I need special compiler options or something else? What linux system you have used?
Any suggestion?
Thanks