NetBurner Community Forum

A community of NetBurner users gathering to discuss NetBurner hardware, software, design and projects
It is currently Sat Nov 18, 2017 2:40 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Eclipse Projects
PostPosted: Tue Jul 11, 2017 11:42 am 

Joined: Mon May 12, 2008 10:55 am
Posts: 254
I have a MOD5441X project that uses SNMP. Some applications use the SNMP provided by Netburner. Other applications use DMH SNMPv3. Other than the 2 versions of SNMP, the source code is the same for both. But in order be able to build one or the other version I had to create two projects. One project builds a NB SNMP version, the other builds a DMH SNMPv3 version. The reason to do it that way is because, if I have the files associated with each version of SNMP in the same project directory, I get all kinds of compiler and linker errors. The difficulty this causes is that, whenever the application needs to be modified, I have edit both projects. And if the changes are extensive, it become tedious to update the other project, running Diff on each file.

There doesn't seem to be a way to configure Eclipse to compile or not compile certain files, or use or not use certain libraries. Is that a true statement?


Top
 Profile  
 
 Post subject: Re: Eclipse Projects
PostPosted: Tue Jul 11, 2017 12:35 pm 

Joined: Tue Sep 17, 2013 7:14 am
Posts: 73
I stopped using NBEclipse some time ago because I found it very limiting. I think it's very good for getting small projects up and going fast, but for working on larger more complicated projects I need more careful control over everything. I compile using customized versions of Netburner's makefiles, and do my editing in SlickEdit which is a very flexible IDE.

As far as managing multiple projects that use most of the same code but need specific parts swapped out for each, I manage my code using Git repositories. I have my core code that is used by multiple projects in a sub-repository that is linked to the project repositories.

This has been working pretty well for me, but I am curious if anyone else has faced similar challenges and found other solutions.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 8 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group