-
assigned issue to
Makefile on Linux is broken
Issue #1
resolved
When compiling 4.2.1 on Ubuntu 18.04 I encounter the following problem.
git clone --recurse-submodules https://bitbucket.org/megatokio/zasm.git
cd zasm/Linux/
make
outputfile.o: In function `Z80Assembler::writeTzxFile(FD&)':
outputfile.cpp:(.text+0x5279): undefined reference to `compress'
outputfile.cpp:(.text+0x5ca7): undefined reference to `convert_audio(short const*, unsigned short*, unsigned int)'
outputfile.cpp:(.text+0x5cf1): undefined reference to `convert_audio(short const*, signed char*, unsigned int)'
outputfile.cpp:(.text+0x5e22): undefined reference to `WavFile::WavFile(char const*)'
outputfile.cpp:(.text+0x5e2e): undefined reference to `WavFile::seekFramePosition(unsigned int)'
outputfile.cpp:(.text+0x60d0): undefined reference to `convert_audio(signed char const*, unsigned char*, unsigned int)'
outputfile.o: In function `Z80Assembler::checkTzxFile()':
outputfile.cpp:(.text+0x7418): undefined reference to `WavFile::WavFile(char const*)'
outputfile.o: In function `WavFile::FrameFormat WavFile::readFrames<signed char>(Array<signed char>&, unsigned int, WavFile::FrameFormat)':
outputfile.cpp:(.text._ZN7WavFile10readFramesIaEENS_11FrameFormatER5ArrayIT_EjS1_[_ZN7WavFile10readFramesIaEENS_11FrameFormatER5ArrayIT_EjS1_]+0x5c): undefined reference to `WavFile::read_samples(Array<signed char>&, unsigned int)'
outputfile.cpp:(.text._ZN7WavFile10readFramesIaEENS_11FrameFormatER5ArrayIT_EjS1_[_ZN7WavFile10readFramesIaEENS_11FrameFormatER5ArrayIT_EjS1_]+0xb6): undefined reference to `WavFile::read_samples(Array<signed char>&, unsigned int)'
outputfile.cpp:(.text._ZN7WavFile10readFramesIaEENS_11FrameFormatER5ArrayIT_EjS1_[_ZN7WavFile10readFramesIaEENS_11FrameFormatER5ArrayIT_EjS1_]+0xf9): undefined reference to `WavFile::read_samples(Array<signed char>&, unsigned int)'
outputfile.cpp:(.text._ZN7WavFile10readFramesIaEENS_11FrameFormatER5ArrayIT_EjS1_[_ZN7WavFile10readFramesIaEENS_11FrameFormatER5ArrayIT_EjS1_]+0x11d): undefined reference to `WavFile::read_samples(Array<signed char>&, unsigned int)'
collect2: error: ld returned 1 exit status
Makefile:51: recipe for target 'zasm' failed
Using qmake worked but produces warning on header file. And the cpp files produce warnings as well but no errors.
git clone --recurse-submodules https://bitbucket.org/megatokio/zasm.git
cd zasm/Linux/
mkdir build
cd build
qmake ..
WARNING: Failure to find: Libraries/kio/errors.h
make
Comments (2)
-
repo owner -
repo owner - changed status to resolved
fixed. thanks for your report! :-)
- Log in to comment