Compiling Autosong on linux issues
Hi,
I have attempted to compile autosong within the ninjam github repo. But I keep getting an error.
lee@pop:~/git/ninjam/ninjam/autosong$ make
g++ -O2 -c -o ../../WDL/lameencdec.o ../../WDL/lameencdec.cpp
In file included from ../../WDL/lameencdec.cpp:41:
../../WDL/metadata.h: In function ‘bool HandleMexMetadataRequest(const char*, char*, int, WDL_StringKeyedArray<char*>*)’:
../../WDL/metadata.h:863:7: error: ‘lstrcpyn’ was not declared in this scope; did you mean ‘strcpy’?
863 | lstrcpyn(buf, val, buflen);
| ^~~~~~~~
| strcpy
../../WDL/metadata.h: In function ‘void DumpMetadata(WDL_FastString*, WDL_StringKeyedArray<char*>*)’:
../../WDL/metadata.h:920:9: error: ‘lstrcpyn’ was not declared in this scope; did you mean ‘strcpy’?
920 | lstrcpyn(scheme, "mex", sizeof(scheme));
| ^~~~~~~~
| strcpy
../../WDL/metadata.h:939:9: error: ‘lstrcpyn’ was not declared in this scope; did you mean ‘strcpy’?
939 | lstrcpyn(scheme, key, slen+1);
| ^~~~~~~~
| strcpy
../../WDL/metadata.h: In function ‘int PackID3Chunk(WDL_HeapBuf*, WDL_StringKeyedArray<char*>*, bool)’:
../../WDL/metadata.h:1331:16: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
1331 | fread(p, 1, apic_datalen, fp);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
make: *** [<builtin>: ../../WDL/lameencdec.o] Error 1
Not sure if Autosong is even able to work on linux, I assumed it was but I think the lstrcpyn is a windows thing.
I'm not a programmer so unsure if I have just messed things up or if its not possible at all.
Any ideas?
|