-
Notifications
You must be signed in to change notification settings - Fork 508
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
Linux and GLFW fixes #5
base: master
Are you sure you want to change the base?
Conversation
a938dd1
to
7ef3ae7
Compare
Thanks for the fix! |
Would be good to merge this at some point... I just repeated all those fixes in my local clone :-( |
This branch fixes the build process for me on Debian testing/buster, gcc 8.2.0. @johnkslang @grahamsellers, can you take a look and merge this? |
It seems most of the changes are to port from C++ to C? |
Well, since that source file is 99% C, and it uses |
I have some problem with 12 particle sim. how to compile it? It is buggy. look at 113 . It is a macro but not closed the paren. and inclusive function not closed. |
Hi @elmindreda I'm having alike issue but I receive this messaje when I execute the next step by steps: Clone the repository [ 10%] Building C object lib/glfw/src/CMakeFiles/glfw.dir/posix_time.c.o
[ 11%] Building C object lib/glfw/src/CMakeFiles/glfw.dir/posix_tls.c.o
[ 12%] Building C object lib/glfw/src/CMakeFiles/glfw.dir/glx_context.c.o
[ 13%] Linking C static library ../../libglfw3.a
[ 13%] Built target glfw But it fails when start to run vermilion, and this is the error message: [ 17%] Building CXX object CMakeFiles/vermilion.dir/lib/vdds.cpp.o
lib/vdds.cpp: In function ‘void vglLoadDDS(const char*, vglImageData*)’:
lib/vdds.cpp:645:1: error: jump to label ‘done_close_file’ [-fpermissive]
done_close_file: Can you help me with some guidance on how to solve vermilion make error? |
@xfry Try adding the
|
On Linux, <sys/time.h> must be included to make struct timeval known. string.h must be included to use memset(). A jump to a label (done_close_file) must not cross local declarations. The corresponding code has been encapsulated in a block. The use of the STRINGIZE macro leads to an error where the compiler sees the #version 430 sequence as an invalid preprocessor directive. Move add_subdirectory(lib/glfw) before examples compile in CmakeList.txt to avoid build dependence error. Reference: jhannemann openglredbook#3 elmindreda openglredbook#5
On Linux, <sys/time.h> must be included to make struct timeval known. string.h must be included to use memset(). A jump to a label (done_close_file) must not cross local declarations. The corresponding code has been encapsulated in a block. The use of the STRINGIZE macro leads to an error where the compiler sees the #version 430 sequence as an invalid preprocessor directive. Move add_subdirectory(lib/glfw) before examples compile in CmakeList.txt to avoid build dependence error. Reference: jhannemann openglredbook#3 elmindreda openglredbook#5
On Linux, <sys/time.h> must be included to make struct timeval known. string.h must be included to use memset(). A jump to a label (done_close_file) must not cross local declarations. The corresponding code has been encapsulated in a block. The use of the STRINGIZE macro leads to an error where the compiler sees the #version 430 sequence as an invalid preprocessor directive. Move add_subdirectory(lib/glfw) before examples compile in CmakeList.txt to avoid build dependence error. Reference: jhannemann openglredbook#3 elmindreda openglredbook#5
I had compilation errors about |
This has four parts:
The changes have been tested on Linux (GCC) and Windows (VS2015).