How to build Neptus with own IMC Messages

42 views
Skip to first unread message

Michael Blaich

unread,
Dec 18, 2015, 5:26:36 AM12/18/15
to lsts-to...@googlegroups.com
Hi,

I tried to build Neptus with a modified version of the IMC messages.
Therefore I used IMC 5.4.6 and added my own messages. Then I build the
libimc.jar using the master branch of the imcjava repository and the
command 'ant' in the root folder. During the build I set the imc folder
to my IMC definitions. But if I copy the libimc.jar from imcjava/dist to
the lib folder of Neptus (I used the neptus-4.2.1_R14.03 version) and
try to build Neptus with the command 'ant' I get a lot of errors
starting with:

[javac]
/foo/Neptus/src/pt/lsts/neptus/comm/manager/imc/ImcMsgManager.java:64:
error: cannot find symbol
[javac] import pt.lsts.imc.state.ImcSysState;
[javac] ^
[javac] symbol: class ImcSysState
[javac] location: package pt.lsts.imc.state
[javac]
/foo/Neptus/src/pt/lsts/neptus/comm/manager/imc/SystemImcMsgCommInfo.java:53:
error: cannot find symbol

Is there more needed then copying the libimc.jar file to the Neptus/lib
folder?
Or do we need special options for the libimc.jar generation?

Also also tried to build Neptus with a. own compiled libimc.jar based on
the original IMC 5.4.6 definitions used in the IMC repository. But I get
the same errors during the Neptus build as shown above.

Regards,
Michael

--
M.Sc. Michael Blaich
Institut für Systemdynamik
Hochschule Konstanz
Braunegger Str. 55
78462 Konstanz
Tel: +49(0)7531 206663


signature.asc

José Pinto

unread,
Dec 18, 2015, 10:39:11 AM12/18/15
to LSTS Toolchain
By mistake I replied just to you so now I am forwarding back this thread to the mailing list as it can be useful to other users.

Regards,
José

On Fri, Dec 18, 2015 at 1:18 PM, José Pinto <zep...@gmail.com> wrote:
Hi,

Please make sure you have the variable JAVA_HOME pointing to a directory where you have Java 8 SDK installed.

If you continue to have errors please send the output of:

$>  java -version
$> echo $JAVA_HOME

Regards,
José

On Fri, Dec 18, 2015 at 1:14 PM, Michael Blaich <mbl...@htwg-konstanz.de> wrote:
Hi José,

if I use the develop branch I get the attached build error.

Regards,
Michael



Am 18.12.2015 um 13:08 schrieb José Pinto:
Hi Michael,

Thanks for the build logs.
You are using a version of Neptus which is not compatible with the master IMCJava. I suggest, for development purposes that you would use an updated develop branch.

Are you using a forked repository for your code?

Regards,
José

On Fri, Dec 18, 2015 at 11:35 AM, Michael Blaich <mbl...@htwg-konstanz.de> wrote:
And finally the neptus build log.


-------- Weitergeleitete Nachricht --------
Betreff: Fwd: Re: [lsts-toolchain] How to build Neptus with own IMC Messages
Datum: Fri, 18 Dec 2015 12:30:25 +0100
Von: Michael Blaich <mbl...@htwg-konstanz.de>
An: José Pinto <zep...@gmail.com>


Hi José,

I changed to ending of the jar file to txt and try to send you this mail again. So you just have to rename libimc.txt to libimc.jar.

Regards,
Michael

-------- Weitergeleitete Nachricht --------
Betreff: Re: [lsts-toolchain] How to build Neptus with own IMC Messages
Datum: Fri, 18 Dec 2015 12:24:10 +0100
Von: Michael Blaich <mbl...@htwg-konstanz.de>
An: José Pinto <zep...@gmail.com>


Hi José,

thanks for this fast answer. Attached to this Mail is my imcjava build log. Due to security issues I am not able to send the jar file.

"
Reporting-MTA: dns; smtp-2.htwg-konstanz.de
X-Postfix-Queue-ID: 0ADC0580E4
X-Postfix-Sender: rfc822; mbl...@htwg-konstanz.de
Arrival-Date: Fri, 18 Dec 2015 12:17:48 +0100 (CET)

Final-Recipient: rfc822; zep...@gmail.com
Original-Recipient: rfc822;zep...@gmail.com
Action: failed
Status: 5.7.0
Remote-MTA: dns; gmail-smtp-in.l.google.com
Diagnostic-Code: smtp; 552-5.7.0 This message was blocked because its content
    presents a potential 552-5.7.0 security issue. Please visit 552-5.7.0
    https://support.google.com/mail/answer/6590 to review our message 552 5.7.0
    content and attachment content guidelines. b20si24783710wjr.226 - gsmtp

" 

Regards,
Michael


Am 18.12.2015 um 11:41 schrieb José Pinto:

Hi Michael,

Can you send the output of the compilation of IMCJava and generated jar?

Regards,
José

--
You received this message because you are subscribed to the Google Groups "LSTS Toolchain" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lsts-toolchai...@googlegroups.com.
Visit this group at https://groups.google.com/group/lsts-toolchain.
To view this discussion on the web visit https://groups.google.com/d/msgid/lsts-toolchain/5673DF58.2090500%40htwg-konstanz.de.
For more options, visit https://groups.google.com/d/optout.

-- 
M.Sc. Michael Blaich
Institut für Systemdynamik
Hochschule Konstanz
Braunegger Str. 55
78462 Konstanz
Tel: +49(0)7531 206663

libimc.txt
neptusBuild.log
neptusBuild (2).log
Reply all
Reply to author
Forward
0 new messages