chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: what are the needed switches to build hypergiant examples?


From: Matt Welland
Subject: Re: what are the needed switches to build hypergiant examples?
Date: Mon, 24 Apr 2023 23:08:25 -0400

Nevermind, I was missing the (now obvious) -L -lepoxy.

On Mon, Apr 24, 2023 at 10:18 PM Matt Welland <mattrwelland@gmail.com> wrote:
I tried:

matt@mars:~/.cache/chicken-install/hypergiant/examples$ ck53 csc -L -lGL models.scm
models.c: In function ‘fastRenderBonePipeline’:
models.c:80:25: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
   80 |     glBindTexture(3553, (unsigned int)data->uniformValues[2]);
      |                         ^
models.c: In function ‘fastRenderArraysBonePipeline’:
models.c:100:30: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  100 |     glDrawArrays(data->mode, (GLint)data->offset, data->nElements);
      |                              ^
/usr/bin/ld: models.o: warning: relocation against `epoxy_glBindVertexArray' in read-only section `.text'
/usr/bin/ld: models.o: in function `fastRenderBonePipelineBegin':
models.c:(.text+0x35): undefined reference to `epoxy_glUseProgram'
/usr/bin/ld: models.o: in function `fastRenderBonePipeline':
models.c:(.text+0x48): undefined reference to `epoxy_glActiveTexture'
/usr/bin/ld: models.c:(.text+0x56): undefined reference to `epoxy_glBindTexture'
/usr/bin/ld: models.c:(.text+0x61): undefined reference to `epoxy_glUniform1i'
/usr/bin/ld: models.c:(.text+0x75): undefined reference to `epoxy_glUniformMatrix4fv'
/usr/bin/ld: models.c:(.text+0x89): undefined reference to `epoxy_glUniformMatrix4fv'
/usr/bin/ld: models.c:(.text+0x92): undefined reference to `epoxy_glBindVertexArray'
/usr/bin/ld: models.c:(.text+0xa6): undefined reference to `epoxy_glDrawElements'
/usr/bin/ld: models.o: in function `fastRenderArraysBonePipeline':
models.c:(.text+0xc2): undefined reference to `epoxy_glUniformMatrix4fv'
/usr/bin/ld: models.c:(.text+0xd6): undefined reference to `epoxy_glUniformMatrix4fv'
/usr/bin/ld: models.c:(.text+0xdf): undefined reference to `epoxy_glBindVertexArray'
/usr/bin/ld: models.c:(.text+0xef): undefined reference to `epoxy_glDrawArrays'
/usr/bin/ld: models.o: in function `fastRenderBonePipelineEnd':
models.c:(.text+0x101): undefined reference to `epoxy_glBindTexture'
/usr/bin/ld: models.c:(.text+0x10a): undefined reference to `epoxy_glBindVertexArray'
/usr/bin/ld: warning: creating DT_TEXTREL in a PIE
collect2: error: ld returned 1 exit status

Error: shell command terminated with non-zero exit status 256: 'gcc' 'models.o' -o 'models' -lGL -L/home/matt/data/buildall/ck5.3_23WW01/lib -Wl,-rpath=/home/matt/data/buildall/ck5.3_23WW01/lib -lchicken -lm -ldl


--
--
Complexity is your enemy. Any fool can make something complicated.
It is hard to keep things simple. - Richard Branson.


--
--
Complexity is your enemy. Any fool can make something complicated.
It is hard to keep things simple. - Richard Branson.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]