Closed GoogleCodeExporter closed 9 years ago
fixed.
Original comment by mason.gr...@gmail.com
on 4 Apr 2012 at 1:20
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 f2012...@hyderabad.bits-pilani.ac.in
on 24 Jun 2015 at 12:45
Original issue reported on code.google.com by
stevenlu...@gmail.com
on 12 Feb 2012 at 7:47