mosal / lossywav-for-posix Goto Github PK
View Code? Open in Web Editor NEWAn attempt to port lossyWAV to POSIX.
An attempt to port lossyWAV to POSIX.
$ git describe
1.4.2p.r1
Here's what I did:
$ python2 waf configure
Setting top to : /tmp/lossywav-git/lossywav
Setting out to : /tmp/lossywav-git/lossywav/build
Checking for 'g++' (C++ compiler) : /usr/bin/g++
Checking for compiler flags -std=c++11 : yes
Checking for compiler flags -O2 : yes
Checking for compiler flags -pipe : yes
Checking for compiler flags -fPIE : yes
Checking for linker flags -pie : yes
Checking for optimized CXXFLAGS support:
Checking for compiler flags -Ofast : yes
Checking for LTO CXXFLAGS/LINKFLAGS support:
Checking for compiler flags -flto : yes
Checking for linker flags -flto : yes
Checking for optimized LINKFLAGS support:
Checking for linker flags ['-Wl,-O1'] : yes
Checking for linker flags ['-Wl,--sort-common'] : yes
Checking for linker flags ['-Wl,--as-needed'] : yes
Checking for linker flags ['-Wl,-z,relro'] : yes
Checking for linker flags ['-Wl,-z,now'] : yes
Checking API support:
Checking for function std::chrono::steady_clock::now : yes
Checking for function setpriority : yes
Checking for function stat : yes
Checking for function chmod : yes
Checking for function nanosleep : yes
Checking for function sincos : yes
Check dependencies:
'configure' finished successfully (9.684s)
$ python2 waf build
Waf: Entering directory `/tmp/lossywav-git/lossywav/build'
[ 1/15] Compiling units/fftw_interface.cpp
[ 2/15] Compiling units/nCore.cpp
[ 3/15] Compiling units/nFFT.cpp
[ 4/15] Compiling units/nFillFFT.cpp
[ 5/15] Compiling units/nInitialise.cpp
[ 6/15] Compiling units/nOutput.cpp
[ 7/15] Compiling units/nParameter.cpp
[ 8/15] Compiling units/nProcess.cpp
[ 9/15] Compiling units/nRemoveBits.cpp
[10/15] Compiling units/nSGNS.cpp
[11/15] Compiling units/nShiftBlocks.cpp
[12/15] Compiling units/nSpreading.cpp
[13/15] Compiling units/nWav.cpp
[14/15] Compiling lossyWAV.cpp
../units/nWav.cpp:225:24: error: flexible array member ‘{anonymous}::tDS64Header::Table’ not at end of ‘struct {anonymous}::tWAVEChunks’
tChunkSize64 Table[];
^
../units/nWav.cpp:352:15: note: next member ‘{anonymous}::tFMTChunk {anonymous}::tWAVEChunks::FMT’ declared here
tFMTChunk FMT;
^~~
../units/nWav.cpp:348:8: note: in the definition of ‘struct {anonymous}::tWAVEChunks’
struct tWAVEChunks
^~~~~~~~~~~
../units/nWav.cpp:225:24: error: flexible array member ‘{anonymous}::tDS64Header::Table’ not at end of ‘struct {anonymous}::tRIFF_Rec’
tChunkSize64 Table[];
^
../units/nWav.cpp:352:15: note: next member ‘{anonymous}::tFMTChunk {anonymous}::tWAVEChunks::FMT’ declared here
tFMTChunk FMT;
^~~
../units/nWav.cpp:413:8: note: in the definition of ‘struct {anonymous}::tRIFF_Rec’
struct tRIFF_Rec
^~~~~~~~~
../units/nWav.cpp:225:24: error: flexible array member ‘{anonymous}::tDS64Header::Table’ not at end of ‘struct {anonymous}::RIFF’
tChunkSize64 Table[];
^
../units/nWav.cpp:352:15: note: next member ‘{anonymous}::tFMTChunk {anonymous}::tWAVEChunks::FMT’ declared here
tFMTChunk FMT;
^~~
../units/nWav.cpp:487:8: note: in the definition of ‘struct {anonymous}::RIFF’
struct RIFF
^~~~
Waf: Leaving directory `/tmp/lossywav-git/lossywav/build'
Build failed
-> task in 'lossywav-objs' failed with exit status 1 (run with -v to display more information)
$ python2 waf build -v
Waf: Entering directory `/tmp/lossywav-git/lossywav/build'
[13/15] Compiling units/nWav.cpp
12:50:27 runner ['/usr/bin/g++', '-std=c++11', '-pipe', '-fPIE', '-Ofast', '-flto', '-DHAVE_STD_CHRONO_STEADY_CLOCK_NOW=1', '-DHAVE_SETPRIORITY=1', '-DHAVE_STAT=1', '-DHAVE_CHMOD=1', '-DHAVE_NANOSLEEP=1', '-DHAVE_SINCOS=1', '../units/nWav.cpp', '-c', '-o/tmp/lossywav-git/lossywav/build/units/nWav.cpp.1.o']
../units/nWav.cpp:225:24: error: flexible array member ‘{anonymous}::tDS64Header::Table’ not at end of ‘struct {anonymous}::tWAVEChunks’
tChunkSize64 Table[];
^
../units/nWav.cpp:352:15: note: next member ‘{anonymous}::tFMTChunk {anonymous}::tWAVEChunks::FMT’ declared here
tFMTChunk FMT;
^~~
../units/nWav.cpp:348:8: note: in the definition of ‘struct {anonymous}::tWAVEChunks’
struct tWAVEChunks
^~~~~~~~~~~
../units/nWav.cpp:225:24: error: flexible array member ‘{anonymous}::tDS64Header::Table’ not at end of ‘struct {anonymous}::tRIFF_Rec’
tChunkSize64 Table[];
^
../units/nWav.cpp:352:15: note: next member ‘{anonymous}::tFMTChunk {anonymous}::tWAVEChunks::FMT’ declared here
tFMTChunk FMT;
^~~
../units/nWav.cpp:413:8: note: in the definition of ‘struct {anonymous}::tRIFF_Rec’
struct tRIFF_Rec
^~~~~~~~~
../units/nWav.cpp:225:24: error: flexible array member ‘{anonymous}::tDS64Header::Table’ not at end of ‘struct {anonymous}::RIFF’
tChunkSize64 Table[];
^
../units/nWav.cpp:352:15: note: next member ‘{anonymous}::tFMTChunk {anonymous}::tWAVEChunks::FMT’ declared here
tFMTChunk FMT;
^~~
../units/nWav.cpp:487:8: note: in the definition of ‘struct {anonymous}::RIFF’
struct RIFF
^~~~
Waf: Leaving directory `/tmp/lossywav-git/lossywav/build'
Build failed
-> task in 'lossywav-objs' failed with exit status 1:
{task 140248314140624: cxx nWav.cpp -> nWav.cpp.1.o}
['/usr/bin/g++', '-std=c++11', '-pipe', '-fPIE', '-Ofast', '-flto', '-DHAVE_STD_CHRONO_STEADY_CLOCK_NOW=1', '-DHAVE_SETPRIORITY=1', '-DHAVE_STAT=1', '-DHAVE_CHMOD=1', '-DHAVE_NANOSLEEP=1', '-DHAVE_SINCOS=1', '../units/nWav.cpp', '-c', '-o/tmp/lossywav-git/lossywav/build/units/nWav.cpp.1.o']
$ g++ --version
g++ (GCC) 7.2.1 20171128
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I'm no coder, don't know how to fix this.
Do you need more information about package versions etc?
When encoding with Deadbeef the log file always ends up in ~/ and not where the files are placed. I do not know if it is lossywav's fault, Deadbeef's or mine but it doesn't happen on Windows.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.