Programming on Linux

KDevelop?

Page 1 of 1

11 Replies - 1969 Views - Last Post: 17 July 2006 - 08:46 AM

#1 SPlutard   User is offline

  • code.ninja
  • member icon

Reputation: 18
  • View blog
  • Posts: 615
  • Joined: 13-August 05

Programming on Linux

Posted 15 July 2006 - 12:00 PM

Does anyone here use thieir Linux box for their projects? Right now, I use my PC with an old version of Msft VS and NetBeans freeware but would like to use my Linux laptop. I've tried KDevelop, but I can't get it to work for some reason. (For C/C++ and Java) I've installed:
sudo apt-get install build-essential
sudo apt-get install j2sdk1.4 


When I try to compile C/C++ or Java code, it comes up with some errors - anyone think they might be able to help?

Or, alternatively, is there an option that anyone prefers over KD? It seems nice, from what little I've been able to use it, but.... Or should I just stick with what works, namely, my PC apps?

NOTE: You'll have to forgive my newbishness - I'm so new to Linux that I still don't know much ;) sorry.

This post has been edited by SPlutard: 15 July 2006 - 12:02 PM


Is This A Good Question/Topic? 0
  • +

Replies To: Programming on Linux

#2 Nova Dragoon   User is offline

  • The Innocent Shall Suffer, Big Time
  • member icon

Reputation: 38
  • View blog
  • Posts: 6,169
  • Joined: 16-August 01

Re: Programming on Linux

Posted 15 July 2006 - 04:36 PM

Are you making sure you aren't using any miscrosoftisms? VS lets you be very sloppy while coding. Also make sure you aren't using any MS libs like conio.h
Was This Post Helpful? 0
  • +
  • -

#3 Amadeus   User is offline

  • g+ + -o drink whiskey.cpp
  • member icon

Reputation: 253
  • View blog
  • Posts: 13,507
  • Joined: 12-July 02

Re: Programming on Linux

Posted 16 July 2006 - 05:40 AM

I use linux for coding all the time, and for all sorts of languages - C, C++ , Java, perl, python, scripting, even .NET langauges...and I've used kdevelop extensively. Can you specify the errors you're getting? Maybe if we saw them, we could try and debug.
Was This Post Helpful? 0
  • +
  • -

#4 SPlutard   User is offline

  • code.ninja
  • member icon

Reputation: 18
  • View blog
  • Posts: 615
  • Joined: 13-August 05

Re: Programming on Linux

Posted 16 July 2006 - 10:32 AM

I don't think it's my code since I've only been trying to get "Hello World" programs to work.

For C++, the output is really long, but I did see a few red dots (errors, I guess):

Quote

......
aclocal:configure.in:13: warning: macro `AM_PROG_LIBTOOL' not found in library
aclocal:configure.in:17: warning: macro `AM_PATH_GTKMM' not found in library
......
*** Exited with status: 2 ***

For the program:
#include <iostream>
using namespace std;
int main()
{
cout<<"Test";
return(0);
}


NOTE: I'd lookup the exit number in the helpfile, but I can't get that to work either. Something about not being able to find "the htsearch executable". Sorry.

This post has been edited by SPlutard: 16 July 2006 - 10:34 AM

Was This Post Helpful? 0
  • +
  • -

#5 Amadeus   User is offline

  • g+ + -o drink whiskey.cpp
  • member icon

Reputation: 253
  • View blog
  • Posts: 13,507
  • Joined: 12-July 02

Re: Programming on Linux

Posted 16 July 2006 - 03:59 PM

Well, you're right...it's not your code, that is a problem with the configure file...are you able to compile using the GNU GCC or G++ compiler? Which compiler is giving you that error? As an FYI, the problem with the configure file may also explain the inability to use the help file...it may never have been generated when you installed and configured the compiler.
Was This Post Helpful? 0
  • +
  • -

#6 SPlutard   User is offline

  • code.ninja
  • member icon

Reputation: 18
  • View blog
  • Posts: 615
  • Joined: 13-August 05

Re: Programming on Linux

Posted 16 July 2006 - 04:11 PM

Hmmmm.... Well that sucks. Any way I can start over, so to speak, and reinstall the compiler? How can I check if the GNU GCC or G++ compilers work (like you mentinoed)?
Was This Post Helpful? 0
  • +
  • -

#7 Amadeus   User is offline

  • g+ + -o drink whiskey.cpp
  • member icon

Reputation: 253
  • View blog
  • Posts: 13,507
  • Joined: 12-July 02

Re: Programming on Linux

Posted 16 July 2006 - 05:36 PM

What distro are you using? The GCC compiler is often present by default..if not, then getting it using a package management system is usally easiest...can I presume by your previous use of the apt-get commands that you are running one of the debian flavours?
Was This Post Helpful? 0
  • +
  • -

#8 SPlutard   User is offline

  • code.ninja
  • member icon

Reputation: 18
  • View blog
  • Posts: 615
  • Joined: 13-August 05

Re: Programming on Linux

Posted 17 July 2006 - 07:50 AM

Runnin': Ubuntu v6.06 (Dapper Drake)
Was This Post Helpful? 0
  • +
  • -

#9 Nova Dragoon   User is offline

  • The Innocent Shall Suffer, Big Time
  • member icon

Reputation: 38
  • View blog
  • Posts: 6,169
  • Joined: 16-August 01

Re: Programming on Linux

Posted 17 July 2006 - 07:53 AM

make your hello world program a file, and save it to your home dir.

Then open a terminal and do this, to compile:
g++  file.cpp  -o  hello


(where file.cpp is your source file name)

if that works, do this to run it:
./hello


Was This Post Helpful? 0
  • +
  • -

#10 SPlutard   User is offline

  • code.ninja
  • member icon

Reputation: 18
  • View blog
  • Posts: 615
  • Joined: 13-August 05

Re: Programming on Linux

Posted 17 July 2006 - 08:13 AM

Ok, I downloaded another package and got the Java half to work (or it'll at least build the project). Now, there's a .class (compiled) file in the project's build folder, but I'm not sure how to run it. Double clicking doesn't seem to help....
Was This Post Helpful? 0
  • +
  • -

#11 Amadeus   User is offline

  • g+ + -o drink whiskey.cpp
  • member icon

Reputation: 253
  • View blog
  • Posts: 13,507
  • Joined: 12-July 02

Re: Programming on Linux

Posted 17 July 2006 - 08:27 AM

Double clicking is generally for executables...are you using kdevelop? or just doing this from the command line?
Was This Post Helpful? 0
  • +
  • -

#12 SPlutard   User is offline

  • code.ninja
  • member icon

Reputation: 18
  • View blog
  • Posts: 615
  • Joined: 13-August 05

Re: Programming on Linux

Posted 17 July 2006 - 08:46 AM

When I build the bulid the project, the output isn't displayed. I have enabled View-->Tool Views-->Show Application Output, but is there a run button? <I feel like an idiot>
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1