-
Notifications
You must be signed in to change notification settings - Fork 150
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
undefined reference to `fmt_dxt_decode' #326
Comments
Seems like fmt is missing dxt.c
Le mer. 13 nov. 2019 à 21:28, Algorythmis <notifications@github.com> a
écrit :
… ld throws an error when attempting to compile an executable from C code
generated by hashlink through the following command:
gcc main.c -o ../main -I. \
/usr/share/hashlink/sdl.hdll \
/usr/share/hashlink/ui.hdll \
/usr/share/hashlink/fmt.hdll \
/usr/share/hashlink/openal.hdll \
/usr/share/hashlink/ui.hdll \
/usr/share/hashlink/uv.hdll \
-lhl -lSDL2 -lm -lopenal -lGL
(as stated here
<#124 (comment)>
)
Here's the error message:
/usr/bin/ld: /tmp/cc5bQv9y.o: in function `hxd_Pixels_convert':
main.c:(.text+0x211d9): undefined reference to `fmt_dxt_decode'
/usr/bin/ld: main.c:(.text+0x2139f): undefined reference to `fmt_dxt_decode'
/usr/bin/ld: /tmp/cc5bQv9y.o: in function `hl_Mikktspace_compute':
main.c:(.text+0x16197a): undefined reference to `fmt_compute_mikkt_tangents'
/usr/bin/ld: /tmp/cc5bQv9y.o:(.data.rel+0x6418): undefined reference to `fmt_dxt_decode'
/usr/bin/ld: /tmp/cc5bQv9y.o:(.data.rel+0x6428): undefined reference to `fmt_compute_mikkt_tangents'
collect2: error: ld returned 1 exit status
How should I link fmt in this case?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#326?email_source=notifications&email_token=AAHZXQFJRJJ3Q3S3G4PB2K3QTRPO7A5CNFSM4JNBE3Q2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HZEA7PA>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHZXQBD5J2OACWVVCHI3GTQTRPO7ANCNFSM4JNBE3QQ>
.
|
This issue is fixed by #327 |
Thanks for the very quick fix. It does fix the problem for dxt.c but the one about mikkt.c stays:
I would like to make a merge request for that but I'd need the mikktspace.h header, which I guess I could get from there but then I'd probably have to build the whole repo, and I don't know Houdini at all. |
The mikkt sources can be found in hashlink include directory. Will requires
both header and sources.
Le mer. 13 nov. 2019 à 22:28, Algorythmis <notifications@github.com> a
écrit :
… Thanks for the very quick fix. It does fix the problem for dxt.c but the
one about mikkt.c stays:
/usr/bin/ld: /tmp/ccyPEGig.o: in function `hl_Mikktspace_compute':
main.c:(.text+0x170099): undefined reference to `fmt_compute_mikkt_tangents'
/usr/bin/ld: /tmp/ccyPEGig.o:(.data.rel+0x6428): undefined reference to ` fmt_compute_mikkt_tangents'
I would like to make a merge request for that but I'd need the
mikktspace.h header, which I guess I could get from there
<https://github.com/teared/mikktspace-for-houdini/blob/master/source/mikktspace.h>
but then I'd probably have to build the whole repo, and I don't know
Houdini at all.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#326?email_source=notifications&email_token=AAHZXQAXK7YSF4NTQ6PKXADQTRWPPA5CNFSM4JNBE3Q2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOED7XCNQ#issuecomment-553611574>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHZXQASE7LE3ZDPOXLMTJTQTRWPPANCNFSM4JNBE3QQ>
.
|
Fixed it with #328. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ld
throws an error when attempting to compile an executable from C code generated by hashlink through the following command:(as stated here)
Here's the error message:
How should I link fmt in this case?
The text was updated successfully, but these errors were encountered: