packing the final executables into nar -Makefile

89 views
Skip to first unread message

yoges...@gmail.com

unread,
Jan 31, 2017, 6:15:19 PM1/31/17
to NAR Maven plugin
How can I package the final executable created using maven-nar for a makefile based project into a nar package?

After I build I get following:

-nar
- x-0.1-SNAPSHOT-noarch
-gnu
-amd64-Linux-gpp
-src
-out
-.exe


But I got not get an executable package, such as x-0.1-SNAPSHOT-amd64-Linux-gpp-executable.nar.

How do I get it?


Following is my pom.xml file

https://gist.github.com/hodiapa/651a17c5c0fe6c4b8765fb55624be2fd

Thanks.


yoges...@gmail.com

unread,
Jan 31, 2017, 6:21:26 PM1/31/17
to NAR Maven plugin, yoges...@gmail.com
The above pom.xml file is the main package.

And the module's pom.xml file is:
https://gist.github.com/hodiapa/b4e52bff1e8ae7f006d69411afc48fc6

eyal...@gmail.com

unread,
Feb 1, 2017, 2:57:44 AM2/1/17
to NAR Maven plugin, yoges...@gmail.com
Can you show the project structure and the build log ?




בתאריך יום רביעי, 1 בפברואר 2017 בשעה 01:21:26 UTC+2, מאת yoges...@gmail.com:

yoges...@gmail.com

unread,
Feb 1, 2017, 10:29:31 AM2/1/17
to NAR Maven plugin, yoges...@gmail.com

eyal...@gmail.com

unread,
Feb 1, 2017, 10:57:41 AM2/1/17
to NAR Maven plugin, yoges...@gmail.com

The structure is not correct

src/main/c++ is the folder that contains the cpp files
src/main/include should include the *.h and *.hpp files

This is why it does not detect the sources

Eyal
    

בתאריך יום רביעי, 1 בפברואר 2017 בשעה 17:29:31 UTC+2, מאת yoges...@gmail.com:

yoges...@gmail.com

unread,
Feb 1, 2017, 11:03:27 AM2/1/17
to NAR Maven plugin, yoges...@gmail.com
Thanks. But then where Do I place my Makefile, since I am using gnu makefile builder?
I am referring to this file hierarchy system:

http://maven-nar.github.io/nar-gnu-make-mojo.html#gnuSourceDirectory

eyal...@gmail.com

unread,
Feb 1, 2017, 11:22:41 AM2/1/17
to NAR Maven plugin, yoges...@gmail.com
Why to you want to integrate the NAR with the Makefile?

 What exactly are you trying to run? and how

Eyal

בתאריך יום רביעי, 1 בפברואר 2017 בשעה 18:03:27 UTC+2, מאת yoges...@gmail.com:

yoges...@gmail.com

unread,
Feb 1, 2017, 11:27:26 AM2/1/17
to NAR Maven plugin, yoges...@gmail.com
I am building an omnet++ simulation which uses a makefile for building the executables.
Here is the Makefile:

https://gist.github.com/hodiapa/abbf4bbd5826a8059aab9cd57bc562a4

Thanks again for helping...

yoges...@gmail.com

unread,
Feb 1, 2017, 12:26:08 PM2/1/17
to NAR Maven plugin, yoges...@gmail.com
Any examples of using makefile to generate executable nar?

-thanks

Curtis Rueden

unread,
Feb 1, 2017, 1:56:39 PM2/1/17
to yoges...@gmail.com, NAR Maven plugin
Hi Yogesh,

The NAR plugin takes responsibility for compiling your code. It might be possible to massage it into not doing so, and instead call an external Makefile, but to my knowledge there are currently no working examples of doing this. If you get it working, please consider contributing one!

Alternately, check out the "Alternatives and complements" list for other approaches:

HTH,
Curtis

--
Curtis Rueden
LOCI software architect - https://loci.wisc.edu/software
ImageJ2 lead, Fiji maintainer - https://imagej.net/User:Rueden


--
You received this message because you are subscribed to the Google Groups "NAR Maven plugin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to maven-nar+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages