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: [A little help] Compiling Noggit  (Read 1622 times)

Grimtonz1337

  • Registred Member
  • LUA Script Tinker
  • *****
  • Posts: 40
    • View Profile
[A little help] Compiling Noggit
« on: April 30, 2017, 03:43:03 pm »
Alright, so I followed the instructions from here: https://bitbucket.org/berndloerwald/noggit3/overview

And so far, everything's fine. CMake was able to configure and generate everything just FINE. However, when compiling Noggit, it gives me syntax errors about qOverload and other silly stuff. To give you more information, here's what I use:

Windows 7, 32 bit
Microsoft Visual Studio 2015 (not sure if this version is supported by Noggit)
Qt5 (5.6 and 5.7, tried on both, still the same errors)
Boost 1.6.0 (using the libraries for MSVC 14.0, 32 bit)

MSVC debug output:
https://pastebin.com/tZkzWxym

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [A little help] Compiling Noggit
« Reply #1 on: April 30, 2017, 04:43:09 pm »
Is your source tree up to date? Does this line exist? https://bitbucket.org/berndloerwald/noggit3/src/25af4eb9093e7d19a7cfd43da9c423b31621a469/cmake/win32_prefind.cmake?at=default&fileviewer=file-view-default#win32_prefind.cmake-19

What if you remove the if and endif lines so the definition is always added?

Grimtonz1337

  • Registred Member
  • LUA Script Tinker
  • *****
  • Posts: 40
    • View Profile
Re: [A little help] Compiling Noggit
« Reply #2 on: April 30, 2017, 04:55:42 pm »
Yes, it is up-to-date. I just downloaded the repo yesterday from Downloads section on bitbucket. I just removed the if and endif (not the add_definitions line). I re-configured and re-generated through CMake again. Build output has changed. At the end, it was unable to link the Stormlib.

7>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(638,5): error MSB6006: "link.exe" exited with code 1104.
7>LINK : fatal error LNK1104: cannot open file '_storm_any_lib-NOTFOUND.lib'

CMake also warned me that storm could not be found:

Could NOT find storm (missing:  STORM_LIBRARIES)
« Last Edit: April 30, 2017, 05:41:21 pm by Grimtonz1337 »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [A little help] Compiling Noggit
« Reply #3 on: April 30, 2017, 07:40:00 pm »
Try manually setting the path to storm in cmake-gui

Grimtonz1337

  • Registred Member
  • LUA Script Tinker
  • *****
  • Posts: 40
    • View Profile
Re: [A little help] Compiling Noggit
« Reply #4 on: April 30, 2017, 11:48:13 pm »
I tried adding an entry manually:

STORM_LIBRARIES
Path
C:/Program Files/StormLib

I also tried setting the value to include and lib, but didn't work as well. This is of course the path set from CMake to Install.

Also, what happens when I link CMAKE_PREFIX_PATH  (C:/Qt/5.7/msvc2015;C:/Program Files/StormLib)? Does it not create some sort of link for storm then and there?

EDIT:

Alright, so I didn't copy the .lib and .pch from the bin folder after compiling (I just built INSTALL and nothing else after that lol oops). Built was successful :D
« Last Edit: May 01, 2017, 12:24:33 am by Grimtonz1337 »

Steff

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 4551
    • View Profile
Re: [A little help] Compiling Noggit
« Reply #5 on: May 01, 2017, 04:41:16 pm »
Have you compiled RAD and DAD stormlib visual studio projects?
Please mark as solved if solved.
Don't ask if you could ask a question... JUST ask the Question.
You can send me also offline messages. I will answer if I get online.
Skype: project.modcraft
Discord: steff#6954

Grimtonz1337

  • Registred Member
  • LUA Script Tinker
  • *****
  • Posts: 40
    • View Profile
Re: [A little help] Compiling Noggit
« Reply #6 on: May 01, 2017, 11:15:20 pm »
That was the problem, except that I forgot to move the libraries to the StormLib install directory. Sorry :/

Steff

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 4551
    • View Profile
Re: [A little help] Compiling Noggit
« Reply #7 on: May 01, 2017, 11:18:07 pm »
Nice to here.
Please mark as solved if solved.
Don't ask if you could ask a question... JUST ask the Question.
You can send me also offline messages. I will answer if I get online.
Skype: project.modcraft
Discord: steff#6954