Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » I try to do eclipse in linux
I try to do eclipse in linux [message #1728636] Wed, 06 April 2016 03:14 Go to next message
Eclipse UserFriend
1. when I work with eclipse in linux, I access the eclipse with 'root' (sudo). But, I cannot find the source file in /root directory. where can I find it?? I should make new source file.

2. In linux, is it possible to compile '.cpp' with linux GCC ?? Because I cannot find g++ compiler in the ecilpse after installing the g++. If it is impossible, how can I add g++ in the eclipse??
Re: I try to do eclipse in linux [message #1728667 is a reply to message #1728636] Wed, 06 April 2016 07:33 Go to previous messageGo to next message
Eclipse UserFriend
youngbin Hyun wrote on Wed, 06 April 2016 10:14
1. when I work with eclipse in linux, I access the eclipse with 'root' (sudo). But, I cannot find the source file in /root directory. where can I find it?? I should make new source file.

2. In linux, is it possible to compile '.cpp' with linux GCC ?? Because I cannot find g++ compiler in the ecilpse after installing the g++. If it is impossible, how can I add g++ in the eclipse??


---------

1. DO NOT RUN AS root. If your installation does not start as a normal user, un-install what you have, log in as your normal user, get the Eclipse installer and use it to re-install Eclipse.

2. Eclipse does not contain either C or C++ compilers itself. You have to install the standard C/C++ installation of your Linux distribution. Eclipse will use both C and C++ toolkits from a normal Linux distribution installation.

To check, use the Linux console and type:

gcc --version
g++ --version

and see what they report.
Re: I try to do eclipse in linux [message #1728857 is a reply to message #1728667] Thu, 07 April 2016 21:45 Go to previous messageGo to next message
Eclipse UserFriend
1. In order to operate a servor motor, I should access 'root' in linux. Is there other solution?? When I don't access with 'root', I get a message ' must be root'

2. I already installed CDT. What I need is c++ compiler. Can you tell me the way I can install C++ compiler?
Re: I try to do eclipse in linux [message #1729010 is a reply to message #1728857] Sat, 09 April 2016 07:48 Go to previous messageGo to next message
Eclipse UserFriend
youngbin Hyun wrote on Fri, 08 April 2016 04:45
1. In order to operate a servo motor, I should access 'root' in linux. Is there other solution?? When I don't access with 'root', I get a message ' must be root'

2. I already installed CDT. What I need is c++ compiler. Can you tell me the way I can install C++ compiler?


1. Are you sure? This is bad design. The common solution is to give access to the I/O module to a special group and add yourself to the group. Even then, you should not run your development toolset as root. Create the target binary and change it to suid root, if you absolutely must.

2. CDT is just a glorified C/C++ editor and toolset commander. The C and C++ compilers (plus binary utilities and libraries) should be installed from your Linux distribution. The exact instructions depend on which Linux you're running.
Re: I try to do eclipse in linux [message #1729044 is a reply to message #1729010] Sun, 10 April 2016 02:56 Go to previous messageGo to next message
Eclipse UserFriend
1. My purpose is to control a gripper with servor motors. So, I should use RS485 and when I write like this
if(wiringSetupGpio () == -1)
{
return 1;
}
I got a message 'must be root'


2. I use raspbian 4.1. Can you tell me how I can install the C++ compiler? or is it fine to compile c++ with linux GCC?

[Updated on: Sun, 10 April 2016 03:09] by Moderator

Re: I try to do eclipse in linux [message #1729053 is a reply to message #1729044] Sun, 10 April 2016 08:04 Go to previous message
Eclipse UserFriend
youngbin Hyun wrote on Sun, 10 April 2016 09:56
1. My purpose is to control a gripper with servor motors. So, I should use RS485 and when I write like this
if(wiringSetupGpio () == -1)
{
return 1;
}
I got a message 'must be root'


2. I use raspbian 4.1. Can you tell me how I can install the C++ compiler? or is it fine to compile c++ with linux GCC?


1. This does not sound too logical: RS-485 is a serial interface (using e.g. /dev/ttyUSB0), and GPIO on Raspberry is a different thing. Which are you really attempting to use?

2. The whole development setup is installed on Raspbian:

sudo apt-get install build-essential

To verify the installation, type on the Linux console:

gcc --version

and

g++ --version

-----

Eclipse is a bit too heavy to run well on a Raspberry. Have a look at the native IDE's for Raspberry, e.g. Geany or Anjuta. They are not as powerful as Eclipse, but they are running better with the resources in Raspbian.

It seems that you're trying to run a GPIO control library on the Raspberry, which?

Previous Topic:Inconsistent/erratic (indexer?) source code navigating behavior in Mars.1 , .2
Next Topic:Turn in and Turn off by a bluetooth a videocamera of a mobile phone.
Goto Forum:
  


Current Time: Thu Nov 06 22:40:18 EST 2025

Powered by FUDForum. Page generated in 0.03908 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top