Nieuws:

Welkom, Gast. Alsjeblieft inloggen of registreren.
Heb je de activerings-mail niet ontvangen?

Auteur Topic: Compileren C  (gelezen 933 keer)

Compileren C
« Gepost op: 2007/08/25, 20:49:54 »
Beste Ubuntu deskundigen,

Ik probeer al een poosje wat software op mijn Ubuntu omgeving te installeren (buiten het synaptic pakket beheer om). Vaak moet je dan het een en ander compileren om de applicatie aan het werk te krijgen. Er zit altijd wel een INSTALL bestand bij waarin staat hoe het moet.

Voorbeeld:
The simplest way to compile this package is:

  1. `cd' to the directory containing the package's source code and type
     `./configure' to configure the package for your system.  If you're
     using `csh' on an old version of System V, you might need to type
     `sh ./configure' instead to prevent `csh' from trying to execute
     `configure' itself.

     Running `configure' takes awhile.  While running, it prints some
     messages telling which features it is checking for.

  2. Type `make' to compile the package.

Punt 1 lukt wel maar bij punt 2 krijg ik de melding:
make: *** Geen doelen opgegeven en geen makefile gevonden.  Gestopt.

Bij mijn werk moet ik ook wel eens een makefile draaien met commando:
make -f .
Ook als ik iets dergelijks probeer met een van de meegeleverde makefiles levert dit niets op.
Wat doe ik verkeerd???

Offline siegi

  • Lid
Compileren C
« Reactie #1 Gepost op: 2007/08/25, 20:57:01 »
wat geeft ./configure voor een foutmelding want deze maakt de make file aan.

Compileren C
« Reactie #2 Gepost op: 2007/08/26, 10:34:56 »
Snelle reactie...

In de log file staan nogal wat foutmeldingen, begint met het afwezig zijn van g++,
waarschijnlijk zal ik eerst een van de ontwikkeltalen moeten installeren.
Ga ik eerst even doen,

Bedankt

Compileren C
« Reactie #3 Gepost op: 2007/08/26, 11:11:08 »
Heb nu wat compilers geinstalleerd, blijf fouten houden in de preprocessor.
Misschien dat je met onderstaande info uit log bestand wat kunt.

configure:9043: checking how to run the C++ preprocessor
configure:9079: g++ -E  conftest.cpp
configure:9085: $? = 0
configure:9116: g++ -E  conftest.cpp
conftest.cpp:28:28: error: ac_nonexistent.h: No such file or directory
configure:9122: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "gnome-mplayer"
| #define VERSION "0.4.7"
| #define STDC_HEADERS 1
| #define GETTEXT_PACKAGE "gnome-mplayer"
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_LOCALE_H 1
| #define HAVE_LC_MESSAGES 1
| #define HAVE_BIND_TEXTDOMAIN_CODESET 1
| #define HAVE_GETTEXT 1
| #define HAVE_DCGETTEXT 1
| #define ENABLE_NLS 1
| #define HAVE_DLFCN_H 1
| /* end confdefs.h.  */
| #include
configure:9155: result: g++ -E
configure:9184: g++ -E  conftest.cpp
configure:9190: $? = 0
configure:9221: g++ -E  conftest.cpp
conftest.cpp:28:28: error: ac_nonexistent.h: No such file or directory
configure:9227: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "gnome-mplayer"
| #define VERSION "0.4.7"
| #define STDC_HEADERS 1
| #define GETTEXT_PACKAGE "gnome-mplayer"
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_LOCALE_H 1
| #define HAVE_LC_MESSAGES 1
| #define HAVE_BIND_TEXTDOMAIN_CODESET 1
| #define HAVE_GETTEXT 1
| #define HAVE_DCGETTEXT 1
| #define ENABLE_NLS 1
| #define HAVE_DLFCN_H 1
| /* end confdefs.h.  */
| #include
configure:9320: checking for g77
configure:9350: result: no
configure:9320: checking for xlf
configure:9350: result: no
configure:9320: checking for f77
configure:9350: result: no
configure:9320: checking for frt
configure:9350: result: no
configure:9320: checking for pgf77
configure:9350: result: no
configure:9320: checking for cf77
configure:9350: result: no
configure:9320: checking for fort77
configure:9350: result: no
configure:9320: checking for fl32
configure:9350: result: no
configure:9320: checking for af77
configure:9350: result: no
configure:9320: checking for xlf90
configure:9350: result: no
configure:9320: checking for f90
configure:9350: result: no
configure:9320: checking for pgf90
configure:9350: result: no
configure:9320: checking for pghpf
configure:9350: result: no
configure:9320: checking for epcf90
configure:9350: result: no
configure:9320: checking for gfortran
configure:9350: result: no
configure:9320: checking for g95
configure:9350: result: no
configure:9320: checking for xlf95
configure:9350: result: no
configure:9320: checking for f95
configure:9350: result: no
configure:9320: checking for fort
configure:9350: result: no
configure:9320: checking for ifort
configure:9350: result: no
configure:9320: checking for ifc
configure:9350: result: no
configure:9320: checking for efc
configure:9350: result: no
configure:9320: checking for pgf95
configure:9350: result: no
configure:9320: checking for lf95
configure:9350: result: no
configure:9320: checking for ftn
configure:9350: result: no
configure:9377: checking for Fortran 77 compiler version
configure:9384:  --version >&5
./configure: line 9385: --version: command not found
configure:9387: $? = 127
configure:9394:  -v >&5
./configure: line 9395: -v: command not found
configure:9397: $? = 127
configure:9404:  -V >&5
./configure: line 9405: -V: command not found
configure:9407: $? = 127
configure:9415: checking whether we are using the GNU Fortran 77 compiler
configure:9434:  -c  conftest.F >&5
./configure: line 9435: -c: command not found
configure:9440: $? = 127
configure: failed program was:
|       program main
| #ifndef __GNUC__
|        choke me
| #endif
|
|       end
configure:9457: result: no
configure:9463: checking whether  accepts -g
configure:9480:  -c -g conftest.f >&5
./configure: line 9481: -c: command not found
configure:9486: $? = 127
configure: failed program was:
|       program main
|
|       end


Ik hoor graag wat het zou kunnen zijn...

Gr,
Pieterjan

Offline siegi

  • Lid
Compileren C
« Reactie #4 Gepost op: 2007/08/26, 21:15:17 »
Installeer anders een build-essential

Compileren C
« Reactie #5 Gepost op: 2007/08/27, 19:16:16 »
Heb via synaptic pakket beheer een build essential geinstalleerd, maar weet niet echt wat ik er mee moet en hoe ik 'm kan vinden. In ieder geval blijft het resultaat mrt ./configure helaas hetzelfde...

Misschien kun je nog wat verzinnen...

Gr,
Pieterjan