• 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!

otclient v8 compile problem

Dran Ryszard

Member
Joined
Apr 25, 2023
Messages
52
Reaction score
12
Location
Poland
Hi, any ideas why i can't compile otc v8? I download clean files from github, installed all libs what be linked on github, but im use visual 2022 not 2019

Code:
1>session.cpp
1>websocket.cpp
1>mouse.cpp
1>lbitlib.cpp
1>luaexception.cpp
1>luainterface.cpp
1>luaobject.cpp
1>luavaluecasts.cpp
1>C:\Users\userrrr\Desktop\client v8\src\framework\luaengine\lbitlib.cpp(168,1): warning C4005: 'luaL_newlib': macro redefinition
1>C:\vcpkg\installed\x86-windows-static\include\luajit\lauxlib.h(125,1): message : see previous definition of 'luaL_newlib' (compiling source file ..\src\framework\luaengine\lbitlib.cpp)
1>luafunctions.cpp
1>connection.cpp
1>inputmessage.cpp
1>outputmessage.cpp
1>packet_player.cpp
1>packet_recorder.cpp
1>protocol.cpp
1>server.cpp
1>C:\Users\userrrr\Desktop\client v8\src\framework\net\connection.cpp(164,11): error C2672: 'boost::asio::async_read': no matching overloaded function found
1>C:\vcpkg\installed\x86-windows-static\include\boost\asio\read.hpp(1458,1): message : could be 'auto boost::asio::async_read(AsyncReadStream &,DynamicBuffer_v2,CompletionCondition,ReadToken &&,constraint<boost::asio::is_dynamic_buffer_v2<DynamicBuffer_v2>::value,int>::type)' (compiling source file ..\src\framework\net\connection.cpp)
1>C:\Users\userrrr\Desktop\client v8\src\framework\net\connection.cpp(164,11): message : Failed to specialize function template 'auto boost::asio::async_read(AsyncReadStream &,DynamicBuffer_v2,CompletionCondition,ReadToken &&,constraint<boost::asio::is_dynamic_buffer_v2<DynamicBuffer_v2>::value,int>::type)'
1>C:\Users\userrrr\Desktop\client v8\src\framework\net\connection.cpp(164,11): message : With the following template arguments:
1>C:\Users\userrrr\Desktop\client v8\src\framework\net\connection.cpp(164,11): message : 'AsyncReadStream=boost::asio::ip::tcp::socket'
1>C:\Users\userrrr\Desktop\client v8\src\framework\net\connection.cpp(164,11): message : 'DynamicBuffer_v2=boost::asio::const_buffers_1'
1>C:\Users\userrrr\Desktop\client v8\src\framework\net\connection.cpp(164,11): message : 'CompletionCondition=std::_Binder<std::_Unforced,void (__thiscall Connection::* )(const boost::system::error_code &,size_t),ConnectionPtr,const std::_Ph<1> &,const std::_Ph<2> &>'
1>C:\Users\userrrr\Desktop\client v8\src\framework\net\connection.cpp(164,11): message : 'ReadToken=boost::asio::detail::default_completion_token_impl<T,void>::type'
1>C:\vcpkg\installed\x86-windows-static\include\boost\asio\read.hpp(1362,1): message : or       'auto boost::asio::async_read(AsyncReadStream &,DynamicBuffer_v2,ReadToken &&,constraint<boost::asio::is_dynamic_buffer_v2<DynamicBuffer_v2>::value,int>::type)' (compiling source file ..\src\framework\net\connection.cpp)
1>C:\Users\userrrr\Desktop\client v8\src\framework\net\connection.cpp(164,11): message : Failed to specialize function template 'auto boost::asio::async_read(AsyncReadStream &,DynamicBuffer_v2,ReadToken &&,constraint<boost::asio::is_dynamic_buffer_v2<DynamicBuffer_v2>::value,int>::type)'
1>C:\Users\userrrr\Desktop\client v8\src\framework\net\connection.cpp(164,11): message : With the following template arguments:
1>C:\Users\userrrr\Desktop\client v8\src\framework\net\connection.cpp(164,11): message : 'AsyncReadStream=boost::asio::ip::tcp::socket'
1>C:\Users\userrrr\Desktop\client v8\src\framework\net\connection.cpp(164,11): message : 'DynamicBuffer_v2=boost::asio::const_buffers_1'
1>C:\Users\userrrr\Desktop\client v8\src\framework\net\connection.cpp(164,11): message : 'ReadToken=std::_Binder<std::_Unforced,void (__thiscall Connection::* )(const boost::system::error_code &,size_t),ConnectionPtr,const std::_Ph<1> &,const std::_Ph<2> &>'
1>C:\vcpkg\installed\x86-windows-static\include\boost\asio\read.hpp(1275,1): message : or       'auto boost::asio::async_read(AsyncReadStream &,boost::asio::basic_streambuf<Allocator> &,CompletionCondition,ReadToken &&)' (compiling source file ..\src\framework\net\connection.cpp)
1>C:\Users\userrrr\Desktop\client v8\src\framework\net\connection.cpp(164,11): message : 'auto boost::asio::async_read(AsyncReadStream &,boost::asio::basic_streambuf<Allocator> &,CompletionCondition,ReadToken &&)': could not deduce template argument for 'boost::asio::basic_streambuf<Allocator> &' from 'boost::asio::const_buffers_1'
1>C:\vcpkg\installed\x86-windows-static\include\boost\asio\read.hpp(1187,1): message : or       'auto boost::asio::async_read(AsyncReadStream &,boost::asio::basic_streambuf<Allocator> &,ReadToken &&)' (compiling source file ..\src\framework\net\connection.cpp)
1>C:\Users\userrrr\Desktop\client v8\src\framework\net\connection.cpp(164,11): message : 'auto boost::asio::async_read(AsyncReadStream &,boost::asio::basic_streambuf<Allocator> &,ReadToken &&)': could not deduce template argument for 'boost::asio::basic_streambuf<Allocator> &' from 'boost::asio::const_buffers_1'
1>C:\vcpkg\installed\x86-windows-static\include\boost\asio\read.hpp(1094,1): message : or       'auto boost::asio::async_read(AsyncReadStream &,DynamicBuffer_v1 &&,CompletionCondition,ReadToken &&,constraint<boost::asio::is_dynamic_buffer_v1<decay<_Ty2>::type>::value,int>::type,constraint<!boost::asio::is_dynamic_buffer_v2<decay<_Ty2>::type>::value,int>::type)' (compiling source file ..\src\framework\net\connection.cpp)
1>C:\Users\userrrr\Desktop\client v8\src\framework\net\connection.cpp(164,11): message : Failed to specialize function template 'auto boost::asio::async_read(AsyncReadStream &,DynamicBuffer_v1 &&,CompletionCondition,ReadToken &&,constraint<boost::asio::is_dynamic_buffer_v1<decay<_Ty2>::type>::value,int>::type,constraint<!boost::asio::is_dynamic_buffer_v2<decay<_Ty2>::type>::value,int>::type)'
1>C:\Users\userrrr\Desktop\client v8\src\framework\net\connection.cpp(164,11): message : With the following template arguments:
1>C:\Users\userrrr\Desktop\client v8\src\framework\net\connection.cpp(164,11): message : 'AsyncReadStream=boost::asio::ip::tcp::socket'
1>C:\Users\userrrr\Desktop\client v8\src\framework\net\connection.cpp(164,11): message : 'DynamicBuffer_v1=boost::asio::const_buffers_1'
1>C:\Users\userrrr\Desktop\client v8\src\framework\net\connection.cpp(164,11): message : 'CompletionCondition=std::_Binder<std::_Unforced,void (__thiscall Connection::* )(const boost::system::error_code &,size_t),ConnectionPtr,const std::_Ph<1> &,const std::_Ph<2> &>'
1>C:\Users\userrrr\Desktop\client v8\src\framework\net\connection.cpp(164,11): message : 'ReadToken=boost::asio::detail::default_completion_token_impl<T,void>::type'
1>C:\vcpkg\installed\x86-windows-static\include\boost\asio\read.hpp(994,1): message : or       'auto boost::asio::async_read(AsyncReadStream &,DynamicBuffer_v1 &&,ReadToken &&,constraint<boost::asio::is_dynamic_buffer_v1<decay<_Ty2>::type>::value,int>::type,constraint<!boost::asio::is_dynamic_buffer_v2<decay<_Ty2>::type>::value,int>::type)' (compiling source file ..\src\framework\net\connection.cpp)
1>C:\Users\userrrr\Desktop\client v8\src\framework\net\connection.cpp(164,11): message : Failed to specialize function template 'auto boost::asio::async_read(AsyncReadStream &,DynamicBuffer_v1 &&,ReadToken &&,constraint<boost::asio::is_dynamic_buffer_v1<decay<_Ty2>::type>::value,int>::type,constraint<!boost::asio::is_dynamic_buffer_v2<decay<_Ty2>::type>::value,int>::type)'
1>C:\Users\userrrr\Desktop\client v8\src\framework\net\connection.cpp(164,11): message : With the following template arguments:
1>C:\Users\userrrr\Desktop\client v8\src\framework\net\connection.cpp(164,11): message : 'AsyncReadStream=boost::asio::ip::tcp::socket'
1>C:\Users\userrrr\Desktop\client v8\src\framework\net\connection.cpp(164,11): message : 'DynamicBuffer_v1=boost::asio::const_buffers_1'
1>C:\Users\userrrr\Desktop\client v8\src\framework\net\connection.cpp(164,11): message : 'ReadToken=std::_Binder<std::_Unforced,void (__thiscall Connection::* )(const boost::system::error_code &,size_t),ConnectionPtr,const std::_Ph<1> &,const std::_Ph<2> &>'
1>C:\vcpkg\installed\x86-windows-static\include\boost\asio\read.hpp(904,1): message : or       'auto boost::asio::async_read(AsyncReadStream &,const MutableBufferSequence &,CompletionCondition,ReadToken &&,constraint<boost::asio::is_mutable_buffer_sequence<MutableBufferSequence>::value,int>::type)' (compiling source file ..\src\framework\net\connection.cpp)
1>C:\Users\userrrr\Desktop\client v8\src\framework\net\connection.cpp(164,11): message : Failed to specialize function template 'auto boost::asio::async_read(AsyncReadStream &,const MutableBufferSequence &,CompletionCondition,ReadToken &&,constraint<boost::asio::is_mutable_buffer_sequence<MutableBufferSequence>::value,int>::type)'
1>C:\Users\userrrr\Desktop\client v8\src\framework\net\connection.cpp(164,11): message : With the following template arguments:
1>C:\Users\userrrr\Desktop\client v8\src\framework\net\connection.cpp(164,11): message : 'AsyncReadStream=boost::asio::ip::tcp::socket'
1>C:\Users\userrrr\Desktop\client v8\src\framework\net\connection.cpp(164,11): message : 'MutableBufferSequence=boost::asio::const_buffers_1'
1>C:\Users\userrrr\Desktop\client v8\src\framework\net\connection.cpp(164,11): message : 'CompletionCondition=std::_Binder<std::_Unforced,void (__thiscall Connection::* )(const boost::system::error_code &,size_t),ConnectionPtr,const std::_Ph<1> &,const std::_Ph<2> &>'
1>C:\Users\userrrr\Desktop\client v8\src\framework\net\connection.cpp(164,11): message : 'ReadToken=boost::asio::detail::default_completion_token_impl<T,void>::type'
1>C:\vcpkg\installed\x86-windows-static\include\boost\asio\read.hpp(804,1): message : or       'auto boost::asio::async_read(AsyncReadStream &,const MutableBufferSequence &,ReadToken &&,constraint<boost::asio::is_mutable_buffer_sequence<MutableBufferSequence>::value,int>::type)' (compiling source file ..\src\framework\net\connection.cpp)
1>C:\Users\userrrr\Desktop\client v8\src\framework\net\connection.cpp(164,11): message : Failed to specialize function template 'auto boost::asio::async_read(AsyncReadStream &,const MutableBufferSequence &,ReadToken &&,constraint<boost::asio::is_mutable_buffer_sequence<MutableBufferSequence>::value,int>::type)'
1>C:\Users\userrrr\Desktop\client v8\src\framework\net\connection.cpp(164,11): message : With the following template arguments:
1>C:\Users\userrrr\Desktop\client v8\src\framework\net\connection.cpp(164,11): message : 'AsyncReadStream=boost::asio::ip::tcp::socket'
1>C:\Users\userrrr\Desktop\client v8\src\framework\net\connection.cpp(164,11): message : 'MutableBufferSequence=boost::asio::const_buffers_1'
1>C:\Users\userrrr\Desktop\client v8\src\framework\net\connection.cpp(164,11): message : 'ReadToken=std::_Binder<std::_Unforced,void (__thiscall Connection::* )(const boost::system::error_code &,size_t),ConnectionPtr,const std::_Ph<1> &,const std::_Ph<2> &>'
1>Done building project "otclient.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Elapsed 07:05,092 ==========
 
Can't tell much without the source code, if you could provide with the link to the repo it'd be helpful.

What I'd do is to look at other otclients to see the code there and compare:

Most likely it's the change you need apply to use new version of boost::asio:
Change:
C++:
asio::buffer(m_inputStream.prepare(bytes))
to:
C++:
asio::mutable_buffer(m_inputStream.prepare(bytes))
 
Last edited:

Thanks, i must download files from wrong repo.
Compiled success, but i got few errors too:
And why i can compile it only in 32bit version?
1693430837810.png

Code:
1>C:\Users\userrrr\Desktop\otclientv8-master\src\client\container.cpp(71,41): warning C4018: '<=': signed/unsigned mismatch
1>C:\Users\userrrr\Desktop\otclientv8-master\src\framework\luaengine\lbitlib.cpp(168,1): warning C4005: 'luaL_newlib': macro redefinition
1>C:\vcpkg\installed\x86-windows-static\include\luajit\lauxlib.h(125,1): message : see previous definition of 'luaL_newlib' (compiling source file ..\src\framework\luaengine\lbitlib.cpp)
 
@Dran Ryszard These are warnings only, if you don't have any modifications to the source code just pull latest changes from that repository as you're probably few commits behind the latest version.
You anyway should release x86 version so players with 32 bit system could run it.
Looking at the repo seems like project is only configured for Win32 Target with choice of DirectX/OpenGL


lbitlib.cpp(168,1): warning C4005: 'luaL_newlib': macro redefinition
This once is due the fact that you're on lua version higher than 5.2 and there's a redefinition of luaL_newlib (compatibility with lua 5.2):
C++:
#define luaL_newlib(x, y) luaL_register(x, LUA_BIT32LIBNAME, y)
 
Shit, i check this otc v8 from oen, but its version without bot :/ my bad i forgott say it, i need otc v8 with bot for 8.6 ;p
Post automatically merged:

What's funny is in my post @oen432 ?
 
Last edited:
Back
Top