project-navigation
Personal tools

Author Topic: OSX installers  (Read 159760 times)

Offline ovvldc

  • Rookie
  • ***
  • Posts: 59
    • View Profile
Re: OSX installers
« Reply #225 on: February 15, 2014, 12:45:52 pm »
The latest snapshot at http://ufoai.org/snapshots/ufoai-2.5-dev-macosx-intel.dmg is now over year old :(.

Offline ShipIt

  • Project Artist
  • Captain
  • ***
  • Posts: 906
    • View Profile
Re: OSX installers
« Reply #226 on: February 16, 2014, 09:25:58 am »
The latest snapshot at http://ufoai.org/snapshots/ufoai-2.5-dev-macosx-intel.dmg is now over year old :(.

Sorry, but mattn is busy in rl and apparently none of the currently active devs uses a mac. So any help here would be very welcome.

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: OSX installers
« Reply #227 on: February 16, 2014, 12:31:16 pm »
in fact i've reset my bulid chain on my mac, because i wanted to switch to 10.9 for future builds. it is still work in progress to set everything up again - as this is only a machine that i'm using to compile ufoai. as soon as i found the time to set everything up again - there will be new installers.

thanks to apple that there is no cross compile chain so we can't provide nightly builds....

Offline DonQuijote

  • Cannon Fodder
  • **
  • Posts: 5
    • View Profile
Re: OSX installers
« Reply #228 on: June 01, 2014, 06:07:01 pm »
Took me a whole day to compile it, but it seems I have a working 2.6dev build. I can upload it somewhere if needed. Also, I might be able to remember the code changes (a few, not so many) I had to do so this build will compile.

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: OSX installers
« Reply #229 on: June 01, 2014, 07:37:47 pm »
oh yes - please submit patches. they are more than welcome. if you could upload the dmg somewhere, please let me know, then we will be able to mirror it.

Offline DonQuijote

  • Cannon Fodder
  • **
  • Posts: 5
    • View Profile
Re: OSX installers
« Reply #230 on: June 01, 2014, 08:46:13 pm »
oh yes - please submit patches. they are more than welcome. if you could upload the dmg somewhere, please let me know, then we will be able to mirror it.

Code: [Select]
diff --git a/src/client/cl_http.cpp b/src/client/cl_http.cpp
index 8767675..eb4cc67 100644
--- a/src/client/cl_http.cpp
+++ b/src/client/cl_http.cpp
@@ -189,7 +189,7 @@ static void CL_StartHTTPDownload (dlqueue_t* entry, dlhandle_t* dl)
        curl_easy_setopt(dl->curl, CURLOPT_NOPROGRESS, 0);
        if (dl->file) {
                curl_easy_setopt(dl->curl, CURLOPT_WRITEDATA, dl->file);
-               curl_easy_setopt(dl->curl, CURLOPT_WRITEFUNCTION, nullptr);
+               curl_easy_setopt(dl->curl, CURLOPT_WRITEFUNCTION, HTTP_Recv);
        } else {
                curl_easy_setopt(dl->curl, CURLOPT_WRITEDATA, dl);
                curl_easy_setopt(dl->curl, CURLOPT_WRITEFUNCTION, HTTP_Recv);
diff --git a/src/common/http.cpp b/src/common/http.cpp
index 7c54d5a..912e389 100644
--- a/src/common/http.cpp
+++ b/src/common/http.cpp
@@ -184,7 +184,7 @@ static bool HTTP_GetURLInternal (dlhandle_t& dl, const char* url, FILE* file, co
        curl_easy_setopt(dl.curl, CURLOPT_FAILONERROR, 1);
        if (file) {
                curl_easy_setopt(dl.curl, CURLOPT_WRITEDATA, file);
-               curl_easy_setopt(dl.curl, CURLOPT_WRITEFUNCTION, nullptr);
+               curl_easy_setopt(dl.curl, CURLOPT_WRITEFUNCTION, HTTP_Recv);
        } else {
                curl_easy_setopt(dl.curl, CURLOPT_WRITEDATA, &dl);
                curl_easy_setopt(dl.curl, CURLOPT_WRITEFUNCTION, HTTP_Recv);
diff --git a/src/game/g_ai.cpp b/src/game/g_ai.cpp
index abd9d89..bc4bb79 100644
--- a/src/game/g_ai.cpp
+++ b/src/game/g_ai.cpp
@@ -1164,8 +1164,8 @@ static bool AI_FindMissionLocation (Actor* actor, const pos3_t to)
                        if (!AI_CheckPosition(actor))
                                continue;

-                       const int distX = std::abs(actor->pos[0] - to[0]);
-                       const int distY = std::abs(actor->pos[1] - to[1]);
+                       const int distX = abs(actor->pos[0] - to[0]);
+                       const int distY = abs(actor->pos[1] - to[1]);
                        const int dist = distX + distY + std::max(distX, distY);
                        if (dist < bestDist) {
                                bestDist = dist;

Maybe some of them aren't correct, but it did compile and it seems to be working fine for now. I can upload it on MEGA and send you the link, if it's ok.

The hard part was to get all the needed libraries installed. As much as I tried with MacPorts I couldn't make it work, it was alwasy failing linking lua libraries at some point in the build. It finally worked with fink, after clearing everything installed with port, but there are a some missing dependencies in the wiki. I remember I also needed to install, on top of those listed, libvorbis0, libogg and gettext-tools. Maybe some other too, not so sure now.

Offline DonQuijote

  • Cannon Fodder
  • **
  • Posts: 5
    • View Profile
Re: OSX installers
« Reply #231 on: June 03, 2014, 08:00:06 am »
I've uploaded it for anyone to grab, so if someone can mirror it, would be great.

ufoai-2.6-dev-macosx-universal

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: OSX installers
« Reply #232 on: June 03, 2014, 09:18:54 pm »

Offline dp

  • Rookie
  • ***
  • Posts: 38
    • View Profile
Re: OSX installers
« Reply #233 on: June 03, 2014, 10:31:33 pm »
Is this build meant to be compatible with OSX 10.8.5? It crashes on launch for me.

Offline DonQuijote

  • Cannon Fodder
  • **
  • Posts: 5
    • View Profile
Re: OSX installers
« Reply #234 on: June 04, 2014, 05:54:12 am »
Is this build meant to be compatible with OSX 10.8.5? It crashes on launch for me.
It should be. I'm running 10.9.3 though, so I can't test.

Offline dp

  • Rookie
  • ***
  • Posts: 38
    • View Profile
Re: OSX installers
« Reply #235 on: June 06, 2014, 04:47:15 am »
It launches ok for me in 10.9.3, so the problem I reported may be unique to 10.8.5.

Offline ovvldc

  • Rookie
  • ***
  • Posts: 59
    • View Profile
Re: OSX installers
« Reply #236 on: June 08, 2014, 09:17:19 pm »
It not only launches, it seems to play fine under 10.9.3 for me :). At least I got into geoscape and battlescape without issues.

Thanks so much for uploading! Also, thanks to all the devs for the great improvements since the last working OS X version!

Offline joe.rush.japan

  • Cannon Fodder
  • **
  • Posts: 1
    • View Profile
Re: OSX installers
« Reply #237 on: July 25, 2014, 04:48:32 am »
First of all thank you for the 2.6 version. It works great!!!

One issue/ bug I have found is that if I stun an alien the stage doesn't finish. If i restart the level and kill all aliens it finishes fine.

- It happens on a variety of levels and a number of different times
- All other aliens have been killed and I have roamed for round after round to make sure
- It only happens if an alien is stunned

I want to catch aliens alive to keep the game going. Is there anything I can try???

Offline DonQuijote

  • Cannon Fodder
  • **
  • Posts: 5
    • View Profile
Re: OSX installers
« Reply #238 on: August 03, 2014, 12:02:23 pm »
Here's a recent build (based on source code as of August 3rd, 2014) : https://mega.co.nz/#!UtwmlSRD!Zq26H4KkbdcEm22JA5PAuROKOUY0GAnBxU8GAZW32nc

To devs: I'd happily build a release based on 2.5 branch, but I have no idea how can I fetch it from Github. If I can get help on this, I'll try to build and upload the stable branch too.

Offline Internecivus

  • Rookie
  • ***
  • Posts: 64
  • Sometimes I Code
    • View Profile
Re: OSX installers
« Reply #239 on: August 03, 2014, 03:42:04 pm »
AFAIK there's no 2.5 branch on github, however, you could try to download it from sourceforge.