Page 1 of 1

compiling on haiku help?

PostPosted: Fri Mar 09, 2012 10:02 pm
by khallebal
hi all
thanks for the great app,
i'm trying to compile the latest source with
Qt-4.8.0 on haiku,i 'm getting an error msg,so i hope i can get some help
here,i really would want to get it running on haiku.
the error msg is:
In file included from mainwindow.hh:24:0,
from main.cc:7:
hotkeywrapper.hh:84:36: error: 'XPointer' has not been declared
hotkeywrapper.hh:84:46: error: 'XRecordInterceptData' has not been declared
hotkeywrapper.hh:87:27: error: 'XRecordInterceptData' has not been declared
hotkeywrapper.hh:92:3: error: 'KeyCode' does not name a type
hotkeywrapper.hh:97:3: error: 'Display' does not name a type
hotkeywrapper.hh:98:3: error: 'XRecordRange' does not name a type
hotkeywrapper.hh:99:3: error: 'XRecordContext' does not name a type
hotkeywrapper.hh:100:3: error: 'XRecordClientSpec' does not name a type
make: *** [build/main.o] Error 1
~/Desktop/goldendict>
i'm i missing some #include,if so wich one? or does it need a special
"haiku" #define to be built?
thanks for reading this.

greetings.

Re: compiling on haiku help?

PostPosted: Mon Mar 12, 2012 9:14 pm
by khallebal
anyone???

Re: compiling on haiku help?

PostPosted: Tue Mar 13, 2012 2:37 am
by ikm
No one really knows a lot about haiku here, sorry. If it doesn't use any X server, then you'd have to comment out everything X11-specific (i.e. contents of hotkeywrapper).

Re: compiling on haiku help?

PostPosted: Wed Mar 14, 2012 11:02 pm
by khallebal
hello
thanks for replying
i actualy got a little further,but now i'm having this error i think i need an #include but i don't know wich one,i hope to get an answer from you.
here is the error:

processwrapper.cc: In static member function 'static unsigned int ProcessWrapper::currentProcessId()':
processwrapper.cc:102:19: error: 'getpid' was not declared in this scope
processwrapper.cc:103:1: warning: control reaches end of non-void function [-Wreturn-type]
make: *** [build/processwrapper.o] Error 1
~/Desktop/goldendict-goldendict-c81e6ca>
thanks.

Re: compiling on haiku help?

PostPosted: Thu Mar 15, 2012 1:34 am
by ikm
Code: Select all
       #include <sys/types.h>
       #include <unistd.h>

man getpid

Re: compiling on haiku help?

PostPosted: Fri Mar 16, 2012 9:30 pm
by khallebal
just a quick thanks msg for helping out,but unfortunatly it's still not running on haiku yet(other errors) but i won't bother you anymore.

greetings.