-
Notifications
You must be signed in to change notification settings - Fork 23
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
Build for miyoo faild #44
Comments
-lmodplugma? shouldn't it be -lmodplug? about the toolchain, i believe i'm using an older one, but i cannot recall which exact version. Anyway, and before you try a different toolchain, you can try just removing the references to those libraries from your makefile and from common.mk. There is a chance that i used another makefile as a template and those libraries slipped in. |
I checked and those libraries are needed. So try a different toolchain. |
Thank you for your response. Following your advice, I commented out -lmodplugma and -lmikmod in both the Makefile and common.mk. After doing so, the compilation was successful using arm-miyoo-linux-uclibcgnueabi. I'm curious to know if removing these two libraries will affect the game's music. |
If it compiles without errors, then it will work. On the bittboy toolchain i'm using, i need to reference them, otherwise i got errors. |
I tried building the project using the miyoo toolchain but encountered an error:
c++ -lasound -lmodplugma -lmikmod -Wl,--as-needed -Wl,--gc-sections -flto -s -Wl,--end-group /opt/miyoo/lib/gcc/arm-miyoo-linux-uclibcgnueabi/7.3.0/../../../../arm-miyoo-linux-uclibcgnueabi/bin/ld: cannot find -lmodplugma /opt/miyoo/lib/gcc/arm-miyoo-linux-uclibcgnueabi/7.3.0/../../../../arm-miyoo-linux-uclibcgnueabi/bin/ld: cannot find -lmikmod /opt/miyoo/lib/gcc/arm-miyoo-linux-uclibcgnueabi/7.3.0/../../../../arm-miyoo-linux-uclibcgnueabi/bin/ld: cannot find -lmodplugma /opt/miyoo/lib/gcc/arm-miyoo-linux-uclibcgnueabi/7.3.0/../../../../arm-miyoo-linux-uclibcgnueabi/bin/ld: cannot find -lmikmod collect2: error: ld returned 1 exit status make: *** [common.mk:83: executable] Error 1
According to the error message, it seems that the miyoo SDK is missing these two linked libraries: -lmodplugma and -lmikmod. Could you provide an SDK that can be compiled successfully, or the files for these two linked libraries? Thank you very much.
and this is my makefile
`CHAINPREFIX=/opt/miyoo
CROSS_COMPILE=$(CHAINPREFIX)/bin/arm-miyoo-linux-uclibcgnueabi-
CC = $(CROSS_COMPILE)gcc$(shell $ (SYSROOT)/usr/bin/sdl-config --cflags)
CXX = $(CROSS_COMPILE)g++
SYSROOT := $(CHAINPREFIX)/arm-miyoo-linux-uclibcgnueabi/sysroot
SDL_CFLAGS :=
OUTPUTNAME = gambatte-dms-pocketgo
DEFINES = -DHAVE_STDINT_H -DVERSION_POCKETGO
INCLUDES = -Isrc/gambatte_sdl -Ilibgambatte -Icommon -Iinclude -Ilibgambatte/include -Ilibgambatte/src $(SDL_CFLAGS)
OPT_FLAGS = -Ofast -fdata-sections -fdata-sections -fno-common -fno-PIC -flto
EXTRA_LDFLAGS = -lasound -lmodplugma -lmikmod -Wl,--as-needed -Wl,--gc-sections -flto -s
include common.mk
`
The text was updated successfully, but these errors were encountered: