• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Solved otclient wont compile on ubuntu 16.04

Cornex

Web Developer
Staff member
Global Moderator
Joined
Jun 15, 2008
Messages
3,444
Solutions
5
Reaction score
1,166
Location
Sweden
Hello, I try to compile otclient on ubuntu 16.04, but without success.
What I've tried:

First of all, I try to run the commands specified in compile guide at github:

sudo apt-get install build-essential cmake git-core
sudo apt-get install libboost1.55-all-dev libphysfs-dev libssl-dev liblua5.1-dev
sudo apt-get install libglew1.6-dev libvorbis-dev libopenal-dev libz-dev

but since libboost1.55-all-dev can't be found/installed, i installed libboost-all-dev...

Okey, that done, i try to do cmake .. and make.

make .. runs until 100%, ends with following:
Code:
[100%] Linking CXX executable otclient
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libphysfs.a: error adding symbols: Archive has no index; run ranlib to add one
collect2: error: ld returned 1 exit status
CMakeFiles/otclient.dir/build.make:3857: recipe for target 'otclient' failed
make[2]: *** [otclient] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/otclient.dir/all' failed
make[1]: *** [CMakeFiles/otclient.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

Anyone has a idea? Thanks in advance :)
 
Anyone could help me to fix it?

I got the same problem then the author topic, but idk how to make what he said to fix...

How to download physfs source and install?

I tried it:
Code:
root@carlos-pc:/home/carlos# hg clone https://hg.icculus.org/icculus/physfs/ destination directory: physfs
requesting all changes
adding changesets
adding manifests
adding file changes                                                            
added 1385 changesets with 4008 changes to 1164 files (+2 heads)              
updating to branch default
480 files updated, 0 files merged, 0 files removed, 0 files unresolved
root@carlos-pc:/home/carlos#
root@carlos-pc:/home/carlos# hg clone https://hg.icculus.org/icculus/physfs/ destination directory: physfs
requesting all changes
adding changesets
adding manifests
adding file changes                                                            
added 1385 changesets with 4008 changes to 1164 files (+2 heads)              
updating to branch default
480 files updated, 0 files merged, 0 files removed, 0 files unresolved
root@carlos-pc:/home/carlos#

Code:
root@carlos-pc:/home/carlos# cd physfs
root@carlos-pc:/home/carlos/physfs# make install
make: *** No rule to make target 'install'.  Stop.
root@carlos-pc:/home/carlos/physfs#
 
Anyone could help me to fix it?

I got the same problem then the author topic, but idk how to make what he said to fix...

How to download physfs source and install?

I tried it:
Code:
root@carlos-pc:/home/carlos# hg clone https://hg.icculus.org/icculus/physfs/ destination directory: physfs
requesting all changes
adding changesets
adding manifests
adding file changes                                                           
added 1385 changesets with 4008 changes to 1164 files (+2 heads)             
updating to branch default
480 files updated, 0 files merged, 0 files removed, 0 files unresolved
root@carlos-pc:/home/carlos#
root@carlos-pc:/home/carlos# hg clone https://hg.icculus.org/icculus/physfs/ destination directory: physfs
requesting all changes
adding changesets
adding manifests
adding file changes                                                           
added 1385 changesets with 4008 changes to 1164 files (+2 heads)             
updating to branch default
480 files updated, 0 files merged, 0 files removed, 0 files unresolved
root@carlos-pc:/home/carlos#

Code:
root@carlos-pc:/home/carlos# cd physfs
root@carlos-pc:/home/carlos/physfs# make install
make: *** No rule to make target 'install'.  Stop.
root@carlos-pc:/home/carlos/physfs#

https://otland.net/threads/otclient-compile.242669/#post-2351630
 
You got no problems? I got this

CMakeError.log
Code:
Determining if the include file sys/ucred.h exists failed with the following output:
Change Dir: /home/lucca/otclient/physfs/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTryCompileExec1805977636/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec1805977636.dir/build.make CMakeFiles/cmTryCompileExec1805977636.dir/build
make[1]: Entering directory '/home/lucca/otclient/physfs/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/lucca/otclient/physfs/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec1805977636.dir/CheckIncludeFile.c.o
/usr/bin/cc  -o CMakeFiles/cmTryCompileExec1805977636.dir/CheckIncludeFile.c.o  -c /home/lucca/otclient/physfs/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/home/lucca/otclient/physfs/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:23: fatal error: sys/ucred.h: Arquivo ou diretório não encontrado
compilation terminated.
CMakeFiles/cmTryCompileExec1805977636.dir/build.make:57: recipe for target 'CMakeFiles/cmTryCompileExec1805977636.dir/CheckIncludeFile.c.o' failed
make[1]: Leaving directory '/home/lucca/otclient/physfs/build/CMakeFiles/CMakeTmp'
make[1]: *** [CMakeFiles/cmTryCompileExec1805977636.dir/CheckIncludeFile.c.o] Error 1
Makefile:117: recipe for target 'cmTryCompileExec1805977636/fast' failed
make: *** [cmTryCompileExec1805977636/fast] Error 2


cmakeoutput.log
http://pastebin.com/XEDuV7ns


To fix i made:
Code:
apt get install libc6-dev-i386

But now i got new errors:
Code:
cmake ..
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test PHYSFS_IS_GCC4
-- Performing Test PHYSFS_IS_GCC4 - Success
-- Looking for sys/ucred.h
-- Looking for sys/ucred.h - not found
-- Looking for mntent.h
-- Looking for mntent.h - found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for assert.h
-- Looking for assert.h - found
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.8")
-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE)
-- Doxygen not found. You won't be able to build documentation.
-- PhysicsFS will build with the following options:
--   ZIP support: enabled
--   7zip support: enabled
--   GRP support: enabled
--   WAD support: enabled
--   HOG support: enabled
--   MVL support: enabled
--   QPAK support: enabled
--   CD-ROM drive support: enabled
--   Thread safety: enabled
--   Build own zlib: disabled
--   Build static library: enabled
--   Build shared library: enabled
--   Build wxWidgets test program: disabled
--   Build stdio test program: enabled
--     Use readline in test program: enabled
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:
CURSES_LIBRARY
    linked by target "test_physfs" in directory /home/carlos/physfs

-- Configuring incomplete, errors occurred!
See also "/home/carlos/physfs/build/CMakeFiles/CMakeOutput.log".
See also "/home/carlos/physfs/build/CMakeFiles/CMakeError.log".

And i don't know to fix now :S
 
Last edited:
Holy crap a lot errors, u was got this errors?

To fix:
Code:
-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE)

I made:
Code:
sudo apt-get install doxygen

Now that's is the problem i traped, idk what to do now
Code:
root@carlos-pc:/home/carlos/physfs/build# cmake ..
-- PhysicsFS will build with the following options:
--   ZIP support: enabled
--   7zip support: enabled
--   GRP support: enabled
--   WAD support: enabled
--   HOG support: enabled
--   MVL support: enabled
--   QPAK support: enabled
--   CD-ROM drive support: enabled
--   Thread safety: enabled
--   Build own zlib: disabled
--   Build static library: enabled
--   Build shared library: enabled
--   Build wxWidgets test program: disabled
--   Build stdio test program: enabled
--     Use readline in test program: enabled
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:
CURSES_LIBRARY
    linked by target "test_physfs" in directory /home/carlos/physfs

-- Configuring incomplete, errors occurred!
See also "/home/carlos/physfs/build/CMakeFiles/CMakeOutput.log".
See also "/home/carlos/physfs/build/CMakeFiles/CMakeError.log".
root@carlos-pc:/home/carlos/physfs/build#
 
Last edited:
Holy crap a lot errors, u was got this errors?

To fix:
Code:
-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE)

I made:
Code:
sudo apt-get install doxygen

Now that's is the problem i traped, idk what to do now
Code:
root@carlos-pc:/home/carlos/physfs/build# cmake ..
-- PhysicsFS will build with the following options:
--   ZIP support: enabled
--   7zip support: enabled
--   GRP support: enabled
--   WAD support: enabled
--   HOG support: enabled
--   MVL support: enabled
--   QPAK support: enabled
--   CD-ROM drive support: enabled
--   Thread safety: enabled
--   Build own zlib: disabled
--   Build static library: enabled
--   Build shared library: enabled
--   Build wxWidgets test program: disabled
--   Build stdio test program: enabled
--     Use readline in test program: enabled
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:
CURSES_LIBRARY
    linked by target "test_physfs" in directory /home/carlos/physfs

-- Configuring incomplete, errors occurred!
See also "/home/carlos/physfs/build/CMakeFiles/CMakeOutput.log".
See also "/home/carlos/physfs/build/CMakeFiles/CMakeError.log".
root@carlos-pc:/home/carlos/physfs/build#
The commands I wrote down in the other thread worked for me. I am to bad at compiling/linux in general to be any helpful for you.
On a fast look, it seems like CURSES_LIBRARY is missing. Googled it, check either
http://stackoverflow.com/a/8192523
or
http://stackoverflow.com/questions/4678926/cmake-cant-find-curses

Good luck!

Edit: You can maybe try http://dba.stackexchange.com/a/10285 also
 
The commands I wrote down in the other thread worked for me. I am to bad at compiling/linux in general to be any helpful for you.
On a fast look, it seems like CURSES_LIBRARY is missing. Googled it, check either
http://stackoverflow.com/a/8192523
or
http://stackoverflow.com/questions/4678926/cmake-cant-find-curses

Good luck!

Edit: You can maybe try http://dba.stackexchange.com/a/10285 also
Ty!
That's what i made to solved guys with same problem:
Code:
sudo apt-get install libncurses5-dev
 
Last edited:
Try this:

1. Download physfs source:
Code:
hg clone -r stable-2.0 http://hg.icculus.org/icculus/physfs/
2. Run:
Code:
cd physfs
sudo mkdir build
cd build
3. Now we want to start compile/install it:
Code:
sudo cmake ..
sudo make
sudo make install
sudo mv /usr/local/lib/libphysfs.a /usr/lib/gcc/x86_64-linux-gnu/

If everything success, remove the whole otclient you tried to install, and re-do the git clone / compile.





I made everything like you said:



physfs
Code:
root@carlos-PC:/home/carlos# hg clone -r stable-2.0 http://hg.icculus.org/icculus/physfs/
destination directory: physfs
adding changesets
adding manifests
adding file changes
added 973 changesets with 2462 changes to 676 files                          
updating to branch stable-2.0
522 files updated, 0 files merged, 0 files removed, 0 files unresolved
root@carlos-PC:/home/carlos# cd physfs
root@carlos-PC:/home/carlos/physfs# sudo mkdir build
root@carlos-PC:/home/carlos/physfs# cd build
root@carlos-PC:/home/carlos/physfs/build# sudo cmake ..
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test PHYSFS_IS_GCC4
-- Performing Test PHYSFS_IS_GCC4 - Success
-- Looking for sys/ucred.h
-- Looking for sys/ucred.h - not found
-- Looking for mntent.h
-- Looking for mntent.h - found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for assert.h
-- Looking for assert.h - found
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.8")
-- Found Doxygen: /usr/bin/doxygen (found version "1.8.11")
-- PhysicsFS will build with the following options:
--   ZIP support: enabled
--   7zip support: enabled
--   GRP support: enabled
--   WAD support: enabled
--   HOG support: enabled
--   MVL support: enabled
--   QPAK support: enabled
--   CD-ROM drive support: enabled
--   Thread safety: enabled
--   Build own zlib: disabled
--   Build static library: enabled
--   Build shared library: enabled
--   Build wxWidgets test program: disabled
--   Build stdio test program: enabled
--     Use readline in test program: enabled
-- Configuring done
-- Generating done
-- Build files have been written to: /home/carlos/physfs/build
root@carlos-PC:/home/carlos/physfs/build# sudo make
Scanning dependencies of target physfs
[  1%] Building C object CMakeFiles/physfs.dir/physfs.o
[  3%] Building C object CMakeFiles/physfs.dir/physfs_byteorder.o
[  5%] Building C object CMakeFiles/physfs.dir/physfs_unicode.o
[  6%] Building C object CMakeFiles/physfs.dir/platform/os2.o
[  8%] Building C object CMakeFiles/physfs.dir/platform/pocketpc.o
[ 10%] Building C object CMakeFiles/physfs.dir/platform/posix.o
[ 11%] Building C object CMakeFiles/physfs.dir/platform/unix.o
[ 13%] Building C object CMakeFiles/physfs.dir/platform/macosx.o
[ 15%] Building C object CMakeFiles/physfs.dir/platform/windows.o
[ 16%] Building C object CMakeFiles/physfs.dir/archivers/dir.o
[ 18%] Building C object CMakeFiles/physfs.dir/archivers/grp.o
[ 20%] Building C object CMakeFiles/physfs.dir/archivers/hog.o
[ 21%] Building C object CMakeFiles/physfs.dir/archivers/lzma.o
[ 23%] Building C object CMakeFiles/physfs.dir/archivers/mvl.o
[ 25%] Building C object CMakeFiles/physfs.dir/archivers/qpak.o
[ 26%] Building C object CMakeFiles/physfs.dir/archivers/wad.o
[ 28%] Building C object CMakeFiles/physfs.dir/archivers/zip.o
[ 30%] Building C object CMakeFiles/physfs.dir/lzma/C/7zCrc.o
[ 31%] Building C object CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zBuffer.o
[ 33%] Building C object CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zDecode.o
[ 35%] Building C object CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zExtract.o
[ 36%] Building C object CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zHeader.o
[ 38%] Building C object CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zIn.o
[ 40%] Building C object CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zItem.o
[ 41%] Building C object CMakeFiles/physfs.dir/lzma/C/Archive/7z/7zMethodID.o
[ 43%] Building C object CMakeFiles/physfs.dir/lzma/C/Compress/Branch/BranchX86.o
[ 45%] Building C object CMakeFiles/physfs.dir/lzma/C/Compress/Branch/BranchX86_2.o
[ 46%] Building C object CMakeFiles/physfs.dir/lzma/C/Compress/Lzma/LzmaDecode.o
[ 48%] Linking C shared library libphysfs.so
[ 48%] Built target physfs
Scanning dependencies of target test_physfs
[ 50%] Building C object CMakeFiles/test_physfs.dir/test/test_physfs.o
[ 51%] Linking C executable test_physfs
[ 51%] Built target test_physfs
Scanning dependencies of target physfs-static
[ 53%] Building C object CMakeFiles/physfs-static.dir/physfs.o
[ 55%] Building C object CMakeFiles/physfs-static.dir/physfs_byteorder.o
[ 56%] Building C object CMakeFiles/physfs-static.dir/physfs_unicode.o
[ 58%] Building C object CMakeFiles/physfs-static.dir/platform/os2.o
[ 60%] Building C object CMakeFiles/physfs-static.dir/platform/pocketpc.o
[ 61%] Building C object CMakeFiles/physfs-static.dir/platform/posix.o
[ 63%] Building C object CMakeFiles/physfs-static.dir/platform/unix.o
[ 65%] Building C object CMakeFiles/physfs-static.dir/platform/macosx.o
[ 66%] Building C object CMakeFiles/physfs-static.dir/platform/windows.o
[ 68%] Building C object CMakeFiles/physfs-static.dir/archivers/dir.o
[ 70%] Building C object CMakeFiles/physfs-static.dir/archivers/grp.o
[ 71%] Building C object CMakeFiles/physfs-static.dir/archivers/hog.o
[ 73%] Building C object CMakeFiles/physfs-static.dir/archivers/lzma.o
[ 75%] Building C object CMakeFiles/physfs-static.dir/archivers/mvl.o
[ 76%] Building C object CMakeFiles/physfs-static.dir/archivers/qpak.o
[ 78%] Building C object CMakeFiles/physfs-static.dir/archivers/wad.o
[ 80%] Building C object CMakeFiles/physfs-static.dir/archivers/zip.o
[ 81%] Building C object CMakeFiles/physfs-static.dir/lzma/C/7zCrc.o
[ 83%] Building C object CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zBuffer.o
[ 85%] Building C object CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zDecode.o
[ 86%] Building C object CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zExtract.o
[ 88%] Building C object CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zHeader.o
[ 90%] Building C object CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zIn.o
[ 91%] Building C object CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zItem.o
[ 93%] Building C object CMakeFiles/physfs-static.dir/lzma/C/Archive/7z/7zMethodID.o
[ 95%] Building C object CMakeFiles/physfs-static.dir/lzma/C/Compress/Branch/BranchX86.o
[ 96%] Building C object CMakeFiles/physfs-static.dir/lzma/C/Compress/Branch/BranchX86_2.o
[ 98%] Building C object CMakeFiles/physfs-static.dir/lzma/C/Compress/Lzma/LzmaDecode.o
[100%] Linking C static library libphysfs.a
[100%] Built target physfs-static
root@carlos-PC:/home/carlos/physfs/build# sudo make install
[ 48%] Built target physfs
[ 51%] Built target test_physfs
[100%] Built target physfs-static
Install the project...
-- Install configuration: ""
-- Installing: /usr/local/lib/libphysfs.a
-- Installing: /usr/local/lib/libphysfs.so.2.0.3
-- Up-to-date: /usr/local/lib/libphysfs.so.1
-- Up-to-date: /usr/local/lib/libphysfs.so
-- Installing: /usr/local/bin/test_physfs
-- Set runtime path of "/usr/local/bin/test_physfs" to ""
-- Installing: /usr/local/include/physfs.h
root@carlos-PC:/home/carlos/physfs/build# sudo mv /usr/local/lib/libphysfs.a /usr/lib/gcc/x86_64-linux-gnu/
root@carlos-PC:/home/carlos/physfs/build#


otclient
Code:
root@carlos-PC:/home/carlos/otclient/build# make
Scanning dependencies of target otclient
[  0%] Building CXX object CMakeFiles/otclient.dir/src/framework/luafunctions.cpp.o
[  1%] Building CXX object CMakeFiles/otclient.dir/src/framework/util/color.cpp.o
[  2%] Building CXX object CMakeFiles/otclient.dir/src/framework/util/crypt.cpp.o
[  2%] Building CXX object CMakeFiles/otclient.dir/src/framework/stdext/demangle.cpp.o
[  3%] Building CXX object CMakeFiles/otclient.dir/src/framework/stdext/math.cpp.o
[  4%] Building CXX object CMakeFiles/otclient.dir/src/framework/stdext/net.cpp.o
[  4%] Building CXX object CMakeFiles/otclient.dir/src/framework/stdext/string.cpp.o
[  5%] Building CXX object CMakeFiles/otclient.dir/src/framework/stdext/time.cpp.o
[  6%] Building CXX object CMakeFiles/otclient.dir/src/framework/core/application.cpp.o
[  6%] Building CXX object CMakeFiles/otclient.dir/src/framework/core/adaptativeframecounter.cpp.o
[  7%] Building CXX object CMakeFiles/otclient.dir/src/framework/core/asyncdispatcher.cpp.o
[  8%] Building CXX object CMakeFiles/otclient.dir/src/framework/core/binarytree.cpp.o
[  8%] Building CXX object CMakeFiles/otclient.dir/src/framework/core/clock.cpp.o
[  9%] Building CXX object CMakeFiles/otclient.dir/src/framework/core/config.cpp.o
[ 10%] Building CXX object CMakeFiles/otclient.dir/src/framework/core/configmanager.cpp.o
[ 10%] Building CXX object CMakeFiles/otclient.dir/src/framework/core/event.cpp.o
[ 11%] Building CXX object CMakeFiles/otclient.dir/src/framework/core/eventdispatcher.cpp.o
[ 12%] Building CXX object CMakeFiles/otclient.dir/src/framework/core/filestream.cpp.o
[ 13%] Building CXX object CMakeFiles/otclient.dir/src/framework/core/logger.cpp.o
[ 13%] Building CXX object CMakeFiles/otclient.dir/src/framework/core/module.cpp.o
[ 14%] Building CXX object CMakeFiles/otclient.dir/src/framework/core/modulemanager.cpp.o
[ 15%] Building CXX object CMakeFiles/otclient.dir/src/framework/core/resourcemanager.cpp.o
[ 15%] Building CXX object CMakeFiles/otclient.dir/src/framework/core/scheduledevent.cpp.o
[ 16%] Building CXX object CMakeFiles/otclient.dir/src/framework/core/timer.cpp.o
[ 17%] Building CXX object CMakeFiles/otclient.dir/src/framework/luaengine/luaexception.cpp.o
[ 17%] Building CXX object CMakeFiles/otclient.dir/src/framework/luaengine/luainterface.cpp.o
[ 18%] Building CXX object CMakeFiles/otclient.dir/src/framework/luaengine/luaobject.cpp.o
[ 19%] Building CXX object CMakeFiles/otclient.dir/src/framework/luaengine/luavaluecasts.cpp.o
[ 19%] Building CXX object CMakeFiles/otclient.dir/src/framework/luaengine/lbitlib.cpp.o
[ 20%] Building CXX object CMakeFiles/otclient.dir/src/framework/otml/otmldocument.cpp.o
[ 21%] Building CXX object CMakeFiles/otclient.dir/src/framework/otml/otmlemitter.cpp.o
[ 21%] Building CXX object CMakeFiles/otclient.dir/src/framework/otml/otmlexception.cpp.o
[ 22%] Building CXX object CMakeFiles/otclient.dir/src/framework/otml/otmlnode.cpp.o
[ 23%] Building CXX object CMakeFiles/otclient.dir/src/framework/otml/otmlparser.cpp.o
[ 23%] Building CXX object CMakeFiles/otclient.dir/src/framework/platform/unixcrashhandler.cpp.o
[ 24%] Building CXX object CMakeFiles/otclient.dir/src/framework/platform/win32crashhandler.cpp.o
[ 25%] Building CXX object CMakeFiles/otclient.dir/src/framework/platform/win32platform.cpp.o
[ 26%] Building CXX object CMakeFiles/otclient.dir/src/framework/platform/unixplatform.cpp.o
[ 26%] Building CXX object CMakeFiles/otclient.dir/src/framework/platform/platform.cpp.o
[ 27%] Building CXX object CMakeFiles/otclient.dir/src/framework/graphics/animatedtexture.cpp.o
[ 28%] Building CXX object CMakeFiles/otclient.dir/src/framework/graphics/cachedtext.cpp.o
[ 28%] Building CXX object CMakeFiles/otclient.dir/src/framework/graphics/coordsbuffer.cpp.o
[ 29%] Building CXX object CMakeFiles/otclient.dir/src/framework/graphics/bitmapfont.cpp.o
[ 30%] Building CXX object CMakeFiles/otclient.dir/src/framework/graphics/fontmanager.cpp.o
[ 30%] Building CXX object CMakeFiles/otclient.dir/src/framework/graphics/framebuffer.cpp.o
[ 31%] Building CXX object CMakeFiles/otclient.dir/src/framework/graphics/framebuffermanager.cpp.o
[ 32%] Building CXX object CMakeFiles/otclient.dir/src/framework/graphics/graphics.cpp.o
[ 32%] Building CXX object CMakeFiles/otclient.dir/src/framework/graphics/hardwarebuffer.cpp.o
[ 33%] Building CXX object CMakeFiles/otclient.dir/src/framework/graphics/image.cpp.o
[ 34%] Building CXX object CMakeFiles/otclient.dir/src/framework/graphics/painter.cpp.o
[ 34%] Building CXX object CMakeFiles/otclient.dir/src/framework/graphics/ogl/painterogl.cpp.o
[ 35%] Building CXX object CMakeFiles/otclient.dir/src/framework/graphics/ogl/painterogl1.cpp.o
[ 36%] Building CXX object CMakeFiles/otclient.dir/src/framework/graphics/ogl/painterogl2.cpp.o
[ 36%] Building CXX object CMakeFiles/otclient.dir/src/framework/graphics/paintershaderprogram.cpp.o
[ 37%] Building CXX object CMakeFiles/otclient.dir/src/framework/graphics/particleaffector.cpp.o
[ 38%] Building CXX object CMakeFiles/otclient.dir/src/framework/graphics/particle.cpp.o
[ 39%] Building CXX object CMakeFiles/otclient.dir/src/framework/graphics/particletype.cpp.o
[ 39%] Building CXX object CMakeFiles/otclient.dir/src/framework/graphics/particleemitter.cpp.o
[ 40%] Building CXX object CMakeFiles/otclient.dir/src/framework/graphics/particleeffect.cpp.o
[ 41%] Building CXX object CMakeFiles/otclient.dir/src/framework/graphics/particlemanager.cpp.o
[ 41%] Building CXX object CMakeFiles/otclient.dir/src/framework/graphics/particlesystem.cpp.o
[ 42%] Building CXX object CMakeFiles/otclient.dir/src/framework/graphics/shader.cpp.o
[ 43%] Building CXX object CMakeFiles/otclient.dir/src/framework/graphics/shaderprogram.cpp.o
[ 43%] Building CXX object CMakeFiles/otclient.dir/src/framework/graphics/texture.cpp.o
[ 44%] Building CXX object CMakeFiles/otclient.dir/src/framework/graphics/texturemanager.cpp.o
[ 45%] Building CXX object CMakeFiles/otclient.dir/src/framework/graphics/apngloader.cpp.o
[ 45%] Building CXX object CMakeFiles/otclient.dir/src/framework/ui/uianchorlayout.cpp.o
[ 46%] Building CXX object CMakeFiles/otclient.dir/src/framework/ui/uiboxlayout.cpp.o
[ 47%] Building CXX object CMakeFiles/otclient.dir/src/framework/ui/uigridlayout.cpp.o
[ 47%] Building CXX object CMakeFiles/otclient.dir/src/framework/ui/uihorizontallayout.cpp.o
[ 48%] Building CXX object CMakeFiles/otclient.dir/src/framework/ui/uilayout.cpp.o
[ 49%] Building CXX object CMakeFiles/otclient.dir/src/framework/ui/uimanager.cpp.o
[ 50%] Building CXX object CMakeFiles/otclient.dir/src/framework/ui/uiparticles.cpp.o
[ 50%] Building CXX object CMakeFiles/otclient.dir/src/framework/ui/uitextedit.cpp.o
[ 51%] Building CXX object CMakeFiles/otclient.dir/src/framework/ui/uitranslator.cpp.o
[ 52%] Building CXX object CMakeFiles/otclient.dir/src/framework/ui/uiverticallayout.cpp.o
[ 52%] Building CXX object CMakeFiles/otclient.dir/src/framework/ui/uiwidgetbasestyle.cpp.o
[ 53%] Building CXX object CMakeFiles/otclient.dir/src/framework/ui/uiwidget.cpp.o
[ 54%] Building CXX object CMakeFiles/otclient.dir/src/framework/ui/uiwidgetimage.cpp.o
[ 54%] Building CXX object CMakeFiles/otclient.dir/src/framework/ui/uiwidgettext.cpp.o
[ 55%] Building CXX object CMakeFiles/otclient.dir/src/framework/platform/platformwindow.cpp.o
[ 56%] Building CXX object CMakeFiles/otclient.dir/src/framework/platform/win32window.cpp.o
[ 56%] Building CXX object CMakeFiles/otclient.dir/src/framework/platform/x11window.cpp.o
[ 57%] Building CXX object CMakeFiles/otclient.dir/src/framework/input/mouse.cpp.o
[ 58%] Building CXX object CMakeFiles/otclient.dir/src/framework/core/graphicalapplication.cpp.o
[ 58%] Building CXX object CMakeFiles/otclient.dir/src/framework/sound/combinedsoundsource.cpp.o
[ 59%] Building CXX object CMakeFiles/otclient.dir/src/framework/sound/oggsoundfile.cpp.o
[ 60%] Building CXX object CMakeFiles/otclient.dir/src/framework/sound/soundbuffer.cpp.o
[ 60%] Building CXX object CMakeFiles/otclient.dir/src/framework/sound/soundchannel.cpp.o
[ 61%] Building CXX object CMakeFiles/otclient.dir/src/framework/sound/soundfile.cpp.o
[ 62%] Building CXX object CMakeFiles/otclient.dir/src/framework/sound/soundmanager.cpp.o
[ 63%] Building CXX object CMakeFiles/otclient.dir/src/framework/sound/soundsource.cpp.o
[ 63%] Building CXX object CMakeFiles/otclient.dir/src/framework/sound/streamsoundsource.cpp.o
[ 64%] Building CXX object CMakeFiles/otclient.dir/src/framework/net/connection.cpp.o
[ 65%] Building CXX object CMakeFiles/otclient.dir/src/framework/net/inputmessage.cpp.o
[ 65%] Building CXX object CMakeFiles/otclient.dir/src/framework/net/outputmessage.cpp.o
[ 66%] Building CXX object CMakeFiles/otclient.dir/src/framework/net/protocol.cpp.o
[ 67%] Building CXX object CMakeFiles/otclient.dir/src/framework/net/protocolhttp.cpp.o
[ 67%] Building CXX object CMakeFiles/otclient.dir/src/framework/net/server.cpp.o
[ 68%] Building CXX object CMakeFiles/otclient.dir/src/framework/xml/tinyxml.cpp.o
[ 69%] Building CXX object CMakeFiles/otclient.dir/src/framework/xml/tinystr.cpp.o
[ 69%] Building CXX object CMakeFiles/otclient.dir/src/framework/xml/tinyxmlerror.cpp.o
[ 70%] Building CXX object CMakeFiles/otclient.dir/src/framework/xml/tinyxmlparser.cpp.o
[ 71%] Building CXX object CMakeFiles/otclient.dir/src/client/luafunctions.cpp.o
[ 71%] Building CXX object CMakeFiles/otclient.dir/src/client/client.cpp.o
[ 72%] Building CXX object CMakeFiles/otclient.dir/src/client/animatedtext.cpp.o
[ 73%] Building CXX object CMakeFiles/otclient.dir/src/client/animator.cpp.o
[ 73%] Building CXX object CMakeFiles/otclient.dir/src/client/container.cpp.o
[ 74%] Building CXX object CMakeFiles/otclient.dir/src/client/creature.cpp.o
[ 75%] Building CXX object CMakeFiles/otclient.dir/src/client/effect.cpp.o
[ 76%] Building CXX object CMakeFiles/otclient.dir/src/client/game.cpp.o
[ 76%] Building CXX object CMakeFiles/otclient.dir/src/client/shadermanager.cpp.o
[ 77%] Building CXX object CMakeFiles/otclient.dir/src/client/item.cpp.o
[ 78%] Building CXX object CMakeFiles/otclient.dir/src/client/localplayer.cpp.o
[ 78%] Building CXX object CMakeFiles/otclient.dir/src/client/map.cpp.o
[ 79%] Building CXX object CMakeFiles/otclient.dir/src/client/mapio.cpp.o
[ 80%] Building CXX object CMakeFiles/otclient.dir/src/client/mapview.cpp.o
[ 80%] Building CXX object CMakeFiles/otclient.dir/src/client/minimap.cpp.o
[ 81%] Building CXX object CMakeFiles/otclient.dir/src/client/lightview.cpp.o
[ 82%] Building CXX object CMakeFiles/otclient.dir/src/client/missile.cpp.o
[ 82%] Building CXX object CMakeFiles/otclient.dir/src/client/outfit.cpp.o
[ 83%] Building CXX object CMakeFiles/otclient.dir/src/client/player.cpp.o
[ 84%] Building CXX object CMakeFiles/otclient.dir/src/client/spritemanager.cpp.o
[ 84%] Building CXX object CMakeFiles/otclient.dir/src/client/statictext.cpp.o
[ 85%] Building CXX object CMakeFiles/otclient.dir/src/client/thing.cpp.o
[ 86%] Building CXX object CMakeFiles/otclient.dir/src/client/thingtypemanager.cpp.o
[ 86%] Building CXX object CMakeFiles/otclient.dir/src/client/thingtype.cpp.o
/home/carlos/otclient/src/client/thingtype.cpp: In member function ‘void ThingType::unserialize(uint16, ThingCategory, const FileStreamPtr&)’:
/home/carlos/otclient/src/client/thingtype.cpp:275:15: warning: variable ‘frameGroupType’ set but not used [-Wunused-but-set-variable]
         uint8 frameGroupType = FrameGroupDefault;
               ^
[ 87%] Building CXX object CMakeFiles/otclient.dir/src/client/itemtype.cpp.o
[ 88%] Building CXX object CMakeFiles/otclient.dir/src/client/tile.cpp.o
[ 89%] Building CXX object CMakeFiles/otclient.dir/src/client/houses.cpp.o
[ 89%] Building CXX object CMakeFiles/otclient.dir/src/client/towns.cpp.o
[ 90%] Building CXX object CMakeFiles/otclient.dir/src/client/creatures.cpp.o
[ 91%] Building CXX object CMakeFiles/otclient.dir/src/client/luavaluecasts.cpp.o
[ 91%] Building CXX object CMakeFiles/otclient.dir/src/client/protocolcodes.cpp.o
[ 92%] Building CXX object CMakeFiles/otclient.dir/src/client/protocolgame.cpp.o
[ 93%] Building CXX object CMakeFiles/otclient.dir/src/client/protocolgameparse.cpp.o
/home/carlos/otclient/src/client/protocolgameparse.cpp: In member function ‘void ProtocolGame::parseStore(const InputMessagePtr&)’:
/home/carlos/otclient/src/client/protocolgameparse.cpp:484:13: warning: variable ‘highlightState’ set but not used [-Wunused-but-set-variable]
         int highlightState = 0;
             ^
/home/carlos/otclient/src/client/protocolgameparse.cpp: In member function ‘void ProtocolGame::parseCoinBalance(const InputMessagePtr&)’:
/home/carlos/otclient/src/client/protocolgameparse.cpp:504:9: warning: variable ‘coins’ set but not used [-Wunused-but-set-variable]
     int coins = -1;
         ^
/home/carlos/otclient/src/client/protocolgameparse.cpp:505:9: warning: variable ‘transferableCoins’ set but not used [-Wunused-but-set-variable]
     int transferableCoins = -1;
         ^
[ 93%] Building CXX object CMakeFiles/otclient.dir/src/client/protocolgamesend.cpp.o
[ 94%] Building CXX object CMakeFiles/otclient.dir/src/client/uicreature.cpp.o
[ 95%] Building CXX object CMakeFiles/otclient.dir/src/client/uiitem.cpp.o
[ 95%] Building CXX object CMakeFiles/otclient.dir/src/client/uimap.cpp.o
[ 96%] Building CXX object CMakeFiles/otclient.dir/src/client/uiminimap.cpp.o
[ 97%] Building CXX object CMakeFiles/otclient.dir/src/client/uiprogressrect.cpp.o
[ 97%] Building CXX object CMakeFiles/otclient.dir/src/client/uimapanchorlayout.cpp.o
[ 98%] Building CXX object CMakeFiles/otclient.dir/src/client/uisprite.cpp.o
[ 99%] Building CXX object CMakeFiles/otclient.dir/src/main.cpp.o
[100%] Linking CXX executable otclient
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libphysfs.a: error adding symbols: Archive has no index; run ranlib to add one
collect2: error: ld returned 1 exit status
CMakeFiles/otclient.dir/build.make:3857: recipe for target 'otclient' failed
make[2]: *** [otclient] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/otclient.dir/all' failed
make[1]: *** [CMakeFiles/otclient.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
root@carlos-PC:/home/carlos/otclient/build#
 
Last edited:
Look my last post pls, i've edited /\
I did everything again, exacly like you said...
But still errors, idk what i supossed to do, anyone here could help me?
 
Back
Top