We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3282

Summary: How to configure SDL for native client
Product: SDL Reporter: George Varghese <georgooty>
Component: buildAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED ABANDONED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: aaron
Version: 2.0.4   
Hardware: x86_64   
OS: Linux   

Description George Varghese 2016-03-02 13:19:15 UTC
Hi,

I am trying to build the SDL code for nacl in my ubuntu system.
Please note that I am using pepper version is 47.

I refered the below link,
https://hg.libsdl.org/SDL/file/ae720d61d14d/README-nacl.txt#l16

I got the below error,

gk@ubuntu:~/Desktop/gk/SDL-e12c38730512$ ./configure –host=pnacl
checking build system type… i686-pc-linux-gnu
checking host system type… le32-unknown-pnacl
checking how to print strings… printf
checking for pnacl-gcc… /home/gk/Desktop/gk/nacl_sdk/pepper_47//toolchain/linux_pnacl/bin/pnacl-clang
checking whether the C compiler works… no
configure: error: in /home/gk/Desktop/gk/SDL-e12c38730512':
configure: error: C compiler cannot create executables
See config.log’ for more details

If you know about this, please help me for resolving this error.

Regards,
George
Comment 1 grendel 2016-05-26 00:01:02 UTC
SDL 2.04 comes with a script build-scripts/naclbuild.sh. This script successfully builds SDL for pepper_49; however, the script then fails to build testgles2.c. The reported errors are:

Building test
make -C /home/amichaux/Library/nacl_sdk/pepper_49/src/ppapi_simple STAMPDIR=/tmp/amichaux-build/pnacl/SDL2-2.0.4/build/nacl/test/pnacl/Release /tmp/amichaux-build/pnacl/SDL2-2.0.4/build/nacl/test/pnacl/Release/ppapi_simple.stamp 
make -C /home/amichaux/Library/nacl_sdk/pepper_49/src/nacl_io STAMPDIR=/tmp/amichaux-build/pnacl/SDL2-2.0.4/build/nacl/test/pnacl/Release /tmp/amichaux-build/pnacl/SDL2-2.0.4/build/nacl/test/pnacl/Release/nacl_io.stamp 
  CC   pnacl/Release/testgles2.o
In file included from /tmp/amichaux-build/pnacl/SDL2-2.0.4/test/testgles2.c:66:
/tmp/amichaux-build/pnacl/SDL2-2.0.4/test/../src/render/opengles2/SDL_gles2funcs.h:56:1: error: incompatible pointer types assigning to 'void (*)(GLuint, GLsizei, const GLchar *const *, const GLint *)' from 'void (GLuint, GLsizei, const GLchar **, const GLint *)'
      [-Werror,-Wincompatible-pointer-types]
SDL_PROC(void, glShaderSource, (GLuint, GLsizei, const GLchar* const*, const GLint *))
^              ~~~~~~~~~~~~~~
/tmp/amichaux-build/pnacl/SDL2-2.0.4/test/testgles2.c:55:45: note: expanded from macro 'SDL_PROC'
#define SDL_PROC(ret,func,params) data->func=func;
Comment 2 Ryan C. Gordon 2018-08-06 21:20:21 UTC
Hello, and sorry if you're getting dozens of copies of this message by email.

We are closing out bugs that appear to be abandoned in some form. This can happen for lots of reasons: we couldn't reproduce it, conversation faded out, the bug was noted as fixed in a comment but we forgot to mark it resolved, the report is good but the fix is impractical, we fixed it a long time ago without realizing there was an associated report, etc.

Individually, any of these bugs might have a better resolution (such as WONTFIX or WORKSFORME or INVALID) but we've added a new resolution of ABANDONED to make this easily searchable and make it clear that it's not necessarily unreasonable to revive a given bug report.

So if this bug is still a going concern and you feel it should still be open: please feel free to reopen it! But unless you respond, we'd like to consider these bugs closed, as many of them are several years old and overwhelming our ability to prioritize recent issues.

(please note that hundred of bug reports were sorted through here, so we apologize for any human error. Just reopen the bug in that case!)

Thanks,
--ryan.