Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cyclonedds-dev] Eclipse IDE example program using Cyclone DDS

Hi Rahul,

That would be a question for the Eclipse IDE developers, but I think
Eclipse is pretty tied to Eclipse CDT. Building Eclipse Cyclone DDS and
using the Eclipse IDE are really two separate things. You are always
able to generate a new build directory for building because CMake is a
build configuration generator.

- Jeroen


On Sat, 2021-06-26 at 15:20 +0530, Rahul K P wrote:
> Dear Jeroen 
> Is it possible that I can use Visual Studio toolchain in Eclipse for
> C programming and compile for now and later when Mingw is ready to
> switch to that?
> 
> On Fri, Jun 25, 2021 at 9:20 AM Rahul K P
> <rahul@xxxxxxxxxxxxxxxxxxxx> wrote:
> > thanks jeroen i will try this out 
> > 
> > On Thu, Jun 24, 2021 at 9:41 PM Jeroen Koekkoek
> > <jeroen@xxxxxxxxxxx> wrote:
> > > Hi Rahul,
> > > 
> > > I'm not sure I understand correctly, so correct me if I don't.
> > > 
> > > The examples will be exactly the same. It does not matter which
> > > IDE
> > > you
> > > use, the only thing that changes is the way you compile the
> > > examples.
> > > 
> > > What I used to do a lot is just open the source code in the
> > > Eclipse
> > > IDE
> > > and switch to a terminal when I needed to compile anything. With
> > > CMake,
> > > that'll work very well because the artifacts don't reside in the
> > > source
> > > tree.
> > > 
> > > Once you start working on the example, you'll have your source
> > > tree
> > > etc, and you just open that in the IDE, you switch to the
> > > terminal
> > > and
> > > create a build directory outside the source tree and use the
> > > "normal"
> > > way of building. In pseudo code given the structure below:
> > > 
> > > ----- structure -----
> > > projects
> > >   |- ...
> > >   |- your_project
> > >   \- cyclonedds
> > > ----- /structure -----
> > > 
> > > Under the projects directory create a build directory by any
> > > name.
> > > 
> > > mkdir build
> > > cd build
> > > cmake -DCMAKE_BUILD_TYPE=Debug \
> > >       -
> > > DCMAKE_PREFIX_PATH="C:\path\to\projects\cyclonedds\install" 
> > > \
> > >       -G "Visual Studio 16 2019" -A x64 \
> > >       ../your_project
> > > cmake --build . --config Debug
> > > 
> > > Once you have a build configuration in place (the command where
> > > you
> > > specify Visual Studio), just rerunning the build command should
> > > work
> > > just fine.
> > > 
> > > Hope that answers your question.
> > > 
> > > Best regards,
> > > Jeroen
> > > 
> > > 
> > > On Thu, 2021-06-24 at 18:53 +0530, Rahul K P wrote:
> > > > Hi Jeroen Koekkoek
> > > > 
> > > > Thanks to that, Since I had built using  visual studio with c
> > > make,
> > > > all built in examples are on visual studio, like the
> > > > helloworld.
> > > I
> > > > don't have any examples of running on eclipse 
> > > > do u have any examples done on eclipse ide? or an example of
> > > > eclipse project 
> > > > 
> > > > On Thu, Jun 24, 2021 at 6:40 PM Rahul K P
> > > > <rahul@xxxxxxxxxxxxxxxxxxxx> wrote:
> > > > > Hi Jeroen Koekkoek
> > > > > 
> > > > > Thanks for that, Since I had built a visual studio using c
> > > make, i
> > > > > don't have any example to run on eclipse 
> > > > > do u have any example done on eclipse ide?
> > > > > 
> > > > > On Thu, Jun 24, 2021 at 3:17 PM Jeroen Koekkoek
> > > > > <jeroen@xxxxxxxxxxx> wrote:
> > > > > > Hi Rahul,
> > > > > > 
> > > > > > I've actually gotten it to build with MinGW on Windows. It
> > > > > > doesn't
> > > > > > completely work yet and there's some more work involved to
> > > make
> > > > > > it
> > > > > > integrate nicely, but it's a start if you really must use
> > > MinGW.
> > > > > > 
> > > > > > That being said, I think short-term you're better served by
> > > > > > building
> > > > > > from the command line with Visual Studio if you want
> > > > > > reliable
> > > > > > operation
> > > > > > and use the Eclipse IDE just for editing. I know it isn't
> > > ideal,
> > > > > > especially since we're an Eclipse Project :), but that's
> > > > > > what
> > > > > > "just
> > > > > > works" at this point in time.
> > > > > > 
> > > > > > Best regards,
> > > > > > Jeroen
> > > > > > 
> > > > > > 
> > > > > > On Thu, 2021-06-24 at 14:33 +0530, Rahul K P wrote:
> > > > > > > Dear developer, 
> > > > > > > I'm a beginner using Eclipse and Cyclone DDS, is there
> > > > > > > any
> > > > > > repository
> > > > > > > with examples written on Eclipse IDE for cyclone dds ?
> > > > > > > 
> > > > > > > I was facing some issues building installers with
> > > > > > > Eclipse-
> > > Mingw
> > > > > > and
> > > > > > > instead I used visual studio 2019 to build examples. But
> > > > > > > in
> > > the
> > > > > > > actual application I have to use Eclipse Ide, can  any
> > > > > > > one
> > > help
> > > > > > me
> > > > > > > with configuring Eclipse and running an example?
> > > > > > > 
> > > > > > > Best regards
> > > > > > > Rahul
> > > > > > > 
> > > > > > > Please do not print this email unless it is absolutely
> > > > > > > necessary.
> > > > > > > This email message and any attachments is confidential
> > > > > > > and
> > > > > > > intended only for the use of an individual or entity
> > > > > > > named
> > > > > > > above 
> > > > > > > intended recipient, you are notified that any
> > > dissemination, 
> > > > > > > distribution or copying of this email is strictly
> > > prohibited. 
> > > > > > > Captronic Systems Pvt Ltd does not accept liability for 
> > > > > > > any errors, omissions, corruption or virus in the
> > > > > > > contents
> > > of
> > > > > > this
> > > > > > > message or any attachments that arise as a result of e-
> > > > > > > mail
> > > > > > > transmission. 
> > > > > > > If you have received this communication in error, please
> > > notify
> > > > > > the
> > > > > > > sender 
> > > > > > > immediately and delete the original message and its
> > > attachments
> > > > > > > immediately.
> > > > > > > _______________________________________________
> > > > > > > cyclonedds-dev mailing list
> > > > > > > cyclonedds-dev@xxxxxxxxxxx
> > > > > > > To unsubscribe from this list, visit
> > > > > > > https://www.eclipse.org/mailman/listinfo/cyclonedds-dev
> > > > > > 
> > > > > > 
> > > > > > _______________________________________________
> > > > > > cyclonedds-dev mailing list
> > > > > > cyclonedds-dev@xxxxxxxxxxx
> > > > > > To unsubscribe from this list, visit
> > > > > > https://www.eclipse.org/mailman/listinfo/cyclonedds-dev
> > > > 
> > > > Please do not print this email unless it is absolutely
> > > > necessary.
> > > > This email message and any attachments is confidential and
> > > > intended only for the use of an individual or entity named
> > > > above 
> > > > intended recipient, you are notified that any dissemination, 
> > > > distribution or copying of this email is strictly prohibited. 
> > > > Captronic Systems Pvt Ltd does not accept liability for 
> > > > any errors, omissions, corruption or virus in the contents of
> > > this
> > > > message or any attachments that arise as a result of e-mail
> > > > transmission. 
> > > > If you have received this communication in error, please notify
> > > the
> > > > sender 
> > > > immediately and delete the original message and its attachments
> > > > immediately.
> > > > _______________________________________________
> > > > cyclonedds-dev mailing list
> > > > cyclonedds-dev@xxxxxxxxxxx
> > > > To unsubscribe from this list, visit
> > > > https://www.eclipse.org/mailman/listinfo/cyclonedds-dev
> > > 
> > > 
> > > _______________________________________________
> > > cyclonedds-dev mailing list
> > > cyclonedds-dev@xxxxxxxxxxx
> > > To unsubscribe from this list, visit
> > > https://www.eclipse.org/mailman/listinfo/cyclonedds-dev
> 
> Please do not print this email unless it is absolutely necessary.
> This email message and any attachments is confidential and
> intended only for the use of an individual or entity named above 
> and may contain information that is privileged, confidential or 
> exempt from disclosure under applicable law. If you are not the 
> intended recipient, you are notified that any dissemination, 
> distribution or copying of this email is strictly prohibited. 
> Captronic Systems Pvt Ltd does not accept liability for 
> any errors, omissions, corruption or virus in the contents of this
> message or any attachments that arise as a result of e-mail
> transmission. 
> If you have received this communication in error, please notify the
> sender 
> immediately and delete the original message and its attachments
> immediately.
> _______________________________________________
> cyclonedds-dev mailing list
> cyclonedds-dev@xxxxxxxxxxx
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/cyclonedds-dev




Back to the top