Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSX - CGAL/Triangulation_euclidean_traits_xy_3.h #9

Closed
johndpope opened this issue Dec 1, 2016 · 2 comments
Closed

OSX - CGAL/Triangulation_euclidean_traits_xy_3.h #9

johndpope opened this issue Dec 1, 2016 · 2 comments

Comments

@johndpope
Copy link

brew install cartr/qt4/qt
brew link qt
brew install cgal
//using cgal-4.9

make

mkdir -p build
cd build && cmake .. && /Applications/Xcode-beta.app/Contents/Developer/usr/bin/make
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/johndpope/Documents/gitWorkspace/pixelstruct/build
[ 6%] Building CXX object src/CMakeFiles/pixelstruct.dir/main.cpp.o
clang: warning: optimization flag '-frounding-math' is not supported
In file included from /Users/johndpope/Documents/gitWorkspace/pixelstruct/src/main.cpp:18:
In file included from /Users/johndpope/Documents/gitWorkspace/pixelstruct/src/mainwindow.h:23:
In file included from /Users/johndpope/Documents/gitWorkspace/pixelstruct/src/glwidget.h:24:
/Users/johndpope/Documents/gitWorkspace/pixelstruct/src/triangulation.h:26:10: fatal error: 'CGAL/Triangulation_euclidean_traits_xy_3.h' file not found
#include <CGAL/Triangulation_euclidean_traits_xy_3.h>
^
1 error generated.
make[3]: *** [src/CMakeFiles/pixelstruct.dir/main.cpp.o] Error 1
make[2]: *** [src/CMakeFiles/pixelstruct.dir/all] Error 2
make[1]: *** [all] Error 2
make: *** [all] Error 2

@johndpope
Copy link
Author

Triangulation.h

#include <CGAL/Triangulation_euclidean_traits_xy_3.h>
should now be
#include <CGAL/Projection_traits_xy_3.h>

but then I get -
Users/johndpope/Documents/gitWorkspace/pixelstruct/src/glwidget.cpp:122:5: error: use of undeclared identifier 'gluPerspective'
gluPerspective(60.0, (double)width/height, 1e-20, 1e5);
^
/Users/johndpope/Documents/gitWorkspace/pixelstruct/src/glwidget.cpp:222:9: error: use of undeclared identifier 'gluLookAt'
gluLookAt(cx,cy,cz, cx+dx,cy+dy,cz+dz, ux,uy,uz);
^
/Users/johndpope/Documents/gitWorkspace/pixelstruct/src/glwidget.cpp:295:36: error: use of undeclared identifier 'gluErrorString'
<< errCode << ": " << gluErrorString(errCode) << endl;
^
3 errors generated.

@johndpope
Copy link
Author

fixes this problem #10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant