I can't compile on maverick

Added by teixeiras almost 5 years ago

I can’t compile on maverick with link issue.

Does anyone have any ideia why?

~> Compiling ET Legacy...
Scanning dependencies of target INTERNAL_SDLMain
[ 0%] Building CXX object CMakeFiles/INTERNAL_SDLMain.dir/src/sys/SDLMain.m.o
Linking CXX static library libINTERNAL_SDLMain.a
[ 0%] Built target INTERNAL_SDLMain
[ 17%] Built target cgame_mac
[ 18%] Generating ../../libs/jpeg/.libs/libjpeg.a
rm f cjpeg djpeg jpegtran rdjpgcom wrjpgcom
rm -f "./so_locations"
checking build system type... x86_64-apple-darwin13.3.0
checking host system type... x86_64-apple-darwin13.3.0
checking target system type... x86_64-apple-darwin13.3.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
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 dependency style of gcc... gcc3
checking for function prototypes... 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 for string.h... (cached) yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for gcc option to accept ISO C99... none needed
checking for gcc option to accept ISO Standard C... (cached) none needed
checking how to run the C preprocessor... gcc -E
checking whether make sets $(MAKE)... (cached) yes
checking whether ln -s works... yes
checking if LD -Wl,–version-script works... no
checking for function prototypes... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for string.h... (cached) yes
checking for size_t... yes
checking for type unsigned char... yes
checking for type unsigned short... yes
checking for type void... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for broken incomplete types... ok
checking for short external names... ok
checking to see if char is signed... yes
checking to see if right shift is signed... yes
checking to see if fopen accepts b spec... yes
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/local/bin/gsed
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
checking for BSD
or MS-compatible name lister (nm)... /usr/bin/nm
checking the name lister (/usr/bin/nm) interface... BSD nm
checking the maximum length of command line arguments... 196608
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-apple-darwin13.3.0 file names to x86_64-apple-darwin13.3.0 format... func_convert_file_noop
checking how to convert x86_64-apple-darwin13.3.0 file names to toolchain format... func_convert_file_noop
checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... dlltool
checking how to associate runtime and link libraries... printf s\n
checking for ar... ar
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm output from gcc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking for -force_load linker flag... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking for gcc option to produce PIC... -fno-common -DPIC
checking if gcc PIC flag -fno-common -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin13.3.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking libjpeg version number... 12:0:4
configure: creating ./config.status
config.status: creating Makefile
config.status: creating jconfig.h
config.status: jconfig.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
CC jaricom.lo
CC jcapimin.lo
CC jcapistd.lo
CC jcarith.lo
CC jccoefct.lo
CC jccolor.lo
CC jcdctmgr.lo
CC jchuff.lo
CC jcinit.lo
CC jcmainct.lo
CC jcmarker.lo
CC jcmaster.lo
CC jcomapi.lo
CC jcparam.lo
CC jcprepct.lo
CC jcsample.lo
CC jctrans.lo
CC jdapimin.lo
CC jdapistd.lo
CC jdarith.lo
CC jdatadst.lo
CC jdatasrc.lo
CC jdcoefct.lo
CC jdcolor.lo
CC jddctmgr.lo
CC jdhuff.lo
CC jdinput.lo
CC jdmainct.lo
CC jdmarker.lo
CC jdmaster.lo
CC jdmerge.lo
CC jdpostct.lo
CC jdsample.lo
CC jdtrans.lo
CC jerror.lo
CC jfdctflt.lo
CC jfdctfst.lo
CC jfdctint.lo
CC jidctflt.lo
CC jidctfst.lo
CC jidctint.lo
CC jquant1.lo
CC jquant2.lo
q CC jutils.lo
CC jmemmgr.lo
CC jmemnobs.lo
CCLD libjpeg.la
CC cjpeg.o
CC rdppm.o
CC rdgif.o
CC rdtarga.o
CC rdrle.o
CC rdbmp.o
CC rdswitch.o
CC cdjpeg.o
CCLD cjpeg
CC djpeg.o
CC wrppm.o
CC wrgif.o
CC wrtarga.o
CC wrrle.o
CC wrbmp.o
CC rdcolmap.o
CCLD djpeg
CC jpegtran.o
CC transupp.o
CCLD jpegtran
CC rdjpgcom.o
CCLD rdjpgcom
CC wrjpgcom.o
CCLD wrjpgcom
[ 18
] Built target bundled_jpeg
[ 18%] Built target bundled_sdl
[ 19%] Built target glew
[ 21%] Built target bundled_freetype
[ 32%] Built target renderer_opengl1_
[ 32%] Built target bundled_ogg
[ 33%] Built target bundled_ogg_vorbis
Linking CXX executable etl.app/Contents/MacOS/etl
Undefined symbols for architecture i386:
"_AudioObjectGetPropertyData", referenced from:
_build_device_list in libSDL2.a(SDL_coreaudio.o)
_find_device_by_name in libSDL2.a(SDL_coreaudio.o)
"_AudioObjectGetPropertyDataSize", referenced from:
_build_device_list in libSDL2.a(SDL_coreaudio.o)
"_FFCreateDevice", referenced from:
_SDL_SYS_HapticOpenFromService in libSDL2.a(SDL_syshaptic.o)
"_FFDeviceCreateEffect", referenced from:
_SDL_SYS_HapticNewEffect in libSDL2.a(SDL_syshaptic.o)
"_FFDeviceGetForceFeedbackCapabilities", referenced from:
_GetSupportedFeatures in libSDL2.a(SDL_syshaptic.o)
"_FFDeviceGetForceFeedbackProperty", referenced from:
_GetSupportedFeatures in libSDL2.a(SDL_syshaptic.o)
"_FFDeviceReleaseEffect", referenced from:
_SDL_SYS_HapticDestroyEffect in libSDL2.a(SDL_syshaptic.o)
"_FFDeviceSendForceFeedbackCommand", referenced from:
_SDL_SYS_HapticOpenFromService in libSDL2.a(SDL_syshaptic.o)
_SDL_SYS_HapticPause in libSDL2.a(SDL_syshaptic.o)
_SDL_SYS_HapticUnpause in libSDL2.a(SDL_syshaptic.o)
_SDL_SYS_HapticStopAll in libSDL2.a(SDL_syshaptic.o)
"_FFDeviceSetForceFeedbackProperty", referenced from:
_SDL_SYS_HapticSetGain in libSDL2.a(SDL_syshaptic.o)
_SDL_SYS_HapticSetAutocenter in libSDL2.a(SDL_syshaptic.o)
"_FFEffectGetEffectStatus", referenced from:
_SDL_SYS_HapticGetEffectStatus in libSDL2.a(SDL_syshaptic.o)
"_FFEffectSetParameters", referenced from:
_SDL_SYS_HapticUpdateEffect in libSDL2.a(SDL_syshaptic.o)
"_FFEffectStart", referenced from:
_SDL_SYS_HapticRunEffect in libSDL2.a(SDL_syshaptic.o)
"_FFEffectStop", referenced from:
_SDL_SYS_HapticStopEffect in libSDL2.a(SDL_syshaptic.o)
"_FFIsForceFeedback", referenced from:
_JoystickDeviceWasAddedCallback in libSDL2.a(SDL_sysjoystick.o)
_MacHaptic_MaybeAddDevice in libSDL2.a(SDL_syshaptic.o)
"_FFReleaseDevice", referenced from:
_SDL_SYS_HapticOpenFromService in libSDL2.a(SDL_syshaptic.o)
_SDL_SYS_HapticClose in libSDL2.a(SDL_syshaptic.o)
"_iconv", referenced from:
_SDL_iconv_REAL in libSDL2.a(SDL_iconv.o)
(maybe you meant: _SDL_iconv_string_REAL, _SDL_iconv_close_REAL , _SDL_iconv_REAL , _SDL_iconv_close , _SDL_iconv_string , _SDL_iconv , _SDL_iconv_open , _SDL_iconv_open_REAL )
"_iconv_close", referenced from:
_SDL_iconv_close_REAL in libSDL2.a(SDL_iconv.o)
(maybe you meant: _SDL_iconv_close_REAL, _SDL_iconv_close )
"_iconv_open", referenced from:
_SDL_iconv_open_REAL in libSDL2.a(SDL_iconv.o)
(maybe you meant: _SDL_iconv_open, _SDL_iconv_open_REAL )
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make2: * [etl.app/Contents/MacOS/etl] Error 1
make1:
[CMakeFiles/etl.dir/all] Error 2
make: *
* [all] Error 2


Replies (5)

RE: I can't compile on maverick - Added by Jacker almost 5 years ago

Install sdl2 from brew /other package manager and disable bundled sdl2.

RE: I can't compile on maverick - Added by Odal over 4 years ago

Jacker wrote:

Install sdl2 from brew /other package manager and disable bundled sdl2.

Ehmm.. HowTo disable sdl2 ?
I tried to change from "ON" to "OFF" in CMakeLists.txt in the line:
cmake_dependent_option(BUNDLED_SDL "Use bundled SDL library instead of the system one." OFF "BUNDLED_LIBS" OFF)
but does not work.
Thank you
MacOSX 10.10 Yosemite

RE: I can't compile on maverick - Added by Spyhawk over 4 years ago

Odal wrote:

Ehmm.. HowTo disable sdl2 ?

You can’t. SDL2 is now the default in ET:Legacy, and the old SDL 1.2 codebase is now deprecated.

RE: I can't compile on maverick - Added by Jacker over 4 years ago

You can disable the bundled sdl2 by setting the -DBUNDLED_SDL=0, but in this case you will need to have the SDL2 libraries already installed on your machine.

(1-5/5)