You are not logged in.

#1 2011-07-26 18:16:14

cdwijs
Member
Registered: 2010-04-24
Posts: 289

libblueray: Could not find jni.h

Hi All,

I am trying to install libblueray from aur:
https://aur.archlinux.org/packages.php?ID=40657

I get the following error:
checking jni.h usability... no
checking jni.h presence... no
checking for jni.h... no
configure: error: "Could not find jni.h"

This is strange, because the file is on my harddrive:
[cedric@cedric usr]$ find -iname jni.h
./lib/jvm/java-6-openjdk/include/jni.h

How do I tell makepkg the file is over there?

Best regards,
Cedric

Last edited by cdwijs (2011-07-26 19:36:24)

Offline

#2 2011-07-26 18:22:49

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: libblueray: Could not find jni.h

--with-jdk=$J2SDKDIR 
[karol@black ~]$ echo $J2SDKDIR
/usr/lib/jvm/java-6-openjdk

What does it say on your computer?

Offline

#3 2011-07-26 18:25:58

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: libblueray: Could not find jni.h

moving to AUR issues...


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#4 2011-07-26 19:28:03

cdwijs
Member
Registered: 2010-04-24
Posts: 289

Re: libblueray: Could not find jni.h

Thank you, that was the hint.
echo $J2SDKDIR returned empty. So I did

export J2SDKDIR=/usr/lib/jvm/java-6-openjdk , nd now it compiles a lot further. Now it fails  with:
make[3]: ant: Command not found

Best regards,
Cedric

Offline

#5 2011-07-26 19:29:45

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: libblueray: Could not find jni.h

cdwijs wrote:

now it compiles a lot further. Now it fails  with:
make[3]: ant: Command not found

Best regards,
Cedric

https://aur.archlinux.org/packages/libb … t/PKGBUILD

makedepends=('git' 'apache-ant' 'java-environment')

Do you have all the depends and makedepends installed?

Offline

#6 2011-07-26 19:33:21

cdwijs
Member
Registered: 2010-04-24
Posts: 289

Re: libblueray: Could not find jni.h

Yes, but ant is not in my path
https://bbs.archlinux.org/viewtopic.php?id=92261

$ source /etc/profile.d/apache-ant.sh

And now the compile continues, and finishes correctly

Thanks,
Cedric

Offline

#7 2011-07-26 19:36:03

cdwijs
Member
Registered: 2010-04-24
Posts: 289

Re: libblueray: Could not find jni.h

not yet solved:

# pacman -U ibbluray-git-20110726-1-x86_64.pkg.tar.xz
error: 'ibbluray-git-20110726-1-x86_64.pkg.tar.xz': cannot open package file

Offline

#8 2011-07-26 19:39:28

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: libblueray: Could not find jni.h

cdwijs wrote:

not yet solved:

# pacman -U ibbluray-git-20110726-1-x86_64.pkg.tar.xz
error: 'ibbluray-git-20110726-1-x86_64.pkg.tar.xz': cannot open package file

It should say libbluray-git - you're missing an 'l' at the beginning.

Offline

#9 2011-07-26 19:42:44

cdwijs
Member
Registered: 2010-04-24
Posts: 289

Re: libblueray: Could not find jni.h

Thanks :-)

vdr-plugin-xineliboutput-git is not yet happy:
$ makepkg
==> Making package: vdr-plugin-xineliboutput-git 20110620-1 (Tue Jul 26 21:41:38 CEST 2011)
==> Checking runtime dependencies...
==> Missing Dependencies:
  -> xine-lib
  -> libbluray>=20110620
==> Checking buildtime dependencies...
==> ERROR: Could not resolve all dependencies.

I know I have installed both xine-lib and libblueray:

# pacman -U libbluray-git-20110726-1-x86_64.pkg.tar.xz 
warning: libbluray-git-20110726-1 is up to date -- reinstalling
resolving dependencies...
looking for inter-conflicts...

Targets (1): libbluray-git-20110726-1

Total Download Size:    0.00 MB
Total Installed Size:   0.52 MB

Proceed with installation? [Y/n] 
(1/1) checking package integrity                                          [##########################################] 100%
(1/1) checking for file conflicts                                         [##########################################] 100%
(1/1) upgrading libbluray-git                                             [##########################################] 100%
[root@cedric libbluray-git]# pacman -S xine-lib
resolving dependencies...
looking for inter-conflicts...

Targets (1): xine-lib-1.1.19-2

Total Download Size:    0.00 MB
Total Installed Size:   7.51 MB

Proceed with installation? [Y/n] 
(1/1) checking package integrity                                          [##########################################] 100%
(1/1) checking for file conflicts                                         [##########################################] 100%
(1/1) installing xine-lib                                                 [##########################################] 100%
Optional dependencies for xine-lib
    imagemagick: for using the imagemagick plugin
    smbclient: for using the smb plugin
    jack: for using the jack plugin
    vcdimager: for using the vcd plugin
    gtk2: for using the gdk-pixbuf plugin
    mesa: for using the opengl plugin
    libpulse: for using the pulseaudio plugin
    speex: for using the speex plugin
    aalib: for using the aalib plugin

Offline

#10 2011-07-26 19:48:46

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: libblueray: Could not find jni.h

Where did you get package: vdr-plugin-xineliboutput-git from?
https://aur.archlinux.org/packages.php?ID=37856 or https://aur.archlinux.org/packages.php?ID=23034 or ...?

Offline

#11 2011-07-26 19:51:56

cdwijs
Member
Registered: 2010-04-24
Posts: 289

Re: libblueray: Could not find jni.h

Offline

#12 2011-07-26 20:03:41

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: libblueray: Could not find jni.h

Try one of these and see if they work :

http://aur.archlinux.org/packages.php?O … _Search=Go


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#13 2011-07-26 20:07:24

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: libblueray: Could not find jni.h

Maybe it's because of versioned dependency libbluray>=20110620
Are you following their guide? http://sourceforge.net/apps/trac/archvdr/wiki/ArchVDR They are talking about libbluray, not libbluray-git.

Offline

#14 2011-07-27 03:55:35

cdwijs
Member
Registered: 2010-04-24
Posts: 289

Re: libblueray: Could not find jni.h

Thanks for the guide, i had not yet found that one..

best regards,
Cedric

Offline

#15 2011-11-01 16:37:59

talleres
Member
From: Cordoba
Registered: 2011-11-01
Posts: 12

Re: libblueray: Could not find jni.h

Hi I'm also trying to install libbluray and gives me the same error:

checking jni.h usability... no
checking jni.h presence... no
checking for jni.h... no
configure: error: "Could not find jni.h"

I have installed jre and jdk in vercion 6.27.

echo $J2SDKDIR returned:

/opt/java 

I have also installed all the dependencies: git, apache-ant and java-environment

In my path I have ant.

I need help please.I can not think what else to do

With openjdk6 installed gives me the same error but the output of echo is: /usr/lib/jvm/java-6-openjdk

Muchas gracias and sorry for poor english


Yo T vi salir campeón InTrnacional, yo T di la vuelta en la cara y vi como lloraste y T paraste a aplaudirme. Eso jamas se T va a olvidar.

Offline

#16 2011-11-10 05:45:59

talleres
Member
From: Cordoba
Registered: 2011-11-01
Posts: 12

Re: libblueray: Could not find jni.h

please someone help me?


Yo T vi salir campeón InTrnacional, yo T di la vuelta en la cara y vi como lloraste y T paraste a aplaudirme. Eso jamas se T va a olvidar.

Offline

#17 2011-11-11 18:18:24

cdwijs
Member
Registered: 2010-04-24
Posts: 289

Re: libblueray: Could not find jni.h

I have given up to install the package from aur. I have found another collection of pkgbuild's. This will make sure you have a working VDR+libxineoutput. I have written the installation procedure on the arch wiki:

https://wiki.archlinux.org/index.php/VDR#Installation

Best regards,
Cedric

Offline

#18 2012-01-08 02:44:26

talleres
Member
From: Cordoba
Registered: 2011-11-01
Posts: 12

Re: libblueray: Could not find jni.h

Hi I found the solution to the problem:

Edit the PKGBUILD in the section that says:

 ./configure --prefix=/ --with-jdk=$J2SDKDIR --enable-bdjava

replaces it with this:

 ./configure --prefix=/ --with-jdk=/usr/lib/jvm/java-7-openjdk --enable-bdjava 

(I am currently using open java 7)

And problem solved. Thank you very much. regards

Last edited by talleres (2012-01-08 02:45:49)


Yo T vi salir campeón InTrnacional, yo T di la vuelta en la cara y vi como lloraste y T paraste a aplaudirme. Eso jamas se T va a olvidar.

Offline

Board footer

Powered by FluxBB