Cannot compile qtango under OSX

Hi there,
I tried to compile qtango-5.3.9 under OSX - Yosemite. Qt packages were installed via macports, while omni, zmq, qwt and tango were compiled on the same machine.
Below the errors generated by the compiler:


In file included from tappinfo.cpp:1:
./tappinfo.h:9:69: error: unknown type name 'pid_t'
    TAppInfo(const QString& appName, const QStringList& args, const pid_t pid);
                                                                    ^
./tappinfo.h:13:5: error: unknown type name 'pid_t'
    pid_t pid;
    ^
tappinfo.cpp:3:75: error: unknown type name 'pid_t'
  …QString& appN, const QStringList& appArgs, const pid_t appPid)

Any suggestions on how to solve the error?
Thank you in advance
On my linux box
man getpid
tells me <sys/types.h> holds this definition.
Maybe that include is missing? Try grepping your include folder for pid_t.

If nothing else helps you can also try to typedef it yourself as according to [1] pid_t is often just an int.

[1]: http://www.delorie.com/gnu/docs/glibc/libc_566.html
my patches


compile zeromq 3.2.5
compile omniorb 4.1.7
mkdir build; cd build
../configure –build=x86_64-apple-darwin14.0.0 –host=x86_64-apple-darwin14.0.0

compile pkg-congig 0.28 ./configure –with-internal-glib
jni.h is in /Application/Xcode
JNI_INCLUDE_DIRS=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs//MacOSX10.10.sdk/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers/


../configure –disable-jpegmmx –enable-dbserver=no –enable-java=false –build=x86_64-apple-darwin14.0.0 –host=x86_64-apple-darwin14.0.0

patch1
lib/cpp/client/lockedthread.h line 70
_LIBCPP_INLINE_VISIBILITY bool operator()(const _T1& __x, const _T1& __y) const {return __x < __y;}
bool operator<(const LockedDevice &arg) const {return validity < arg.validity;}

patch2
lib/cpp/server/device.cpp:850:9: error: calling a private
constructor of class 'std::__1::__wrap_iter<Tango::PollObj **>'
//return (vector<PollObj *>::iterator)NULL;

patch3
#include vector

patch3
DbDatum value_type should be public
 
Register or login to create to post a reply.