Fails to compile under Debian squeeze

Support for running, installing or compiling OpenMW
User avatar
Site Admin
Posts: 1193
Joined: 05 Aug 2011, 22:21
Location: Wroclaw, Poland

Fails to compile under Debian squeeze

Post by lgromanowski » 15 Aug 2011, 13:13

Apopcalyptic wrote: Morning all,

I'm having compilation issues under a fully up to date build of Debian Squeeze. After sorting all the dependencies, CMake ran beautifully (OGRE was my first experience of CMake, I like :p). After running make, it dumps out at 47%, complaining about uuid.h...

Code: Select all

[ 47%]Building CXX object extern/mygui_3.0.1/MyGUIEngine/CMakeFiles/MyGUIEngine.dir/src/Mygui_Guid.cpp.o
/home/marcus/Downloads/openmw-0.08/extern/mygui_3.0.1/MyGUIEngine/src/MyGUI_Guid.cpp:26:23: error: uuid/uuid.h: No such file or directory
/home/marcus/Downloads/openmw-0.08/extern/mygui_3.0.1/MyGUIEngine/src/MyGUI_Guid.cpp: In static member function 'static MyGui::Guid MyGUI::Guid::generate()':
/home/marcus/Downloads/openmw-0.08/extern/mygui_3.0.1/MyGUIEngine/src/MyGUI_Guid.cpp:172: error: 'uuid_generate' was not declared in this scope
make[2]: *** [extern/mygui_3.0.1/MyGUIEngine/CMakeFiles/MyGUIEngine.dir/src/MyGUI_Guid.cpp.o] Error 1
make[1]: *** [extern/mygui_3.0.1/MyGUIEngine/CMakeFiles/MyGUIEngine.dir/all] Error 2
make: ***[all] Error 2
That's handtyped (my terminal emulator apparently doesn't support copying?!), so if there's any queries over accuracy, let me know :p

My initial instinct was to 'updatedb' and 'locate uuid.h' - I found a uuid.hpp in the boost libraries, which I symlinked to uuid.h to see if made any difference. None :(

Can anyone shed some light please? Is this me missing a header file, or some syntactic error somewhere?

Cheers, Apop

/edit - If it makes any difference, the machine is a PowerPC...
heilkitty wrote: Install dev package for uuid (it's called uuid-dev or something).
Such things'd better be handled on the configure/cmake stage.
Apopcalyptic wrote: I thought it would be something simple, but as you say, CMake should have picked up on it.

Many thanks,

best regards,