Giter Site home page Giter Site logo

Comments (2)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 25, 2024
fixed.

Original comment by [email protected] on 4 Apr 2012 at 1:20

  • Changed state: Fixed

from poly2tri.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 25, 2024
I am getting problem with ./waf build


Waf: Entering directory `/home/divya/Downloads/poly2tri-26242d0aa7b8/build'
  building
[1/7] cxx: testbed/main.cc -> build/testbed/main.cc.0.o
../testbed/main.cc: In function ‘void Init()’:
../testbed/main.cc:234:69: error: ‘GLFW_WINDOW’ was not declared in this 
scope
   if (glfwOpenWindow(window_width, window_height, 5, 6, 5, 0, 0, 0, GLFW_WINDOW) != GL_TRUE)
                                                                     ^
../testbed/main.cc:234:80: error: ‘glfwOpenWindow’ was not declared in this 
scope
   if (glfwOpenWindow(window_width, window_height, 5, 6, 5, 0, 0, 0, GLFW_WINDOW) != GL_TRUE)
                                                                                ^
../testbed/main.cc:237:38: error: cannot convert ‘const char*’ to 
‘GLFWwindow*’ for argument ‘1’ to ‘void 
glfwSetWindowTitle(GLFWwindow*, const char*)’
   glfwSetWindowTitle("Poly2Tri - C++");
                                      ^
../testbed/main.cc: In function ‘void MainLoop(double)’:
../testbed/main.cc:267:27: error: ‘GLFW_KEY_ESC’ was not declared in this 
scope
     running = !glfwGetKey(GLFW_KEY_ESC) && glfwGetWindowParam(GLFW_OPENED);
                           ^
../testbed/main.cc:267:63: error: ‘GLFW_OPENED’ was not declared in this 
scope
     running = !glfwGetKey(GLFW_KEY_ESC) && glfwGetWindowParam(GLFW_OPENED);
                                                               ^
../testbed/main.cc:267:74: error: ‘glfwGetWindowParam’ was not declared in 
this scope
     running = !glfwGetKey(GLFW_KEY_ESC) && glfwGetWindowParam(GLFW_OPENED);
                                                                          ^
../testbed/main.cc:269:33: error: invalid conversion from ‘int’ to 
‘GLFWwindow*’ [-fpermissive]
     if (glfwGetKey(GLFW_KEY_LEFT) == GLFW_PRESS)
                                 ^
../testbed/main.cc:269:33: error: too few arguments to function ‘int 
glfwGetKey(GLFWwindow*, int)’
In file included from ../testbed/main.cc:33:0:
/home/divya/Downloads/glfw-3.1.1/include/GLFW/glfw3.h:2474:13: note: declared 
here
 GLFWAPI int glfwGetKey(GLFWwindow* window, int key);
             ^
../testbed/main.cc:271:34: error: invalid conversion from ‘int’ to 
‘GLFWwindow*’ [-fpermissive]
     if (glfwGetKey(GLFW_KEY_RIGHT) == GLFW_PRESS)
                                  ^
../testbed/main.cc:271:34: error: too few arguments to function ‘int 
glfwGetKey(GLFWwindow*, int)’
In file included from ../testbed/main.cc:33:0:
/home/divya/Downloads/glfw-3.1.1/include/GLFW/glfw3.h:2474:13: note: declared 
here
 GLFWAPI int glfwGetKey(GLFWwindow* window, int key);
             ^
../testbed/main.cc:284:21: error: too few arguments to function ‘void 
glfwSwapBuffers(GLFWwindow*)’
     glfwSwapBuffers();
                     ^
In file included from ../testbed/main.cc:33:0:
/home/divya/Downloads/glfw-3.1.1/include/GLFW/glfw3.h:3204:14: note: declared 
here
 GLFWAPI void glfwSwapBuffers(GLFWwindow* window);
              ^
Waf: Leaving directory `/home/divya/Downloads/poly2tri-26242d0aa7b8/build'
Build failed
 -> task failed (exit status 1): 
    {task 140065272976144: cxx main.cc -> main.cc.0.o}
['/usr/bin/g++', '-O3', '-ffast-math', '-DP2T', '../testbed/main.cc', '-c', 
'-o', 'testbed/main.cc.0.o']




how to tackle this. Please help

Original comment by [email protected] on 24 Jun 2015 at 12:45

from poly2tri.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.