FGRE / nptools

Collection of utilities for manipulating Nitroplus game files
GNU General Public License v3.0
15 stars 1 forks source link

nsbparse2.cpp & nsbparse.cpp fail to compile #19

Closed Slider-Whistle closed 5 years ago

Slider-Whistle commented 5 years ago

nsbparse2.cpp

/home/mark/sourcecode/nptools-0.5.3/src/nsbparse2.cpp: In function ‘int main(int, char**)’:
/home/mark/sourcecode/nptools-0.5.3/src/nsbparse2.cpp:280:18: error: ‘MAGIC_INTEGER’ was not declared in this scope
             case MAGIC_INTEGER:
                  ^
/home/mark/sourcecode/nptools-0.5.3/src/nsbparse2.cpp:299:18: error: ‘MAGIC_ENABLE_BACKLOG’ was not declared in this scope
             case MAGIC_ENABLE_BACKLOG:
                  ^
CMakeFiles/nsbparse2.dir/build.make:62: recipe for target 'CMakeFiles/nsbparse2.dir/src/nsbparse2.cpp.o' failed
make[2]: *** [CMakeFiles/nsbparse2.dir/src/nsbparse2.cpp.o] Error 1
CMakeFiles/Makefile2:178: recipe for target 'CMakeFiles/nsbparse2.dir/all' failed
make[1]: *** [CMakeFiles/nsbparse2.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

nsbparse.cpp

[ 92%] Building CXX object CMakeFiles/nsbparse.dir/src/nsbparse.cpp.o
/home/mark/sourcecode/nptools-0.5.3/src/nsbparse.cpp: In function ‘int main(int, char**)’:
/home/mark/sourcecode/nptools-0.5.3/src/nsbparse.cpp:44:27: error: ‘class ScriptFile’ has no member named ‘GetSymbols’
     for (auto& i : Script.GetSymbols())
                           ^
/home/mark/sourcecode/nptools-0.5.3/src/nsbparse.cpp:67:24: error: ‘struct Line’ has no member named ‘Stringify’
         File << pLine->Stringify();
                        ^
CMakeFiles/nsbparse.dir/build.make:62: recipe for target 'CMakeFiles/nsbparse.dir/src/nsbparse.cpp.o' failed
make[2]: *** [CMakeFiles/nsbparse.dir/src/nsbparse.cpp.o] Error 1
CMakeFiles/Makefile2:289: recipe for target 'CMakeFiles/nsbparse.dir/all' failed
make[1]: *** [CMakeFiles/nsbparse.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
krofna commented 5 years ago

Did you perhaps clone an old version of libnpa by mistake? MAGIC_INTEGER has been around since https://github.com/FGRE/libnpa/commit/75a2ff32cfd5232d85f66eefc63a56b3bd062d46

Slider-Whistle commented 5 years ago

That's probably the case. I didn't notice that it was listed as a dependency in the readme at first, so I looked for libnpa myself and I think I ended up compiling this fork by accident. In that case, I'm a little surprised it worked at all.