project-navigation
Personal tools

Author Topic: A little thing about how to compile  (Read 7706 times)

Offline Rarok

  • Cannon Fodder
  • **
  • Posts: 6
    • View Profile
A little thing about how to compile
« on: October 24, 2009, 06:56:45 pm »
I'm using this "guide" : http://ufoai.ninex.info/wiki/index.php/Compile_for_Mac#Quickstart_for_Mac_Port_users.2C_or_people_who_have_no_development_environment_and_want_to_set_one_up._Generates_a_universal_app

The thing is that with a MacOsX 10.6 installing macports just before running that script it says me that:

Code: [Select]
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for compress in -lz... no
configure: error: You must have libz!!!
« Last Edit: October 24, 2009, 06:59:41 pm by Rarok »

Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2561
    • View Profile
Re: A little thing about how to compile
« Reply #1 on: October 24, 2009, 10:08:54 pm »
so? install zlib.

-geever

Offline Rarok

  • Cannon Fodder
  • **
  • Posts: 6
    • View Profile
Re: A little thing about how to compile
« Reply #2 on: October 25, 2009, 04:46:05 am »
This is how it's failing now tons of warning and doesn't works :(


Code: [Select]
PLATINO:trunk rarokillo$ sudo ./configure
checking build system type... i686-apple-darwin10.0.0
checking host system type... i686-apple-darwin10.0.0
checking target system type... i686-apple-darwin10.0.0
checking system... Mac OS X
checking for sed... yes
checking for echo... yes
checking target OS... darwin
checking target CPU... i386
checking for gcc... gcc
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 gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... 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 sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking size of short... 2
checking size of int... 4
checking size of long... 8
checking size of long long... 8
checking size of int*... 8
checking for rm... yes
checking for mkdir... yes
checking execinfo.h usability... yes
checking execinfo.h presence... yes
checking for execinfo.h... yes
checking for getaddrinfo... yes
checking for freeaddrinfo... yes
checking whether AI_NUMERICSERV is declared... yes
checking for setpriority... yes
checking for strncasecmp... yes
checking for stdint.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking for library containing dlopen... none required
checking for library containing cos... none required
checking for library containing stricmp... no
checking for library containing strcasecmp... none required
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for compress in -lz... yes
checking curl/curl.h usability... yes
checking curl/curl.h presence... yes
checking for curl/curl.h... yes
checking jpeglib.h usability... yes
checking jpeglib.h presence... no
configure: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: jpeglib.h: proceeding with the compiler's result
checking for jpeglib.h... yes
checking for jpeg_CreateDecompress in -ljpeg... yes
checking ogg/ogg.h usability... yes
checking ogg/ogg.h presence... no
configure: WARNING: ogg/ogg.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: ogg/ogg.h: proceeding with the compiler's result
checking for ogg/ogg.h... yes
checking for ogg_sync_init in -logg... yes
checking for pkg-config... /opt/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for VORBIS... yes
checking xvid.h usability... yes
checking xvid.h presence... no
configure: WARNING: xvid.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: xvid.h: proceeding with the compiler's result
checking for xvid.h... yes
checking for xvid_decore in -lxvidcore... yes
checking for THEORA... yes
checking libintl.h usability... yes
checking libintl.h presence... no
configure: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: libintl.h: proceeding with the compiler's result
checking for libintl.h... yes
checking for library containing gettext... -lintl
checking SDL.h usability... yes
checking SDL.h presence... no
configure: WARNING: SDL.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: SDL.h: proceeding with the compiler's result
checking for SDL.h... yes
checking SDL_mixer.h usability... yes
checking SDL_mixer.h presence... no
configure: WARNING: SDL_mixer.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: SDL_mixer.h: proceeding with the compiler's result
checking for SDL_mixer.h... yes
checking for library containing Mix_OpenAudio... -lSDL_mixer
checking SDL_ttf.h usability... yes
checking SDL_ttf.h presence... no
configure: WARNING: SDL_ttf.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: SDL_ttf.h: proceeding with the compiler's result
checking for SDL_ttf.h... yes
checking for library containing TTF_Init... -lSDL_ttf
checking GL/gl.h usability... yes
checking GL/gl.h presence... no
configure: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: GL/gl.h: proceeding with the compiler's result
checking for GL/gl.h... yes
checking GL/glu.h usability... yes
checking GL/glu.h presence... no
configure: WARNING: GL/glu.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: GL/glu.h: proceeding with the compiler's result
checking for GL/glu.h... yes
checking png.h usability... yes
checking png.h presence... no
configure: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: png.h: proceeding with the compiler's result
checking for png.h... yes
checking for png_create_info_struct in -lpng... yes
checking for library containing newwin... -lcurses
configure: Without msys
configure: UFORadiant dependencies: gtk2, gtkglext, gtksourceview-2.0, glib2 and libxml2
checking for RADIANT... yes
configure: Enabling client
configure: Enabling dedicated server
configure: Enabling ufo2map
configure: Enabling UFORadiant
configure: Enabling debug build
configure: Enabling signal handling
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
PLATINO:trunk rarokillo$ sudo make
 * [DED] src/ports/unix/unix_curses.c
src/ports/unix/unix_curses.c: In function ‘Curses_Input’:
src/ports/unix/unix_curses.c:103: error: dereferencing pointer to incomplete type
src/ports/unix/unix_curses.c: In function ‘Curses_DrawInput’:
src/ports/unix/unix_curses.c:258: error: dereferencing pointer to incomplete type
src/ports/unix/unix_curses.c:259: error: dereferencing pointer to incomplete type
src/ports/unix/unix_curses.c:261: error: dereferencing pointer to incomplete type
src/ports/unix/unix_curses.c:261: error: dereferencing pointer to incomplete type
src/ports/unix/unix_curses.c:261: error: dereferencing pointer to incomplete type
src/ports/unix/unix_curses.c:264: error: dereferencing pointer to incomplete type
src/ports/unix/unix_curses.c: In function ‘Curses_DrawConsole’:
src/ports/unix/unix_curses.c:269: error: dereferencing pointer to incomplete type
src/ports/unix/unix_curses.c:270: error: dereferencing pointer to incomplete type
make: *** [debug-darwin-i386/server/ports/unix/unix_curses.o] Error 1
PLATINO:trunk rarokillo$

Offline Destructavator

  • Combination Multiple Specialty Developer
  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 1908
  • Creater of Scorchcrafter, knows the zarakites...
    • View Profile
Re: A little thing about how to compile
« Reply #3 on: October 25, 2009, 05:03:42 am »
I don't own a mac or know macs too well, but I did notice this line in both the first and second posts with code:

checking for zlib.h... yes

The error in the first one was about "libz" and not "zlib" which might or might not be related, I don't know.

Still, one of the mac guys here will have to solve this one...

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: A little thing about how to compile
« Reply #4 on: October 25, 2009, 07:55:42 am »
libz == zlib

you can disable curses with a parameter:
./configure --without-curses
as far as i remember.

Offline Rarok

  • Cannon Fodder
  • **
  • Posts: 6
    • View Profile
Re: A little thing about how to compile
« Reply #5 on: October 25, 2009, 12:28:07 pm »
Ok.
The trouble with libz is with the line:

./configure --enable-universal

If just ./configure it don't have any trouble with libz. Maybe it's because Snow Leopard isn't avaible for PPC

With ./configure --without-curses seems to work, now compiling maps.

Offline keybounce

  • Sergeant
  • *****
  • Posts: 330
    • View Profile
Re: A little thing about how to compile
« Reply #6 on: November 02, 2009, 07:28:55 pm »
Last time I checked (2 months old), MacPorts 1.8, Os 10.6, and universal was a broken combination.

Apparently, MacPorts made a change to their system (in 1.8) about the same time that 10.6 came out, and the combination was too much of a difference.

I thought it would be fixed by now, but apparently not.

** WHY does UfoAi want or need Curses???

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: A little thing about how to compile
« Reply #7 on: November 02, 2009, 07:52:40 pm »
curses is only used for the dedicated server - you can deactivate it with the appropriate configure switch