Giter VIP home page Giter VIP logo

lossywav-for-linux's People

Contributors

mosal avatar rtollert avatar zvezdochiot avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

lossywav-for-linux's Issues

Cant compile on aarch64

make with (no system CXXFLAGS, CPPFLAGS) yields

g++ -std=c++11 -O2 -pipe   -DHAVE_STD_CHRONO_STEADY_CLOCK_NOW -DHAVE_SETPRIORITY -DHAVE_STAT -DHAVE_CHMOD -DHAVE_NANOSLEEP   -c -o units/fftw_interface.o units/fftw_interface.cpp
g++ -std=c++11 -O2 -pipe   -DHAVE_STD_CHRONO_STEADY_CLOCK_NOW -DHAVE_SETPRIORITY -DHAVE_STAT -DHAVE_CHMOD -DHAVE_NANOSLEEP   -c -o units/nCore.o units/nCore.cpp
g++ -std=c++11 -O2 -pipe   -DHAVE_STD_CHRONO_STEADY_CLOCK_NOW -DHAVE_SETPRIORITY -DHAVE_STAT -DHAVE_CHMOD -DHAVE_NANOSLEEP   -c -o units/nFFT.o units/nFFT.cpp
g++ -std=c++11 -O2 -pipe   -DHAVE_STD_CHRONO_STEADY_CLOCK_NOW -DHAVE_SETPRIORITY -DHAVE_STAT -DHAVE_CHMOD -DHAVE_NANOSLEEP   -c -o units/nFillFFT.o units/nFillFFT.cpp
g++ -std=c++11 -O2 -pipe   -DHAVE_STD_CHRONO_STEADY_CLOCK_NOW -DHAVE_SETPRIORITY -DHAVE_STAT -DHAVE_CHMOD -DHAVE_NANOSLEEP   -c -o units/nInitialise.o units/nInitialise.cpp
g++ -std=c++11 -O2 -pipe   -DHAVE_STD_CHRONO_STEADY_CLOCK_NOW -DHAVE_SETPRIORITY -DHAVE_STAT -DHAVE_CHMOD -DHAVE_NANOSLEEP   -c -o units/nOutput.o units/nOutput.cpp
g++ -std=c++11 -O2 -pipe   -DHAVE_STD_CHRONO_STEADY_CLOCK_NOW -DHAVE_SETPRIORITY -DHAVE_STAT -DHAVE_CHMOD -DHAVE_NANOSLEEP   -c -o units/nParameter.o units/nParameter.cpp
g++ -std=c++11 -O2 -pipe   -DHAVE_STD_CHRONO_STEADY_CLOCK_NOW -DHAVE_SETPRIORITY -DHAVE_STAT -DHAVE_CHMOD -DHAVE_NANOSLEEP   -c -o units/nProcess.o units/nProcess.cpp
g++ -std=c++11 -O2 -pipe   -DHAVE_STD_CHRONO_STEADY_CLOCK_NOW -DHAVE_SETPRIORITY -DHAVE_STAT -DHAVE_CHMOD -DHAVE_NANOSLEEP   -c -o units/nRemoveBits.o units/nRemoveBits.cpp
g++ -std=c++11 -O2 -pipe   -DHAVE_STD_CHRONO_STEADY_CLOCK_NOW -DHAVE_SETPRIORITY -DHAVE_STAT -DHAVE_CHMOD -DHAVE_NANOSLEEP   -c -o units/nSGNS.o units/nSGNS.cpp
g++ -std=c++11 -O2 -pipe   -DHAVE_STD_CHRONO_STEADY_CLOCK_NOW -DHAVE_SETPRIORITY -DHAVE_STAT -DHAVE_CHMOD -DHAVE_NANOSLEEP   -c -o units/nShiftBlocks.o units/nShiftBlocks.cpp
g++ -std=c++11 -O2 -pipe   -DHAVE_STD_CHRONO_STEADY_CLOCK_NOW -DHAVE_SETPRIORITY -DHAVE_STAT -DHAVE_CHMOD -DHAVE_NANOSLEEP   -c -o units/nSpreading.o units/nSpreading.cpp
g++ -std=c++11 -O2 -pipe   -DHAVE_STD_CHRONO_STEADY_CLOCK_NOW -DHAVE_SETPRIORITY -DHAVE_STAT -DHAVE_CHMOD -DHAVE_NANOSLEEP   -c -o units/nWav.o units/nWav.cpp
g++ -std=c++11 -O2 -pipe   -DHAVE_STD_CHRONO_STEADY_CLOCK_NOW -DHAVE_SETPRIORITY -DHAVE_STAT -DHAVE_CHMOD -DHAVE_NANOSLEEP   -c -o lossyWAV.o lossyWAV.cpp
g++ -shared units/fftw_interface.o units/nCore.o units/nFFT.o units/nFillFFT.o units/nInitialise.o units/nOutput.o units/nParameter.o units/nProcess.o units/nRemoveBits.o units/nSGNS.o units/nShiftBlocks.o units/nSpreading.o units/nWav.o -Wl,-soname,liblossywav.so.1 -o liblossywav.so.1 -s
/usr/bin/ld: units/nWav.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `_ZNKSt5ctypeIcE8do_widenEc' which may bind externally can not be used when making a shared object; recompile with -fPIC
units/nWav.o: in function `WCH((anonymous namespace)::tChunkHeader, bool)':
nWav.cpp:(.text+0x1918): dangerous relocation: unsupported relocation
/usr/bin/ld: units/nWav.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `_ZNKSt5ctypeIcE8do_widenEc' which may bind externally can not be used when making a shared object; recompile with -fPIC
nWav.cpp:(.text+0x194c): dangerous relocation: unsupported relocation
/usr/bin/ld: units/nWav.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `_ZNKSt5ctypeIcE8do_widenEc' which may bind externally can not be used when making a shared object; recompile with -fPIC
units/nWav.o: in function `ReadChunkData((anonymous namespace)::tRIFF_Rec&)':
nWav.cpp:(.text+0x1f54): dangerous relocation: unsupported relocation
/usr/bin/ld: units/nWav.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `_ZNKSt5ctypeIcE8do_widenEc' which may bind externally can not be used when making a shared object; recompile with -fPIC
units/nWav.o: in function `wavIOExitProc(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int)':
nWav.cpp:(.text+0x23e4): dangerous relocation: unsupported relocation
/usr/bin/ld: units/nWav.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `_ZNKSt5ctypeIcE8do_widenEc' which may bind externally can not be used when making a shared object; recompile with -fPIC
units/nWav.o: in function `MergeFiles()':
nWav.cpp:(.text+0x5398): dangerous relocation: unsupported relocation
/usr/bin/ld: units/nWav.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `_ZNKSt5ctypeIcE8do_widenEc' which may bind externally can not be used when making a shared object; recompile with -fPIC
nWav.cpp:(.text+0x53cc): dangerous relocation: unsupported relocation
/usr/bin/ld: units/nWav.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `_ZNKSt5ctypeIcE8do_widenEc' which may bind externally can not be used when making a shared object; recompile with -fPIC
nWav.cpp:(.text+0x5400): dangerous relocation: unsupported relocation
/usr/bin/ld: units/nWav.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `_ZNKSt5ctypeIcE8do_widenEc' which may bind externally can not be used when making a shared object; recompile with -fPIC
nWav.cpp:(.text+0x56e0): dangerous relocation: unsupported relocation
/usr/bin/ld: units/nCore.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `_ZNKSt5ctypeIcE8do_widenEc' which may bind externally can not be used when making a shared object; recompile with -fPIC
units/nCore.o: in function `lossyWAVError(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int)':
....
more like this

adding -fPIC results in

g++ -std=c++11 -O2 -pipe  -fPIC  -DHAVE_STD_CHRONO_STEADY_CLOCK_NOW -DHAVE_SETPRIORITY -DHAVE_STAT -DHAVE_CHMOD -DHAVE_NANOSLEEP   -c -o units/fftw_interface.o units/fftw_interface.cpp
g++ -std=c++11 -O2 -pipe  -fPIC  -DHAVE_STD_CHRONO_STEADY_CLOCK_NOW -DHAVE_SETPRIORITY -DHAVE_STAT -DHAVE_CHMOD -DHAVE_NANOSLEEP   -c -o units/nCore.o units/nCore.cpp
g++ -std=c++11 -O2 -pipe  -fPIC  -DHAVE_STD_CHRONO_STEADY_CLOCK_NOW -DHAVE_SETPRIORITY -DHAVE_STAT -DHAVE_CHMOD -DHAVE_NANOSLEEP   -c -o units/nFFT.o units/nFFT.cpp
g++ -std=c++11 -O2 -pipe  -fPIC  -DHAVE_STD_CHRONO_STEADY_CLOCK_NOW -DHAVE_SETPRIORITY -DHAVE_STAT -DHAVE_CHMOD -DHAVE_NANOSLEEP   -c -o units/nFillFFT.o units/nFillFFT.cpp
g++ -std=c++11 -O2 -pipe  -fPIC  -DHAVE_STD_CHRONO_STEADY_CLOCK_NOW -DHAVE_SETPRIORITY -DHAVE_STAT -DHAVE_CHMOD -DHAVE_NANOSLEEP   -c -o units/nInitialise.o units/nInitialise.cpp
g++ -std=c++11 -O2 -pipe  -fPIC  -DHAVE_STD_CHRONO_STEADY_CLOCK_NOW -DHAVE_SETPRIORITY -DHAVE_STAT -DHAVE_CHMOD -DHAVE_NANOSLEEP   -c -o units/nOutput.o units/nOutput.cpp
g++ -std=c++11 -O2 -pipe  -fPIC  -DHAVE_STD_CHRONO_STEADY_CLOCK_NOW -DHAVE_SETPRIORITY -DHAVE_STAT -DHAVE_CHMOD -DHAVE_NANOSLEEP   -c -o units/nParameter.o units/nParameter.cpp
g++ -std=c++11 -O2 -pipe  -fPIC  -DHAVE_STD_CHRONO_STEADY_CLOCK_NOW -DHAVE_SETPRIORITY -DHAVE_STAT -DHAVE_CHMOD -DHAVE_NANOSLEEP   -c -o units/nProcess.o units/nProcess.cpp
g++ -std=c++11 -O2 -pipe  -fPIC  -DHAVE_STD_CHRONO_STEADY_CLOCK_NOW -DHAVE_SETPRIORITY -DHAVE_STAT -DHAVE_CHMOD -DHAVE_NANOSLEEP   -c -o units/nRemoveBits.o units/nRemoveBits.cpp
g++ -std=c++11 -O2 -pipe  -fPIC  -DHAVE_STD_CHRONO_STEADY_CLOCK_NOW -DHAVE_SETPRIORITY -DHAVE_STAT -DHAVE_CHMOD -DHAVE_NANOSLEEP   -c -o units/nSGNS.o units/nSGNS.cpp
g++ -std=c++11 -O2 -pipe  -fPIC  -DHAVE_STD_CHRONO_STEADY_CLOCK_NOW -DHAVE_SETPRIORITY -DHAVE_STAT -DHAVE_CHMOD -DHAVE_NANOSLEEP   -c -o units/nShiftBlocks.o units/nShiftBlocks.cpp
g++ -std=c++11 -O2 -pipe  -fPIC  -DHAVE_STD_CHRONO_STEADY_CLOCK_NOW -DHAVE_SETPRIORITY -DHAVE_STAT -DHAVE_CHMOD -DHAVE_NANOSLEEP   -c -o units/nSpreading.o units/nSpreading.cpp
g++ -std=c++11 -O2 -pipe  -fPIC  -DHAVE_STD_CHRONO_STEADY_CLOCK_NOW -DHAVE_SETPRIORITY -DHAVE_STAT -DHAVE_CHMOD -DHAVE_NANOSLEEP   -c -o units/nWav.o units/nWav.cpp
g++ -std=c++11 -O2 -pipe  -fPIC  -DHAVE_STD_CHRONO_STEADY_CLOCK_NOW -DHAVE_SETPRIORITY -DHAVE_STAT -DHAVE_CHMOD -DHAVE_NANOSLEEP   -c -o lossyWAV.o lossyWAV.cpp
g++ -shared units/fftw_interface.o units/nCore.o units/nFFT.o units/nFillFFT.o units/nInitialise.o units/nOutput.o units/nParameter.o units/nProcess.o units/nRemoveBits.o units/nSGNS.o units/nShiftBlocks.o units/nSpreading.o units/nWav.o -Wl,-soname,liblossywav.so.1 -o liblossywav.so.1 -s
g++ liblossywav.so.1 lossyWAV.o -o lossywav -s
/usr/bin/ld: lossyWAV.o: in function `Init::~Init()':
lossyWAV.cpp:(.text._ZN4InitD2Ev[_ZN4InitD5Ev]+0x8): undefined reference to `nWAV_Cleanup()'
/usr/bin/ld: lossyWAV.cpp:(.text._ZN4InitD2Ev[_ZN4InitD5Ev]+0xc): undefined reference to `nFillFFT_Cleanup()'
/usr/bin/ld: lossyWAV.cpp:(.text._ZN4InitD2Ev[_ZN4InitD5Ev]+0x10): undefined reference to `nSpreading_Cleanup()'
/usr/bin/ld: lossyWAV.cpp:(.text._ZN4InitD2Ev[_ZN4InitD5Ev]+0x14): undefined reference to `nSGNS_Cleanup()'
/usr/bin/ld: lossyWAV.cpp:(.text._ZN4InitD2Ev[_ZN4InitD5Ev]+0x18): undefined reference to `nParameter_Cleanup()'
/usr/bin/ld: lossyWAV.cpp:(.text._ZN4InitD2Ev[_ZN4InitD5Ev]+0x1c): undefined reference to `FFTW_Initialised()'
/usr/bin/ld: lossyWAV.cpp:(.text._ZN4InitD2Ev[_ZN4InitD5Ev]+0x28): undefined reference to `FFTW_Cleanup()'
/usr/bin/ld: lossyWAV.cpp:(.text._ZN4InitD2Ev[_ZN4InitD5Ev]+0x2c): undefined reference to `nProcess_Cleanup()'
/usr/bin/ld: lossyWAV.cpp:(.text._ZN4InitD2Ev[_ZN4InitD5Ev]+0x38): undefined reference to `nFFT_Cleanup()'
/usr/bin/ld: lossyWAV.cpp:(.text._ZN4InitD2Ev[_ZN4InitD5Ev]+0x3c): undefined reference to `nProcess_Cleanup()'
/usr/bin/ld: lossyWAV.o: in function `main':
lossyWAV.cpp:(.text.startup+0x1c): undefined reference to `nCore_Init()'
/usr/bin/ld: lossyWAV.cpp:(.text.startup+0x20): undefined reference to `nWAV_Init()'
/usr/bin/ld: lossyWAV.cpp:(.text.startup+0x24): undefined reference to `FFTW_Initialise()'
/usr/bin/ld: lossyWAV.cpp:(.text.startup+0x28): undefined reference to `FFTW_Initialised()'
/usr/bin/ld: lossyWAV.cpp:(.text.startup+0x40): undefined reference to `nParameter_Init(int, char**)'
/usr/bin/ld: lossyWAV.cpp:(.text.startup+0x44): undefined reference to `nCheck_Switches()'
/usr/bin/ld: lossyWAV.cpp:(.text.startup+0x48): undefined reference to `parameters'
/usr/bin/ld: lossyWAV.cpp:(.text.startup+0x4c): undefined reference to `parameters'
/usr/bin/ld: lossyWAV.cpp:(.text.startup+0x58): undefined reference to `MergeFiles()'
/usr/bin/ld: lossyWAV.cpp:(.text.startup+0x84): undefined reference to `openWavIO()'
/usr/bin/ld: lossyWAV.cpp:(.text.startup+0x90): undefined reference to `Global'
/usr/bin/ld: lossyWAV.cpp:(.text.startup+0x94): undefined reference to `Global'
/usr/bin/ld: lossyWAV.cpp:(.text.startup+0xa0): undefined reference to `nInitial_Setup()'
/usr/bin/ld: lossyWAV.cpp:(.text.startup+0xa4): undefined reference to `nSpreading_Init()'
/usr/bin/ld: lossyWAV.cpp:(.text.startup+0xa8): undefined reference to `nProcess_Init()'
/usr/bin/ld: lossyWAV.cpp:(.text.startup+0xac): undefined reference to `nFillFFT_Init()'
/usr/bin/ld: lossyWAV.cpp:(.text.startup+0xb0): undefined reference to `nRemoveBits_Init()'
/usr/bin/ld: lossyWAV.cpp:(.text.startup+0xb4): undefined reference to `nOutput_Init()'
/usr/bin/ld: lossyWAV.cpp:(.text.startup+0xb8): undefined reference to `readNextNextCodecBlock()'
/usr/bin/ld: lossyWAV.cpp:(.text.startup+0xc4): undefined reference to `AudioData'
/usr/bin/ld: lossyWAV.cpp:(.text.startup+0xcc): undefined reference to `Global'
/usr/bin/ld: lossyWAV.cpp:(.text.startup+0xd4): undefined reference to `AudioData'
/usr/bin/ld: lossyWAV.cpp:(.text.startup+0xe8): undefined reference to `parameters'
/usr/bin/ld: lossyWAV.cpp:(.text.startup+0x114): undefined reference to `Shift_Codec_Blocks()'
/usr/bin/ld: lossyWAV.cpp:(.text.startup+0x118): undefined reference to `readNextNextCodecBlock()'
/usr/bin/ld: lossyWAV.cpp:(.text.startup+0x11c): undefined reference to `Process_This_Codec_Block()'
/usr/bin/ld: lossyWAV.cpp:(.text.startup+0x120): undefined reference to `writeNextBTRDcodecblock()'
/usr/bin/ld: lossyWAV.cpp:(.text.startup+0x178): undefined reference to `lossyWAVError(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int)'
/usr/bin/ld: lossyWAV.cpp:(.text.startup+0x18c): undefined reference to `parameters'
/usr/bin/ld: lossyWAV.cpp:(.text.startup+0x198): undefined reference to `writeNextCORRcodecblock()'
/usr/bin/ld: lossyWAV.cpp:(.text.startup+0x1bc): undefined reference to `lossyWAVError(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int)'
/usr/bin/ld: lossyWAV.cpp:(.text.startup+0x1d8): undefined reference to `closeWavIO()'
/usr/bin/ld: lossyWAV.cpp:(.text.startup+0x1fc): undefined reference to `lossyWAVError(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int)'
/usr/bin/ld: lossyWAV.cpp:(.text.startup+0x214): undefined reference to `write_cleanup()'
/usr/bin/ld: lossyWAV.cpp:(.text.startup+0x234): undefined reference to `lossyWAVError(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int)'
/usr/bin/ld: lossyWAV.cpp:(.text.startup+0x254): undefined reference to `nFFT_Init(int)'
/usr/bin/ld: lossyWAV.cpp:(.text.startup+0x274): undefined reference to `lossyWAVError(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int)'
/usr/bin/ld: lossyWAV.cpp:(.text.startup+0x2ac): undefined reference to `lossyWAVError(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int)'
collect2: error: ld returned 1 exit status
make: *** [Makefile:50: link] Error 1

is the link stage missing something?

cheers!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.