Re: [AD] 4.9 build failure on osx

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


I've checked in an updated list to cmake/FileList.cmake. Here is a
patch for osx.scons with the correct frameworks:
Index: scons/osx.scons
===================================================================
--- scons/osx.scons     (revision 10079)
+++ scons/osx.scons     (working copy)
@@ -27,8 +27,8 @@
 context.add_files(osxfiles);

 context.add_files(context.cmake["ALLEGRO_SRC_C_FILES"])
-unixfiles = context.cmake["ALLEGRO_SRC_UNIX_FILES"]
-context.add_files(unixfiles)
+#unixfiles = context.cmake["ALLEGRO_SRC_UNIX_FILES"]
+#context.add_files(unixfiles)

 #mainEnv = Environment()
 #mainLibrary = mainEnv.StaticLibrary( 'alleg-main', 'src/macosx/main.m' )
@@ -112,13 +112,12 @@
        linkflags.append( name )

 addFramework( "Cocoa" )
-addFramework( "Carbon" )
 addFramework( "IOKit" )
 addFramework( "System" )
 addFramework( "CoreAudio" )
 addFramework( "AudioUnit" )
 addFramework( "AudioToolbox" )
-addFramework( "QuickTime" )
+addFramework( "OpenGL" )

 env.Append(CCFLAGS = flags)
 env.Append(CPPDEFINES = defines)

However it still doesn't work. The generated alplatf.h needs to look like this:
/* alplatf.h is generated from alplatf.h.cmake */
/* #undef ALLEGRO_MINGW32 */
/* #undef ALLEGRO_UNIX */
/* #undef ALLEGRO_MSVC */
/* #undef ALLEGRO_CFG_D3D */
#define ALLEGRO_CFG_OPENGL
#define ALLEGRO_MACOSX
#define ALLEGRO_NO_ASM

And then it _still_ doesn't work - it builds the library OK then gives the error
scons: *** 'list' object has no attribute 'startswith'
I have no idea why!

Hope that helps,

Pete


On Wed, Mar 5, 2008 at 4:38 PM, Peter Hull <peterhull90@xxxxxxxxxx> wrote:
> Yes, soundman, qtmidi, qzwindow, qzfull and quartz aren't needed any
>  more. However you need to add osxgl.m/.h
>
>  Pete
>
>
>
>
>  On Wed, Mar 5, 2008 at 3:35 PM, Jon Rafkind <workmin@xxxxxxxxxx> wrote:
>  > Peter Hull wrote:
>  > > ALLEGRO_KEYBOARD_DRIVER is defined in aintern_keyboard.h, so is that
>  > > file not getting included for some reason?
>  > >
>  > > Are you using XCode, or scons or what?
>  > >
>  > >
>  > I was using scons. Actually it looks like most osx files compile ok but
>  > then it breaks on qtmidi.m and quartz.m, so maybe I really shouldn't be
>  > compiling those files? I looked through the xcode files in
>  > AllegroNew.xcodeproj and didn't see mention of those files, so I should
>  > probably take them out. Right now these are the files I have in the
>  > scons build:
>  >
>  > set(ALLEGRO_SRC_MACOSX_FILES
>  >    src/macosx/cadigi.m
>  >    src/macosx/camidi.m
>  >    src/macosx/drivers.m
>  >    src/macosx/hidjoy.m
>  >    src/macosx/hidman.m
>  >    src/macosx/keybd.m
>  >    src/macosx/pcpu.m
>  >    src/macosx/qtmidi.m
>  >    src/macosx/quartz.m
>  >    src/macosx/qzfull.m
>  >    src/macosx/qzmouse.m
>  >    src/macosx/qzwindow.m
>  >    src/macosx/soundman.m
>  >    src/macosx/system.m
>  >    src/unix/ufile.c
>  >    src/unix/usystem.c
>  >    src/unix/uthreads.c
>  >    src/unix/utime.c
>  >    src/unix/uxthread.c
>  >    src/misc/colconv.c
>  >    )
>  >
>  > And actually those are the cmake files, scons just steals the same list
>  > so I imagine things wouldn't work for cmake either.
>  >
>  >
>  > -------------------------------------------------------------------------
>  > This SF.net email is sponsored by: Microsoft
>  > Defy all challenges. Microsoft(R) Visual Studio 2008.
>  > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>  > --
>  > https://lists.sourceforge.net/lists/listinfo/alleg-developers
>  >
>




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/