You are not logged in.
Hallo!
I have tried to build the AUR-package of projectx 0.91.0.08-2. But the compilation ran into a failure message. Could somebody help?
$ makepkg -s 
==] Erstelle Paket: projectx 0.91.0.08-2 (Don Jän  1 15:13:40 CET 2015) 
==] Prüfe Laufzeit-Abhängigkeiten... 
==] Prüfe Buildtime-Abhängigkeiten... 
==] Empfange Quellen... 
  -] ProjectX_0.91.0.zip gefunden 
  -] projectx-idctfast.tar.xz gefunden 
  -] IDCTFast.patch gefunden 
  -] projectx gefunden 
==] Überprüfe Gültigkeit der Quell-Dateien mit md5sums... 
    ProjectX_0.91.0.zip ... Durchgelaufen 
    projectx-idctfast.tar.xz ... Durchgelaufen 
    IDCTFast.patch ... Durchgelaufen 
    projectx ... Durchgelaufen 
==] Entpacke Quellen... 
  -] Entpacke ProjectX_0.91.0.zip mit bsdtar 
  -] Entpacke projectx-idctfast.tar.xz mit bsdtar 
==] Beginne build()... 
patching file Project-X_0.91.0/noguisources.lst 
patching file Project-X_0.91.0/sources.lst 
patching file Project-X_0.91.0/src/net/sourceforge/dvb/projectx/video/MpvDecoder.java 
src/net/sourceforge/dvb/projectx/common/Common.java:404: warning: [deprecation] stop() in Thread has been deprecated 
		mainprocess.stop(); 
... 
Note: Some input files use unchecked or unsafe operations. 
Note: Recompile with -Xlint:unchecked for details. 
34 warnings 
... 
Kompilierung beendet. 
Makefile:42: die Regel für Ziel „net_sourceforge_dvb_projectx_video_IDCTFast.o“ scheiterte 
make: *** [net_sourceforge_dvb_projectx_video_IDCTFast.o] Fehler 1 
==] FEHLER: Ein Fehler geschah in build(). 
    Breche ab...projectx - build error
Last edited by KarlP (2015-02-19 17:38:28)
Offline

Please post the full output in English please.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
o.k. This time in English:
$ makepkg LC_ALL=C -s
==> Making package: projectx 0.91.0.08-2 (Thu Jan  1 19:34:30 CET 2015)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found ProjectX_0.91.0.zip
  -> Found projectx-idctfast.tar.xz
  -> Found IDCTFast.patch
  -> Found projectx
==> Validating source files with md5sums...
    ProjectX_0.91.0.zip ... Passed
    projectx-idctfast.tar.xz ... Passed
    IDCTFast.patch ... Passed
    projectx ... Passed
==> Extracting sources...
  -> Extracting ProjectX_0.91.0.zip with bsdtar
  -> Extracting projectx-idctfast.tar.xz with bsdtar
==> Starting build()...
patching file Project-X_0.91.0/noguisources.lst
patching file Project-X_0.91.0/sources.lst
patching file Project-X_0.91.0/src/net/sourceforge/dvb/projectx/video/MpvDecoder.java
src/net/sourceforge/dvb/projectx/common/Common.java:404: warning: [deprecation] stop() in Thread has been deprecated
		mainprocess.stop();
		           ^
...
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
34 warnings
...
compilation terminated.
Makefile:42: recipe for target 'net_sourceforge_dvb_projectx_video_IDCTFast.o' failed
make: *** [net_sourceforge_dvb_projectx_video_IDCTFast.o] Error 1
==> ERROR: A failure occurred in build().
    Aborting...Offline

Please post the full output
You're cutting out all the parts that actually matter. I just tried and recieved the following error, is this what you are getting:
cc -Wall -D_REENTRANT -DGNU_SOURCE -march=native -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -fPIC -I"/include" -I"/include/linux" -I./mmx -c idct-mjpeg-mmx.c
net_sourceforge_dvb_projectx_video_IDCTFast.c:1:17: fatal error: jni.h: No such file or directory
 #include <jni.h>If so, there seems to be a problem in the Makefile and/or compiler line. The correct include paths aren't provided.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Oh, sorry. The error message is the same as you posted.
cc -Wall -D_REENTRANT -DGNU_SOURCE -march=i686 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -fPIC -I"/include" -I"/include/linux" -I./mmx -c net_sourceforge_dvb_projectx_video_IDCTFast.c
net_sourceforge_dvb_projectx_video_IDCTFast.c:1:17: fatal error: jni.h: No such file or directory
 #include <jni.h>
                 ^
compilation terminated.
Makefile:42: recipe for target 'net_sourceforge_dvb_projectx_video_IDCTFast.o' failed
make: *** [net_sourceforge_dvb_projectx_video_IDCTFast.o] Error 1
==> ERROR: A failure occurred in build().
    Aborting...Is there a chance to locate the cause of this error? Neither PKGBUILD nor IDCTFast.patch do contain “jni.h”.
Offline

I just checked, the Makefile does actually set the right paths, but it assumes the JAVA_HOME environment variable is set. Archlinux no longer uses this variable, so the Makefile needs to be patched, or as a workaround, the variable needs to be exported in the PKGBUILD. The following revision to the PKGBUILD will work for JDK7, a different setting would be needed for JDK8:
    if [ ${_idct} != "none" ]; then
       cd lib/PORTABLE/
       export JAVA_HOME="/usr/lib/jvm/java-7-openjdk/"
       make clean
       make PROJECTX_HOME=${srcdir}/Project-X_0.91.0 IDCT=${_idct} CPLAT="$CFLAGS -fPIC"
       cd ${srcdir}/Project-X_0.91.0
    fiI suspect there is a better or proper way to do this - but I rarely use java, and never package for it. This is effective and perfectly safe as a workaround though - it will make a proper package.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Although there are still these warnings, now the package was finished without an error message. Thank you.
src/net/sourceforge/dvb/projectx/gui/FilterPanel.java:440: warning: [deprecation] getSelectedValues() in JList has been deprecated
					Object[] val = includeList.getSelectedValues();
					                          ^
src/net/sourceforge/dvb/projectx/gui/FilterPanel.java:470: warning: [deprecation] getSelectedValues() in JList has been deprecated
					Object[] values = includeList.getSelectedValues();
					                             ^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
34 warningsOffline