Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using docker, getting errors #428

Closed
erfg12 opened this issue Apr 28, 2023 · 2 comments
Closed

Using docker, getting errors #428

erfg12 opened this issue Apr 28, 2023 · 2 comments

Comments

@erfg12
Copy link

erfg12 commented Apr 28, 2023

On a Windows 11 computer:

MAKEFILE:

EE_BIN = game.elf

EE_OBJS = ../game/shared.o ../game/main.o

EE_INCS = -I$(PS2DEV)/ps2sdk/ports/include -I../include -I$(PS2DEV)/ps2sdk/ports/include/SDL -I$(PS2DEV)/ps2sdk/ports/include/freetype2
EE_LIBS = -L. -L$(PS2DEV)/ps2sdk/ports/lib -L$(PS2DEV)/ps2sdk/ports/lib -L$(PS2DEV)/ps2sdk/ports/lib -L$(GSKIT)/lib -L../lib -lsdlmixer -lSDL_ttf -lsdl -lcdvd -lgskit -ldmakit
EE_CXXFLAGS = -D__PS2__

all: $(EE_BIN)

clean:
	rm -rf $(EE_BIN) $(EE_OBJS)

include $(PS2SDK)/samples/Makefile.pref
include $(PS2SDK)/samples/Makefile.eeglobal

CMD:
C:\Users\newgm\git\repos\RetroGameBuilder>docker run --rm -it -v %cd%:/usr/local/project -w /usr/local/project ps2dev/ps2dev sh

DOCKER:

/usr/local/project/ps2 # make
mips64r5900el-ps2-elf-g++ -D_EE -G0 -O2 -Wall -D__PS2__ -I/usr/local/ps2dev/ps2sdk/ee/include -I/usr/local/ps2dev/ps2sdk/common/include -I. -I/usr/local/ps2dev/ps2sdk/ports/include -I../include -I/usr/local/ps2dev/ps2sdk/ports/include/SDL -I/usr/local/ps2dev/ps2sdk/ports/include/freetype2 -c ../game/shared.cpp -o ../game/shared.o
Error loading shared library libmpc.so.3: No such file or directory (needed by /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus)
Error loading shared library libmpfr.so.6: No such file or directory (needed by /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus)
Error loading shared library libgmp.so.10: No such file or directory (needed by /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus)
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_hypot: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: __gmpz_cmp: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_set_emin: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_atan: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpc_get_version: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_exp2: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpc_asinh: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_max: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_log1p: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_snprintf: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpc_div: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_cbrt: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_atan2: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpc_mul: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_j0: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_underflow_p: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: __gmpz_set_ui: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_exp10: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpc_exp: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_pow: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_clear: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_log2: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpc_init2: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_set_erangeflag: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpc_pow: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_lgamma: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_asinh: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_sqrt_ui: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_inits: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpc_cos: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_gamma: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_remainder: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_log10: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_tanh: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: __gmpz_add: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_clears: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: __gmpz_set: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_get_version: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_set_si_2exp: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: __gmpz_sizeinbase: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_yn: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_set_str: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_free_str: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_sqrt: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_erfc: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_j1: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_set_inf: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_sin_cos: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_remquo: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_sin: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_inits2: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: __gmpz_fdiv_q: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_set_emax: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_tan: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpc_tanh: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_get_str: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpc_acosh: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_set_ui: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpc_sinh: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpc_atan: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_acosh: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_init2: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_jn: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_clear_flags: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpc_clear: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: __gmpz_export: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: __gmpz_com: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_number_p: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpc_log: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_exp: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_cos: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: __gmpz_swap: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_set_nan: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: __gmpz_import: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: __gmpz_sub_ui: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_fma: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_sinh: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_sub: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: __gmpz_init_set: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: __gmpz_sub: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_atanh: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: __gmpz_init: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpc_sqrt: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_sub_ui: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpc_asin: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_log: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_y0: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_strtofr: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_acos: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_min: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: __gmpz_out_str: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpc_tan: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_free_cache: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_expm1: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpc_atanh: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_dim: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_asin: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_y1: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_overflow_p: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_erf: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: __gmpz_clear: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_cosh: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpc_acos: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpc_cosh: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpc_sin: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: mpfr_set_ui_2exp: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: __gmpz_add_ui: symbol not found
Error relocating /usr/local/ps2dev/ee/libexec/gcc/mips64r5900el-ps2-elf/11.3.0/cc1plus: __gmp_version: symbol not found
make: *** [/usr/local/ps2dev/ps2sdk/samples/Makefile.eeglobal:70: ../game/shared.o] Error 1
@erfg12
Copy link
Author

erfg12 commented Apr 28, 2023

Had to modify the makefile to be:

EE_BIN = game.elf

EE_OBJS = ../game/shared.o ../game/main.o

EE_INCS = -I$(PS2DEV)/ps2sdk/ports/include -I../include -I$(PS2DEV)/ps2sdk/ports/include/SDL -I$(PS2DEV)/ps2sdk/ports/include/freetype2
EE_LIBS = -L. -L$(PS2DEV)/ps2sdk/ports/lib -L$(PS2DEV)/ps2sdk/ports/lib -L$(PS2DEV)/ps2sdk/ports/lib -L$(GSKIT)/lib -L$(DMAKIT)/lib -L../lib -lsdlmixer -lSDL_ttf -lsdl -lcdvd -lgskit -ldmakit -lfreetype -lpng -lz
EE_CXXFLAGS = -D__PS2__

all: $(EE_BIN)

clean:
	rm -rf $(EE_BIN) $(EE_OBJS)

include $(PS2SDK)/samples/Makefile.pref
include $(PS2SDK)/samples/Makefile.eeglobal

Then add more packages:
apk add mpc1-dev mpfr freetype libpng
Now it builds!

@uyjulian
Copy link
Member

uyjulian commented Dec 1, 2023

This doesn't seem to be an issue anymore. Reopen if this is not the case

@uyjulian uyjulian closed this as completed Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants