Compiling server on Raspberry PI

chrispazz8 years ago

Hello,
i need to add a new protocol in Traccar server.
I am currently using it on my Raspberry PI3.

While I think to be able to code the new protocol, I am not so skilled to compile it inside Raspberry.

Someone can give me some simple istructions (via command line) to compile the master branch clone on my PI3?

Thank you
Chris

Anton Tananaev8 years ago

You don't have to compile the on the RPi itself. You can do it on your desktop computer.

For more info about building the project:

https://www.traccar.org/build/

chrispazz8 years ago

Thank you Anton but in my imac at home I do not have an IDE....
Compiling on raspberry (if possible) could be easier for me....

chrispazz8 years ago

Ok, I have duplicated the original Meiligao protocol files (with newer names and classes) and I have done:

sudo apt-get install maven
sudo apt-get install openjdk-7-jdk

mvn package

All seems compiled without errors.

Now, for step 2, I have to define a specific port for the "new" protocol and get it enabled.
Do I have only to insert the new configuration line in "default.xml"?

Is it ok if I only substitute tracker-server.jar from my main install?

Thanks

chrispazz8 years ago

I tried it and it works.
Now my device is using the new "duplicated" protocol....

I will edit it now....

Thank you anyway :)