This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [SOLVED] Compile Noggit on Mac OS 10.9.2  (Read 3222 times)

Namok

  • Registred Member
  • Loreweaver
  • *****
  • Posts: 85
    • View Profile
[SOLVED] Compile Noggit on Mac OS 10.9.2
« on: April 08, 2014, 09:46:22 pm »
Hi guys ! I'm a mac user so I'm trying to compile Noggit even if I'm a newbie. I downloaded the required tools : Xcode, CMake, All the libraries but I think I made a mistake, let me explain.
I downloaded the Stormlib for the zezula website.
And so I decompressed it and I run it with Cmake to compile it in Xcode (I guess it is) and I put the correct path in CMake.
Then when I try to compile I get this error "storm lib.h" not found"
Anybody has an idea ? :S
Maybe the pics are better than my english (I'm sure haha)
[attachment=6:1u6h0kcr]Capture d’écran 2014-04-08 à 21.33.06.png[/attachment:1u6h0kcr]
[attachment=4:1u6h0kcr]Capture d’écran 2014-04-08 à 21.34.37.png[/attachment:1u6h0kcr]
[attachment=3:1u6h0kcr]Capture d’écran 2014-04-08 à 21.34.50.png[/attachment:1u6h0kcr]
[attachment=2:1u6h0kcr]Capture d’écran 2014-04-08 à 21.35.09.png[/attachment:1u6h0kcr]
[attachment=1:1u6h0kcr]Capture d’écran 2014-04-08 à 21.35.38.png[/attachment:1u6h0kcr]
« Last Edit: April 09, 2014, 10:27:33 pm by Admin »
Food, food, food.

iindigo

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 198
    • View Profile
Re: Compile Noggit on Mac OS 10.9.2
« Reply #1 on: April 09, 2014, 05:38:43 am »
Don’t bother with that cmake UI you seem to be using, all you need is the command line.

You have to first build Stormlib by doing the following in the terminal (run each line separately):
Code: [Select]
cd /path/to/stormlib/source
cmake .
sudo make install

At this point, install Homebrew (http://brew.sh/) and install the various Noggit dependencies with it like this:
Code: [Select]
brew install boost freetype glew sdl
And now we can finally tell CMake where to find Freetype and to generate an Xcode project:
Code: [Select]
cmake -G Xcode -DFREETYPE_INCLUDE_DIRS=/usr/local/Cellar/freetype/2.5.3_1/include/freetype2/

This should get you past missing dependency problems. I now however have a couple of syntax errors:

« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Namok

  • Registred Member
  • Loreweaver
  • *****
  • Posts: 85
    • View Profile
Re: Compile Noggit on Mac OS 10.9.2
« Reply #2 on: April 09, 2014, 02:54:53 pm »
Hi did what you written above and this is the pics I don't don't understand the error
[attachment=1:3k1jd6qd]Capture d’écran 2014-04-09 à 14.49.25.png[/attachment:3k1jd6qd]
[attachment=0:3k1jd6qd]Capture d’écran 2014-04-09 à 14.49.38.png[/attachment:3k1jd6qd]

I did what you said my path is correct and a list of generator is showed but after when I write "sudo make install" I get this error "mini-de-gosset:src Julien$ sudo make install
make: *** No rule to make target `install'.  Stop."

Concerning Freetype, Boost, Glew, SDL I've already install them :) I used Macport
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Food, food, food.

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: Compile Noggit on Mac OS 10.9.2
« Reply #3 on: April 09, 2014, 03:54:38 pm »
Seeing that huge output of cmake above, it looks like you mistyped something there. Scroll up to see the error.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Namok

  • Registred Member
  • Loreweaver
  • *****
  • Posts: 85
    • View Profile
Re: Compile Noggit on Mac OS 10.9.2
« Reply #4 on: April 09, 2014, 04:27:51 pm »
I don't understand I follow the instructions
Here are the pics :
Sorry for the post full of pics but my account is recent so I can't post link yet.
Pics :
[attachment=1:26ofpk7s]Capture d’écran 2014-04-09 à 16.25.49.png[/attachment:26ofpk7s]
[attachment=0:26ofpk7s]Capture d’écran 2014-04-09 à 16.25.52.png[/attachment:26ofpk7s]
[attachment=2:26ofpk7s]Capture d’écran 2014-04-09 à 16.21.43.png[/attachment:26ofpk7s]
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Food, food, food.

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: Compile Noggit on Mac OS 10.9.2
« Reply #5 on: April 09, 2014, 04:37:23 pm »
You run cmake. You don't pass any parameters. cmake tells you how to use it: pass parameters. What and how is told by cmake.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Namok

  • Registred Member
  • Loreweaver
  • *****
  • Posts: 85
    • View Profile
Re: Compile Noggit on Mac OS 10.9.2
« Reply #6 on: April 09, 2014, 04:42:57 pm »
So, I don't use the Terminal ? I run CMake and I try to compile Stormlib ?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Food, food, food.

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: Compile Noggit on Mac OS 10.9.2
« Reply #7 on: April 09, 2014, 05:56:31 pm »
You can use the terminal. Just read what it says when you enter "cmake".
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Namok

  • Registred Member
  • Loreweaver
  • *****
  • Posts: 85
    • View Profile
Re: Compile Noggit on Mac OS 10.9.2
« Reply #8 on: April 09, 2014, 06:54:13 pm »
I have no idea what can I do cause when I tap CMkae a list is showed so what is the better solution  use the Terminal or juste run CMake then build with Xcode ? I'm totally a noob :S
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Food, food, food.

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: Compile Noggit on Mac OS 10.9.2
« Reply #9 on: April 09, 2014, 07:12:59 pm »
you can use the gui, of course. It tells you in the first few lines though: You need to specify the path with the sources.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

iindigo

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 198
    • View Profile
Re: Compile Noggit on Mac OS 10.9.2
« Reply #10 on: April 09, 2014, 07:28:21 pm »
In your last set of screenshots, your terminal one folder too deep. You need to be in the StormLib folder, not the src folder inside the StormLib folder.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Namok

  • Registred Member
  • Loreweaver
  • *****
  • Posts: 85
    • View Profile
Re: Compile Noggit on Mac OS 10.9.2
« Reply #11 on: April 09, 2014, 07:49:34 pm »
Okay thank you for your all rep guys thank you for your forbearance ;)
Currently I get those pics to share with you I don't know but I think I succeeded for this step. If I understand right now I have to double click on the "StormLIb.xproj" to Build the lib ?
[attachment=3:1jyaw8ad]Capture d’écran 2014-04-09 à 19.42.24.png[/attachment:1jyaw8ad]
[attachment=2:1jyaw8ad]Capture d’écran 2014-04-09 à 19.42.36.png[/attachment:1jyaw8ad]
[attachment=1:1jyaw8ad]Capture d’écran 2014-04-09 à 19.42.55.png[/attachment:1jyaw8ad]
[attachment=0:1jyaw8ad]Capture d’écran 2014-04-09 à 19.43.35.png[/attachment:1jyaw8ad]
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Food, food, food.

iindigo

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 198
    • View Profile
Re: Compile Noggit on Mac OS 10.9.2
« Reply #12 on: April 09, 2014, 08:27:56 pm »
No, just make sure your terminal is cd’d into the StormLib folder and do like I mentioned in earlier:

Quote from: "iindigo"
You have to first build Stormlib by doing the following in the terminal (run each line separately):
Code: [Select]
cd /path/to/stormlib/
cmake .
sudo make install

This will compile StormLib and install stormlib.framework to /Library/Frameworks/. After that you can point Noggit at that framework.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Namok

  • Registred Member
  • Loreweaver
  • *****
  • Posts: 85
    • View Profile
Re: Compile Noggit on Mac OS 10.9.2
« Reply #13 on: April 09, 2014, 08:36:50 pm »
I get the same error :
"mini-de-gosset:stormlib Julien$
sudo make install
make: *** No rule to make target `install'.  Stop.
mini-de-gosset:stormlib Julien$ "
So, I only have this last screen and I don't know what can I do, when I write "cake" I get this :
"cmake version 2.8.12.1
Usage

  cmake [options] <path-to-source>
  cmake [options] <path-to-existing-build>

' and a list of command
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Food, food, food.

iindigo

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 198
    • View Profile
Re: Compile Noggit on Mac OS 10.9.2
« Reply #14 on: April 09, 2014, 08:50:32 pm »
Quote from: "Namok"
I get the same error :
"mini-de-gosset:stormlib Julien$
sudo make install
make: *** No rule to make target `install'.  Stop.
mini-de-gosset:stormlib Julien$ "
So, I only have this last screen and I don't know what can I do, when I write "cake" I get this :
"cmake version 2.8.12.1
Usage

  cmake [options] <path-to-source>
  cmake [options] <path-to-existing-build>

' and a list of command

Don’t forget the period.

Your terminal should look something like this (obviously your colors will be different, that’s fine)

« Last Edit: January 01, 1970, 01:00:00 am by Admin »