Pages: 1
Author Topic: Problems Compiling NaturalGM  (28,005 Views)
Offline (Unknown gender) jimn346
Guest


Email
Posted on: June 29, 2013, 08:23:08 PM
I'm having trouble compiling NaturalGM on Windows. I'm using QtCreator with MinGW 4.7 and have installed QScintilla. When I compile, I get these errors.

Quote from: IssuesC:\Users\Joshua\Documents\GitHub\NaturalGM\Source\Dialogs\ProjectDialog.cpp:210: error: expected ':' before ';' token
C:\Users\Joshua\Documents\GitHub\NaturalGM\Source\Dialogs\ProjectDialog.cpp:210: error: expected primary-expression before ';' token
C:\Users\Joshua\Documents\GitHub\NaturalGM\Source\Dialogs\ProjectDialog.cpp:212: error: 'Exists' is not a member of 'QDir'
C:\Users\Joshua\Documents\GitHub\NaturalGM\Source\Dialogs\ProjectDialog.cpp:216: error: cannot call member function 'bool QDir::mkdir(const QString&) const' without object

They all appear in this section of code.

207| void ProjectDialog::choose()
208| {
209|     QString proj = directoryEdit.text();
210|     settings->settings & Settings::AddDirectory ? proj += projectEdit.text()+QDir::separator();
211|     proj += projectEdit.text();
212|     if (QDir::Exists(proj))
213|     {
214|
215|     }
216|     bool made = QDir::mkdir(proj);
217| }


The first two errors suggest that the compiler expects ternary because of the question mark.

For the third error, I checked the Qt reference for QDir in which "Exists" is not listed as a method, but "exists" is. I tried changing it to "exists," but got this error.
Quote from: IssuesC:\Users\Joshua\Documents\GitHub\NaturalGM\Source\Dialogs\ProjectDialog.cpp:212: error: cannot call member function 'bool QDir::exists(const QString&) const' without object

I don't know too much about the C languages (I mainly do Java), but I assume the last error (and the one I created when trying to fix the third error) is similar to the Java error "Cannot call non-static method ____ from a static context." I really have no idea.
Offline (Unknown gender) Josh @ Dreamland

Prince of all Goldfish
Developer
Joined: Feb 2008
Posts: 2,950
View profile
Reply #1 Posted on: June 30, 2013, 12:34:04 AM
Have you tried checking out from Spirit's own GitHub repository here? It might be more current than the ENIGMA organization's copy.
Offline (Unknown gender) jimn346
Guest


Email
Reply #2 Posted on: June 30, 2013, 03:41:40 AM
Quote from: Josh @ Dreamland on June 30, 2013, 12:34:04 AM
Have you tried checking out from Spirit's own GitHub repository here? It might be more current than the ENIGMA organization's copy.

Or not (thanks, though).
Offline (Unknown gender) Josh @ Dreamland

Prince of all Goldfish
Developer
Joined: Feb 2008
Posts: 2,950
View profile
Reply #3 Posted on: July 01, 2013, 12:29:36 PM
Hah; that's technically more up-to-date; he's going back over his existing code. Apparently he didn't commit anything past the tree.

As I understand it, he's presently on a mandatory vacation with his family. He'll be back before the end of the month.
Offline (Unknown gender) DaSpirit

Member
Joined: Apr 2013
Posts: 124
View profile
Reply #4 Posted on: July 30, 2013, 03:00:15 AM
I'd like to apologize for that. Haha. I have moved the git here.

You can only open text files currently, as I've been rewriting everything up to Josh's specifications. You can use Ctrl+O to open and Ctrl+N to open a new project. Everything is bare. I will create a post on the main thread once it gets major progress.

I'm always looking for help, by the way. It's only me working on it right now. PM me if you'd like to help!
Pages: 1