forked from DigilentInc/vivado-library
-
Notifications
You must be signed in to change notification settings - Fork 350
Open
Description
When trying to compile a project with PMOD OLED using Vitis, the platform does not compile on Windows 10 because of
mb-ar: *.o Invalid Argument
According to the following forum post, this is due to changes in the MINGW toolchain.
Also according to that forum post, updating the Makefile solves the problem:
COMPILER=
ARCHIVER=
CP=cp
COMPILER_FLAGS=
EXTRA_COMPILER_FLAGS=
LIB=libxil.a
RELEASEDIR=../../../lib
INCLUDEDIR=../../../include
INCLUDES=-I./. -I${INCLUDEDIR}
INCLUDEFILES=*.h
LIBSOURCES=*.c
OUTS = *.o
OBJECTS = $(addsuffix .o, $(basename $(wildcard *.c)))
ASSEMBLY_OBJECTS = $(addsuffix .o, $(basename $(wildcard *.S)))
INCLUDEFILES=*.h
libs:
echo "Compiling PmodOLED..."
$(COMPILER) $(COMPILER_FLAGS) $(EXTRA_COMPILER_FLAGS) $(INCLUDES) $(LIBSOURCES)
$(ARCHIVER) -r ${RELEASEDIR}/${LIB} ${OBJECTS} ${ASSEMBLY_OBJECTS}
make clean
include:
${CP} $(INCLUDEFILES) $(INCLUDEDIR)
clean:
rm -rf ${OBJECTS}
rm -rf ${ASSEMBLY_OBJECTS}
Tested and works.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels