Technical support > Mac

UFORadiant dmg

<< < (2/3) > >>

Dorzak:

--- Quote from: Mattn on August 30, 2009, 04:52:47 pm ---you have to run ./configure --enable-universal

remove the uforadiant option (i've updated the wiki already)

after that you should have an uforadiant binary, too - so running make macinstaller should work, too

--- End quote ---

Here is what I get with a fresh checkout and with the script from the wiki.   uforadiant isn't building.   Here are the errors:

Aluminum-Contention-4:trunk dorzak$ make uforadiant
 * [RAD] src/tools/radiant/plugins/model/plugin.cpp
In file included from src/tools/radiant/libs/debugging/debugging.h:30,
                 from src/tools/radiant/include/modulesystem.h:26,
                 from src/tools/radiant/include/iscenegraph.h:242,
                 from src/tools/radiant/plugins/model/plugin.cpp:30:
src/tools/radiant/libs/stream/textstream.h:36:18: error: glib.h: No such file or directory
In file included from src/tools/radiant/libs/debugging/debugging.h:30,
                 from src/tools/radiant/include/modulesystem.h:26,
                 from src/tools/radiant/include/iscenegraph.h:242,
                 from src/tools/radiant/plugins/model/plugin.cpp:30:
src/tools/radiant/libs/stream/textstream.h:36:18: error: glib.h: No such file or directory
src/tools/radiant/libs/stream/textstream.h: In function ‘TextOutputStreamType& ostream_write(TextOutputStreamType&, double)’:
src/tools/radiant/libs/stream/textstream.h:131: error: there are no arguments to ‘g_snprintf’ that depend on a template parameter, so a declaration of ‘g_snprintf’ must be available
src/tools/radiant/libs/stream/textstream.h:131: error: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
src/tools/radiant/libs/stream/textstream.h: In function ‘TextOutputStreamType& ostream_write(TextOutputStreamType&, const HexChar&)’:
src/tools/radiant/libs/stream/textstream.h:199: error: there are no arguments to ‘g_snprintf’ that depend on a template parameter, so a declaration of ‘g_snprintf’ must be available
src/tools/radiant/libs/stream/textstream.h: In function ‘TextOutputStreamType& ostream_write(TextOutputStreamType&, const FloatFormat&)’:
src/tools/radiant/libs/stream/textstream.h:218: error: there are no arguments to ‘g_snprintf’ that depend on a template parameter, so a declaration of ‘g_snprintf’ must be available
src/tools/radiant/libs/stream/textstream.h: In function ‘TextOutputStreamType& ostream_write(TextOutputStreamType&, const Decimal&)’:
src/tools/radiant/libs/stream/textstream.h:237: error: there are no arguments to ‘g_snprintf’ that depend on a template parameter, so a declaration of ‘g_snprintf’ must be available
src/tools/radiant/libs/string/string.h: In function ‘int string_compare_nocase(const char*, const char*)’:
src/tools/radiant/libs/string/string.h:88: error: ‘g_ascii_strcasecmp’ was not declared in this scope
src/tools/radiant/libs/string/string.h: In function ‘int string_compare_nocase_n(const char*, const char*, size_t)’:
src/tools/radiant/libs/string/string.h:97: error: ‘g_ascii_strncasecmp’ was not declared in this scope
src/tools/radiant/libs/stream/textstream.h: In function ‘TextOutputStreamType& ostream_write(TextOutputStreamType&, double)’:
src/tools/radiant/libs/stream/textstream.h:131: error: there are no arguments to ‘g_snprintf’ that depend on a template parameter, so a declaration of ‘g_snprintf’ must be available
src/tools/radiant/libs/stream/textstream.h:131: error: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
src/tools/radiant/libs/stream/textstream.h: In function ‘TextOutputStreamType& ostream_write(TextOutputStreamType&, const HexChar&)’:
src/tools/radiant/libs/stream/textstream.h:199: error: there are no arguments to ‘g_snprintf’ that depend on a template parameter, so a declaration of ‘g_snprintf’ must be available
src/tools/radiant/libs/stream/textstream.h: In function ‘TextOutputStreamType& ostream_write(TextOutputStreamType&, const FloatFormat&)’:
src/tools/radiant/libs/stream/textstream.h:218: error: there are no arguments to ‘g_snprintf’ that depend on a template parameter, so a declaration of ‘g_snprintf’ must be available
src/tools/radiant/libs/stream/textstream.h: In function ‘TextOutputStreamType& ostream_write(TextOutputStreamType&, const Decimal&)’:
src/tools/radiant/libs/stream/textstream.h:237: error: there are no arguments to ‘g_snprintf’ that depend on a template parameter, so a declaration of ‘g_snprintf’ must be available
src/tools/radiant/plugins/model/plugin.cpp: In function ‘void PicoPrintFunc(int, const char*)’:
src/tools/radiant/plugins/model/plugin.cpp:60: error: ‘g_message’ was not declared in this scope
src/tools/radiant/plugins/model/plugin.cpp:68: error: ‘g_warning’ was not declared in this scope
src/tools/radiant/plugins/model/plugin.cpp:76: error: ‘g_critical’ was not declared in this scope
src/tools/radiant/libs/string/string.h: In function ‘int string_compare_nocase(const char*, const char*)’:
src/tools/radiant/libs/string/string.h:88: error: ‘g_ascii_strcasecmp’ was not declared in this scope
src/tools/radiant/libs/string/string.h: In function ‘int string_compare_nocase_n(const char*, const char*, size_t)’:
src/tools/radiant/libs/string/string.h:97: error: ‘g_ascii_strncasecmp’ was not declared in this scope
src/tools/radiant/plugins/model/plugin.cpp: In function ‘void PicoPrintFunc(int, const char*)’:
src/tools/radiant/plugins/model/plugin.cpp:60: error: ‘g_message’ was not declared in this scope
src/tools/radiant/plugins/model/plugin.cpp:68: error: ‘g_warning’ was not declared in this scope
src/tools/radiant/plugins/model/plugin.cpp:76: error: ‘g_critical’ was not declared in this scope
lipo: can't figure out the architecture type of: /var/folders/RX/RXWqPvf7G2uSPueKjUglxU+++TI/-Tmp-//cc6qHHGu.out
make: *** [debug-darwin-universal/tools/radiant/plugins_cpp/tools/radiant/plugins/model/plugin.o] Error 1

Mattn:
make sure to install the macport packages that are printed in the wiki - you are missing gtk and glib

Dorzak:

--- Quote from: Mattn on August 31, 2009, 08:37:03 am ---make sure to install the macport packages that are printed in the wiki - you are missing gtk and glib

--- End quote ---

I ran the script exactly as it appears in the wiki.     There are these errors also with ./configure --enable-univsersal

The script pulls gtk2, I am pulling gtk1.   missing gtk might explain these errors perhaps?

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 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 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 for library containing newwin... -lcurses
configure: Without msys
configure: UFORadiant dependencies: gtk2, gtkglext, 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: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
configure: WARNING: unrecognized options: --enable-univsersal
Aluminum-Contention-4:trunk dorzak$ cd ~/
Aluminum-Contention-4:~ dorzak$ less ufoaiscript
Aluminum-Contention-4:~ dorzak$ cd ufoai/trunk/
Aluminum-Contention-4:trunk dorzak$ ./configure --enable-universal
checking build system type... i686-apple-darwin9.7.0
checking host system type... i686-apple-darwin9.7.0
checking target system type... i686-apple-darwin9.7.0
checking system... Mac OS X
checking for sed... yes
checking for echo... yes
checking target OS... darwin
checking target CPU... universal
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... 4
checking size of long long... 8
checking size of int*... 4
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... no
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 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 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 for library containing newwin... -lcurses
configure: Without msys
configure: UFORadiant dependencies: gtk2, gtkglext, glib2 and libxml2

Dorzak:
To  follow-up.  Macports thinks it has installed gtk1, gtk2, gtkglext, glib2 and libxml2 which are mentioned in the errors.

Still same errors.

Shigerello:
A lot of warnings, hmm...

You said you're using MacPorts, maybe you should try:

./configure --enable-universal CPPFLAGS="-I/opt/local/include" LDFLAGS="-L/opt/local/lib"


This explicitly specifies where prerequisite libraries (headers and objects) are located.
By the way, you need universal version (i386 and x86_64) of every required library or framework to build an universal application.
This mean, you must have done something like "sudo port install gtk2 +universal", yes "+universal"

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version