[Coco] Error compiling CMOC libraries
Lee
leep at tigerbase.com
Wed Sep 18 19:09:21 EDT 2019
I'm getting errors concerning some mislocated and missing header files
trying to compile a couple of CMOC libraries; specifically decbfile (0.1.3)
and BControl (0.1.1). I downloaded CMOC and both libraries from
https://perso.b2b2c.ca/~sarrazip/dev/cmoc.html.
Background information: I'm on a Windows 10 PC. I installed cygwin,
downloaded, configured, compiled, and installed the latest gcc, lwtools,
and CMOC. All that went successfully. I then downloaded several CMOC
libraries (decbfiles, BSound, BControl, and BGraph). I didn't see any
instructions with them, but they each had a Makefile. I unzipped each into
their own folder in my cmoc-0.1.60 folder in a folder named libs. BSound
and BGraph compiled to a .bin file just fine when I ran make in their
folder. decbfiles and BControl both hit error as follows:
*BCONTROL errors:*
/cygdrive/d/devtools/cmoc-0.1.60/libs/bcontrol-0.1.1
$ make
cmoc --deps-only --coco -DNDEBUG OS9RawTerminal.c
OS9RawTerminal.c:1:10: fatal error: OS9RawTerminal.h: No such file or
directory
#include "OS9RawTerminal.h"
^~~~~~~~~~~~~~~~~~
compilation terminated.
cmoc --deps-only --coco -DNDEBUG enableSound.c
cmoc --deps-only --coco -DNDEBUG disableSound.c
cmoc --deps-only --coco -DNDEBUG selectAnalogMuxInputs.c
cmoc --deps-only --coco -DNDEBUG getButtonStates.c
cmoc --deps-only --coco -DNDEBUG Joystick.c
cmoc --deps-only --coco -DNDEBUG Keyboard.c
cmoc --deps-only --coco -DNDEBUG bcontrol.c
cmoc -c --coco -DNDEBUG -o OS9RawTerminal.o OS9RawTerminal.c
OS9RawTerminal.c:1:10: fatal error: OS9RawTerminal.h: No such file or
directory
#include "OS9RawTerminal.h"
^~~~~~~~~~~~~~~~~~
compilation terminated.
cmoc: fatal error: preprocessor failed.
make: *** [Makefile:47: OS9RawTerminal.o] Error 1
*DECBFILES errors:*
/cygdrive/d/devtools/cmoc-0.1.60/libs/decbfile-0.1.3
$ make
cmoc --deps-only -O2 -DNDEBUG -Werror -I . decbutil.c
decbutil.c:11:10: fatal error: decbutil_private.h: No such file or directory
#include <decbutil_private.h>
^~~~~~~~~~~~~~~~~~~~
compilation terminated.
cmoc --deps-only -O2 -DNDEBUG -Werror -I . readFileToMemory.c
readFileToMemory.c:11:10: fatal error: decbutil.h: No such file or directory
#include "decbutil.h"
^~~~~~~~~~~~
compilation terminated.
cmoc --deps-only -O2 -DNDEBUG -Werror -I . writeMemoryToFile.c
writeMemoryToFile.c:11:10: fatal error: decbutil.h: No such file or
directory
#include "decbutil.h"
^~~~~~~~~~~~
compilation terminated.
cmoc --deps-only -O2 -DNDEBUG -Werror -I . dskcon-standalone.c
cmoc --deps-only -O2 -DNDEBUG -Werror -I . binfile.c
cmoc --deps-only -O2 -DNDEBUG -Werror -I . writeSector.c
cmoc --deps-only -O2 -DNDEBUG -Werror -I . writeRecord.c
cmoc --deps-only -O2 -DNDEBUG -Werror -I . writeHeader.c
cmoc --deps-only -O2 -DNDEBUG -Werror -I . writeFAT.c
cmoc --deps-only -O2 -DNDEBUG -Werror -I . unregisterDrive.c
cmoc --deps-only -O2 -DNDEBUG -Werror -I . unregisterAllDrives.c
cmoc --deps-only -O2 -DNDEBUG -Werror -I . truncateOpenRecordFile.c
cmoc --deps-only -O2 -DNDEBUG -Werror -I . truncateOpenFileInGranules.c
cmoc --deps-only -O2 -DNDEBUG -Werror -I . truncateOpenFile.c
cmoc --deps-only -O2 -DNDEBUG -Werror -I . shutdown.c
cmoc --deps-only -O2 -DNDEBUG -Werror -I . setNumBytesUsedInLastSector.c
cmoc --deps-only -O2 -DNDEBUG -Werror -I . setFATEntry.c
cmoc --deps-only -O2 -DNDEBUG -Werror -I . setDskConAddresses.c
cmoc --deps-only -O2 -DNDEBUG -Werror -I . rename.c
cmoc --deps-only -O2 -DNDEBUG -Werror -I . registerWrittenBytes.c
cmoc --deps-only -O2 -DNDEBUG -Werror -I . readSector.c
cmoc --deps-only -O2 -DNDEBUG -Werror -I . readRecord.c
cmoc --deps-only -O2 -DNDEBUG -Werror -I . readHeader.c
cmoc --deps-only -O2 -DNDEBUG -Werror -I . readFAT.c
cmoc --deps-only -O2 -DNDEBUG -Werror -I . readDir.c
cmoc --deps-only -O2 -DNDEBUG -Werror -I . openSectorFileFromDirEntry.c
cmoc --deps-only -O2 -DNDEBUG -Werror -I . openSectorFile.c
cmoc --deps-only -O2 -DNDEBUG -Werror -I . openRecordFile.c
cmoc --deps-only -O2 -DNDEBUG -Werror -I . openDir.c
cmoc --deps-only -O2 -DNDEBUG -Werror -I . normalizeFilename.c
cmoc --deps-only -O2 -DNDEBUG -Werror -I . kill.c
cmoc --deps-only -O2 -DNDEBUG -Werror -I . isValidFATEntry.c
cmoc --deps-only -O2 -DNDEBUG -Werror -I . initSeqWriteBuffer.c
cmoc --deps-only -O2 -DNDEBUG -Werror -I . init.c
cmoc --deps-only -O2 -DNDEBUG -Werror -I . hasFullSector.c
cmoc --deps-only -O2 -DNDEBUG -Werror -I . getRecordOffsets.c
cmoc --deps-only -O2 -DNDEBUG -Werror -I . getOpenFileSize.c
cmoc --deps-only -O2 -DNDEBUG -Werror -I . getNumRecords.c
cmoc --deps-only -O2 -DNDEBUG -Werror -I . getNumGranulesInOpenFile.c
cmoc --deps-only -O2 -DNDEBUG -Werror -I . getNumGranulesInFile.c
cmoc --deps-only -O2 -DNDEBUG -Werror -I . getNumFreeGranules.c
cmoc --deps-only -O2 -DNDEBUG -Werror -I . getFreeSpaceSize.c
cmoc --deps-only -O2 -DNDEBUG -Werror -I . getFreeSpaceAddress.c
cmoc --deps-only -O2 -DNDEBUG -Werror -I . getFileSizeFromFilename.c
cmoc --deps-only -O2 -DNDEBUG -Werror -I . getFileSizeFromDirEntry.c
cmoc --deps-only -O2 -DNDEBUG -Werror -I . getFileGranuleFromIndex.c
cmoc --deps-only -O2 -DNDEBUG -Werror -I .
getDirEntryFromUnnormalizedFilename.c
cmoc --deps-only -O2 -DNDEBUG -Werror -I . freeGranuleChain.c
cmoc --deps-only -O2 -DNDEBUG -Werror -I . flush.c
cmoc --deps-only -O2 -DNDEBUG -Werror -I . findFreeGranule.c
cmoc --deps-only -O2 -DNDEBUG -Werror -I . findDirEntry.c
cmoc --deps-only -O2 -DNDEBUG -Werror -I . dskcon.c
cmoc --deps-only -O2 -DNDEBUG -Werror -I . denormalizeFilename.c
cmoc --deps-only -O2 -DNDEBUG -Werror -I . createSectorFile.c
cmoc --deps-only -O2 -DNDEBUG -Werror -I . createRecordFile.c
cmoc --deps-only -O2 -DNDEBUG -Werror -I . copyFile.c
cmoc --deps-only -O2 -DNDEBUG -Werror -I . computeTrackAndSector.c
cmoc --deps-only -O2 -DNDEBUG -Werror -I . closeSectorFile.c
cmoc --deps-only -O2 -DNDEBUG -Werror -I . closeRecordFile.c
cmoc --deps-only -O2 -DNDEBUG -Werror -I . closeDir.c
Makefile:171: utread.d: No such file or directory
make: *** No rule to make target 'utread.d'. Stop.
More information about the Coco
mailing list