Results 1 to 6 of 6

Thread: need KDevelop help!!!!

  1. #1

    need KDevelop help!!!!

    I'm using Knoppix because I have a Web site with a Unix server, a CGI program written in C, and a Windows development system. I needed a way to compile my CGI for Unix. But I'm having an AWFUL time. I need help BADLY. I'm very unfamiliar with Unix-isms such as all the different flavors of makefiles and configure files. I have no idea what these things do--pages and pages of indecipherable code. And I'm also lost when it comes to KDevelop. I can't figure out what all that auto-generate stuff is.

    I know how to write a makefile that says simply what the input files are and where the libraries I want to link to are, but I can't for the life of me figure out how to communicate this to KDevelop, which is insistent on generating its own makefiles using all these other weird files that I can't decipher.

    I finally managed to get the project set up to the point where I could try to compile, but I have two serious problems and not the hint of a solution:

    (1) I'm getting a zillion errors complaining about every trigonometric function I call (sin(), cos(), etc.). I have math.h included at the top and this compiled fine on Windows. I also confirmed that math.h is on the Knoppix CD, though I can't begin to say if it's in the right place or if I need to do something special to point to it (evidence suggests I should). The Help file is not searchable.

    (2) KDevelop does not know about the special library I need to link to, though I tried to put this in the makefile that it (of course) ignored. HOW DO I TELL IT ABOUT MY LIBRARY???? (I did manage, by some miracle, to compile the library.)

    I wish I could find a consise overview of KDevelop and its weirdness for reasonably intelligent developers coming from the Windows platform, but I can find NOTHING. Please can someone help me??????? What I want to do is so simple, and it looks like it may take half my lifetime. It would be worlds easier to just get a Windows server.

  2. #2
    I posted too quick... I found answers to my math.h and custom library problem on another forum. That's fixed.

    I still sure would like to learn what all these makefiles and configure files are, and what all that weird code means. Maybe I don't need to know.

  3. #3
    Senior Member registered user
    Join Date
    Mar 2003
    Posts
    555

    Re: need KDevelop help!!!!

    I don't know KDevelop at all, but I think I can help with the following point:
    Quote Originally Posted by permutations
    (1) I'm getting a zillion errors complaining about every trigonometric function I call (sin(), cos(), etc.). I have math.h included at the top and this compiled fine on Windows. I also confirmed that math.h is on the Knoppix CD, though I can't begin to say if it's in the right place or if I need to do something special to point to it (evidence suggests I should). The Help file is not searchable.
    You need to add '-lm' to your CC command flags. That'll pull in the math lib at link time.

    Other than that, if your program is a CGI, it just deals with stdin/stdout and environment variables, so I'm not sure what you'd gain in forcing this type of project into the IDE. Just my 2 (euro) cents, of course!

  4. #4
    The main reason I put it in KDevelop is that I don't know how to compile it from the command line. You want to tell me?

    I did just manage to successfully compile. Still, it would be good to have some knowledge of what I'm doing here.

  5. #5
    Member registered user
    Join Date
    Nov 2003
    Posts
    90
    If you only want to compile some C files, you should try "gcc". When you use KDevelop, it's an complete (IDE), so, maybe it's too much for your work. With gcc, you will compile only. In the command line type "gcc -o execfile sourcefile.c".

    This will compile the "sourcefile.c" to "execfile". I'm not sure if this will work with your cgi, but you should try to investigate if this options works for you.

  6. #6
    P.S. What is the easiest way to refresh the files in a KDevelop project? I'm doing my primary development on the Windows machine, and then moving files over to Knoppix just for compilation under Unix.

Similar Threads

  1. Kdevelop
    By MRA in forum Customising & Remastering
    Replies: 1
    Last Post: 11-09-2004, 03:48 AM
  2. KDevelop / c++ Development
    By AS in forum General Support
    Replies: 0
    Last Post: 04-01-2004, 07:36 PM
  3. kdevelop doesn't seem to work...
    By h3rald in forum Hdd Install / Debian / Apt
    Replies: 3
    Last Post: 01-18-2004, 02:56 PM
  4. KDE with KDevelop
    By Spyder_Snyper in forum Customising & Remastering
    Replies: 1
    Last Post: 10-01-2003, 05:19 AM
  5. apt-get Dependencies for kdevelop xlibs-pic
    By code-pupil in forum Hdd Install / Debian / Apt
    Replies: 2
    Last Post: 08-03-2003, 08:04 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


INTEL XEON E5-2680V4 SR2N7 2.40GHZ CPU picture

INTEL XEON E5-2680V4 SR2N7 2.40GHZ CPU

$11.00



Dell Precision Tower 7810 Xeon E5-2630 v3 @ 2.40GHz , 32GB Ram, NO HDD, NO OS picture

Dell Precision Tower 7810 Xeon E5-2630 v3 @ 2.40GHz , 32GB Ram, NO HDD, NO OS

$239.99



Dell Precision T7820 2x Xeon Silver 4114 2.20GHz 950W No RAM GPU HDD 4x SATA picture

Dell Precision T7820 2x Xeon Silver 4114 2.20GHz 950W No RAM GPU HDD 4x SATA

$350.48



Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram  2x 550W PSU No HDD picture

Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram 2x 550W PSU No HDD

$275.00



Dell Precision T5820 Workstation 3.70GHz W-2135 No RAM/ GPU/ HDD/ OS picture

Dell Precision T5820 Workstation 3.70GHz W-2135 No RAM/ GPU/ HDD/ OS

$179.98



Intel Xeon E5-2699 V4 2.20GHz 55M 22-CORES LGA2011-3 Server Processor 145W SR2JS picture

Intel Xeon E5-2699 V4 2.20GHz 55M 22-CORES LGA2011-3 Server Processor 145W SR2JS

$84.49



DELL Precision 5820 Workstation Xeon W-2123 3.6ghz/NO RAM/NO SSD/P400 Vid picture

DELL Precision 5820 Workstation Xeon W-2123 3.6ghz/NO RAM/NO SSD/P400 Vid

$139.99



Dell Precision T7820 2x Xeon Gold 6130 2.10GHz 950W No RAM GPU HDD 4x SATA picture

Dell Precision T7820 2x Xeon Gold 6130 2.10GHz 950W No RAM GPU HDD 4x SATA

$374.48



Dell PowerEdge FX2s + 8x FC430 Blades 16x E5-2630v4 160 Cores Rails No PSU/RAM picture

Dell PowerEdge FX2s + 8x FC430 Blades 16x E5-2630v4 160 Cores Rails No PSU/RAM

$699.00



DELL Precision T3420 | Xeon 1240v6 | 525GB SSD |16GB RAM |Nvidia GPU |Win11 picture

DELL Precision T3420 | Xeon 1240v6 | 525GB SSD |16GB RAM |Nvidia GPU |Win11

$149.00