bren0
Posts: 10
Joined: Thu Jun 23, 2016 12:05 pm

JPCAP in Raspberry Pi 3B (S.O Raspbian)

Thu Jun 23, 2016 12:20 pm

I wonder if I can use the library JPCAP in Raspberry Pi using Raspbian Operating System. Because I tried to follow and this tutorial did not work. When I get on stage: "sudo dpkg -i jpcap-0.7.deb" I get an error message.

Message: Packet architecture (i386) does not match system (armhf)

User avatar
davidcoton
Posts: 5083
Joined: Mon Sep 01, 2014 2:37 pm
Location: Cambridge, UK
Contact: Website

Re: JPCAP in Raspberry Pi 3B (S.O Raspbian)

Thu Jun 23, 2016 7:29 pm

You cannot use a program compiled for an Intel386 processor on a Pi, which uses an ARM processor.

Either you must find a version of the library compiled for ERM, or you must find the source code and compile it yourself.
Signature retired

fruitoftheloom
Posts: 23548
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: JPCAP in Raspberry Pi 3B (S.O Raspbian)

Thu Jun 23, 2016 7:59 pm

bren0 wrote:I wonder if I can use the library JPCAP in Raspberry Pi using Raspbian Operating System. Because I tried to follow and this tutorial did not work. When I get on stage: "sudo dpkg -i jpcap-0.7.deb" I get an error message.

Message: Packet architecture (i386) does not match system (armhf)
The Source Code is available: http://jpcap.gitspot.com/download.html
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot) RaspiOS64 ARM64
Asus ChromeBox 3 Celeron is my other computer...

bren0
Posts: 10
Joined: Thu Jun 23, 2016 12:05 pm

Re: JPCAP in Raspberry Pi 3B (S.O Raspbian)

Fri Jun 24, 2016 12:39 pm

davidcoton wrote:You cannot use a program compiled for an Intel386 processor on a Pi, which uses an ARM processor.

Either you must find a version of the library compiled for ERM, or you must find the source code and compile it yourself.
Thank you. Can you tell me how I can compile it to ERM?

bren0
Posts: 10
Joined: Thu Jun 23, 2016 12:05 pm

Re: JPCAP in Raspberry Pi 3B (S.O Raspbian)

Fri Jun 24, 2016 12:40 pm

fruitoftheloom wrote:
bren0 wrote:I wonder if I can use the library JPCAP in Raspberry Pi using Raspbian Operating System. Because I tried to follow and this tutorial did not work. When I get on stage: "sudo dpkg -i jpcap-0.7.deb" I get an error message.

Message: Packet architecture (i386) does not match system (armhf)
The Source Code is available: http://jpcap.gitspot.com/download.html
Thank you.

User avatar
davidcoton
Posts: 5083
Joined: Mon Sep 01, 2014 2:37 pm
Location: Cambridge, UK
Contact: Website

Re: JPCAP in Raspberry Pi 3B (S.O Raspbian)

Fri Jun 24, 2016 7:37 pm

You should find instructions for compiling along with the source code. I've never needed to compile a Linux package, so I can't offer any detailed advice.It's not rocket science, but neither is it trivial. Get the source from the link above, study any documentation, and dive in. Ask specific questions here when you get stuck. The package authors may also offer some support.
Signature retired

Heater
Posts: 16092
Joined: Tue Jul 17, 2012 3:02 pm

Re: JPCAP in Raspberry Pi 3B (S.O Raspbian)

Sat Jun 25, 2016 10:02 am

Brilliant. A Java program that needs recompiling for every platform. You know "Java - write once run anywhere"

Seems it has not been worked on for nearly 10 years. I wonder if it still flies.
Memory in C++ is a leaky abstraction .

User avatar
DougieLawson
Posts: 39301
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: JPCAP in Raspberry Pi 3B (S.O Raspbian)

Sat Jun 25, 2016 12:04 pm

Heater wrote:Brilliant. A Java program that needs recompiling for every platform. You know "Java - write once run anywhere"

Seems it has not been worked on for nearly 10 years. I wonder if it still flies.
If you can't say anything constructive then keep out of these threads by saying nothing.

This package uses the Java Native Interface to do low level programming and provides a Java interface, so it's obvious that it needs to be built for any system where it runs as most of the code is written in C.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

bren0
Posts: 10
Joined: Thu Jun 23, 2016 12:05 pm

Re: JPCAP in Raspberry Pi 3B (S.O Raspbian)

Mon Jun 27, 2016 1:31 pm

Thanks to all who somehow helped me. I managed to solve the problem. I downloaded the source code files and ran the file "Makefile" and this generated a new "libjpcap.so" file.

Return to “General discussion”