Replies: 1 comment 26 replies
-
This discussion seems a duplicate of a previous discussion. Please, could you post the full compilation line you use? |
Beta Was this translation helpful? Give feedback.
26 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Re-installed RPi4 OS. Followed the raylib instructions to the letter! It seems that the Raylib-3.5.0 must be unzipped into the /tmp directory?
Set up Code Blocks build options to compile and link the shapes_colors_palette.c example.
Compilation and build successful.
Now when I try to run I get an OS error window saying: You must select a host application to "run" a library...
So I changed the build target to GUI application and rebuilt.
Now I get these errors:
||=== Build: Debug in raytest (compiler: GNU GCC Compiler) ===|
/usr/bin/ld: ../../../src/libraylib.a(core.o)||in function
rlViewport':| core.c|| undefined reference to
glViewport'|/usr/bin/ld: ../../../src/libraylib.a(core.o)||in function
rlTextureParameters':| core.c|| undefined reference to
glBindTexture'|/usr/bin/ld: core.c|| undefined reference to
glTexParameteri'| /usr/bin/ld: core.c|| undefined reference to
glTexParameteri'|/usr/bin/ld: core.c|| undefined reference to
glTexParameteri'| /usr/bin/ld: core.c|| undefined reference to
glTexParameterf'|/usr/bin/ld: core.c|| undefined reference to
glTexParameterf'| /usr/bin/ld: core.c|| undefined reference to
glBindTexture'|/usr/bin/ld: ../../../src/libraylib.a(core.o)||in function
rlEnableShader':| core.c|| undefined reference to
glUseProgram'|/usr/bin/ld: ../../../src/libraylib.a(core.o)||in function
rlDisableShader':| core.c|| undefined reference to
glUseProgram'|/usr/bin/ld: ../../../src/libraylib.a(core.o)||in function
rlEnableFramebuffer':| core.c|| undefined reference to
glBindFramebuffer'|/usr/bin/ld: ../../../src/libraylib.a(core.o)||in function
rlDisableFramebuffer':| core.c|| undefined reference to
glBindFramebuffer'|/usr/bin/ld: ../../../src/libraylib.a(core.o)||in function
rlEnableDepthTest':| core.c|| undefined reference to
glEnable'|/usr/bin/ld: ../../../src/libraylib.a(core.o)||in function
rlDisableDepthTest':| core.c|| undefined reference to
glDisable'|/usr/bin/ld: ../../../src/libraylib.a(core.o)||in function
rlEnableDepthMask':| core.c|| undefined reference to
glDepthMask'|/usr/bin/ld: ../../../src/libraylib.a(core.o)||in function
rlDisableDepthMask':| core.c|| undefined reference to
glDepthMask'|/usr/bin/ld: ../../../src/libraylib.a(core.o)||in function
rlEnableBackfaceCulling':| core.c|| undefined reference to
glEnable'|/usr/bin/ld: ../../../src/libraylib.a(core.o)||in function
rlDisableBackfaceCulling':| core.c|| undefined reference to
glDisable'|/usr/bin/ld: ../../../src/libraylib.a(core.o)||in function
rlEnableScissorTest':| core.c|| undefined reference to
glEnable'|/usr/bin/ld: ../../../src/libraylib.a(core.o)||in function
rlDisableScissorTest':| core.c|| undefined reference to
glDisable'|/usr/bin/ld: ../../../src/libraylib.a(core.o)||in function
rlScissor':| core.c|| undefined reference to
glScissor'|/usr/bin/ld: ../../../src/libraylib.a(core.o)||in function
rlSetLineWidth':| core.c|| undefined reference to
glLineWidth'|/usr/bin/ld: ../../../src/libraylib.a(core.o)||in function
rlGetLineWidth':| core.c|| undefined reference to
glGetFloatv'|/usr/bin/ld: ../../../src/libraylib.a(core.o)||in function
rlUnloadFramebuffer':| core.c|| undefined reference to
glBindFramebuffer'|/usr/bin/ld: core.c|| undefined reference to
glGetFramebufferAttachmentParameteriv'| /usr/bin/ld: core.c|| undefined reference to
glGetFramebufferAttachmentParameteriv'|/usr/bin/ld: core.c|| undefined reference to
glDeleteRenderbuffers'| /usr/bin/ld: core.c|| undefined reference to
glDeleteTextures'|/usr/bin/ld: core.c|| undefined reference to
glBindFramebuffer'| /usr/bin/ld: core.c|| undefined reference to
glDeleteFramebuffers'|/usr/bin/ld: ../../../src/libraylib.a(core.o)||in function
rlClearColor':| core.c|| undefined reference to
glClearColor'|/usr/bin/ld: ../../../src/libraylib.a(core.o)||in function
rlClearScreenBuffers':| core.c|| undefined reference to
glClear'|/usr/bin/ld: ../../../src/libraylib.a(core.o)||in function
rlUpdateBuffer':| core.c|| undefined reference to
glBindBuffer'|/usr/bin/ld: core.c|| undefined reference to
glBufferSubData'| /usr/bin/ld: ../../../src/libraylib.a(core.o)||in function
rlglInit':|core.c|| undefined reference to
glGetString'| /usr/bin/ld: core.c|| undefined reference to
glGetString'|/usr/bin/ld: core.c|| undefined reference to
glGetString'| /usr/bin/ld: core.c|| undefined reference to
glGetString'|/usr/bin/ld: core.c|| undefined reference to
glGetString'| /usr/bin/ld: core.c|| undefined reference to
eglGetProcAddress'|/usr/bin/ld: core.c|| undefined reference to
eglGetProcAddress'| /usr/bin/ld: core.c|| undefined reference to
eglGetProcAddress'|/usr/bin/ld: core.c|| undefined reference to
glGetFloatv'| /usr/bin/ld: core.c|| undefined reference to
glDepthFunc'|/usr/bin/ld: core.c|| undefined reference to
glDisable'| /usr/bin/ld: core.c|| undefined reference to
glBlendFunc'|/usr/bin/ld: core.c|| undefined reference to
glEnable'| /usr/bin/ld: core.c|| undefined reference to
glCullFace'|/usr/bin/ld: core.c|| undefined reference to
glFrontFace'| /usr/bin/ld: core.c|| undefined reference to
glEnable'|||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build failed: 50 error(s), 0 warning(s) (0 minute(s), 1 second(s)) ===|
Beta Was this translation helpful? Give feedback.
All reactions