| I try to do eclipse in linux [message #1728636] |
Wed, 06 April 2016 03:14  |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
youngbin Hyun wrote on Wed, 06 April 2016 10:141. 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 #1729053 is a reply to message #1729044] |
Sun, 10 April 2016 08:04  |
Eclipse User |
|
|
|
youngbin Hyun wrote on Sun, 10 April 2016 09:561. 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?
|
|
|
Powered by
FUDForum. Page generated in 0.04882 seconds