Skip to content

Instantly share code, notes, and snippets.

@iameli
Created April 28, 2024 23:13
Show Gist options
  • Save iameli/087ee6cb8523ecb9936b08154397ca97 to your computer and use it in GitHub Desktop.
Save iameli/087ee6cb8523ecb9936b08154397ca97 to your computer and use it in GitHub Desktop.
[1/4] Compiling C++ object MistInFLAC.p/src_input_input_flac.cpp.o
FAILED: MistInFLAC.p/src_input_input_flac.cpp.o
c++ -IMistInFLAC.p -I. -I.. -I../subprojects/mbedtls/include -Isubprojects/libsrtp/include -I../subprojects/libsrtp/include -Imist -fdiagnostics-color=always -Wall -Winvalid-pch -std=c++98 -O0 -g -funsigned-char -D_LARGEFILE_SOURCE -Wno-sign-compare -Wparentheses -Wno-non-virtual-dtor -Wno-strict-aliasing '-DAPPNAME="MistServer"' -DDEBUG=4 '-DRELEASE="Generic_aarch64"' '-DPACKAGE_VERSION="3.3-7-gdbafa808b"' -DSHM_DATASIZE=40 -DSTAT_CUTOFF=600 -DSTATS_DELAY=15 '-DUDP_API_HOST="localhost"' -DUDP_API_PORT=4242 -DSSL=1 -DUPDATER=1 -DHAVE_UPSTREAM_MBEDTLS_SRTP=0 -DWITH_DATACHANNELS '-DINPUTTYPE="input_flac.h"' -MD -MQ MistInFLAC.p/src_input_input_flac.cpp.o -MF MistInFLAC.p/src_input_input_flac.cpp.o.d -o MistInFLAC.p/src_input_input_flac.cpp.o -c ../src/input/input_flac.cpp
../src/input/input_flac.cpp:199:38: error: use of overloaded operator '=' is ambiguous (with operand types 'Value' and 'size_t' (aka 'unsigned long'))
meta.inputLocalVars["blockSize"] = blockSize;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~
mist/json.h:62:12: note: candidate function
Value &operator=(const int64_t &rhs);
^
mist/json.h:63:12: note: candidate function
Value &operator=(const int32_t &rhs);
^
mist/json.h:64:12: note: candidate function
Value &operator=(const uint64_t &rhs);
^
mist/json.h:65:12: note: candidate function
Value &operator=(const uint32_t &rhs);
^
mist/json.h:66:12: note: candidate function
Value &operator=(const double &rhs);
^
mist/json.h:67:12: note: candidate function
Value &operator=(const bool &rhs);
^
1 error generated.
[2/4] Compiling C++ object MistOutHLS.p/src_output_output_hls.cpp.o
FAILED: MistOutHLS.p/src_output_output_hls.cpp.o
c++ -IMistOutHLS.p -I. -I.. -I../subprojects/mbedtls/include -Isubprojects/libsrtp/include -I../subprojects/libsrtp/include -Imist -fdiagnostics-color=always -Wall -Winvalid-pch -std=c++98 -O0 -g -funsigned-char -D_LARGEFILE_SOURCE -Wno-sign-compare -Wparentheses -Wno-non-virtual-dtor -Wno-strict-aliasing '-DAPPNAME="MistServer"' -DDEBUG=4 '-DRELEASE="Generic_aarch64"' '-DPACKAGE_VERSION="3.3-7-gdbafa808b"' -DSHM_DATASIZE=40 -DSTAT_CUTOFF=600 -DSTATS_DELAY=15 '-DUDP_API_HOST="localhost"' -DUDP_API_PORT=4242 -DSSL=1 -DUPDATER=1 -DHAVE_UPSTREAM_MBEDTLS_SRTP=0 -DWITH_DATACHANNELS '-DOUTPUTTYPE="output_hls.h"' -DTS_BASECLASS=HTTPOutput -MD -MQ MistOutHLS.p/src_output_output_hls.cpp.o -MF MistOutHLS.p/src_output_output_hls.cpp.o.d -o MistOutHLS.p/src_output_output_hls.cpp.o -c ../src/output/output_hls.cpp
../src/output/output_hls.cpp:333:33: error: ambiguous conversion for functional-style cast from 'size_t' (aka 'unsigned long') to 'JSON::Value'
targetParams["video"] = JSON::Value(vidTrack).asString();
^~~~~~~~~~~~~~~~~~~~
mist/json.h:45:5: note: candidate constructor
Value(int32_t val);
^
mist/json.h:46:5: note: candidate constructor
Value(int64_t val);
^
mist/json.h:47:5: note: candidate constructor
Value(uint32_t val);
^
mist/json.h:48:5: note: candidate constructor
Value(uint64_t val);
^
mist/json.h:49:5: note: candidate constructor
Value(double val);
^
mist/json.h:50:5: note: candidate constructor
Value(bool val);
^
../src/output/output_hls.cpp:334:33: error: ambiguous conversion for functional-style cast from 'size_t' (aka 'unsigned long') to 'JSON::Value'
targetParams["audio"] = JSON::Value(vidTrack).asString();
^~~~~~~~~~~~~~~~~~~~
mist/json.h:45:5: note: candidate constructor
Value(int32_t val);
^
mist/json.h:46:5: note: candidate constructor
Value(int64_t val);
^
mist/json.h:47:5: note: candidate constructor
Value(uint32_t val);
^
mist/json.h:48:5: note: candidate constructor
Value(uint64_t val);
^
mist/json.h:49:5: note: candidate constructor
Value(double val);
^
mist/json.h:50:5: note: candidate constructor
Value(bool val);
^
../src/output/output_hls.cpp:339:33: error: ambiguous conversion for functional-style cast from 'size_t' (aka 'unsigned long') to 'JSON::Value'
targetParams["video"] = JSON::Value(vidTrack).asString();
^~~~~~~~~~~~~~~~~~~~
mist/json.h:45:5: note: candidate constructor
Value(int32_t val);
^
mist/json.h:46:5: note: candidate constructor
Value(int64_t val);
^
mist/json.h:47:5: note: candidate constructor
Value(uint32_t val);
^
mist/json.h:48:5: note: candidate constructor
Value(uint64_t val);
^
mist/json.h:49:5: note: candidate constructor
Value(double val);
^
mist/json.h:50:5: note: candidate constructor
Value(bool val);
^
../src/output/output_hls.cpp:340:33: error: ambiguous conversion for functional-style cast from 'size_t' (aka 'unsigned long') to 'JSON::Value'
targetParams["audio"] = JSON::Value(audTrack).asString();
^~~~~~~~~~~~~~~~~~~~
mist/json.h:45:5: note: candidate constructor
Value(int32_t val);
^
mist/json.h:46:5: note: candidate constructor
Value(int64_t val);
^
mist/json.h:47:5: note: candidate constructor
Value(uint32_t val);
^
mist/json.h:48:5: note: candidate constructor
Value(uint64_t val);
^
mist/json.h:49:5: note: candidate constructor
Value(double val);
^
mist/json.h:50:5: note: candidate constructor
Value(bool val);
^
4 errors generated.
ninja: build stopped: cannot make progress due to previous errors.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment