Skip to forum content

You are not logged in. Please login or register.


forums.pvpgn.pro → [EN] Tech Support → Helpme how to compile svn 1.99 under linux debian

Pages 1

You must login or register to post a reply

RSS topic feed

Posts: 3

1 (edited by GanyoyGen 02.02.2013 09:24)

Topic: Helpme how to compile svn 1.99 under linux debian

Mr. Harpy please tell me how to compile SVN 1.99 with linux debian, I've tried this:

0. [...]# tar xfz cmake-2.6.2.tar.gz
1. [...]# tar xfz pvpgn-199.r577.tar.gz
2. [...]# tar xfz pvpgn-support-1.2.tar.gz
3. [...]# cd cmake-2.6.2
4. [...]# ./bootstrap

then i create folder zlib in "/pvpgn-199.r577/" there zlibwapi.lib zlib.h zconf.h contained

5. [...]# cd ../pvpgn-199.r577/
6. [...]# mkdir build
7. [...]# cd build
8. [...]# cmake -D CMAKE_INSTALL_PREFIX=/cencored/GENX_pvpgn/ -D ZLIB_INCLUDE_DIR=/cencored/pvpgn-199.r577/zlib -D ZLIB_LIBRARY=/cencored/pvpgn-199.r577/zlib/zlibwapi.lib  ../

9. [...]# make

then error like this
[box][ 47%] Built target sha1hash
Linking CXX executable bnetd
CMakeFiles/bnetd.dir/anongame_infos.o: In function `pvpgn::bnetd::zlib_compress(void const*, int, char**, int*)':
anongame_infos.cpp:(.text+0x4a29): undefined reference to `deflateInit_'
anongame_infos.cpp:(.text+0x4a77): undefined reference to `deflate'
anongame_infos.cpp:(.text+0x4b4d): undefined reference to `deflateEnd'
collect2: error: ld returned 1 exit status
make[2]: *** [src/bnetd/bnetd] Error 1
make[1]: *** [src/bnetd/CMakeFiles/bnetd.dir/all] Error 2
make: *** [all] Error 2
[/box]


there seems to be something wrong with the library zlibwapi.lib
what library should be inserted?

2

Re: Helpme how to compile svn 1.99 under linux debian

zlibwapi.lib is a Windows Dynamic Link Library, you do not need to use parameter ZLIB_LIBRARY in Linux. By default cmake will search zlib files in src/zlib
Try to download and place zlib source into /pvpgn-199.r577/src/zlib/ directory (www.zlib.net)

Do not ask for support in PM.

3

Re: Helpme how to compile svn 1.99 under linux debian

HarpyWar wrote:

zlibwapi.lib is a Windows Dynamic Link Library, you do not need to use parameter ZLIB_LIBRARY in Linux. By default cmake will search zlib files in src/zlib
Try to download and place zlib source into /pvpgn-199.r577/src/zlib/ directory (www.zlib.net)

yes i do that, but still error ..

-- Configuring incomplete, errors occurred!
/cencored/pvpgn-199.r577/build$ cmake -D CMAKE_INSTALL_PREFIX=/cencored/GENX_pvpgn/ -D ZLIB_INCLUDE_DIR=/cencored/pvpgn-199.r577/src/zlib ../
-- pvpgn is used as APPLICATION_NAME
-- Looked for Z libraries named .
CMake Error at cmake/Modules/FindZLIB.cmake:44 (MESSAGE):
  Could NOT find z library
Call Stack (most recent call first):
  ConfigureChecks.cmake:32 (find_package)
  CMakeLists.txt:29 (include)

Posts: 3

Pages 1

You must login or register to post a reply

Who now at forum

Currently view post: 0 guests, 0 registered users

forums.pvpgn.pro → [EN] Tech Support → Helpme how to compile svn 1.99 under linux debian