Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iso.cpp:76:80: error: too few arguments #48

Open
RoseyChan420 opened this issue Mar 17, 2024 · 0 comments
Open

iso.cpp:76:80: error: too few arguments #48

RoseyChan420 opened this issue Mar 17, 2024 · 0 comments

Comments

@RoseyChan420
Copy link

heres my two attempts of compiling this build. any help?

PS D:\FNF-osumania-projects\PSXFunkin\mkpsxiso> git submodule update --init --recursive --remote
PS D:\FNF-osumania-projects\PSXFunkin\mkpsxiso> cmake -B build -DCMAKE_BUILD_TYPE=Release
-- The C compiler identification is GNU 13.2.0
-- The CXX compiler identification is GNU 13.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/msys64/mingw64/bin/cc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/msys64/mingw64/bin/c++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done (3.3s)
-- Generating done (1.0s)
-- Build files have been written to: D:/FNF-osumania-projects/PSXFunkin/mkpsxiso/build
PS D:\FNF-osumania-projects\PSXFunkin\mkpsxiso> cmake --build build --config Release
[ 2%] Building CXX object CMakeFiles/tinyxml2.dir/tinyxml2/tinyxml2.cpp.obj
[ 4%] Linking CXX static library libtinyxml2.a
[ 4%] Built target tinyxml2
[ 6%] Building CXX object CMakeFiles/iso_shared.dir/src/shared/common.cpp.obj
[ 8%] Building CXX object CMakeFiles/iso_shared.dir/src/shared/fs.cpp.obj
[ 10%] Building CXX object CMakeFiles/iso_shared.dir/src/shared/mmappedfile.cpp.obj
[ 13%] Building CXX object CMakeFiles/iso_shared.dir/src/shared/platform.cpp.obj
[ 13%] Built target iso_shared
[ 15%] Building CXX object CMakeFiles/mkpsxiso.dir/src/mkpsxiso/cdwriter.cpp.obj
[ 17%] Building CXX object CMakeFiles/mkpsxiso.dir/src/mkpsxiso/edcecc.cpp.obj
[ 19%] Building CXX object CMakeFiles/mkpsxiso.dir/src/mkpsxiso/iso.cpp.obj
D:\FNF-osumania-projects\PSXFunkin\mkpsxiso\src\mkpsxiso\iso.cpp: In static member function 'static int iso::DirTreeClass::GetAudioSize(const std::filesystem::__cxx11::path&)':
D:\FNF-osumania-projects\PSXFunkin\mkpsxiso\src\mkpsxiso\iso.cpp:76:80: error: too few arguments to function 'ma_result ma_decoder_get_length_in_pcm_frames(ma_decoder*, ma_uint64*)'
76 | const ma_uint64 expectedPCMFrames = ma_decoder_get_length_in_pcm_frames(&decoder);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
In file included from D:\FNF-osumania-projects\PSXFunkin\mkpsxiso\src\mkpsxiso\miniaudio_helpers.h:4,
from D:\FNF-osumania-projects\PSXFunkin\mkpsxiso\src\mkpsxiso\iso.cpp:7:
D:/FNF-osumania-projects/PSXFunkin/mkpsxiso/miniaudio/miniaudio.h:10005:18: note: declared here
10005 | MA_API ma_result ma_decoder_get_length_in_pcm_frames(ma_decoder* pDecoder, ma_uint64* pLength);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CMakeFiles\mkpsxiso.dir\build.make:105: recipe for target 'CMakeFiles/mkpsxiso.dir/src/mkpsxiso/iso.cpp.obj' failed
mingw32-make.exe[2]: *** [CMakeFiles/mkpsxiso.dir/src/mkpsxiso/iso.cpp.obj] Error 1
CMakeFiles\Makefile2:310: recipe for target 'CMakeFiles/mkpsxiso.dir/all' failed
mingw32-make.exe[1]: *** [CMakeFiles/mkpsxiso.dir/all] Error 2
Makefile:154: recipe for target 'all' failed
mingw32-make.exe: *** [all] Error 2
PS D:\FNF-osumania-projects\PSXFunkin\mkpsxiso> cmake -S . -B ./build -DCMAKE_BUILD_TYPE=Release
-- Configuring done (0.4s)
-- Generating done (1.1s)
-- Build files have been written to: D:/FNF-osumania-projects/PSXFunkin/mkpsxiso/build
PS D:\FNF-osumania-projects\PSXFunkin\mkpsxiso> cmake --build ./build
[ 4%] Built target tinyxml2
[ 13%] Built target iso_shared
[ 15%] Building CXX object CMakeFiles/mkpsxiso.dir/src/mkpsxiso/iso.cpp.obj
D:\FNF-osumania-projects\PSXFunkin\mkpsxiso\src\mkpsxiso\iso.cpp: In static member function 'static int iso::DirTreeClass::GetAudioSize(const std::filesystem::__cxx11::path&)':
D:\FNF-osumania-projects\PSXFunkin\mkpsxiso\src\mkpsxiso\iso.cpp:76:80: error: too few arguments to function 'ma_result ma_decoder_get_length_in_pcm_frames(ma_decoder*, ma_uint64*)'
76 | const ma_uint64 expectedPCMFrames = ma_decoder_get_length_in_pcm_frames(&decoder);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
In file included from D:\FNF-osumania-projects\PSXFunkin\mkpsxiso\src\mkpsxiso\miniaudio_helpers.h:4,
from D:\FNF-osumania-projects\PSXFunkin\mkpsxiso\src\mkpsxiso\iso.cpp:7:
D:/FNF-osumania-projects/PSXFunkin/mkpsxiso/miniaudio/miniaudio.h:10005:18: note: declared here
10005 | MA_API ma_result ma_decoder_get_length_in_pcm_frames(ma_decoder* pDecoder, ma_uint64* pLength);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CMakeFiles\mkpsxiso.dir\build.make:105: recipe for target 'CMakeFiles/mkpsxiso.dir/src/mkpsxiso/iso.cpp.obj' failed
mingw32-make.exe[2]: *** [CMakeFiles/mkpsxiso.dir/src/mkpsxiso/iso.cpp.obj] Error 1
CMakeFiles\Makefile2:310: recipe for target 'CMakeFiles/mkpsxiso.dir/all' failed
mingw32-make.exe[1]: *** [CMakeFiles/mkpsxiso.dir/all] Error 2
Makefile:154: recipe for target 'all' failed
mingw32-make.exe: *** [all] Error 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant