Closed knightknight closed 8 years ago
You're missing libgdiplus from what I'd assume from that log. Myself never used a Mac though.
I am not sure if this is up to date https://github.com/OpenRA/OpenRA/wiki/Requirements#mac-os-x-106 but you may need to install XQuartz and wait through the initial font cache spinning rainball.
So I couldn't find libgdiplus on brew and I already had XQuartz installed.
I uninstalled mono via brew and downloaded and installed v4.4.1 from Mono-Project site. Ran make dependencies
& make
on the OpenRA folder. Then did the xbuild
on ~/build/OpenRA/OpenRA.Mods.RA2
folder. This time I had no errors on build and the game launched successfully. However selecting RA2 on the mod selection I get:
Missing dependencies Please fully install the following mods then try again: modchooser {{DEV_VERISON}}
Output from CLI:
Platform is OSX
Using SDL 2 with OpenGL renderer
Desktop resolution: 1680x1050
Using resolution: 1440x900
OpenGL version: 2.1 ATI-8.24.17
Using OpenAL sound engine
Using default device
Available mods:
all: All mods (git-fc8a2b2)
cnc: Tiberian Dawn (git-fc8a2b2)
d2k: Dune 2000 (git-fc8a2b2)
modchooser: Mod Chooser (git-fc8a2b2)
ra: Red Alert (git-fc8a2b2)
ra2: Red Alert 2 ({DEV_VERSION})
ts: Tiberian Sun (git-fc8a2b2)
Loading mod: ra
Migration: Deleting file /Users/carl/Library/Application Support/OpenRA/Content/ra/scores.mix
Loading mod: ra
NAT discovery failed: One or more errors occurred.
NAT discovery failed: One or more errors occurred.
Loading mod: modchooser
NAT discovery failed: One or more errors occurred.
Loading mod: ra
NAT discovery failed: One or more errors occurred.
[2016-07-27T21:54:56] Game started
Run make version {DEV_VERSION}
in OpenRA and never run make version again when you intend to combine it with the RA2 mod.
@GraionDilach OpenRA (bleed) $ make version {DEV_VERSION}
make: *** No rule to make target
{DEV_VERSION}'. Stop.`
I must be missing something?
I can't remember what I did. But there issue as: https://github.com/OpenRA/OpenRA/issues/11649.
Run
make version {DEV_VERSION}
in OpenRA and never run make version again when you intend to combine it with the RA2 mod.
Or you edit the ra2 mod.yaml
and change Version: {DEV_VERSION}
to Version: git-fc8a2b2
.
@GraionDilach, couldn't get passed the make: *** No rule to make target{DEV_VERSION}'. Stop.
.
@jtyle6, no problem. I followed through OpenRA#11649, sym linked libgdiplus.dylib. Checked my mono --version
:
Mono JIT compiler version 4.4.1 (mono-4.4.0-branch-c7sr0/4747417 Mon Jun 20 15:43:48 EDT 2016)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: normal
SIGSEGV: altstack
Notification: kqueue
Architecture: x86
Disabled: none
Misc: softdebug
LLVM: yes(3.6.0svn-mono-master/a173357)
GC: sgen
It's build without errors in the Terminal.
@abcdefg30, I opened OpenRA/mods/ra2/mod.yaml
and replaced all instances of {DEV_VERSION}
with git-fc8a2b2
. Ran through the make dependencies
and make
on OpenRA folder and xbuild
on OpenRA.Mods.RA2 folder. I now get:
Missing dependencies Please fully install the following mods then try again: modchooser (git-fc8a2b2)
RA, TS, Dune and CNC are all working in the build.
Just out of interest when looking through the other mod folders should RA2 be building it own OpenRA.Mods.RA2.dll
file?
It needs to be (git-fc8a2b2) with the brackets included.
Your problem is that you used make version during compiling OpenRA which sets the version strings from the generic bleed version to the exact commit, however this wasn't set in RA2. Apparently the Windows and the OSX makefiles differ in this case in upstream, because on Windows, make version can be used to reset all mod versions to a custom version via supplying it as an additional parameter.
Yes, you should have a RA2 dll as well. make dependencies && make all from the RA2 folder should have created those though.
@GraionDilach, thanks. I've deleted and gone through the wiki steps again. The only part that fails the OpenRA2 build is the symlinking the OpenRA.Mods.RA2/dependencies files. Copying those seems to fix that. Once that is done the build succeeds. This time I'm getting a crash at the modchooser screen for RA2. No messages about {DEV_VERISON}. Just hang, then crash.
Platform is OSX
Using SDL 2 with OpenGL renderer
Desktop resolution: 1680x1050
Using resolution: 1440x900
OpenGL version: 2.1 ATI-8.24.17
Using OpenAL sound engine
Using default device
Available mods:
all: All mods ({DEV_VERSION})
cnc: Tiberian Dawn ({DEV_VERSION})
d2k: Dune 2000 ({DEV_VERSION})
modchooser: Mod Chooser ({DEV_VERSION})
ra: Red Alert ({DEV_VERSION})
ra2: Red Alert 2 ({DEV_VERSION})
ts: Tiberian Sun ({DEV_VERSION})
Loading mod: ra
NAT discovery failed: One or more errors occurred.
Loading mod: modchooser
NAT discovery failed: One or more errors occurred.
Loading mod: ra2
Exception of type `System.IO.FileNotFoundException`: File not found: ra2|OpenRA.Mods.RA2.dll
at OpenRA.FileSystem.FileSystem.Open (System.String filename) <0x7054c18 + 0x000bb> in <filename unknown>:0
at OpenRA.ObjectCreator..ctor (OpenRA.Manifest manifest, OpenRA.FileSystem.FileSystem modFiles) <0x70c1dd8 + 0x00223> in <filename unknown>:0
at OpenRA.ModData..ctor (System.String mod, Boolean useLoadScreen) <0x704d130 + 0x0012b> in <filename unknown>:0
at OpenRA.Game.InitializeMod (System.String mod, OpenRA.Arguments args) <0x704b920 + 0x0037b> in <filename unknown>:0
at OpenRA.Mods.Common.Widgets.Logic.ModBrowserLogic+<LoadMod>c__AnonStorey2.<>m__1 () <0x13b3b2e0 + 0x0003b> in <filename unknown>:0
at OpenRA.Primitives.ActionQueue.PerformActions (Int32 currentTime) <0x125f4408 + 0x001db> in <filename unknown>:0
at OpenRA.Game.LogicTick () <0x125f4318 + 0x00027> in <filename unknown>:0
at OpenRA.Game.Loop () <0x125f4120 + 0x0010b> in <filename unknown>:0
at OpenRA.Game.Run () <0x125f3fe0 + 0x0006b> in <filename unknown>:0
at OpenRA.Program.Run (System.String[] args) <0x512978 + 0x00053> in <filename unknown>:0
at OpenRA.Program.Main (System.String[] args) <0x511f70 + 0x000d3> in <filename unknown>:0
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
As per my previous comment the OSX is not building the OpenRA.Mods.RA2.dll file.
That said I've noticed in the xbuild log;
Target DeployOutputFiles:
Copying file from '/Users/mac-user/build/OpenRA/mods/ra2/OpenRA.Mods.RA2/obj/Debug/OpenRA.Mods.RA2.dll.mdb' to '/Users/mac-user/build/OpenRA/mods/ra2/OpenRA.Mods.RA2/bin/Debug/OpenRA.Mods.RA2.dll.mdb'
Copying file from '/Users/mac-user/build/OpenRA/mods/ra2/OpenRA.Mods.RA2/obj/Debug/OpenRA.Mods.RA2.dll' to '/Users/mac-user/build/OpenRA/mods/ra2/OpenRA.Mods.RA2/bin/Debug/OpenRA.Mods.RA2.dll'
the .dll files are not copied or moved from /mods/ra2/OpenRA.Mods.RA2/bin/Debug/ to /mods/ra2/
RA2 now launches! 👍
Might need some tweaking on lowering some settings on my aging iMac as there is bit of a lag. But it works!
Reference similar post: https://github.com/OpenRA/ra2/issues/192
@jtyle6 did you manually install xdg-utils, as that's the only one that doesn't install via brew? Although I did follow http://superuser.com/questions/911735/brew-install-xdg-utils/913226 which did install it.
However using the Unix part of the RA2 wiki guide andthe .mix files located in ~/.openra/Content/ra2 it failed to build on OSX OS X 10.9.5 | 13.4.0 Darwin.
Once I've copied the dependencies directly to OpenRA.Mods.RA2/dependencies/ I get an error free output.
But when I run ~/build/OpenRA/launch-game.sh I get a blank screen/window then crashes to the dialog box with 'Visit FAQ | Quit'.
I have installed via brew according to the wiki compile guide:
OS X 10.9.5 | 13.4.0 Darwin
I also have OpenRA stable build from OpenRa.net installed in my Applications folder which is using ~/Library/Application Support/OpenRA/mods/ra2
Looking forward to RA2 making it into offical build soon. :)