Hi,

When I checkout repo from svn or git and launch 'build.sh m' I get:

/win3/workspace/hydrogen_git/src/core/src/IO/disk_writer_driver.cpp: In function 'void* H2Core::diskWriterDriver_thread(void*)':

/win3/workspace/hydrogen_git/src/core/src/IO/disk_writer_driver.cpp:175:68: error: 'sleep' was not declared in this scope

and

/win3/workspace/hydrogen_git/src/tests/xml.cpp: In function 'void spec(bool, const char*)':

/win3/workspace/hydrogen_git/src/tests/xml.cpp:17:18: error: 'sleep' was not declared in this scope


I found out that it is function from unistd.h. Am I right? So I've added it to "hydrogen/object.h" and it compiled successfully.

I'm wondering why did that error happen? Maybe because I'm using Arch Linux which is a bit experimental distro?

In attachments I've put output of cmake init and diff of hydrogen/object.h.
--
Regards,
pi03k

 * cmake init

-- The C compiler identification is GNU 4.7.1
-- The CXX compiler identification is GNU 4.7.1
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found ZLIB: /usr/lib/libz.so (found version "1.2.7") 
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found.
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Checking SSCANF useability - TRUE
-- Checking RTCLOCK useability - TRUE
-- Looking for include file sys/types.h
-- Looking for include file sys/types.h - found
-- Looking for include file sys/stat.h
-- Looking for include file sys/stat.h - found
-- Looking for include file libtar.h
-- Looking for include file libtar.h - found
-- Looking for tar_open in tar
-- Looking for tar_open in tar - found
-- Looking for tar_close in tar
-- Looking for tar_close in tar - found
-- Looking for tar_extract_all in tar
-- Looking for tar_extract_all in tar - found
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.26") 
-- checking for module 'tar'
--   package 'tar' not found
-- Found LIBTAR: /usr/lib/libtar.a  
-- checking for module 'archive'
--   package 'archive' not found
-- Found LIBARCHIVE: /usr/lib/libarchive.so  
-- checking for module 'sndfile'
--   found sndfile, version 1.0.25
-- Found LIBSNDFILE: sndfile  
-- checking for module 'alsa'
--   found alsa, version 1.0.25
-- Found ALSA: asound  
-- Checking for module 'LADSPA'
--   6 plugins found.
-- Found LADSPA: 6 plugins found  
-- checking for module 'oss'
--   package 'oss' not found
-- Could NOT find OSS (missing:  OSS_LIBRARIES) 
-- checking for module 'jack'
--   found jack, version 0.121.3
-- Found JACK: jack;pthread;rt  
-- checking for module 'jack'
--   found jack, version 0.121.3
-- Found JACKSESSION: jack;pthread;rt  
-- checking for module 'portaudio-2.0'
--   found portaudio-2.0, version 19
-- Found PORTAUDIO: portaudio;asound;m;pthread  
-- checking for module 'portmidi'
--   package 'portmidi' not found
-- Found PORTMIDI: /usr/lib/libportmidi.so  
-- checking for module 'lash-1.0'
--   found lash-1.0, version 0.6.0
-- Found LASH: lash;dbus-1;uuid;xml2;asound  
-- checking for module 'lrdf'
--   found lrdf, version 0.5.0
-- Found LRDF: lrdf  
-- checking for module 'rubberband'
--   found rubberband, version 1.4.0
-- Found RUBBERBAND: rubberband  
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Found Qt4: /usr/bin/qmake (found suitable version "4.8.2", required is "4.3.0") 
-- Found Doxygen: /usr/bin/doxygen (found version "1.8.1.1") 
Installation Summary
--------------------
* Install Directory            : /usr/local
* User data path               : .hydrogen/data
* System data path             : /usr/local/share/hydrogen/data
* core library build as        : SHARED
* debug capabilities           : TRUE
* macosx bundle                : FALSE

Main librarires
* libQt                        : 4.8.2
* libsndfile                   : + used 1.0.25 ( sndfile )
*                                libsndfile supports FLAC and OGG sound file formats
* libtar                       : ? available but not desired  ( /usr/lib/libtar.a )
* libarchive                   : + used  ( /usr/lib/libarchive.so )
* ladspa                       : + used  ( 6 plugins found )

Supported audio interfaces
--------------------------
* ALSA                         : + used 1.0.25 ( asound )
* OSS                          : -- not found but desired ...
* JACK                         : + used 0.121.3 ( jack;pthread;rt )
* JACKSESSION                  : + used 0.121.3 ( jack;pthread;rt )
* CoreAudio                    : -- not found but desired ...
* CoreMidi                     : -- not found but desired ...
* PortAudio                    : + used 19 ( portaudio;asound;m;pthread )
* PortMidi                     : + used  ( /usr/lib/libportmidi.so )

Usefull extensions
-----------------------------------------
* LASH                         : ? available but not desired 0.6.0 ( lash;dbus-1;uuid;xml2;asound )
* LRDF                         : + used 0.5.0 ( lrdf )
* RUBBERBAND                   : + used 1.4.0 ( rubberband )
*                                The use of librubberband2 is marked as experimental.
*                                Because the current implementation produce wrong timing!
*                                So long this bug isn't solved, please disable this option.
*                                If rubberband-cli is installed, the hydrogen rubberband-fuction
*                                will work properly as expected.

Miscellaneous capabilities
-----------------------------------------
* realtime clock               : TRUE
* working sscanf               : TRUE

diff --git a/src/core/include/hydrogen/object.h b/src/core/include/hydrogen/object.h
index d8d61e5..bbcb4cd 100644
--- a/src/core/include/hydrogen/object.h
+++ b/src/core/include/hydrogen/object.h
@@ -29,6 +29,7 @@
 
 #include <iostream>
 #include <QtCore>
+#include <unistd.h>
 
 namespace H2Core {
 

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Hydrogen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hydrogen-devel

Reply via email to