Compiling the source code

Newbe
Posts: 11
Joined: Fri Nov 27, 2009 10:29 am

Compiling the source code

Post by Newbe »

Hello,
I'm trying to compile the client on my own but aren't able to...

I'm getting this error:

Code: Select all

Could NOT find PCRE (missing: PCRE_LIBRARIES)
although I have pcre installed on my system :

Code: Select all

rpm -qe pcre
pcre-7.8-3.fc12.x86_64
Any idea where I could find needed libraries?

thx in advance!

User avatar
Heiko
Site Admin
Posts: 1548
Joined: Wed Mar 11, 2009 6:26 pm

Re: Trying to compile.

Post by Heiko »

You also need the developer package of PCRE that includes the header source files. If you can't get it, download the latest pcre source package and compile & install this yourself.

Newbe
Posts: 11
Joined: Fri Nov 27, 2009 10:29 am

Re: Trying to compile.

Post by Newbe »

I installed 2 more packages :

Code: Select all

rpm -qa | grep pcre
pcre-static-7.8-3.fc12.x86_64
pcre-7.8-3.fc12.x86_64
pcre-devel-7.8-3.fc12.x86_64
Still no success in compiling.
Can you take a look at this list of packages and tell me which could contain needed headers? :

Code: Select all

gambas2-gb-pcre.x86_64 : Gambas2 component package for pcre
lua-rex.x86_64 : Regular expression handling library for Lua
ocaml-pcre.x86_64 : Perl compatibility regular expressions (PCRE) for OCaml
ocaml-pcre-devel.i686 : Development files for ocaml-pcre
ocaml-pcre-devel.x86_64 : Development files for ocaml-pcre
opensips-regex.x86_64 : RegExp via PCRE library

User avatar
Heiko
Site Admin
Posts: 1548
Joined: Wed Mar 11, 2009 6:26 pm

Re: Trying to compile.

Post by Heiko »

Well, I haven't used Red Hat in many years and I'm on Debian myself so I can't comment on the packets that you need. pcre-devel-7.8-3.fc12.x86_64 looks + the regular pcre packet (you need both of course) look good to me. Ignore the rest of the packages on your list.
Why does cmake fail? Post the complete cmake output.

Newbe
Posts: 11
Joined: Fri Nov 27, 2009 10:29 am

Re: Trying to compile.

Post by Newbe »

there :

Code: Select all

CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:57 (MESSAGE):
  Could NOT find PCRE (missing: PCRE_LIBRARIES)
Call Stack (most recent call first):
  cmake/FindPCRE.cmake:76 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  src/CMakeLists.txt:136 (FIND_PACKAGE)

User avatar
Heiko
Site Admin
Posts: 1548
Joined: Wed Mar 11, 2009 6:26 pm

Re: Trying to compile.

Post by Heiko »

Cmake cannot find your pcre libs. Try the command ldconfig as root to update your dll database.

Newbe
Posts: 11
Joined: Fri Nov 27, 2009 10:29 am

Re: Trying to compile.

Post by Newbe »

Didn't work...

Code: Select all

$ locate libpcre
/lib64/libpcre.so.0
/lib64/libpcre.so.0.0.1
/usr/lib64/libpcrecpp.so.0
/usr/lib64/libpcrecpp.so.0.0.0
/usr/lib64/libpcreposix.so.0
/usr/lib64/libpcreposix.so.0.0.0
What libs are missing?

User avatar
Heiko
Site Admin
Posts: 1548
Joined: Wed Mar 11, 2009 6:26 pm

Re: Trying to compile.

Post by Heiko »

ok try making a link /usr/lib/libpcre.so to /lib64/libpcre.so.0 and run ldconfig

EDIT: The second alternative is to use qmake instead of cmake. This is more configurable for you.
cd mudlet/src
qmake
post output of qmake if this fails
otherwise make to compile

Newbe
Posts: 11
Joined: Fri Nov 27, 2009 10:29 am

Re: Trying to compile.

Post by Newbe »

qmake-qt4 didn't give me any errors, but make did...

Code: Select all

In file included from src/Host.h:34,
                 from src/ActionUnit.cpp:30:
src/ctelnet.h:27:24: error: QHostAddress: Nie ma takiego pliku ani katalogu
src/ctelnet.h:28:22: error: QTcpSocket: Nie ma takiego pliku ani katalogu
src/ctelnet.h:29:21: error: QHostInfo: Nie ma takiego pliku ani katalogu
In file included from src/Host.h:34,
                 from src/ActionUnit.cpp:30:
src/ctelnet.h:99: error: ‘QHostInfo’ has not been declared
src/ctelnet.h:125: error: ‘QTcpSocket’ does not name a type
src/ctelnet.h:126: error: ‘QHostAddress’ does not name a type
src/ActionUnit.cpp: In member function ‘void ActionUnit::addActionRootNode(TAction*, int, int)’:
src/ActionUnit.cpp:46: warning: comparison between signed and unsigned integer expressions
In file included from src/TTrigger.h:35,
                 from src/TriggerUnit.h:24,
                 from src/Host.h:35,
                 from src/ActionUnit.cpp:30:
src/Tree.h: In member function ‘void Tree<T>::addChild(T*, int, int) [with T = TAction]’:
src/ActionUnit.cpp:90:   instantiated from here
src/Tree.h:224: warning: comparison between signed and unsigned integer expressions
make: *** [ActionUnit.o] Błąd 1

I'm not sure if I made it correctly, I typed:
qmake-qt -project
qmake-qt -makefile

User avatar
Heiko
Site Admin
Posts: 1548
Joined: Wed Mar 11, 2009 6:26 pm

Re: Trying to compile.

Post by Heiko »

Your commands deleted the correct project files :-) You need to copy the original mudlet/src/src.pro to mudlet/src again to continue and type "qmake-qt4" again.

You need to install the qt-4 development packet to get the qt headers.

Post Reply