michalbrath / poly2tri

Automatically exported from code.google.com/p/poly2tri
Other
0 stars 0 forks source link

Installer on C++ version #41

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install with waf script on ubuntu 11.10

steven@steven-desktop(Feb 12 14:43:08)[~/Documents/poly2tri]
$ ./waf 
  set_options
Waf: Entering directory `/home/steven/Documents/poly2tri/build'
  building
[1/7] cxx: poly2tri/common/shapes.cc -> build/poly2tri/common/shapes.cc.0.o
[2/7] cxx: poly2tri/sweep/cdt.cc -> build/poly2tri/sweep/cdt.cc.0.o
[3/7] cxx: poly2tri/sweep/advancing_front.cc -> 
build/poly2tri/sweep/advancing_front.cc.0.o
[4/7] cxx: poly2tri/sweep/sweep_context.cc -> 
build/poly2tri/sweep/sweep_context.cc.0.o
[5/7] cxx: poly2tri/sweep/sweep.cc -> build/poly2tri/sweep/sweep.cc.0.o
[6/7] cxx: testbed/main.cc -> build/testbed/main.cc.0.o
../testbed/main.cc:42:25: fatal error: test_shapes.h: No such file or directory
compilation terminated.
Waf: Leaving directory `/home/steven/Documents/poly2tri/build'
Build failed
 -> task failed (exit status 1): 
    {task 163708044: cxx main.cc -> main.cc.0.o}
['/usr/bin/g++', '-O3', '-ffast-math', '-DP2T', '../testbed/main.cc', '-c', 
'-o', 'testbed/main.cc.0.o']

It appears that test_shapes.h has been removed but main.cc still references it. 

Original issue reported on code.google.com by stevenlu...@gmail.com on 12 Feb 2012 at 7:47

GoogleCodeExporter commented 9 years ago
fixed.

Original comment by mason.gr...@gmail.com on 4 Apr 2012 at 1:20

GoogleCodeExporter commented 9 years ago
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