Can't compile client

Added by luther about 8 years ago

I'm trying to compile the client so I can connect to the shard. I'm following the instructions on BuildForLinuxCmake. Here's my system info:

Ubuntu 10.04 amd64
Using the Mercurial repository
I had to install libwww-dev from source.

Here's the error message:

luther@hrimfaxi:~/src/ryzom/code/ryzom/build$ cmake .. -DWITH_SERVER:BOOL=OFF -DWITH_TOOLS:BOOL=OFF
-- Warning: Unable to find LibWWW!
-- DEBUG size_t is 8
-- DEBUG off_t is 8
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
LIBWWWSSL_LIBRARY
    linked by target "client" in directory /home/luther/src/ryzom/code/ryzom/client/src
LIBWWWZIP_LIBRARY
    linked by target "client" in directory /home/luther/src/ryzom/code/ryzom/client/src

-- Configuring incomplete, errors occurred!

I don't know what other information might be useful, so feel free to ask me anything you need to know.


Replies (8)

RE: Can't compile client - Added by kervala about 8 years ago

CMake is trying to find libwww in standard installation paths, where did you install libwww ?

RE: Can't compile client - Added by Krolock about 8 years ago

I had the same problem on openSUSE.

The PATH_SUFFIXES in FindLibwww'.cmake didn´t work somehow. My libwww dir was /usr/include/w3c-libwww. Manually adding this line fixed the problem.

Perhaps anybody has a more convenient solution.

RE: Can't compile client - Added by kervala about 8 years ago

Is libwww listed in pkg-config ?

RE: Can't compile client - Added by luther about 8 years ago

I didn't choose an installation path for libwww, but it appears to be in /usr/local/lib and /usr/local/include/w3c-libwww. I tried Krolock's solution, but it didn't change anything. The command 'pkg-config libwww' shows no output.

I looked at the FIND_WWW_LIBRARY lines in FindLibwww.cmake. wwwssl and wwwzip are the only libraries missing from /usr/local/lib. Coincidentally, these are the only ones that show up in the error message. /usr/local/include/w3c-libwww does include all the listed www header files. So, I guess I need some way to fix my libwww installation.

RE: Can't compile client - Added by Krolock about 8 years ago

As a workarround you have to manually add your include and lib pathes. Add /usr/local/include/w3c-libwww to the include search pathes and it should work. Same procedure for lib path.
The cmake module has a PATH_SUFFIX w3c-libwww, so this subfolder should be added anyway, but i doesn't work. But I don't know why.

RE: Can't compile client - Added by Valombre about 8 years ago

Hi,
same problem here compiling on lubuntu 10.04 i386 (in virtualbox) with the libwww deb from karmic.
In fact the .so is missing you have to create the symbolic link manualy :

sudo ln -s /usr/lib/libwwwssl.so.0.1.0 /usr/lib/libwwwssl.so

Worked for me no more error on cmake.

RE: Can't compile client - Added by kervala about 8 years ago

It should be fixed now, I removed unneeded libs :)

RE: Can't compile client - Added by koenigvonde over 7 years ago

the Problem with libwww I had fixed !

but there is also an prob with libregex but i think it is only needed for win (or i'm wrong?)

After Build i had always the Problem i described above :(

sry for my bad english, but i'm out of Training ^^

Edit: Wrong Thread ^^

(1-8/8)