Compile Error June 14, 2009 05:32AM | Registered: 16 years ago Posts: 248 |
fat.c In file included from /Users/****/Desktop/HBB/HBB/source/fat.c:5: /Users/****/Desktop/HBB/HBB/source/fat.h:5:17: warning: fat.h: No such file or directory /Users/****/Desktop/HBB/HBB/source/fat.h:9:25: warning: sdcard/gcsd.h: No such file or directory In file included from /Users/****/Desktop/HBB/HBB/source/fat.c:5: /Users/****/Desktop/HBB/HBB/source/fat.h:22: error: expected ':', ',', ';', '}' or '__attribute__' before '*' token /Users/****/Desktop/HBB/HBB/source/fat.c: In function 'Fat_Mount': /Users/****/Desktop/HBB/HBB/source/fat.c:13: error: 'fatDevice' has no member named 'interface' /Users/****/Desktop/HBB/HBB/source/fat.c:18: warning: implicit declaration of function 'fatMountSimple' /Users/****/Desktop/HBB/HBB/source/fat.c:18: error: 'fatDevice' has no member named 'interface' /Users/****/Desktop/HBB/HBB/source/fat.c: In function 'Fat_Unmount': /Users/****/Desktop/HBB/HBB/source/fat.c:28: warning: implicit declaration of function 'fatUnmount' /Users/****/Desktop/HBB/HBB/source/fat.c:31: error: 'fatDevice' has no member named 'interface' make[1]: *** [fat.o] Error 1 make: *** [build] Error 2
Re: Compile Error June 14, 2009 05:33AM | Registered: 16 years ago Posts: 248 |
#--------------------------------------------------------------------------------- # Clear the implicit built in rules #--------------------------------------------------------------------------------- .SUFFIXES: #--------------------------------------------------------------------------------- ifeq ($(strip $(DEVKITPPC)),) $(error "Please set DEVKITPPC in your environment. export DEVKITPPC=devkitPPC) endif include $(DEVKITPPC)/wii_rules #--------------------------------------------------------------------------------- # TARGET is the name of the output # BUILD is the directory where object files & intermediate files will be placed # SOURCES is a list of directories containing source code # INCLUDES is a list of directories containing extra header files #--------------------------------------------------------------------------------- TARGET := $(notdir $(CURDIR)) BUILD := build SOURCES := source source/libpng source/libpng/pngu DATA := data INCLUDES := #--------------------------------------------------------------------------------- # options for code generation #--------------------------------------------------------------------------------- CFLAGS = -g -O2 -mrvl -Wall $(MACHDEP) $(INCLUDE) CXXFLAGS = $(CFLAGS) LDFLAGS = -g $(MACHDEP) -mrvl -Wl,-Map,$(notdir $@).map #--------------------------------------------------------------------------------- # any extra libraries we wish to link with the project #--------------------------------------------------------------------------------- LIBS := -lpng -lfat -lwiiuse -lbte -logc -lm -lz #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing # include and lib #--------------------------------------------------------------------------------- LIBDIRS := $(CURDIR) #--------------------------------------------------------------------------------- # no real need to edit anything past this point unless you need to add additional # rules for different file extensions #--------------------------------------------------------------------------------- ifneq ($(BUILD),$(notdir $(CURDIR))) #--------------------------------------------------------------------------------- export OUTPUT := $(CURDIR)/$(TARGET) export VPATH := $(foreach dir,$(SOURCES),$(CURDIR)/$(dir)) \ $(foreach dir,$(DATA),$(CURDIR)/$(dir)) export DEPSDIR := $(CURDIR)/$(BUILD) #--------------------------------------------------------------------------------- # automatically build a list of object files for our project #--------------------------------------------------------------------------------- CFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.c))) CPPFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.cpp))) sFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.s))) SFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.S))) BINFILES := $(foreach dir,$(DATA),$(notdir $(wildcard $(dir)/*.*))) #--------------------------------------------------------------------------------- # use CXX for linking C++ projects, CC for standard C #--------------------------------------------------------------------------------- ifeq ($(strip $(CPPFILES)),) export LD := $(CC) else export LD := $(CXX) endif export OFILES := $(addsuffix .o,$(BINFILES)) \ $(CPPFILES:.cpp=.o) $(CFILES:.c=.o) \ $(sFILES:.s=.o) $(SFILES:.S=.o) #--------------------------------------------------------------------------------- # build a list of include paths #--------------------------------------------------------------------------------- export INCLUDE := $(foreach dir,$(INCLUDES), -iquote $(CURDIR)/$(dir)) \ $(foreach dir,$(LIBDIRS),-I$(dir)/include) \ -I$(CURDIR)/$(BUILD) \ -I$(LIBOGC_INC) #--------------------------------------------------------------------------------- # build a list of library paths #--------------------------------------------------------------------------------- export LIBPATHS := $(foreach dir,$(LIBDIRS),-L$(dir)/lib) \ -L$(LIBOGC_LIB) export OUTPUT := $(CURDIR)/$(TARGET) .PHONY: $(BUILD) clean #--------------------------------------------------------------------------------- $(BUILD): @[ -d $@ ] || mkdir -p $@ @make --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile #--------------------------------------------------------------------------------- clean: @echo clean ... @rm -fr $(BUILD) $(OUTPUT).elf $(OUTPUT).dol #--------------------------------------------------------------------------------- run: psoload $(TARGET).dol #--------------------------------------------------------------------------------- reload: psoload -r $(TARGET).dol #--------------------------------------------------------------------------------- else DEPENDS := $(OFILES:.o=.d) #--------------------------------------------------------------------------------- # main targets #--------------------------------------------------------------------------------- $(OUTPUT).dol: $(OUTPUT).elf $(OUTPUT).elf: $(OFILES) #--------------------------------------------------------------------------------- # This rule links in binary data with the .jpg extension #--------------------------------------------------------------------------------- %.jpg.o : %.jpg #--------------------------------------------------------------------------------- @echo $(notdir $<) $(bin2o) -include $(DEPENDS) #--------------------------------------------------------------------------------- endif #---------------------------------------------------------------------------------
Re: Compile Error June 14, 2009 05:12PM | Registered: 15 years ago Posts: 36 |
Re: Compile Error June 14, 2009 10:29PM | Registered: 16 years ago Posts: 248 |
Re: Compile Error June 15, 2009 12:11AM | Registered: 15 years ago Posts: 36 |
Re: Compile Error June 15, 2009 02:58AM | Registered: 16 years ago Posts: 248 |
Re: Compile Error June 15, 2009 03:09AM | Registered: 16 years ago Posts: 248 |
fat.c cc1: error: invalid option `rvl' cc1: error: invalid option `rvl' make[1]: *** [fat.o] Error 1 make: *** [build] Error 2
Re: Compile Error June 15, 2009 09:18PM | Admin Registered: 16 years ago Posts: 5,132 |
Re: Compile Error June 16, 2009 11:54PM | Registered: 16 years ago Posts: 248 |
Re: Compile Error June 17, 2009 03:57AM | Registered: 16 years ago Posts: 248 |
Re: Compile Error June 17, 2009 11:53AM | Registered: 16 years ago Posts: 265 |
Re: Compile Error June 17, 2009 01:29PM | Registered: 16 years ago Posts: 248 |
Re: Compile Error June 20, 2009 02:26AM | Registered: 16 years ago Posts: 248 |