GUIDE: Compiling ResidualVM on a PPC Mac

General chat related to ScummVM, adventure gaming, and so on.

Moderator: ScummVM Team

User avatar
Harrypoppins
Posts: 124
Joined: Sat Apr 25, 2009 1:23 pm

Post by Harrypoppins »

Are you sure ?
I have the this error message when I build it :

Code: Select all

new-host:residualvm g5$ make bundle
    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/costume/bitmap_component.o
    C++      engines/grim/costume/chore.o
    C++      engines/grim/costume/colormap_component.o
    C++      engines/grim/costume/component.o
    C++      engines/grim/costume/head.o
    C++      engines/grim/costume/keyframe_component.o
    C++      engines/grim/costume/lua_var_component.o
    C++      engines/grim/costume/main_model_component.o
    C++      engines/grim/costume/material_component.o
    C++      engines/grim/costume/mesh_component.o
    C++      engines/grim/costume/model_component.o
    C++      engines/grim/costume/sound_component.o
    C++      engines/grim/costume/sprite_component.o
    C++      engines/grim/emi/costume/emianim_component.o
    C++      engines/grim/emi/costume/emimesh_component.o
    C++      engines/grim/emi/costume/emiskel_component.o
    C++      engines/grim/emi/costume/emisprite_component.o
    C++      engines/grim/emi/sound/aifftrack.o
    C++      engines/grim/emi/sound/mp3track.o
    C++      engines/grim/emi/sound/scxtrack.o
    C++      engines/grim/emi/sound/vimatrack.o
    C++      engines/grim/emi/sound/track.o
    C++      engines/grim/emi/sound/emisound.o
    C++      engines/grim/emi/sound/codecs/scx.o
    C++      engines/grim/emi/animationemi.o
    C++      engines/grim/emi/costumeemi.o
    C++      engines/grim/emi/modelemi.o
    C++      engines/grim/emi/skeleton.o
    C++      engines/grim/emi/lua_v2.o
    C++      engines/grim/emi/lua_v2_actor.o
    C++      engines/grim/emi/lua_v2_sound.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/codecs/smush_decoder.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/update/packfile.o
    C++      engines/grim/update/mscab.o
    C++      engines/grim/update/lang_filter.o
    C++      engines/grim/update/update.o
    C++      engines/grim/actor.o
    C++      engines/grim/animation.o
    C++      engines/grim/bitmap.o
    C++      engines/grim/costume.o
    C++      engines/grim/color.o
    C++      engines/grim/colormap.o
    C++      engines/grim/debug.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/grim_controls.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.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/material.o
    C++      engines/grim/model.o
    C++      engines/grim/objectstate.o
    C++      engines/grim/primitives.o
    C++      engines/grim/patchr.o
    C++      engines/grim/registry.o
    C++      engines/grim/resource.o
    C++      engines/grim/savegame.o
    C++      engines/grim/set.o
    C++      engines/grim/sector.o
    C++      engines/grim/sound.o
    C++      engines/grim/stuffit.o
    C++      engines/grim/textobject.o
    C++      engines/grim/textsplit.o
    C++      engines/grim/object.o
    AR       engines/grim/libgrim.a
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++      engines/myst3/archive.o
    C++      engines/myst3/console.o
    C++      engines/myst3/cursor.o
    C++      engines/myst3/database.o
    C++      engines/myst3/detection.o
    C++      engines/myst3/directoryentry.o
    C++      engines/myst3/directorysubentry.o
    C++      engines/myst3/gfx.o
    C++      engines/myst3/hotspot.o
    C++      engines/myst3/inventory.o
    C++      engines/myst3/menu.o
    C++      engines/myst3/movie.o
    C++      engines/myst3/myst3.o
    C++      engines/myst3/node.o
    C++      engines/myst3/nodecube.o
    C++      engines/myst3/nodeframe.o
    C++      engines/myst3/puzzles.o
    C++      engines/myst3/scene.o
    C++      engines/myst3/script.o
    C++      engines/myst3/sound.o
    C++      engines/myst3/state.o
    C++      engines/myst3/subtitles.o
    AR       engines/myst3/libmyst3.a
    RANLIB   engines/myst3/libmyst3.a
    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/predictivedialog.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
    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/sdl/sdl-graphics.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/audiocd/sdl/sdl-audiocd.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
    C++      backends/midi/coremidi.o
    C++      backends/updates/macosx/macosx-updates.o
    AR       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(seq.o) has no symbols
ranlib: file: backends/libbackends.a(stmidi.o) has no symbols
ranlib: file: backends/libbackends.a(timidity.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
ranlib: file: backends/libbackends.a(macosx-updates.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(seq.o) has no symbols
ranlib: file: backends/libbackends.a(stmidi.o) has no symbols
ranlib: file: backends/libbackends.a(timidity.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
ranlib: file: backends/libbackends.a(macosx-updates.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
    C++      video/bink_decoder_seek.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/fonts/ttf.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/yuva_to_rgba.o
    C++      graphics/decoders/bmp.o
    C++      graphics/decoders/jpeg.o
    C++      graphics/pixelbuffer.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/adpcm.o
    C++      audio/decoders/aiff.o
    C++      audio/decoders/flac.o
    C++      audio/decoders/mp3.o
    C++      audio/decoders/raw.o
    C++      audio/decoders/vorbis.o
    C++      audio/decoders/wave.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/fluidsynth.o
    C++      audio/softsynth/mt32.o
    C++      audio/rate.o
    AR       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
    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/quat.o
    C++      math/rect2d.o
    C++      math/vector2d.o
    C++      math/vector3d.o
    C++      math/vector4d.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
    C++      common/error.o
    C++      common/EventDispatcher.o
    C++      common/EventMapper.o
    C++      common/EventRecorder.o
    C++      common/file.o
    C++      common/fs.o
    C++      common/gui_options.o
    C++      common/hashmap.o
    C++      common/language.o
    C++      common/macresman.o
    C++      common/memorypool.o
    C++      common/md5.o
    C++      common/mutex.o
    C++      common/platform.o
    C++      common/random.o
    C++      common/rational.o
    C++      common/rendermode.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/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
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
g++  -L/opt/local/lib  -force_cpusubtype_ALL -o residualvm-static backends/platform/sdl/main.o backends/platform/sdl/sdl.o backends/platform/sdl/posix/posix-main.o backends/platform/sdl/posix/posix.o backends/platform/sdl/macosx/macosx-main.o backends/platform/sdl/macosx/macosx.o backends/platform/sdl/macosx/appmenu_osx.o   base/libbase.a engines/grim/libgrim.a engines/myst3/libmyst3.a gui/libgui.a backends/libbackends.a engines/libengines.a video/libvideo.a graphics/libgraphics.a audio/libaudio.a math/libmath.a common/libcommon.a \
		-framework CoreMIDI \
		`/opt/local/bin/sdl-config --static-libs` /opt/local/lib/libfreetype.a /opt/local/lib/libbz2.a \
		/opt/local/lib/libz.a \
		
powerpc-apple-darwin9-g++-4.0.1: /opt/local/lib/libfreetype.a: No such file or directory
make: *** [residualvm-static] Error 1
Of course I have download again the source before compile it.
I've try too use configure with :

Code: Select all

./configure --with-staticlib-prefix=/opt/local
┬╗ I have the same result.

After removing define_freetype2 it don't work anymore.
aquadran
ScummVM Developer
Posts: 110
Joined: Wed Sep 21, 2005 7:00 pm

Post by aquadran »

Harrypoppins wrote:Are you sure ?

powerpc-apple-darwin9-g++-4.0.1: /opt/local/lib/libfreetype.a: No such file or directory
make: *** [residualvm-static] Error 1
[/code]

Of course I have download again the source before compile it.
I've try too use configure with :

Code: Select all

./configure --with-staticlib-prefix=/opt/local
┬╗ I have the same result.

After removing define_freetype2 it don't work anymore.
that mean you don't have /opt/local/lib/libfreetype.a file. i don't know why, i think you should have this after install freetype from macports.
User avatar
somaen
ScummVM Developer
Posts: 376
Joined: Thu Apr 21, 2011 7:31 pm
Location: Trondheim, NO

Post by somaen »

Actually, there is no such file there, although there is libfreetype.la
aquadran
ScummVM Developer
Posts: 110
Joined: Wed Sep 21, 2005 7:00 pm

Post by aquadran »

somaen wrote:Actually, there is no such file there, although there is libfreetype.la
I have, and .*la contain info about *.a too
JOSUE
Posts: 1
Joined: Fri Jul 12, 2019 10:16 am

Re: GUIDE: Compiling ResidualVM on a PPC Mac

Post by JOSUE »

Decent, need to accomplish something like this with mine.
Post Reply