Bug 699833

Summary: Build errors on 1.13.0
Product: MuPDF Reporter: kim.brandwijk
Component: mupdfAssignee: MuPDF bugs <mupdf-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: kim.brandwijk, tor.andersson
Priority: P4    
Version: unspecified   
Hardware: PC   
OS: MacOS X   
Customer: Word Size: ---

Description kim.brandwijk 2018-09-30 13:31:29 UTC
When trying to build, I get the following errors:

CC build/release/platform/gl/gl-main.o
platform/gl/gl-main.c:1677:2: warning: implicit declaration of function
      'glutSetOption' is invalid in C99 [-Wimplicit-function-declaration]
        glutSetOption(GLUT_ACTION_ON_WINDOW_CLOSE, GLUT_ACTION_GLUTMAINL...
        ^
platform/gl/gl-main.c:1677:16: error: use of undeclared identifier
      'GLUT_ACTION_ON_WINDOW_CLOSE'
        glutSetOption(GLUT_ACTION_ON_WINDOW_CLOSE, GLUT_ACTION_GLUTMAINL...
                      ^
platform/gl/gl-main.c:1677:45: error: use of undeclared identifier
      'GLUT_ACTION_GLUTMAINLOOP_RETURNS'
        glutSetOption(GLUT_ACTION_ON_WINDOW_CLOSE, GLUT_ACTION_GLUTMAINL...
Comment 1 Tor Andersson 2018-11-07 14:17:15 UTC
Fixed with the following commit.

Running still fails, but that is 

commit 9b2d839034a958a18864eee81dbd257f9b86d71e
Author: Tor Andersson <tor.andersson@artifex.com>
Date:   Thu Sep 6 11:34:08 2018 +0200

    gl: ifdef freeglut specific API calls so it will build on MacOS.

*** This bug has been marked as a duplicate of bug 699726 ***