Menu

Welcome, Guest. Please login or register.
February 28, 2020, 06:39:59 pm

Login with username, password and session length

Author Topic: [QUESTION] Noggit not compiling  (Read 2486 times)

Synric

  • Registred Member
  • Polygonshifter
  • *****
  • Posts: 57
    • View Profile
[QUESTION] Noggit not compiling
« on: July 02, 2016, 12:13:02 am »
Hello,

I'm currently trying to compile the QT branch of Noggit. I have everything checked out and all that. Everything goes fine until Visual Studio attempts to finish compiling, when it spits out this error:

Quote
LNK1104   cannot open file 'Boost::system.lib'   noggit   C:Users*****DesktopNoggitnoggit3WinLINK

When I run cmake it says it found both libraries, but later spits out these warnings:

Code: [Select]
 Target "noggit" links to target "Boost::system" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?
This warning is for project developers.  Use -Wno-dev to suppress it.


  Target "noggit" links to target "Boost::filesystem" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?
This warning is for project developers.  Use -Wno-dev to suppress it.

The most logical explanation is obviously that it the system and filesystem libs don't exist, but cmake is has them listed as:



Next stop was to make sure the files listed there exist, and they do. I then went, read how to compile those two libraries from scratch and I basically compiled them in every mode possible (debug, release, dynamic, static, etc.), made there they all ended up together in the lib folder, but still nothing worked. Googled it, which said system had to come before filesystem, changed that, nothing.

I've been trying to figure this out myself for two days now, and I'm out of ideas at this point. Anyone have something I may have missed or overlooked?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [QUESTION] Noggit not compiling
« Reply #1 on: July 02, 2016, 10:12:41 am »
Cmake version? Have you tried following the readme?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Synric

  • Registred Member
  • Polygonshifter
  • *****
  • Posts: 57
    • View Profile
Re: [QUESTION] Noggit not compiling
« Reply #2 on: July 02, 2016, 09:28:54 pm »
Cmake version is 3.4.1, boost is 1.61, with MSVC14.

Yeah i followed the readme, everything except build INSTALL, because when I follow the windows portion of the readme that project doesnt get built/added.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [QUESTION] Noggit not compiling
« Reply #3 on: July 02, 2016, 09:38:57 pm »
The windows portion of the readme was confirmed to be working on machines installed from scratch. It would be very weird if it didn't. I personally never used that "libs" repo and won't ever suggest anyone doing so, so I can't help with that. It seems like the Boost library paths were manually entered though, not found using `find_package (Boost)` as it should (as `BOOST_ROOT` is empty). This will break stuff.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Synric

  • Registred Member
  • Polygonshifter
  • *****
  • Posts: 57
    • View Profile
Re: [QUESTION] Noggit not compiling
« Reply #4 on: July 05, 2016, 04:35:51 pm »
Did it without the repo libs, still nothing. Oh well, ill just go back to using normal noggit. Thanks for trying to help though.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [QUESTION] Noggit not compiling
« Reply #5 on: July 05, 2016, 07:33:43 pm »
Quote from: "Serendipity"
Did it without the repo libs, still nothing.

Define "nothing". Did cmake run without issues? What is the entire cmake log of a clean configure?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Jøk3r

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 544
    • View Profile
Re: [QUESTION] Noggit not compiling
« Reply #6 on: July 06, 2016, 04:23:49 am »
As it seems from your screenshot

that you have placed the libs in a wrong folder, try this:

Quote
This repo contains all libs to compile noggit3 on windows.
Just clone the repo into the same folder your Noggit3 repo is with the folder name Noggit3libs.
Have a look at the path structure below.

Latest Cmake file from noggit will find stuff there.
ALso the binarys in Noggit3 repo are updated. Copy them over to run Noggit.

Steff

Needed folder structure

¦
+-----Noggit3Repo
¦  +----CMakeLists.txt
+-----Noggit3libs < This folder MUST have exactly this name!
   +----readme.txt

This qote is taken from https://bitbucket.org/modcraft/noggit3libs after reading the overview on https://bitbucket.org/berndloerwald/noggit3

I hope that i could interpret yout error the right way and that this helps.


Edit: I stumbled over some problmes myself while trying to compile noggitQT but got it working in the end.


BIG EDIT:

Apparently i made a huge mistake. I accedently downloaded the SDL version not the QT one

BUT

I am currently compiling the (real) QT version and you have to name the folder your libs in not to "Noggit3libs" but to "Noggit_QT_libs" and you may have to change the boost path in the CmakeList.txt. Thats the way it seems to work for me.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
I don't like Noggit... I LOVE it :D
If you have any question about Noggit, feel free to contact me. I will give my best to help you (:

Synric

  • Registred Member
  • Polygonshifter
  • *****
  • Posts: 57
    • View Profile
Re: [QUESTION] Noggit not compiling
« Reply #7 on: July 11, 2016, 05:19:01 pm »
schlumpf, it still won't compile with the same issues as above

Jøk3r, I was using Noggit_QT_libs, thats why it was set like that. I had originally tried Noggit3Libs in the format the readme suggested, and that did not work either.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Adspartan

  • Noggit Developer
  • GM Isle Explorer
  • *****
  • Posts: 22
    • View Profile
Re: [QUESTION] Noggit not compiling
« Reply #8 on: July 11, 2016, 07:41:33 pm »
Quote from: "Serendipity"
schlumpf, it still won't compile with the same issues as above

Jøk3r, I was using Noggit_QT_libs, thats why it was set like that. I had originally tried Noggit3Libs in the format the readme suggested, and that did not work either.

Have you used this readme ?
https://bitbucket.org/berndloerwald/nog ... #README-26
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Legion > Wotlk converter
Follow noggit dev/report bugs here

Synric

  • Registred Member
  • Polygonshifter
  • *****
  • Posts: 57
    • View Profile
Re: [QUESTION] Noggit not compiling
« Reply #9 on: July 11, 2016, 07:49:56 pm »
Quote from: "adspartan"
Quote from: "Serendipity"
schlumpf, it still won't compile with the same issues as above

Jøk3r, I was using Noggit_QT_libs, thats why it was set like that. I had originally tried Noggit3Libs in the format the readme suggested, and that did not work either.

Have you used this readme ?
https://bitbucket.org/berndloerwald/nog ... #README-26

Yep, as I said to Schlumpf I followed that step by step except building INSTALL because the project never showed up.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [QUESTION] Noggit not compiling
« Reply #10 on: July 11, 2016, 08:06:41 pm »
Quote from: "schlumpf"
Quote from: "Serendipity"
Did it without the repo libs, still nothing.

Define "nothing". Did cmake run without issues? What is the entire cmake log of a clean configure?

The second question would be the important one.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Synric

  • Registred Member
  • Polygonshifter
  • *****
  • Posts: 57
    • View Profile
Re: [QUESTION] Noggit not compiling
« Reply #11 on: July 11, 2016, 08:24:49 pm »
From the GUI
CmakeOutput

No error log, I'd assume because nothing was fatal.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [QUESTION] Noggit not compiling
« Reply #12 on: July 11, 2016, 08:41:09 pm »
Also, your CMakeCache.txt please.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [QUESTION] Noggit not compiling
« Reply #13 on: July 11, 2016, 08:44:40 pm »
Also, that cmake output does not look like a clean configure (it is for example missing qt altogether)
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Synric

  • Registred Member
  • Polygonshifter
  • *****
  • Posts: 57
    • View Profile
Re: [QUESTION] Noggit not compiling
« Reply #14 on: July 13, 2016, 03:15:02 am »
http://pastebin.com/gDrX79sv

and it was a cache delete/reload when I tried, I dunno what happened :/
« Last Edit: January 01, 1970, 01:00:00 am by Admin »