|Max Reitz deb547283d Updates for dake||3 years ago|
|cmake||5 years ago|
|.gitignore||5 years ago|
|CMakeLists.txt||3 years ago|
|README.md||5 years ago|
|cloud.cpp||5 years ago|
|cloud.hpp||5 years ago|
|kd_tree.cpp||5 years ago|
|kd_tree.hpp||5 years ago|
|main.cpp||5 years ago|
|point.hpp||5 years ago|
|render_output.cpp||5 years ago|
|render_output.hpp||5 years ago|
|rng.cpp||5 years ago|
|rng.hpp||5 years ago|
|shader_sources.cpp||5 years ago|
|shader_sources.hpp||5 years ago|
|window.cpp||5 years ago|
|window.hpp||5 years ago|
I don’t even know. It just was there one day on my hard disk. I don’t know how it got there!
Seriously speaking, it’s my solution for exercise 1 of the SS14 CG2 course of TU Dresden. It is something that deals with point clouds, being representation, nearest-neighbor calculation, normal calculation and registration.
Yay, build instructions! I never wrote such stuff before, but let’s give it a try.
Well, on Linux you just build it. Preferably in a different directory. I’d recommend therefore (supposing you’re in the source directory):
$ mkdir build $ cd build $ cmake .. $ make
And that’s it, there is your cg2p1.
I hope I didn’t forget anything.
Hahaha, this is fun. I did my best to make this work, so good look to you, kind stranger!
Generally, you can try what works. If you get to compile this, you probably did it right. On the other hand, here’s what I do:
$ mkdir build $ cd build $ CMAKE_PREFIX_PATH="/c/QtSDK-x86_64/x86_64-w64-mingw32/" GLEW_DLL_PATH="/c/MinGW/mingw64/mingw64/bin/glew32.dll" cmake -G "Unix Makefiles" .. $ make
I think you can guess what the environment variables are:
CMAKE_PREFIX_PATHis the path to your mingw64 installation of Qt5 (the devel part, i.e. libraries and include)
GLEW_DLL_PATHis the link to a mingw64 GLEW DLL. No, the LIB will not work. Or maybe it will for you. But for me, it doesn’t. That’s why you have to give the path to the DLL (my linker won’t use the DLL unless I give the whole path, it always tries to use the LIB which results in undefined references).
Try to build a GNU environment as much as possible. I have the following:
<thread>support and probably more issues).
Put everything in your PATH, preferable before the Windows folders (so that the GNU tools override the Windows tools (e.g. find and make)).
Thanks and cheers to the chair of computer graphics! I very much enjoyed the hours I spent on Windows. I never thought I could ever again have the chance to. And it feels useless, because I’ll never use the executable built for Windows myself. But thanks anyway! It teaches me a lot about diligence and having to fulfill tasks even though you don’t see the point but your superior forces you to do them anyway.