residualvm / residualvm

ResidualVM main repository
GNU General Public License v2.0
396 stars 110 forks source link

GRIM:Can not compile and link residual executable on OSX Lion #377

Closed bradc6 closed 13 years ago

bradc6 commented 13 years ago

OSX 10.7 commit b19088cfab

LINK residual Undefined symbols for architecture x86_64: "_NSApp", referenced from: replaceApplicationMenuItems() in appmenu_osx.o "_objc_msgSend", referenced from: replaceApplicationMenuItems() in appmenu_osx.o GUI::BrowserDialog::runModal() in libgui.a(browser_osx.o) (maybe you meant: l_objc_msgSend_fixup_release, l_objc_msgSend_fixup_autorelease , l_objc_msgSend_fixup_alloc ) "_objc_msgSend_fixup", referenced from: l_objc_msgSend_fixup_autorelease in appmenu_osx.o l_objc_msgSend_fixup_alloc in appmenu_osx.o l_objc_msgSend_fixup_release in appmenu_osx.o l_objc_msgSend_fixup_autorelease in libgui.a(browser_osx.o) (maybe you meant: l_objc_msgSend_fixup_release, l_objc_msgSend_fixup_autorelease , l_objc_msgSend_fixup_alloc ) "_OBJCCLASS$_NSMenu", referenced from: objc-class-ref in appmenu_osx.o "_OBJCCLASS$_NSString", referenced from: objc-class-ref in appmenu_osx.o "_OBJCCLASS$_NSMenuItem", referenced from: objc-class-ref in appmenu_osx.o "_OBJCCLASS$_NSOpenPanel", referenced from: objc-class-ref in libgui.a(browser_osx.o) ld: symbol(s) not found for architecture x86_64 collect2: ld returned 1 exit status make: *\ [residual] Error 1 bmp:residual brad$

bradc6 commented 13 years ago

bmp:residual brad$ ./configure Running Residual configure... Looking for C++ compiler... g++ Checking for compiler version... 4.2.1, ok Checking for whether -Wglobal-constructors work... yes Checking endianness... little Type with 1 byte... char Type with 2 bytes... short Type with 4 bytes... int Type with 8 bytes... long Target 64 bits... yes Alignment required... no Compiling for x86... yes Compiling for ARM... no Checking hosttype... darwin11.1.0 Looking for sdl-config... /opt/local/bin/sdl-config Checking if host is POSIX compliant... yes Checking whether to have a verbose build... no Checking whether building plugins was requested... no Checking for Ogg Vorbis... no Checking for Tremor... no Checking for FLAC >= 1.0.1... no Checking for MAD... no Checking for ALSA >= 0.9... no Checking for SEQ MIDI... yes Checking for TiMidity... yes Checking for zlib... yes Checking for libmpeg2 >= 0.3.2... no Checking for libfluidsynth... no Checking for readline... skipping (text console disabled) Checking for libunity... no Checking for OpenGL... yes Checking for nasm... /usr/bin/nasm Building translation support... no Building taskbar integration support... yes Building Bink video support... yes Building SMUSH video support... yes Building Escape from Monkey Island support... yes Backend... sdl (1.3.0), assembly routines

Engines (builtin): Grim

Creating config.h Creating config.mk bmp:residual brad$ make C++ backends/platform/sdl/hardwarekeys.o C++ backends/platform/sdl/main.o C++ backends/platform/sdl/sdl.o C++ backends/platform/sdl/posix/posix-main.o C++ backends/platform/sdl/posix/posix.o C++ backends/platform/sdl/macosx/macosx-main.o C++ backends/platform/sdl/macosx/macosx.o C++ backends/platform/sdl/macosx/appmenu_osx.o C++ base/main.o C++ base/commandLine.o C++ base/plugins.o C++ engines/grim/imuse/imuse.o C++ engines/grim/imuse/imuse_mcmp_mgr.o C++ engines/grim/imuse/imuse_music.o C++ engines/grim/imuse/imuse_script.o C++ engines/grim/imuse/imuse_sndmgr.o C++ engines/grim/imuse/imuse_tables.o C++ engines/grim/imuse/imuse_track.o C++ engines/grim/lua/lapi.o C++ engines/grim/lua/lauxlib.o C++ engines/grim/lua/lbuffer.o C++ engines/grim/lua/lbuiltin.o C++ engines/grim/lua/ldo.o C++ engines/grim/lua/lfunc.o C++ engines/grim/lua/lgc.o C++ engines/grim/lua/liolib.o C++ engines/grim/lua/llex.o C++ engines/grim/lua/lmathlib.o C++ engines/grim/lua/lmem.o C++ engines/grim/lua/lobject.o C++ engines/grim/lua/lrestore.o C++ engines/grim/lua/lsave.o C++ engines/grim/lua/lstate.o C++ engines/grim/lua/lstring.o C++ engines/grim/lua/lstrlib.o C++ engines/grim/lua/lstx.o C++ engines/grim/lua/ltable.o C++ engines/grim/lua/ltask.o C++ engines/grim/lua/ltm.o C++ engines/grim/lua/lundump.o C++ engines/grim/lua/lvm.o C++ engines/grim/lua/lzio.o C++ engines/grim/movie/codecs/blocky8.o C++ engines/grim/movie/codecs/blocky16.o C++ engines/grim/movie/codecs/vima.o C++ engines/grim/movie/bink.o C++ engines/grim/movie/mpeg.o C++ engines/grim/movie/smush.o C++ engines/grim/movie/movie.o C++ engines/grim/actor.o C++ engines/grim/animation.o C++ engines/grim/bitmap.o C++ engines/grim/costume.o engines/grim/costume.cpp: In member function ‘virtual int Grim::KeyframeComponent::update(float)’: engines/grim/costume.cpp:680: warning: passing ‘float’ for argument 1 to ‘int Grim::Animation::update(int)’ engines/grim/costume.cpp: In member function ‘void Grim::Costume::Chore::update(float)’: engines/grim/costume.cpp:1244: warning: converting to ‘int’ from ‘float’ C++ engines/grim/color.o C++ engines/grim/colormap.o C++ engines/grim/detection.o C++ engines/grim/font.o C++ engines/grim/gfx_base.o C++ engines/grim/gfx_opengl.o C++ engines/grim/gfx_tinygl.o C++ engines/grim/grim.o C++ engines/grim/inputdialog.o C++ engines/grim/iris.o C++ engines/grim/keyframe.o C++ engines/grim/lab.o C++ engines/grim/lipsync.o C++ engines/grim/localize.o C++ engines/grim/lua_v1.o C++ engines/grim/lua_v1_actor.o C++ engines/grim/lua_v1_graphics.o C++ engines/grim/lua_v1_sound.o C++ engines/grim/lua_v1_text.o C++ engines/grim/lua_v2.o C++ engines/grim/material.o C++ engines/grim/model.o C++ engines/grim/objectstate.o C++ engines/grim/primitives.o C++ engines/grim/registry.o C++ engines/grim/resource.o C++ engines/grim/savegame.o C++ engines/grim/set.o C++ engines/grim/scx.o C++ engines/grim/sector.o C++ engines/grim/textobject.o C++ engines/grim/textsplit.o C++ engines/grim/object.o AR engines/grim/libgrim.a /usr/bin/ranlib: file: engines/grim/libgrim.a(mpeg.o) has no symbols RANLIB engines/grim/libgrim.a ranlib: file: engines/grim/libgrim.a(mpeg.o) has no symbols C++ gui/about.o C++ gui/chooser.o C++ gui/console.o C++ gui/debugger.o C++ gui/dialog.o C++ gui/error.o C++ gui/gui-manager.o C++ gui/launcher.o C++ gui/massadd.o C++ gui/message.o C++ gui/object.o C++ gui/options.o C++ gui/saveload.o C++ gui/themebrowser.o C++ gui/ThemeEngine.o C++ gui/ThemeEval.o C++ gui/ThemeLayout.o C++ gui/ThemeParser.o C++ gui/Tooltip.o C++ gui/widget.o C++ gui/widgets/editable.o C++ gui/widgets/edittext.o C++ gui/widgets/list.o C++ gui/widgets/popup.o C++ gui/widgets/scrollbar.o C++ gui/widgets/tab.o C++ gui/browser_osx.o gui/browser_osx.mm: In member function ‘virtual int GUI::BrowserDialog::runModal()’: gui/browser_osx.mm:56: warning: ‘runModalForTypes:’ is deprecated (declared at /System/Library/Frameworks/AppKit.framework/Headers/NSOpenPanel.h:66) gui/browser_osx.mm:60: warning: ‘filename’ is deprecated (declared at /System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:276) AR gui/libgui.a RANLIB gui/libgui.a C++ backends/base-backend.o C++ backends/modular-backend.o C++ backends/audiocd/default/default-audiocd.o C++ backends/events/default/default-events.o C++ backends/fs/abstract-fs.o C++ backends/fs/stdiostream.o C++ backends/log/log.o C++ backends/midi/alsa.o C++ backends/midi/dmedia.o C++ backends/midi/seq.o C++ backends/midi/stmidi.o C++ backends/midi/timidity.o C++ backends/saves/savefile.o C++ backends/saves/default/default-saves.o C++ backends/timer/default/default-timer.o C++ backends/events/sdl/sdl-events.o C++ backends/graphics/surfacesdl/surfacesdl-graphics.o C++ backends/mixer/doublebuffersdl/doublebuffersdl-mixer.o C++ backends/mixer/sdl/sdl-mixer.o C++ backends/mutex/sdl/sdl-mutex.o C++ backends/plugins/sdl/sdl-provider.o C++ backends/timer/sdl/sdl-timer.o C++ backends/fs/posix/posix-fs.o C++ backends/fs/posix/posix-fs-factory.o C++ backends/plugins/posix/posix-provider.o C++ backends/saves/posix/posix-saves.o C++ backends/taskbar/unity/unity-taskbar.o C++ backends/midi/coreaudio.o backends/midi/coreaudio.cpp: In member function ‘virtual int MidiDriver_CORE::open()’: backends/midi/coreaudio.cpp:116: warning: ‘AUGraphNewNode’ is deprecated (declared at /System/Library/Frameworks/AudioToolbox.framework/Headers/AUGraph.h:673) backends/midi/coreaudio.cpp:116: warning: ‘AUGraphNewNode’ is deprecated (declared at /System/Library/Frameworks/AudioToolbox.framework/Headers/AUGraph.h:673) backends/midi/coreaudio.cpp:122: warning: ‘AUGraphNewNode’ is deprecated (declared at /System/Library/Frameworks/AudioToolbox.framework/Headers/AUGraph.h:673) backends/midi/coreaudio.cpp:122: warning: ‘AUGraphNewNode’ is deprecated (declared at /System/Library/Frameworks/AudioToolbox.framework/Headers/AUGraph.h:673) backends/midi/coreaudio.cpp:132: warning: ‘AUGraphGetNodeInfo’ is deprecated (declared at /System/Library/Frameworks/AudioToolbox.framework/Headers/AUGraph.h:687) backends/midi/coreaudio.cpp:132: warning: ‘AUGraphGetNodeInfo’ is deprecated (declared at /System/Library/Frameworks/AudioToolbox.framework/Headers/AUGraph.h:687) C++ backends/midi/coremidi.o AR backends/libbackends.a /usr/bin/ranlib: file: backends/libbackends.a(alsa.o) has no symbols /usr/bin/ranlib: file: backends/libbackends.a(dmedia.o) has no symbols /usr/bin/ranlib: file: backends/libbackends.a(stmidi.o) has no symbols /usr/bin/ranlib: file: backends/libbackends.a(sdl-provider.o) has no symbols /usr/bin/ranlib: file: backends/libbackends.a(posix-provider.o) has no symbols /usr/bin/ranlib: file: backends/libbackends.a(unity-taskbar.o) has no symbols RANLIB backends/libbackends.a ranlib: file: backends/libbackends.a(alsa.o) has no symbols ranlib: file: backends/libbackends.a(dmedia.o) has no symbols ranlib: file: backends/libbackends.a(stmidi.o) has no symbols ranlib: file: backends/libbackends.a(sdl-provider.o) has no symbols ranlib: file: backends/libbackends.a(posix-provider.o) has no symbols ranlib: file: backends/libbackends.a(unity-taskbar.o) has no symbols C++ engines/advancedDetector.o C++ engines/dialogs.o C++ engines/engine.o C++ engines/game.o C++ engines/obsolete.o C++ engines/savestate.o AR engines/libengines.a RANLIB engines/libengines.a C++ video/mpeg_player.o C++ video/video_decoder.o C++ video/bink_decoder.o AR video/libvideo.a RANLIB video/libvideo.a C++ graphics/cursorman.o C++ graphics/font.o C++ graphics/fontman.o C++ graphics/fonts/bdf.o C++ graphics/fonts/consolefont.o C++ graphics/fonts/newfont_big.o C++ graphics/fonts/newfont.o C++ graphics/imagedec.o C++ graphics/primitives.o C++ graphics/surface.o C++ graphics/thumbnail.o C++ graphics/VectorRenderer.o C++ graphics/VectorRendererSpec.o C++ graphics/yuv_to_rgb.o C++ graphics/tinygl/api.o C++ graphics/tinygl/arrays.o C++ graphics/tinygl/clear.o C++ graphics/tinygl/clip.o C++ graphics/tinygl/get.o C++ graphics/tinygl/image_util.o C++ graphics/tinygl/init.o C++ graphics/tinygl/light.o C++ graphics/tinygl/list.o C++ graphics/tinygl/matrix.o C++ graphics/tinygl/memory.o C++ graphics/tinygl/misc.o C++ graphics/tinygl/select.o C++ graphics/tinygl/specbuf.o C++ graphics/tinygl/texture.o C++ graphics/tinygl/vertex.o C++ graphics/tinygl/zbuffer.o C++ graphics/tinygl/zline.o C++ graphics/tinygl/zmath.o C++ graphics/tinygl/ztriangle.o C++ graphics/tinygl/ztriangle_shadow.o AR graphics/libgraphics.a RANLIB graphics/libgraphics.a C++ audio/audiostream.o C++ audio/fmopl.o C++ audio/mididrv.o C++ audio/midiparser.o C++ audio/mixer.o C++ audio/mpu401.o C++ audio/musicplugin.o C++ audio/null.o C++ audio/timestamp.o C++ audio/decoders/flac.o C++ audio/decoders/mp3.o C++ audio/decoders/raw.o C++ audio/decoders/vorbis.o C++ audio/decoders/xa.o C++ audio/softsynth/adlib.o C++ audio/softsynth/cms.o C++ audio/softsynth/opl/dbopl.o C++ audio/softsynth/opl/dosbox.o C++ audio/softsynth/opl/mame.o C++ audio/softsynth/appleiigs.o C++ audio/softsynth/fluidsynth.o C++ audio/softsynth/mt32.o C++ audio/softsynth/pcspk.o C++ audio/softsynth/sid.o C++ audio/softsynth/wave6581.o C++ audio/rate.o AR audio/libaudio.a /usr/bin/ranlib: file: audio/libaudio.a(flac.o) has no symbols /usr/bin/ranlib: file: audio/libaudio.a(mp3.o) has no symbols /usr/bin/ranlib: file: audio/libaudio.a(vorbis.o) has no symbols /usr/bin/ranlib: file: audio/libaudio.a(fluidsynth.o) has no symbols /usr/bin/ranlib: file: audio/libaudio.a(mt32.o) has no symbols RANLIB audio/libaudio.a ranlib: file: audio/libaudio.a(flac.o) has no symbols ranlib: file: audio/libaudio.a(mp3.o) has no symbols ranlib: file: audio/libaudio.a(vorbis.o) has no symbols ranlib: file: audio/libaudio.a(fluidsynth.o) has no symbols ranlib: file: audio/libaudio.a(mt32.o) has no symbols C++ math/angle.o C++ math/matrix3.o C++ math/matrix4.o C++ math/line3d.o C++ math/line2d.o C++ math/rect2d.o C++ math/vector2d.o C++ math/vector3d.o AR math/libmath.a RANLIB math/libmath.a C++ common/archive.o C++ common/config-file.o C++ common/config-manager.o C++ common/debug.o C++ common/streamdebug.o common/streamdebug.cpp: In destructor ‘Common::Debug::~Debug()’: common/streamdebug.cpp:55: warning: format not a string literal and no format arguments C++ common/error.o C++ common/EventDispatcher.o C++ common/EventRecorder.o C++ common/file.o C++ common/fs.o C++ common/hashmap.o C++ common/macresman.o C++ common/memorypool.o C++ common/md5.o C++ common/mutex.o C++ common/random.o C++ common/rational.o C++ common/str.o C++ common/stream.o C++ common/system.o C++ common/textconsole.o C++ common/tokenizer.o C++ common/translation.o C++ common/unzip.o C++ common/util.o C++ common/xmlparser.o C++ common/zlib.o C++ common/bitstream.o C++ common/cosinetables.o C++ common/dct.o C++ common/fft.o C++ common/huffman.o C++ common/rdft.o C++ common/sinetables.o AR common/libcommon.a /usr/bin/ranlib: file: common/libcommon.a(translation.o) has no symbols RANLIB common/libcommon.a ranlib: file: common/libcommon.a(translation.o) has no symbols C++ base/version.o AR base/libbase.a RANLIB base/libbase.a LINK residual Undefined symbols for architecture x86_64: "_NSApp", referenced from: replaceApplicationMenuItems() in appmenu_osx.o "_objc_msgSend", referenced from: replaceApplicationMenuItems() in appmenu_osx.o GUI::BrowserDialog::runModal() in libgui.a(browser_osx.o) (maybe you meant: l_objc_msgSend_fixup_release, l_objc_msgSend_fixup_autorelease , l_objc_msgSend_fixup_alloc ) "_objc_msgSend_fixup", referenced from: l_objc_msgSend_fixup_autorelease in appmenu_osx.o l_objc_msgSend_fixup_alloc in appmenu_osx.o l_objc_msgSend_fixup_release in appmenu_osx.o l_objc_msgSend_fixup_autorelease in libgui.a(browser_osx.o) (maybe you meant: l_objc_msgSend_fixup_release, l_objc_msgSend_fixup_autorelease , l_objc_msgSend_fixup_alloc ) "_OBJCCLASS$_NSMenu", referenced from: objc-class-ref in appmenu_osx.o "_OBJCCLASS$_NSString", referenced from: objc-class-ref in appmenu_osx.o "_OBJCCLASS$_NSMenuItem", referenced from: objc-class-ref in appmenu_osx.o "_OBJCCLASS$_NSOpenPanel", referenced from: objc-class-ref in libgui.a(browser_osx.o) ld: symbol(s) not found for architecture x86_64 collect2: ld returned 1 exit status make: *\ [residual] Error 1 bmp:residual brad$

giucam commented 13 years ago

My guess is that it isn't residual related, but a platform issue. Did you update something recently? Can you try to compile a revision you're sure it compiled?

somaen commented 13 years ago

SDL 1.3?

It works fine here on SDL 1.2.14 from MacPorts. (Mac OS X 10.7.1)

bradc6 commented 13 years ago

Whatever the current from SDL 1.2 on Macports. I will attempt again and see what is going on with SDL.

bradc6 commented 13 years ago

I went through macports and uninstalled everything and then reinstalled libsdl, and that fixed it.

Sry, and thx for the help.