Modcraft - The community dedicated to quality WoW modding!
Featured => Noggit => Topic started by: Namok 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]
-
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):
cd /path/to/stormlib/source
cmake .
sudo make install
At this point, install Homebrew (http://brew.sh/ (http://brew.sh/" onclick="window.open(this.href);return false;)) and install the various Noggit dependencies with it like this:
brew install boost freetype glew sdl
And now we can finally tell CMake where to find Freetype and to generate an Xcode project:
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:
(http://cl.ly/image/1Z3a2T3u1x2F/Image%202014-04-08%20at%208.36.54%20PM.png)
-
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
-
Seeing that huge output of cmake above, it looks like you mistyped something there. Scroll up to see the error.
-
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]
-
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.
-
So, I don't use the Terminal ? I run CMake and I try to compile Stormlib ?
-
You can use the terminal. Just read what it says when you enter "cmake".
-
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
-
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.
-
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.
-
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]
-
No, just make sure your terminal is cd’d into the StormLib folder and do like I mentioned in earlier:
You have to first build Stormlib by doing the following in the terminal (run each line separately):
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.
-
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
-
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)
(http://cl.ly/image/1E0s16372m1c/stormlib.png)
-
I think it could be work
-
OH since the beginning I forgot the period arf... Thank you !! Step by step maybe a day I can succeed !
Right now I tried to compile again Noggit on CMake and it seems a library is missing "STORMLIB_LIBRARY_DIR-NOTFOUND" here the pics
[attachment=1:3v9uowx2]Capture d’écran 2014-04-09 à 21.02.08.png[/attachment:3v9uowx2]
[attachment=0:3v9uowx2]Capture d’écran 2014-04-09 à 21.03.37.png[/attachment:3v9uowx2]
I thought this lib was compile with CMake :S
-
Back to the terminal.
What happens if you do this?
(http://cl.ly/image/0C17253K0d2a/Screen%20Shot%202014-04-09%20at%2012.24.26%20PM.png)
-
No error showed apparently :
[attachment=0:zpmzh51q]Capture d’écran 2014-04-09 à 21.30.57.png[/attachment:zpmzh51q]
Should I try to execute the Xcode file ?
-
Yeah, go ahead
-
I tried to compile Noggit but it seems with have the same errors unfortunately :
[attachment=0:3ox79zov]Capture d’écran 2014-04-09 à 21.39.57.png[/attachment:3ox79zov]
-
We’re at the same point, then. I don’t know C++ so I can’t diagnose the problem.
-
I asked to Realmlist an other mac user and he told me this :
"Add #include <cassert> with the other includes on top of the page"
I tried and it works the build succeeded :)
-
Here is the screen :
[attachment=0:10m2hrr4]Capture d’écran 2014-04-09 à 22.21.58.png[/attachment:10m2hrr4]
I would like to thank Schlumpf, Iindigo and Realmlist to their help in this, thank you very much guys :D
-
Where are you keeping your Noggit.conf file?