Jump to content

Compiling Nifskope for Linux Mint


Guest deleted156886133

Recommended Posts

Guest deleted156886133

I'm attempting to get Nifskope back up and running on my new Linux Mint install sans Wine, which is how I ran Nifskope on my previous OS. I have issues with Wine so I went looking for another way and found this tutorial posted by the user Foxroe for compiling Nifskope for Linux allowing it to run natively.  So, long story short, I'm five steps into it and already hit a snag. I messaged said user a few days ago yet no reply as of yet and I'm a bit anxious.

Would someone lend me their help in pulling this off? That is, if the method even works. There is only one other reply on that post and it's uncertain as to whether the poster tried the method or not.

Thanks for reading. 

Edited by UsernameWithA9
link correction
Link to comment
Share on other sites

Guest deleted156886133

My mistake. I pasted the wrong link. It should direct correctly now. Take a look and go down to step five, the beginning of the code modifications in a file called lightningwidget.h. The  tutorial states to look about four lines down for the entry #define <QWidget> and add the line #define <QAction> directly below it. When in actuality, my copy of lightningwidget.h has the entry #include <QWidget> at line 4. My issue is the discrepency between Foxroe's account of line 4 and the actual file. Should I go ahead with the insertion of the line #define <QAction>? With respect to science, I suppose I should and witness the outcome of my... experiment, but I prefer to have clear instructions prior and these seem flawed so far.

Anyways, if you can help with that, there may be a few more issues I foresee.

Edited by UsernameWithA9
Reworded a segment for clarification
Link to comment
Share on other sites

Guest deleted156886133

I'm sure this will help. Here's a copy/paste of the file's content.

lightningwidget.h

Spoiler

#ifndef LIGHTINGWIDGET_H
#define LIGHTINGWIDGET_H

#include <QWidget>

#include <memory>

class GLView;
class QAction;

namespace Ui {
class LightingWidget;
}

class LightingWidget : public QWidget
{
    Q_OBJECT

public:
    LightingWidget( GLView * ogl, QWidget * parent = nullptr);
    ~LightingWidget();

    void setDefaults();
    void setActions( QVector<QAction *> actions );

private:
    std::unique_ptr<Ui::LightingWidget> ui;

    enum
    {
        BRIGHT = 1440,
        POS = 720,

        DirMin = 0,
        DirMax = BRIGHT,
        AmbientMin = 0,
        AmbientMax = BRIGHT,
        DeclinationMin = -POS,
        DeclinationMax = POS,
        PlanarAngleMin = -POS,
        PlanarAngleMax = POS,

        DirDefault = DirMax / 2,
        AmbientDefault = AmbientMax * 3 / 8,
        DeclinationDefault = (DeclinationMax + DeclinationMin),
        PlanarAngleDefault = (PlanarAngleMax + PlanarAngleMin)
    };
};

#endif // LIGHTINGWIDGET_H

 

Link to comment
Share on other sites

Guest deleted156886133
2 hours ago, HeyYou said:

I would add the line, not worrying about line count, where the tutorial wants it, and see what happens. Worst case: It doesn't work. 😄

 True. I just woke up so please stand by.

Link to comment
Share on other sites

Guest deleted156886133

So, another snag and this one's puzzling. I've progressed to step 10, the actual compile.

Entering the command suggested by the tutorial doesn't seem to fly, as referenced below:

Spoiler

xxxxx@xxxxxxxx-xxxx:~/Build/nifskope$ qmake-qt5
qmake-qt5: command not found
xxxxx@xxxxxxxx-xxxx:~/Build/nifskope$ man qmake
xxxxx@xxxxxxxx-xxxx:~/Build/nifskope$ qmake
Project ERROR: Cannot run compiler 'g++'. Output:
===================
===================
Maybe you forgot to setup the environment?

Entering the command as suggested returns 'command not found' and simply entering qmake returns with an error stating, 'Maybe you forgot to setup the environment?' Uhhhh... yeah, maybe. Did I not install the correct package when I went looking for qmake? The terminal states that it's the latest version as evidenced below:

Spoiler

qt5-qmake is already the newest version (5.15.3+dfsg-2ubuntu0.2)

What am I missing here? And yes, I've installed g++.

Spoiler

xxxxx@xxxxxxxx-xxxx:~/Build/nifskope$ g++ --version
g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0

Link to comment
Share on other sites

33 minutes ago, UsernameWithA9 said:

xxxxx@xxxxxxxx-xxxx:~/Build/nifskope$ qmake-qt5
qmake-qt5: command not found

33 minutes ago, UsernameWithA9 said:

qt5-qmake is already the newest version (5.15.3+dfsg-2ubuntu0.2)

Are qmake-qt5 and qt5-qmake the same thing, or included together in something? 

(Not my area of expertise, sorry -- but asking anyway in case something is backwards or got overlooked in your problem.)

Link to comment
Share on other sites

Guest deleted156886133

@AaronOfMpls That's an excellent question, however, I'm uncertain. Not my area of expertise either. 

I just performed a reboot thinking maybe that would help and... it did, to a degree. Now, when I enter qmake-qt5 into the terminal, it still returns the same as before, command not found. Flipping it to qt5-qmake yields the same result. When I just enter qmake, the folder is populated with a few new files, Makefile, .qmake.stash and three new folders, Generated Files (which has four empty sub-folders), a folder called install which has two sub-folders, one for Linux and one for Windows, each populated with respective files... and an empty folder called release. However, the terminal now returns thusly:

Spoiler

xxxxx@xxxxxxxx-xxxx:~/Build/nifskope$ qmake
Info: creating stash file /home/fxn55/Build/nifskope/.qmake.stash
Project MESSAGE: lupdate could not be found, ignoring make target
Project MESSAGE: lrelease could not be found, ignoring build step

 

Edited by UsernameWithA9
Word addition
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...