The Problem::
It cant find libogc, giving it the path via envis(Environment Variables) or telling it absolute path and if it manages to find em, it pastes error i pasted under this MakeFile(Also its my first post so i try best to describe helpfull stuff for better help):
Code: Select all
# Compiler
CXX = powerpc-eabi-g++
# Compiler flags
CXXFLAGS = -std=gnu++11 -Wall
CFLAGS = -Wall
# Linker flags
LDFLAGS = -LC:\devkitPro\libogc\lib\wii -logc -lwiiuse -lbte -mogc
# Include paths
INCLUDES = -IC:\devkitPro\libogc\include
# Target executable
TARGET = boot.dol
# Source files
SRCS = Hlavnoste.cpp
# Object files
OBJS = $(SRCS:.cpp=.o)
# Rule to build the executable
$(TARGET): $(OBJS)
$(CXX) $^ -o $@ $(LDFLAGS)
# Rule to build object files from source files
%.o: %.cpp
$(CXX) $(CXXFLAGS) $(INCLUDES) -c $< -o $@
# Rule to clean up the project
.PHONY: clean
clean:
rm -f $(OBJS) $(TARGET)
Here is the messy error:
powerpc-eabi-g++ Hlavnoste.o -o boot.dol -LC:\devkitPro\libogc\lib\wii -logc -lwiiuse -lbte -mogc
C:/devkitPro/devkitPPC/bin/../lib/gcc/powerpc-eabi/13.2.0/../../../../powerpc-eabi/bin/ld.exe: C:\devkitPro\libogc\lib\wii\libogc.a(system.o): in function `SYS_SetArena2Lo':
/home/davem/projects/devkitpro/pacman-packages/libogc/src/libogc-2.4.1/libogc/system.c(.text.SYS_Init+0x15e): undefined reference to `__Arena2Lo'
C:/devkitPro/devkitPPC/bin/../lib/gcc/powerpc-eabi/13.2.0/../../../../powerpc-eabi/bin/ld.exe: /home/davem/projects/devkitpro/pacman-packages/libogc/src/libogc-2.4.1/libogc/system.c(.text.SYS_Init+0x166): undefined reference to `__Arena2Lo'
C:/devkitPro/devkitPPC/bin/../lib/gcc/powerpc-eabi/13.2.0/../../../../powerpc-eabi/bin/ld.exe: C:\devkitPro\libogc\lib\wii\libogc.a(system.o): in function `SYS_SetArena2Hi':
/home/davem/projects/devkitpro/pacman-packages/libogc/src/libogc-2.4.1/libogc/system.c(.text.SYS_Init+0x19a): undefined reference to `__Arena2Hi'
C:/devkitPro/devkitPPC/bin/../lib/gcc/powerpc-eabi/13.2.0/../../../../powerpc-eabi/bin/ld.exe: /home/davem/projects/devkitpro/pacman-packages/libogc/src/libogc-2.4.1/libogc/system.c(.text.SYS_Init+0x1a2): undefined reference to `__Arena2Hi'
C:/devkitPro/devkitPPC/bin/../lib/gcc/powerpc-eabi/13.2.0/../../../../powerpc-eabi/bin/ld.exe: C:\devkitPro\libogc\lib\wii\libogc.a(system.o): in function `__ipcbuffer_init':
/home/davem/projects/devkitpro/pacman-packages/libogc/src/libogc-2.4.1/libogc/system.c:526:(.text.SYS_Init+0x1be): undefined
reference to `__ipcbufferLo'
C:/devkitPro/devkitPPC/bin/../lib/gcc/powerpc-eabi/13.2.0/../../../../powerpc-eabi/bin/ld.exe: /home/davem/projects/devkitpro/pacman-packages/libogc/src/libogc-2.4.1/libogc/system.c:527:(.text.SYS_Init+0x1c2): undefined reference to `__ipcbufferHi'
C:/devkitPro/devkitPPC/bin/../lib/gcc/powerpc-eabi/13.2.0/../../../../powerpc-eabi/bin/ld.exe: /home/davem/projects/devkitpro/pacman-packages/libogc/src/libogc-2.4.1/libogc/system.c:526:(.text.SYS_Init+0x1c6): undefined reference to `__ipcbufferLo'
C:/devkitPro/devkitPPC/bin/../lib/gcc/powerpc-eabi/13.2.0/../../../../powerpc-eabi/bin/ld.exe: /home/davem/projects/devkitpro/pacman-packages/libogc/src/libogc-2.4.1/libogc/system.c:527:(.text.SYS_Init+0x1ca): undefined reference to `__ipcbufferHi'
collect2.exe: error: ld returned 1 exit status
make: *** [Makefile:25: boot.dol] Error 1
I have newest version, even reinstalled devkit, path are like here: edit: removed random youtube video.
Using Visual Studio Code and i hope i wrote this problem(first post here) understandably enough and I will be happy to try your answer that might help me and others who have the same problem.
The Problem(Again for better reading/solving experience)::
It cant find libogc, giving it the path via envis(Environment Variables) or telling it absolute path and if it manages to find em, it pastes error i pasted under this MakeFile.