codeblock otclient latest source problem at the end of compilation !

Discussion in 'OTClient' started by Felipe93, Oct 11, 2017.

  1. Felipe93

    Felipe93 Ghost Member

    Joined:
    Mar 21, 2015
    Messages:
    796
    Likes Received:
    36
    Best Answers:
    2
    Hello im trying to compile otclient latest source i have everything setup properly
    (i've added changes to compile witj mingw Modifications to compile with mingw32 by GustavoBlaze · Pull Request #850 · edubart/otclient · GitHub)
    i've generated my otclient.cbp filewith cmake i opene it with codeblock soclick on build it
    but almost at the end of the compilation i get some errors regarding boots_1_64_
    (i have those libraries installed)
    PD: i use WIN 7

    Code (Text):
    1.  
    2. ||=== Build: all in otclient (compiler: GNU GCC Compiler) ===|
    3. CMakeFiles\otclient.dir\objects.a(asyncdispatcher.cpp.obj)||In function `ZN5boost6detail16thread_data_baseC4Ev':|
    4. c:\mingw\include\boost\thread\win32\thread_data.hpp|135|undefined reference to `vtable for boost::detail::thread_data_base'|
    5. CMakeFiles\otclient.dir\objects.a(asyncdispatcher.cpp.obj)||In function `ZN5boost6thread12start_threadEv':|
    6. c:\mingw\include\boost\thread\detail\thread.hpp|178|undefined reference to `boost::thread::start_thread_noexcept()'|
    7. CMakeFiles\otclient.dir\objects.a(asyncdispatcher.cpp.obj)||In function `ZN5boost6thread4joinEv':|
    8. c:\mingw\include\boost\thread\detail\thread.hpp|775|undefined reference to `boost::thread::join_noexcept()'|
    9. CMakeFiles\otclient.dir\objects.a(asyncdispatcher.cpp.obj)||In function `ZN5boost6detail11thread_dataISt5_BindIFSt7_Mem_fnIM15AsyncDispatcherFvvEEPS4_EEED1Ev':|
    10. c:\mingw\include\boost\thread\detail\thread.hpp|90|undefined reference to `boost::detail::thread_data_base::~thread_data_base()'|
    11. CMakeFiles\otclient.dir\objects.a(asyncdispatcher.cpp.obj)||In function `ZN5boost6detail11thread_dataISt5_BindIFSt7_Mem_fnIM15AsyncDispatcherFvvEEPS4_EEED4Ev':|
    12. c:\mingw\include\boost\thread\detail\thread.hpp|90|undefined reference to `boost::detail::thread_data_base::~thread_data_base()'|
    13. CMakeFiles\otclient.dir\objects.a(resourcemanager.cpp.obj)||In function `ZN15ResourceManager12discoverPathB5cxx11ERKN5boost10filesystem4pathEbb':|
    14. C:\otclient-gugu15\src\framework\core\resourcemanager.cpp|289|undefined reference to `boost::filesystem::path::generic_string[abi:cxx11]() const'|
    15. C:\otclient-gugu15\src\framework\core\resourcemanager.cpp|291|undefined reference to `boost::filesystem::path::generic_string[abi:cxx11]() const'|
    16. CMakeFiles\otclient.dir\objects.a(resourcemanager.cpp.obj)||In function `ZN5boost10filesystem11path_traits7convertEPKcS3_RNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEEE':|
    17. c:\mingw\include\boost\filesystem\path.hpp|981|undefined reference to `boost::filesystem::path_traits::convert(char const*, char const*, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >&, std::codecvt<wchar_t, char, int> const&)'|
    18. CMakeFiles\otclient.dir\objects.a(resourcemanager.cpp.obj)||In function `ZN5boost10filesystem11path_traits7convertEPKwS3_RNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE':|
    19. c:\mingw\include\boost\filesystem\path.hpp|989|undefined reference to `boost::filesystem::path_traits::convert(wchar_t const*, wchar_t const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::codecvt<wchar_t, char, int> const&)'|
    20. CMakeFiles\otclient.dir\objects.a(resourcemanager.cpp.obj)||In function `ZN15ResourceManager12discoverPathB5cxx11ERKN5boost10filesystem4pathEbb':|
    21. C:\otclient-gugu15\src\framework\core\resourcemanager.cpp|298|undefined reference to `boost::filesystem::path::generic_string[abi:cxx11]() const'|
    22. CMakeFiles\otclient.dir\objects.a(resourcemanager.cpp.obj)||In function `ZN5boost10filesystem11path_traits7convertEPKwS3_RNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE':|
    23. c:\mingw\include\boost\filesystem\path.hpp|989|undefined reference to `boost::filesystem::path_traits::convert(wchar_t const*, wchar_t const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::codecvt<wchar_t, char, int> const&)'|
    24. CMakeFiles\otclient.dir\objects.a(resourcemanager.cpp.obj)||In function `ZN5boost10filesystem11path_traits7convertEPKcS3_RNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEEE':|
    25. c:\mingw\include\boost\filesystem\path.hpp|981|undefined reference to `boost::filesystem::path_traits::convert(char const*, char const*, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >&, std::codecvt<wchar_t, char, int> const&)'|
    26. c:\mingw\include\boost\filesystem\path.hpp|981|undefined reference to `boost::filesystem::path_traits::convert(char const*, char const*, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >&, std::codecvt<wchar_t, char, int> const&)'|
    27. ||error: ld returned 1 exit status|
    28. CMakeFiles\otclient.dir\build.make|4006|recipe for target 'otclient.exe' failed|
    29. CMakeFiles\Makefile2|66|recipe for target 'CMakeFiles/otclient.dir/all' failed|
    30. C:\otclient-gugu15\compile\Makefile|128|recipe for target 'all' failed|
    31. ||=== Build failed: 17 error(s), 0 warning(s) (4 minute(s), 42 second(s)) ===|
    32.  
    33.  
     
    Last edited: Oct 15, 2017 at 5:26 AM
  2. Okke

    Okke whatever

    Joined:
    Jul 19, 2015
    Messages:
    542
    Likes Received:
    261
    Best Answers:
    5
  3. Felipe93

    Felipe93 Ghost Member

    Joined:
    Mar 21, 2015
    Messages:
    796
    Likes Received:
    36
    Best Answers:
    2
    but where i have to edit? because i have the otclient libraries from conde and all libraries for mingw but i dont know why while im compiling it tries to use
    1_64 boost folder if i have 1_63 installed. reinstalled it too boot errors persists
    the compiler is trying to use 1_64 :S im not experienced on this
     
  4. Okke

    Okke whatever

    Joined:
    Jul 19, 2015
    Messages:
    542
    Likes Received:
    261
    Best Answers:
    5
    Makefile?
     
  5. Felipe93

    Felipe93 Ghost Member

    Joined:
    Mar 21, 2015
    Messages:
    796
    Likes Received:
    36
    Best Answers:
    2
    i edited

    camakecache.txt
    //Path to a file.
    Boost_INCLUDE_DIR:pATH=C:/local/boost_1_63_0
    and other line to 1_64_0 to 63 i changed two lines

    but now i get this
    [​IMG]
     
  6. _ferrari_

    _ferrari_ Member

    Joined:
    Sep 17, 2011
    Messages:
    79
    Likes Received:
    35
    Best Answers:
    0
    Currently it is extremelly difficult to compile OTC on Windows. If you or anyone can provide information about it please PM me as I am interested in making a complete guide.
     
  7. Felipe93

    Felipe93 Ghost Member

    Joined:
    Mar 21, 2015
    Messages:
    796
    Likes Received:
    36
    Best Answers:
    2
    i gonna release the wholes libraries dont worry :) as you can see i've posted many things regarding otc
    .black otc layout dx9 latest otc between others...

    pd edit
    Code (Text):
    1. ||=== Build: all in otclient (compiler: GNU GCC Compiler) ===|
    2. c:\mingw\include\math.h||In function 'float hypotf(float, float)':|
    3. c:\mingw\include\math.h|635|error: '_hypot' was not declared in this scope|
    4. c:\mingw\include\boost\asio\detail\impl\win_static_mutex.ipp||In member function 'int boost::asio::detail::win_static_mutex::do_init()':|
    5. c:\mingw\include\boost\asio\detail\impl\win_static_mutex.ipp|51|error: 'swprintf' was not declared in this scope|
    6. CMakeFiles\otclient.dir\build.make|66|recipe for target 'CMakeFiles/otclient.dir/src/framework/luafunctions.cpp.obj' failed|
    7. CMakeFiles\Makefile2|66|recipe for target 'CMakeFiles/otclient.dir/all' failed|
    8. C:\otclient-master\otc\Makefile|128|recipe for target 'all' failed|
    9. ||=== Build failed: 5 error(s), 0 warning(s) (7 minute(s), 47 second(s)) ===|
    10.  
    any clues?
     
    Last edited: Oct 11, 2017
  8. Felipe93

    Felipe93 Ghost Member

    Joined:
    Mar 21, 2015
    Messages:
    796
    Likes Received:
    36
    Best Answers:
    2
    @Flatlander
    @jestem pro
    @Summ
    @margoh

    im stuck here anyone of you have a clue? how to fix this? these arrors appears at the end of compilation wit codeblocks

    bumping!
     
  9. jestem pro

    jestem pro Member

    Joined:
    Apr 20, 2013
    Messages:
    244
    Likes Received:
    12
    Best Answers:
    0
    I don't use codeblocks, just microsoft visual studio 2013. It seems the error is beetwen codeblocks and libraries.
    Or you did not include all files.
    Or the libraries are wrong.
     
  10. Flatlander

    Flatlander Species Developer

    Joined:
    Feb 17, 2009
    Messages:
    2,360
    Likes Received:
    1,163
    Best Answers:
    1
    Same Visual Studio is the way to go.
     
  11. Felipe93

    Felipe93 Ghost Member

    Joined:
    Mar 21, 2015
    Messages:
    796
    Likes Received:
    36
    Best Answers:
    2
    with msvc 2013 you can compile under dx9 support? if its possible... where i must do the changes to enabe dx9 support?
    @Flatlander @jestem pro
     
  12. Flatlander

    Flatlander Species Developer

    Joined:
    Feb 17, 2009
    Messages:
    2,360
    Likes Received:
    1,163
    Best Answers:
    1
    Can you tell me why you want DX9 support?

    From what I understand, the DX9 support in the otclient is basically just done in a terrible ghetto way.
     
  13. Felipe93

    Felipe93 Ghost Member

    Joined:
    Mar 21, 2015
    Messages:
    796
    Likes Received:
    36
    Best Answers:
    2
    because its works better for me and others users with an old pc than opengl
    i can compile otc in msvc2015 but im looking for dx9 support :C
     
    Last edited: Oct 15, 2017 at 5:17 AM
  14. Felipe93

    Felipe93 Ghost Member

    Joined:
    Mar 21, 2015
    Messages:
    796
    Likes Received:
    36
    Best Answers:
    2
    bump ! could anyone tell me how fix this plss or help me via teamviewer please? I PROMES im gonna release this when i get solved this problem
    mingw codeblocks and cmke with a mini instalation tutorial !
    @Summ


    Latest error
    Code (Text):
    1. ||=== Build: all in otclient (compiler: GNU GCC Compiler) ===|
    2. CMakeFiles\otclient.dir\objects.a(asyncdispatcher.cpp.obj)||In function `ZN5boost6detail16thread_data_baseC4Ev':|
    3. c:\mingw\include\boost\thread\win32\thread_data.hpp|135|undefined reference to `vtable for boost::detail::thread_data_base'|
    4. CMakeFiles\otclient.dir\objects.a(asyncdispatcher.cpp.obj)||In function `ZN5boost6thread12start_threadEv':|
    5. c:\mingw\include\boost\thread\detail\thread.hpp|178|undefined reference to `boost::thread::start_thread_noexcept()'|
    6. CMakeFiles\otclient.dir\objects.a(asyncdispatcher.cpp.obj)||In function `ZN5boost6thread4joinEv':|
    7. c:\mingw\include\boost\thread\detail\thread.hpp|775|undefined reference to `boost::thread::join_noexcept()'|
    8. CMakeFiles\otclient.dir\objects.a(asyncdispatcher.cpp.obj)||In function `ZN5boost6detail11thread_dataISt5_BindIFSt7_Mem_fnIM15AsyncDispatcherFvvEEPS4_EEED1Ev':|
    9. c:\mingw\include\boost\thread\detail\thread.hpp|90|undefined reference to `boost::detail::thread_data_base::~thread_data_base()'|
    10. CMakeFiles\otclient.dir\objects.a(asyncdispatcher.cpp.obj)||In function `ZN5boost6detail11thread_dataISt5_BindIFSt7_Mem_fnIM15AsyncDispatcherFvvEEPS4_EEED4Ev':|
    11. c:\mingw\include\boost\thread\detail\thread.hpp|90|undefined reference to `boost::detail::thread_data_base::~thread_data_base()'|
    12. CMakeFiles\otclient.dir\objects.a(resourcemanager.cpp.obj)||In function `ZN15ResourceManager12discoverPathB5cxx11ERKN5boost10filesystem4pathEbb':|
    13. C:\otclient-gugu15\src\framework\core\resourcemanager.cpp|289|undefined reference to `boost::filesystem::path::generic_string[abi:cxx11]() const'|
    14. C:\otclient-gugu15\src\framework\core\resourcemanager.cpp|291|undefined reference to `boost::filesystem::path::generic_string[abi:cxx11]() const'|
    15. CMakeFiles\otclient.dir\objects.a(resourcemanager.cpp.obj)||In function `ZN5boost10filesystem11path_traits7convertEPKcS3_RNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEEE':|
    16. c:\mingw\include\boost\filesystem\path.hpp|981|undefined reference to `boost::filesystem::path_traits::convert(char const*, char const*, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >&, std::codecvt<wchar_t, char, int> const&)'|
    17. CMakeFiles\otclient.dir\objects.a(resourcemanager.cpp.obj)||In function `ZN5boost10filesystem11path_traits7convertEPKwS3_RNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE':|
    18. c:\mingw\include\boost\filesystem\path.hpp|989|undefined reference to `boost::filesystem::path_traits::convert(wchar_t const*, wchar_t const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::codecvt<wchar_t, char, int> const&)'|
    19. CMakeFiles\otclient.dir\objects.a(resourcemanager.cpp.obj)||In function `ZN15ResourceManager12discoverPathB5cxx11ERKN5boost10filesystem4pathEbb':|
    20. C:\otclient-gugu15\src\framework\core\resourcemanager.cpp|298|undefined reference to `boost::filesystem::path::generic_string[abi:cxx11]() const'|
    21. CMakeFiles\otclient.dir\objects.a(resourcemanager.cpp.obj)||In function `ZN5boost10filesystem11path_traits7convertEPKwS3_RNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE':|
    22. c:\mingw\include\boost\filesystem\path.hpp|989|undefined reference to `boost::filesystem::path_traits::convert(wchar_t const*, wchar_t const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::codecvt<wchar_t, char, int> const&)'|
    23. CMakeFiles\otclient.dir\objects.a(resourcemanager.cpp.obj)||In function `ZN5boost10filesystem11path_traits7convertEPKcS3_RNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEEE':|
    24. c:\mingw\include\boost\filesystem\path.hpp|981|undefined reference to `boost::filesystem::path_traits::convert(char const*, char const*, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >&, std::codecvt<wchar_t, char, int> const&)'|
    25. c:\mingw\include\boost\filesystem\path.hpp|981|undefined reference to `boost::filesystem::path_traits::convert(char const*, char const*, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >&, std::codecvt<wchar_t, char, int> const&)'|
    26. ||error: ld returned 1 exit status|
    27. CMakeFiles\otclient.dir\build.make|4006|recipe for target 'otclient.exe' failed|
    28. CMakeFiles\Makefile2|66|recipe for target 'CMakeFiles/otclient.dir/all' failed|
    29. C:\otclient-gugu15\compile\Makefile|128|recipe for target 'all' failed|
    30. ||=== Build failed: 17 error(s), 0 warning(s) (4 minute(s), 42 second(s)) ===|
    31.  
    edited main post with the latest error
     
    Last edited: Oct 15, 2017 at 5:46 AM
  15. Felipe93

    Felipe93 Ghost Member

    Joined:
    Mar 21, 2015
    Messages:
    796
    Likes Received:
    36
    Best Answers:
    2

Share This Page

Loading...