Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Compiling ohNet on a Raspberry Pi
25-09-2013, 10:13 AM
Post: #1
Compiling ohNet on a Raspberry Pi
Hi,

Just something that I have noticed when I compile ohNet on a Raspberry Pi,

I have to edit the Makefile to change the line:

libjvm_dir ?= $(JAVA_HOME)/jre/lib/i386/server

To:

libjvm_dir ?= $(JAVA_HOME)/jre/lib/arm/server

Am I missing something before running the Makefile that would mean not having to edit it?

Thanks,

Pete.
Find all posts by this user
25-09-2013, 02:49 PM (This post was last modified: 25-09-2013 02:51 PM by simonc.)
Post: #2
RE: Compiling ohNet on a Raspberry Pi
Sounds like we're missing an extra platform test in our makefile. Can you run

gcc -dumpmachine

on your RPi and let us know the results please? We could use this to hack up something like
Code:
ifneq (,$(findstring your-machine-name-here,$(gcc_machine)))
  libjvm_dir ?= $(JAVA_HOME)/jre/lib/i386/server
else
  libjvm_dir ?= $(JAVA_HOME)/jre/lib/arm/server
Any refinements to this model would be appreciated Smile
Find all posts by this user
25-09-2013, 03:47 PM
Post: #3
RE: Compiling ohNet on a Raspberry Pi
(25-09-2013 02:49 PM)simonc Wrote:  Sounds like we're missing an extra platform test in our makefile. Can you run

gcc -dumpmachine

on your RPi and let us know the results please? We could use this to hack up something like
Code:
ifneq (,$(findstring your-machine-name-here,$(gcc_machine)))
  libjvm_dir ?= $(JAVA_HOME)/jre/lib/i386/server
else
  libjvm_dir ?= $(JAVA_HOME)/jre/lib/arm/server
Any refinements to this model would be appreciated Smile

Hi Simon,

Just to confuse things :

On a raspi running Softfloat Wheezy OS I get

arm-linux-gnueabi

On a raspi running Hardfloat Wheezy OS I get

arm-linux-gnueabihf

Thanks,

Pete.
Find all posts by this user
25-09-2013, 03:54 PM
Post: #4
RE: Compiling ohNet on a Raspberry Pi
(25-09-2013 03:47 PM)PeteManchester Wrote:  Just to confuse things :

On a raspi running Softfloat Wheezy OS I get

arm-linux-gnueabi

On a raspi running Hardfloat Wheezy OS I get

arm-linux-gnueabihf

Thanks for the quick reply Pete. I've committed a change I think should work for you. It should be on github this evening; could you give it a go when you have a chance and let me know whether it works?
Find all posts by this user
27-09-2013, 10:23 AM
Post: #5
RE: Compiling ohNet on a Raspberry Pi
(25-09-2013 03:54 PM)simonc Wrote:  
(25-09-2013 03:47 PM)PeteManchester Wrote:  Just to confuse things :

On a raspi running Softfloat Wheezy OS I get

arm-linux-gnueabi

On a raspi running Hardfloat Wheezy OS I get

arm-linux-gnueabihf

Thanks for the quick reply Pete. I've committed a change I think should work for you. It should be on github this evening; could you give it a go when you have a chance and let me know whether it works?

Hi Simon,

Just to confirm that the fix worked for both the Soft Float and Hard Float versions.

Thanks for your help,

Pete.
Find all posts by this user
27-09-2013, 10:24 AM
Post: #6
RE: Compiling ohNet on a Raspberry Pi
(27-09-2013 10:23 AM)PeteManchester Wrote:  Hi Simon,

Just to confirm that the fix worked for both the Soft Float and Hard Float versions.

Great! Thanks for letting us know.
Find all posts by this user


Forum Jump: