Error when compiling on Windows
Tiagoquix opened this issue · 6 comments
I'm trying to compile using the following commands:
cd sm64ex
make clean
make distclean
make TEXTURE_FIX=1 BETTERCAMERA=1
It extracts all the files, then this happens:
make[1]: Entering directory '/home/Tiagoquix/sm64ex/tools'
make[1]: Nothing to be done for 'default'.
make[1]: Leaving directory '/home/Tiagoquix/sm64ex/tools'
cpp -P -DVERSION_US -D_LANGUAGE_C -DNIGHTLY -DGIT_HASH="\"54cd27c\"" -DNON_MATCHING -DAVOID_UB -I . -o build/us_pc/level_rules.mk levels/level_rules.mk
make[1]: Entering directory '/home/Tiagoquix/sm64ex/tools'
make[1]: Nothing to be done for 'default'.
make[1]: Leaving directory '/home/Tiagoquix/sm64ex/tools'
cc.exe: warning: da: linker input file unused because linking not done
cc.exe: error: da: linker input file not found: No such file or directory
cc.exe: warning: web/msys64/mingw64/include/SDL2: linker input file unused because linking not done
cc.exe: error: web/msys64/mingw64/include/SDL2: linker input file not found: No such file or directory
make: *** [Makefile:1016: build/us_pc/src/engine/behavior_script.o] Error 1
Was there anything interesting in the log before that?
No; only "extracting [file_name]".
Can I run it with a verbose flag to get more details?
I am really not sure. Did you follow instructions in the wiki? Did you install all the dependencies listed there?
Yes. I did.
I tried updating again (with pacman -Syuu) and reinstalling the dependencies. Here's the new console log (excluding extracting [file_name]).
# make TEXTURE_FIX=1 BETTERCAMERA=1
skyconv.c:218: warning: "realpath" redefined
218 | #define realpath(path, resolved_path) _fullpath(resolved_path, path, PATH_MAX)
|
In file included from skyconv.c:14:
utils.h:12: note: this is the location of the previous definition
12 | #define realpath(N,R) _fullpath((R),(N),MAX_PATH)
|
[extracting files]
make[1]: Entering directory '/home/Tiagoquix/sm64ex/tools'
make[2]: Entering directory '/home/Tiagoquix/sm64ex/tools/audiofile'
g++ -std=c++11 -DNDEBUG -fno-rtti -fno-exceptions -fvisibility-inlines-hidden -O2 -I. -c audiofile.cpp
audiofile.cpp:3565:47: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations]
3565 | struct signedToUnsigned : public std::unary_function<SignedType, UnsignedType>
| ^~~~~~~~~~~~~~
In file included from D:/Programas da web/msys64/mingw64/include/c++/13.2.0/string:49,
from audiofile.cpp:1736:
D:/Programas da web/msys64/mingw64/include/c++/13.2.0/bits/stl_function.h:117:12: note: declared here
117 | struct unary_function
| ^~~~~~~~~~~~~~
audiofile.cpp:3570:47: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations]
3570 | struct unsignedToSigned : public std::unary_function<SignedType, UnsignedType>
| ^~~~~~~~~~~~~~
D:/Programas da web/msys64/mingw64/include/c++/13.2.0/bits/stl_function.h:117:12: note: declared here
117 | struct unary_function
| ^~~~~~~~~~~~~~
audiofile.cpp:3763:33: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations]
3763 | struct intToFloat : public std::unary_function<Arg, Result>
| ^~~~~~~~~~~~~~
D:/Programas da web/msys64/mingw64/include/c++/13.2.0/bits/stl_function.h:117:12: note: declared here
117 | struct unary_function
| ^~~~~~~~~~~~~~
audiofile.cpp:3829:29: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations]
3829 | struct lshift : public std::unary_function<Arg, Result>
| ^~~~~~~~~~~~~~
D:/Programas da web/msys64/mingw64/include/c++/13.2.0/bits/stl_function.h:117:12: note: declared here
117 | struct unary_function
| ^~~~~~~~~~~~~~
audiofile.cpp:3835:29: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations]
3835 | struct rshift : public std::unary_function<Arg, Result>
| ^~~~~~~~~~~~~~
D:/Programas da web/msys64/mingw64/include/c++/13.2.0/bits/stl_function.h:117:12: note: declared here
117 | struct unary_function
| ^~~~~~~~~~~~~~
audiofile.cpp:3931:35: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations]
3931 | struct floatToFloat : public std::unary_function<Arg, Result>
| ^~~~~~~~~~~~~~
D:/Programas da web/msys64/mingw64/include/c++/13.2.0/bits/stl_function.h:117:12: note: declared here
117 | struct unary_function
| ^~~~~~~~~~~~~~
ar rcs libaudiofile.a audiofile.o
make[2]: Leaving directory '/home/Tiagoquix/sm64ex/tools/audiofile'
cc -I../include -I. -Wall -Wextra -Wno-unused-parameter -pedantic -std=c99 -O2 -s n64graphics_ci_dir/n64graphics_ci.c n64graphics_ci_dir/exoquant/exoquant.c n64graphics_ci_dir/utils.c -o n64graphics_ci -lm
cc -I../include -I. -Wall -Wextra -Wno-unused-parameter -pedantic -std=c99 -O2 -s -DN64CKSUM_STANDALONE n64cksum.c utils.c -o n64cksum -lm
cc -I../include -I. -Wall -Wextra -Wno-unused-parameter -pedantic -std=c99 -O2 -s textconv.c utf8.c hashtable.c -o textconv -lm
cc -I../include -I. -Wall -Wextra -Wno-unused-parameter -pedantic -std=c99 -O2 -s patch_libultra_math.c -o patch_libultra_math -lm
patch_libultra_math.c: In function 'main':
patch_libultra_math.c:113:26: warning: overflow in conversion from 'long long unsigned int' to 'long int' changes value from '18446744073709551564' to '-52' [-Woverflow]
113 | fseek(f, -sizeof(hdr), SEEK_CUR);
| ^~~~~~~~~~~~
cc -I../include -I. -Wall -Wextra -Wno-unused-parameter -pedantic -std=c99 -O2 -s aiff_extract_codebook.c -o aiff_extract_codebook -lm
cc -I../include -I. -Wall -Wextra -Wno-unused-parameter -pedantic -std=c99 -O2 -s -Wno-unused-result -Wno-uninitialized -Wno-sign-compare -Wno-absolute-value sdk-tools/adpcm/vadpcm_enc.c sdk-tools/adpcm/vpredictor.c sdk-tools/adpcm/quant.c sdk-tools/adpcm/util.c sdk-tools/adpcm/vencode.c -o vadpcm_enc -lm
cc -I../include -I. -Wall -Wextra -Wno-unused-parameter -pedantic -std=c99 -O2 -s -Iaudiofile -Wno-uninitialized sdk-tools/tabledesign/codebook.c sdk-tools/tabledesign/estimate.c sdk-tools/tabledesign/print.c sdk-tools/tabledesign/tabledesign.c -o tabledesign -lm -Laudiofile -laudiofile -lstdc++ -lm
cc -I../include -I. -Wall -Wextra -Wno-unused-parameter -pedantic -std=c99 -O2 -s extract_data_for_mio.c -o extract_data_for_mio -lm
make[1]: Leaving directory '/home/Tiagoquix/sm64ex/tools'
cpp -P -DVERSION_US -D_LANGUAGE_C -DNIGHTLY -DGIT_HASH="\"54cd27c\"" -DNON_MATCHING -DAVOID_UB -I . -o build/us_pc/level_rules.mk levels/level_rules.mk
make[1]: Entering directory '/home/Tiagoquix/sm64ex/tools'
make[1]: Nothing to be done for 'default'.
make[1]: Leaving directory '/home/Tiagoquix/sm64ex/tools'
cc.exe: warning: da: linker input file unused because linking not done
cc.exe: error: da: linker input file not found: No such file or directory
cc.exe: warning: web/msys64/mingw64/include/SDL2: linker input file unused because linking not done
cc.exe: error: web/msys64/mingw64/include/SDL2: linker input file not found: No such file or directory
make: *** [Makefile:1016: build/us_pc/src/engine/behavior_script.o] Error 1
Did you maybe install msys2 into a directory with special characters or spaces in the name?
Yes. The folder had spaces in its name.
I compiled again, but this time removing the spaces from the name. It worked out! Thanks a lot for the help.