TAR-Files

Hallo allerseits...

Neuerdings benutze ich einen Mac zuhause. Und wie auch allerseits bekannt ist, gibts für manche aufgaben zu wenig software für mac os x. :D
Jedoch findet man oftmals gute open source software, leider oftmals nicht fürs os x vorkompiliert. um diese aufgabe zu übernehmen fühle ich mich zu unerfahren. :(
wie kann ich ein ganz simples programm selber kompilieren? genauer: stimmt es, dass man die TAR-files (sind glaub ich archive X() gar nicht erst entpacken muss, sonder gleich in xcode laden kann? ?(
hoffe nur auf eine kleine hilfe, da ich bis jetzt echt nichts fand zu diesem thema, jedenfalls nichts eifaches, und nicht in deutsch!

danke für jeden noch so kleinen tipp!

greets! =)
 
Ich hab leider 0 Ahnung von Mac, aber afaik sind TAR-Balls unter Linux und Mac ähnlich (oder gleich?), d.h. es sind Archive die zuerst entpackt werden müssen. Dann kompiliert man den Sourcecode und installiert ihn. Ich habe hier eine kleine Anleitung für dich gefunden (erklärt wie man MySql installiert, dürfte aber für andere Programme ähnlich sein).
 
Also ich nutze auch Mac OS X und da reicht ein simpler doppelklick auf ein TAR-Ball um ihn zu entpacken...es wird automatisch alles in einen Unterordner gepackt und dann kannst du dich ans kompilieren machen... und das würde ich mit dem gcc unter der konsole machen und nicht mit xcode...

Oder einfach: ./configure; make; make install... kommt halt drauf an was du da hast.

MfG
Lord
 
naja, im moment mach ich mich daran lincity zu kompilieren. die alternative wäre lincity mit X11 auszuführen, aber wenns nativ gehen würde wäre mir lieber, zudem habe ich auch interesse daran sowas zu können, auch für zuküftige progs...

das mit der konsole hab ich mal ausprobiert, leider hab ich da nen ERROR bekommen, genaueres kann ich nicht sagen. hier habe ich mal noch die ausgabe des ./configure:

Code:
checking build system type... i686-apple-darwin8.9.1
checking host system type... i686-apple-darwin8.9.1
checking target system type... i686-apple-darwin8.9.1
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for xgettext... no
checking for xsltproc... xsltproc
checking whether g++ is new enough... yes
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking whether time.h and sys/time.h may both be included... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for gettimeofday... yes
checking for mkdir... yes
checking for popen... yes
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for shared library run path origin... done
checking for iconv... yes
checking how to link with libiconv... -liconv
checking for iconv declaration... 
         extern size_t iconv (iconv_t cd, const char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking whether binary relocation support should be enabled... no
checking for zlib... found
checking for pkg-config... no
*** The pkg-config script could not be found. Make sure it is
*** in your path, or set the PKG_CONFIG environment variable
*** to the full path to pkg-config.
*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config.
configure: error: Library requirements (libxml-2.0 >= 2.6.11) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.

hier gehts zum projekt: http://lincity.sourceforge.net/

tnx
 
Zurück
Oben