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

Building arcade on Debian results in error #49

Open
mnadareski opened this issue Jul 20, 2024 · 4 comments · May be fixed by #50
Open

Building arcade on Debian results in error #49

mnadareski opened this issue Jul 20, 2024 · 4 comments · May be fixed by #50

Comments

@mnadareski
Copy link

Attempting to build QMC2-Arcade using the supplied instructions results in the following errors:

/usr/bin/ld: Lzma2Enc.o: in function `Lzma2Enc_MtCallback_Code':
Lzma2Enc.c:(.text+0xa55): undefined reference to `MtProgressThunk_CreateVTable'
/usr/bin/ld: Lzma2Enc.o: in function `Lzma2Enc_Destroy':
Lzma2Enc.c:(.text+0xe9c): undefined reference to `MtCoder_Destruct'
/usr/bin/ld: Lzma2Enc.o: in function `Lzma2Enc_Encode2':
Lzma2Enc.c:(.text+0x111a): undefined reference to `MtCoder_Code'
/usr/bin/ld: Lzma2Enc.c:(.text+0x11d5): undefined reference to `MtCoder_Construct'
/usr/bin/ld: LzmaEnc.o: in function `LzmaEnc_AllocAndInit':
LzmaEnc.c:(.text+0x13ac): undefined reference to `MatchFinderMt_Create'
/usr/bin/ld: LzmaEnc.c:(.text+0x13d0): undefined reference to `MatchFinderMt_CreateVTable'
/usr/bin/ld: LzmaEnc.o: in function `LzmaEnc_CodeOneBlock':
LzmaEnc.c:(.text+0x1978): undefined reference to `MatchFinderMt_InitMt'
/usr/bin/ld: LzmaEnc.o: in function `LzmaEnc_Create':
LzmaEnc.c:(.text+0x4c45): undefined reference to `MatchFinderMt_Construct'
/usr/bin/ld: LzmaEnc.o: in function `LzmaEnc_Destroy':
LzmaEnc.c:(.text+0x4da8): undefined reference to `MatchFinderMt_Destruct'
/usr/bin/ld: LzmaEnc.o: in function `LzmaEnc_Finish':
LzmaEnc.c:(.text+0x4ea8): undefined reference to `MatchFinderMt_ReleaseStream'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:516: qmc2-arcade] Error 1
make[1]: Leaving directory '/repos/qmc2-mame-fe/src/arcade'
make: *** [Makefile:965: arcade-bin] Error 2

The machine is running Debian 12 with all prerequisites installed.

@mnadareski
Copy link
Author

A quick comb through of the LZMA SDK code that it's failing on doesn't seem to show any issues with includes as far as I can tell.

@mnadareski
Copy link
Author

This happened both on a clean pull of the repo with arcade being the first build target as well as doing the normal make -j4 first and then trying to build arcade.

@mnadareski
Copy link
Author

This also occurs with the updates provided by this PR: https://github.com/qmc2/qmc2-mame-fe/pull/47/files

@mnadareski
Copy link
Author

Adding the following files to the SOURCES section of src/arcade/qmc2-arcade.pro seems to have fixed it:

../lzma/LzFindMt.c \
../lzma/LzFindOpt.c \
../lzma/MtCoder.c \
../lzma/MtDec.c \
../lzma/Threads.c

@mnadareski mnadareski linked a pull request Jan 30, 2025 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant