Bug 699833 - Build errors on 1.13.0
Summary: Build errors on 1.13.0
Status: RESOLVED DUPLICATE of bug 699726
Alias: None
Product: MuPDF
Classification: Unclassified
Component: mupdf (show other bugs)
Version: unspecified
Hardware: PC MacOS X
: P4 normal
Assignee: MuPDF bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-30 13:31 UTC by kim.brandwijk
Modified: 2018-11-07 14:17 UTC (History)
2 users (show)

See Also:
Customer:
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***