Pagina 1 di 2 1 2 ultimoultimo
Visualizzazione dei risultati da 1 a 10 su 16

Discussione: [Kdevelop] compilatore

  1. #1

    [Kdevelop] compilatore

    domanda niubba,
    come faccio a compilare questo semplice programma:
    codice:
    #include <stdio.h>
     
    int main(void)
    {
      printf("Hello World\n");
    con Kdevelop ?
    devo per forza aggiungerlo ad un progetto? ma quale soprattutto... Perchè se provo a far un nuovo progetto e seleziono C/CMake based prohects successivamente mi da questo errore:

    codice:
    cmake ./ -GKDevelop3
    -- Check for working C compiler: CMAKE_C_COMPILER-NOTFOUND
    CMake Error: your C compiler: "CMAKE_C_COMPILER-NOTFOUND" was not found.   Please set CMAKE_C_COMPILER to a valid compiler path or name.
    CMake Error: Internal CMake error, TryCompile configure of cmake failed
    -- Check for working C compiler: CMAKE_C_COMPILER-NOTFOUND -- broken
    CMake Error: The C compiler "CMAKE_C_COMPILER-NOTFOUND" is not able to compile a simple test program.
    It fails with the following output:
     
    
    CMake will not be able to correctly generate this project.
    CMake Error: your C compiler: "CMAKE_C_COMPILER-NOTFOUND" was not found.   Please set CMAKE_C_COMPILER to a valid compiler path or name.
    -- Configuring done
    *** Uscito con stato: 255 ***
    ho sempre compilato da riga di comando con un gcc ed ora sono spaesato...

    AMD Phenom II X6 1090T, ASUS M3A78-CM, GTX460 OC 1GB, CentOS 7 & Thinkpad T410 windows & Fairphone FP2

  2. #2
    Si devi creare un nuovo progetto per quello che ne so io...
    Kdevelop non lo uso da un paio di anni ma mi sembra di capire che il tuo problema sia cmake
    forse non lo hai installato...
    There are two kinds of researchers:
    those that have implemented something and those that have not.
    The latter will tell you that there are 142 ways of doing things
    and that there isn't consensus on which is best.
    The former will simply tell you that 141 of them don't work.

  3. #3
    ti manca cmake
    Tremal-Naik
    ******************************
    passa a LINUX
    **********
    la religione e' il freno che impedisce al povero di ammazzare il ricco

  4. #4
    eppure c'è...

    $ cmake
    cmake version 2.4-patch 6

    l'ho scaricato da qui:
    http://rpm.pbone.net/index.php3/stat....i586.rpm.html
    AMD Phenom II X6 1090T, ASUS M3A78-CM, GTX460 OC 1GB, CentOS 7 & Thinkpad T410 windows & Fairphone FP2

  5. #5
    2 domande
    quale distro e quale versione di kdevelop
    Tremal-Naik
    ******************************
    passa a LINUX
    **********
    la religione e' il freno che impedisce al povero di ammazzare il ricco

  6. #6
    ho la Mandriva 2007 Spring, 2.6.17-16mdv e Kdevelop 3.4.0
    AMD Phenom II X6 1090T, ASUS M3A78-CM, GTX460 OC 1GB, CentOS 7 & Thinkpad T410 windows & Fairphone FP2

  7. #7
    crea un progetto C++ del tipo:
    semplice programma di hello word
    Tremal-Naik
    ******************************
    passa a LINUX
    **********
    la religione e' il freno che impedisce al povero di ammazzare il ricco

  8. #8
    più o meno è quello che ho fatto (prima ho selezionato C), comunque riprovando ho selezionato C++ e mi è uscito subito l'errore nel Tab Applicazione:
    codice:
    cmake ./ -GKDevelop3
    -- Check for working C compiler: CMAKE_C_COMPILER-NOTFOUND
    CMake Error: your C compiler: "CMAKE_C_COMPILER-NOTFOUND" was not found.   Please set CMAKE_C_COMPILER to a valid compiler path or name.
    CMake Error: Internal CMake error, TryCompile configure of cmake failed
    -- Check for working C compiler: CMAKE_C_COMPILER-NOTFOUND -- broken
    CMake Error: The C compiler "CMAKE_C_COMPILER-NOTFOUND" is not able to compile a simple test program.
    It fails with the following output:
     
    
    CMake will not be able to correctly generate this project.
    CMake Error: your C compiler: "CMAKE_C_COMPILER-NOTFOUND" was not found.   Please set CMAKE_C_COMPILER to a valid compiler path or name.
    -- Configuring done
    *** Uscito con stato: 255 ***
    inoltre com'è che si fa a creare ed associare dei nuovi programmi C al progetto?

    Da casa provo a disinstallare la versione di gmake che ho installato e reinstallo da centro di controllo
    AMD Phenom II X6 1090T, ASUS M3A78-CM, GTX460 OC 1GB, CentOS 7 & Thinkpad T410 windows & Fairphone FP2

  9. #9
    Originariamente inviato da Akiro
    eppure c'è...

    $ cmake
    cmake version 2.4-patch 6

    l'ho scaricato da qui:
    http://rpm.pbone.net/index.php3/stat....i586.rpm.html
    Forse il problema è che non hai installato cmake dai repository di mandriva tramite urpmi.
    It's just another bombtrack...
    Ogni can mena la coa, ogni coion vö gi' la soa!

  10. #10
    ho disinstallato e reinstallato ma non è cambiato niente:
    codice:
    cmake ./ -GKDevelop3
    -- Check for working C compiler: CMAKE_C_COMPILER-NOTFOUND
    CMake Error: your C compiler: "CMAKE_C_COMPILER-NOTFOUND" was not found.   Please set CMAKE_C_COMPILER to a valid compiler path or name.
    CMake Error: Internal CMake error, TryCompile configure of cmake failed
    -- Check for working C compiler: CMAKE_C_COMPILER-NOTFOUND -- broken
    CMake Error: The C compiler "CMAKE_C_COMPILER-NOTFOUND" is not able to compile a simple test program.
    It fails with the following output:
     
    
    CMake will not be able to correctly generate this project.
    CMake Error: your C compiler: "CMAKE_C_COMPILER-NOTFOUND" was not found.   Please set CMAKE_C_COMPILER to a valid compiler path or name.
    -- Configuring done
    *** Uscito con stato: 255 ***
    qualcuno a cui funziona sa darmi se le variabili a cui fa riferimento l'errore sono settate copiando il risultato di un "env | grep CMAKE" da console?
    grazie
    AMD Phenom II X6 1090T, ASUS M3A78-CM, GTX460 OC 1GB, CentOS 7 & Thinkpad T410 windows & Fairphone FP2

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.