Modcraft - The community dedicated to quality WoW modding!

Featured => Noggit => Topic started by: Synric on July 02, 2016, 12:13:02 am

Title: [QUESTION] Noggit not compiling
Post by: Synric 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:

(http://i.imgur.com/g20SkcE.jpg)

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?
Title: Re: [QUESTION] Noggit not compiling
Post by: schlumpf on July 02, 2016, 10:12:41 am
Cmake version? Have you tried following the readme?
Title: Re: [QUESTION] Noggit not compiling
Post by: Synric 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.
Title: Re: [QUESTION] Noggit not compiling
Post by: schlumpf 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.
Title: Re: [QUESTION] Noggit not compiling
Post by: Synric 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.
Title: Re: [QUESTION] Noggit not compiling
Post by: schlumpf 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?
Title: Re: [QUESTION] Noggit not compiling
Post by: Jøk3r on July 06, 2016, 04:23:49 am
As it seems from your screenshot
(http://i.imgur.com/g20SkcE.jpg)
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.
Title: Re: [QUESTION] Noggit not compiling
Post by: Synric 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.
Title: Re: [QUESTION] Noggit not compiling
Post by: Adspartan 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 (https://bitbucket.org/berndloerwald/noggit3/src/bc3cd18cb2fec8faabad84cd22fa8318c992d9b9/README?at=qt-no-old-ui&fileviewer=file-view-default#README-26" onclick="window.open(this.href);return false;)
Title: Re: [QUESTION] Noggit not compiling
Post by: Synric 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 (https://bitbucket.org/berndloerwald/noggit3/src/bc3cd18cb2fec8faabad84cd22fa8318c992d9b9/README?at=qt-no-old-ui&fileviewer=file-view-default#README-26" onclick="window.open(this.href);return false;)

Yep, as I said to Schlumpf I followed that step by step except building INSTALL because the project never showed up.
Title: Re: [QUESTION] Noggit not compiling
Post by: schlumpf 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.
Title: Re: [QUESTION] Noggit not compiling
Post by: Synric on July 11, 2016, 08:24:49 pm
From the GUI (http://pastebin.com/wrGqwDmm)
CmakeOutput (http://pastebin.com/KJpsBYcL)

No error log, I'd assume because nothing was fatal.
Title: Re: [QUESTION] Noggit not compiling
Post by: schlumpf on July 11, 2016, 08:41:09 pm
Also, your CMakeCache.txt please.
Title: Re: [QUESTION] Noggit not compiling
Post by: schlumpf 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)
Title: Re: [QUESTION] Noggit not compiling
Post by: Synric on July 13, 2016, 03:15:02 am
http://pastebin.com/gDrX79sv (http://pastebin.com/gDrX79sv" onclick="window.open(this.href);return false;)

and it was a cache delete/reload when I tried, I dunno what happened :/
Title: Re: [QUESTION] Noggit not compiling
Post by: schlumpf on July 13, 2016, 10:48:49 am
This is extremely weird, everything looks fine, but it seems to just not define those targets even though cmake 3.5+ do.

I'm sorry but I only have the absurd one thing left before I'll have to ask for you to somehow let me dig in it using teamviewer.

Try changing the minimum required version in https://bitbucket.org/berndloerwald/nog ... ists.txt-3 (https://bitbucket.org/berndloerwald/noggit3/src/bc3cd18cb2fec8faabad84cd22fa8318c992d9b9/CMakeLists.txt?at=qt-no-old-ui&fileviewer=file-view-default#CMakeLists.txt-3" onclick="window.open(this.href);return false;) to 3.5. (It is a bug that it isn't anyway)