Welcome to AC Web.
Page 1 of 2 12 LastLast
Results 1 to 15 of 19

Thread: Cannot compile

  1. #1
    Funserver Grandmaster

    Join Date
    Nov 2007
    Location
    Lua/C++/.DBC/SQL Developer
    Posts
    3,050

    Cannot compile


    REGISTER! (FREE)
    Registered members see less ads
    and also gain access to other great features.
    Hey boys and girls, it's me, runemaster, back at it again with emulation AIDS

    I havent touched the sourcecode in about a week or two, went to open the project in Visual Studio and it keeps giving me THIS error that I've never encountered before.

    what is it and how do i fix it???



    I also sometimes get a thousand unresolved external errors to boot, things that should not be giving me such errors.


    Kill me. Please.
    Last edited by runemaster; 08-04-2020 at 12:49 AM.

  2. #2
    https://social.msdn.microsoft.com/Fo...orum=vcgeneral
    I have resloved the issue by moving libraries that I use (qt, osg) in a folder without spaces.
    https://www.bci2000.org/bbs/viewtopic.php?t=3407
    Solved: Anti virus (avast in my case) was preventing that file from launching. Deactivating it did the thing.
    lsegura003,

    this is a known issue — many antivirus scanners consider unknown files as highly suspicious. For that reason, we code sign the binary distributions of BCI2000 and have them whitelisted in addition with the major antivirus software programs. If you are building BCI2000 on your own you will likely need to either exclude the BCI2000 path from the antivirus scanning, or de-activate the scanner completely.

    Regards, Peter

    Took me 8 seconds to search on Google.

    Try adding your entire project folder into your antivirus' "exceptions' list.
    Last edited by molinita; 08-04-2020 at 01:04 AM.

  3. #3
    Funserver Grandmaster

    Join Date
    Nov 2007
    Location
    Lua/C++/.DBC/SQL Developer
    Posts
    3,050
    Quote Originally Posted by molinita View Post
    https://social.msdn.microsoft.com/Fo...orum=vcgeneral


    https://www.bci2000.org/bbs/viewtopic.php?t=3407




    Took me 8 seconds to search on Google.

    Try adding your entire project folder into your antivirus' "exceptions' list.
    Ill do ya one better, I uninstalled my antivirus altogether and I'm STILL getting the same error.



    edit:

    I decided to use the same source to create a new solution with cmake in an empty folder to see if i can recreate the problem. Instead, creating a new solution from the same code resulted in THESE new errors instead. What gives?

    Last edited by runemaster; 08-04-2020 at 02:04 AM.

  4. #4
    Are you trying to compile latest Trinity Core source?
    Which softwares are you using?

    Latest source requires you to update every software (Cmake, VS, SQL, ...)

  5. #5
    Funserver Grandmaster

    Join Date
    Nov 2007
    Location
    Lua/C++/.DBC/SQL Developer
    Posts
    3,050
    Quote Originally Posted by molinita View Post
    Are you trying to compile latest Trinity Core source?
    Which softwares are you using?

    Latest source requires you to update every software (Cmake, VS, SQL, ...)

    as stated earlier, I hadnt updated anything. I was just compiling my source as per usual with the same visual studio 17 ive used for the last year with the same equipment.

    and I keep getting those errors over and over again.

    So Now I uninstalled 17 and got visual studio 2019, properly, installed updated cmake, boost, openssl,ect and even downloaded fresh trinitycore sourcecode to test it and it wont compile either.

    Nothing I do seems to work and everything is falling apart.

    Lol cmake throwing up errors like "CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:165 (message):
    Could NOT find Boost (missing: system filesystem program_options iostreams
    regex) (found suitable version "1.72.0", minimum required is "1.70")_"
    Last edited by runemaster; 08-04-2020 at 08:21 AM.

  6. #6
    These are the Windows requirements for the latest Trinity Core Source:
    Processor with SSE2 support
    Boost ≥ 1.70 (latest stable recommended)
    MySQL ≥ 5.7
    OpenSSL ≥ 1.0.x
    CMake ≥ 3.14 (latest stable recommended)
    MS Visual Studio (Community) ≥ 16.4 (2019) (Desktop) (Not previews)
    https://trinitycore.atlassian.net/wi...s+Requirements

    Check that you have these all installed/updated.

    Another thing,
    C:/Program Files (x86)
    Is it your System 32 bits or is it 64 bits? This of course will differ your installation.
    Cmake will need to be run within the properly Visual Studio version for your OS (32/64 bits).
    And of course, Core can be compiled for 32/64 bits, be sure you've selected the right option inside your Visual Studio.

    Here
    Could NOT find Boost (missing: system filesystem program_options iostreams
    regex) (found suitable version "1.72.0", minimum required is "1.70")_"
    These indeed means you've not installed Boost properly,
    Check it is installed in the default location:
    Install the package to the default location (usually C:\local\boost_1_XX_0\ .)

  7. #7
    Funserver Grandmaster

    Join Date
    Nov 2007
    Location
    Lua/C++/.DBC/SQL Developer
    Posts
    3,050
    Quote Originally Posted by molinita View Post

    Here


    These indeed means you've not installed Boost properly,
    Check it is installed in the default location:


    The fresh copy works but then I go back to the source code for my server, the one Ive been you know, working on for 2 years.

    and I get this stuff:

    Code:
    The C compiler identification is MSVC 19.26.28806.0
    The CXX compiler identification is MSVC 19.26.28806.0
    Detecting C compiler ABI info
    Detecting C compiler ABI info - done
    Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.26.28801/bin/Hostx64/x64/cl.exe - skipped
    Detecting C compile features
    Detecting C compile features - done
    Detecting CXX compiler ABI info
    Detecting CXX compiler ABI info - done
    Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.26.28801/bin/Hostx64/x64/cl.exe - skipped
    Detecting CXX compile features
    Detecting CXX compile features - done
    CMake Deprecation Warning at CMakeLists.txt:22 (cmake_policy):
      The OLD behavior for policy CMP0005 will be removed from a future version
      of CMake.
    
      The cmake-policies(7) manual explains that the OLD behaviors of all
      policies are deprecated and that a policy should be set to OLD only under
      specific short-term circumstances.  Projects should be ported to the NEW
      behavior and not rely on setting a policy to OLD.
    
    
    CMake Deprecation Warning at CMakeLists.txt:24 (cmake_policy):
      The OLD behavior for policy CMP0043 will be removed from a future version
      of CMake.
    
      The cmake-policies(7) manual explains that the OLD behaviors of all
      policies are deprecated and that a policy should be set to OLD only under
      specific short-term circumstances.  Projects should be ported to the NEW
      behavior and not rely on setting a policy to OLD.
    
    
    Detected 64-bit platform
    MSVC: 64-bit platform, enforced -D_WIN64 parameter
    MSVC: Enabled increased number of sections in object files
    MSVC: Overloaded standard names
    MSVC: Disabled NON-SECURE warnings
    MSVC: Disabled POSIX warnings
    MSVC: Disabled generic compiletime warnings
    cotire 1.7.10 loaded.
    CMake Warning (dev) at CMakeLists.txt:67 (find_package):
      Policy CMP0074 is not set: find_package uses <PackageName>_ROOT variables.
      Run "cmake --help-policy CMP0074" for policy details.  Use the cmake_policy
      command to set the policy and suppress this warning.
    
      Environment variable MySQL_ROOT is set to:
    
        C:/Program Files (x86)/mysql-5.7.31-win32
    
      For compatibility, CMake is ignoring the variable.
    This warning is for project developers.  Use -Wno-dev to suppress it.
    
    Found MySQL library: C:/Program Files (x86)/MySQL/MySQL Server 5.5/lib/libmysql.lib
    Found MySQL headers: C:/Program Files (x86)/MySQL/MySQL Server 5.5/include
    Found MySQL executable: C:/Program Files (x86)/MySQL/MySQL Server 5.5/bin/mysql.exe
    Found git binary : C:/Program Files/Git/cmd/git.exe
    
    * TrinityCore revision   : 3252c1f97f79+ 2018-08-27 13:12:49 -0700 (3.3.5 branch)
    
    * Install core to        : C:/Program Files (x86)/TrinityCore
    
    * Build world/auth       : Yes (default)
    * Build with scripts     : Yes (static)
    * Build Eluna LuaEngine  : Yes (default)
    * Build map/vmap tools   : Yes (default)
    * Build core w/PCH       : Yes (default)
    * Build scripts w/PCH    : Yes (default)
    * Show compile-warnings  : No  (default)
    * Use coreside debug     : No  (default)
    * Show source tree       : Yes (hierarchical)
    * Use GIT revision hash  : Yes (default)
    
    Looking for pthread.h
    Looking for pthread.h - not found
    Found Threads: TRUE  
    CMake Warning (dev) at dep/boost/CMakeLists.txt:44 (find_package):
      Policy CMP0074 is not set: find_package uses <PackageName>_ROOT variables.
      Run "cmake --help-policy CMP0074" for policy details.  Use the cmake_policy
      command to set the policy and suppress this warning.
    
      Environment variable Boost_ROOT is set to:
    
        D:\local\boost_1_72_0
    
      For compatibility, CMake is ignoring the variable.
    This warning is for project developers.  Use -Wno-dev to suppress it.
    
    CMake Error at cmake/macros/FindBoost.cmake:1231 (message):
      Unable to find the requested Boost libraries.
    
      Boost version: 1.72.0
    
      Boost include path: D:/local/boost_1_72_0
    
      Could not find the following static Boost libraries:
    
              boost_system
              boost_filesystem
              boost_thread
              boost_program_options
              boost_iostreams
              boost_regex
    
      No Boost libraries were found.  You may need to set BOOST_LIBRARYDIR to the
      directory containing Boost libraries or BOOST_ROOT to the location of
      Boost.  If you still have problems search on forum for TCE00020.
    Call Stack (most recent call first):
      dep/boost/CMakeLists.txt:44 (find_package)
    
    
    Performing Test boost_filesystem_copy_links_without_NO_SCOPED_ENUM
    Performing Test boost_filesystem_copy_links_without_NO_SCOPED_ENUM - Failed
    Looking for open
    Looking for open - found
    Found OpenSSL library: optimized;D:/OpenSSL-Win64/lib/VC/ssleay32MD.lib;D:/OpenSSL-Win64/lib/VC/libeay32MD.lib;debug;D:/OpenSSL-Win64/lib/VC/ssleay32MDd.lib;D:/OpenSSL-Win64/lib/VC/libeay32MDd.lib
    Found OpenSSL headers: D:/OpenSSL-Win64/include
    CXX target common cotired without unity build.
    CXX target database cotired without unity build.
    CXX target shared cotired without unity build.
    CXX target game cotired without unity build.
    CXX RC target authserver cotired without unity build.
    
    * Script configuration (static):
        |
        +- worldserver
        |   +- Commands
        |   +- Custom
        |   +- EasternKingdoms
        |   +- Events
        |   +- Kalimdor
        |   +- Northrend
        |   +- OutdoorPvP
        |   +- Outland
        |   +- Pet
        |   +- Spells
        |   +- World
        |
    CXX target scripts cotired without unity build.
    
    CXX RC target worldserver cotired without unity build.
    Configuring incomplete, errors occurred!
    See also "D:/ProjectSourceCode/Sholazar-solution/CMakeFiles/CMakeOutput.log".
    See also "D:/ProjectSourceCode/Sholazar-solution/CMakeFiles/CMakeError.log".
    Last edited by runemaster; 08-05-2020 at 02:36 PM.

  8. #8
    Have you re-built your old source with CMake?
    You should because you've updated it.

    Careful with this:
    Found MySQL library: C:/Program Files (x86)/MySQL/MySQL Server 5.5/lib/libmysql.lib
    Found MySQL headers: C:/Program Files (x86)/MySQL/MySQL Server 5.5/include
    Found MySQL executable: C:/Program Files (x86)/MySQL/MySQL Server 5.5/bin/mysql.exe
    It's using MySQL 5.5 files, latest Rev. needs MySQL >= 5.7.
    Last edited by molinita; 08-05-2020 at 03:45 PM.

  9. #9
    Funserver Grandmaster

    Join Date
    Nov 2007
    Location
    Lua/C++/.DBC/SQL Developer
    Posts
    3,050
    Quote Originally Posted by molinita View Post
    Have you re-built your old source with CMake?
    You should because you've updated it.

    Careful with this:


    It's using MySQL 5.5 files, latest Rev. needs MySQL >= 5.7.
    no wai, I literally downloaded the newest I thought xD

    Shitfuck. and yeah I rebuild it with cmake, no dice.

    heres what happens

    Code:
    CMake Deprecation Warning at CMakeLists.txt:22 (cmake_policy):
      The OLD behavior for policy CMP0005 will be removed from a future version
      of CMake.
    
      The cmake-policies(7) manual explains that the OLD behaviors of all
      policies are deprecated and that a policy should be set to OLD only under
      specific short-term circumstances.  Projects should be ported to the NEW
      behavior and not rely on setting a policy to OLD.
    
    
    CMake Deprecation Warning at CMakeLists.txt:24 (cmake_policy):
      The OLD behavior for policy CMP0043 will be removed from a future version
      of CMake.
    
      The cmake-policies(7) manual explains that the OLD behaviors of all
      policies are deprecated and that a policy should be set to OLD only under
      specific short-term circumstances.  Projects should be ported to the NEW
      behavior and not rely on setting a policy to OLD.
    
    
    Detected 32-bit platform
    MSVC: Enabled large address awareness
    MSVC: Enabled SSE2 support
    MSVC: Disabled Safe Exception Handlers for debug builds
    MSVC: Enabled increased number of sections in object files
    MSVC: Overloaded standard names
    MSVC: Disabled NON-SECURE warnings
    MSVC: Disabled POSIX warnings
    MSVC: Disabled generic compiletime warnings
    cotire 1.7.10 loaded.
    CMake Warning (dev) at CMakeLists.txt:67 (find_package):
      Policy CMP0074 is not set: find_package uses <PackageName>_ROOT variables.
      Run "cmake --help-policy CMP0074" for policy details.  Use the cmake_policy
      command to set the policy and suppress this warning.
    
      Environment variable MySQL_ROOT is set to:
    
        C:/Program Files (x86)/mysql-5.7.31-win32
    
      For compatibility, CMake is ignoring the variable.
    This warning is for project developers.  Use -Wno-dev to suppress it.
    
    Found MySQL library: C:/Program Files (x86)/MySQL/MySQL Server 5.5/lib/libmysql.lib
    Found MySQL headers: C:/Program Files (x86)/MySQL/MySQL Server 5.5/include
    Found MySQL executable: C:/Program Files (x86)/MySQL/MySQL Server 5.5/bin/mysql.exe
    Found git binary : C:/Program Files/Git/cmd/git.exe
    
    * TrinityCore revision   : e0b72fde95de 2020-06-23 08:26:37 -0400 (3.3.5 branch)
    
    * Install core to        : C:/Program Files (x86)/TrinityCore
    
    * Build world/auth       : Yes (default)
    * Build with scripts     : Yes (static)
    * Build Eluna LuaEngine  : Yes (default)
    * Build map/vmap tools   : Yes (default)
    * Build core w/PCH       : Yes (default)
    * Build scripts w/PCH    : Yes (default)
    * Show compile-warnings  : No  (default)
    * Use coreside debug     : No  (default)
    * Show source tree       : Yes (hierarchical)
    * Use GIT revision hash  : Yes (default)
    
    CMake Warning (dev) at dep/boost/CMakeLists.txt:44 (find_package):
      Policy CMP0074 is not set: find_package uses <PackageName>_ROOT variables.
      Run "cmake --help-policy CMP0074" for policy details.  Use the cmake_policy
      command to set the policy and suppress this warning.
    
      Environment variable Boost_ROOT is set to:
    
        C:\local\boost_1_72_0
    
      For compatibility, CMake is ignoring the variable.
    This warning is for project developers.  Use -Wno-dev to suppress it.
    
    CMake Error at cmake/macros/FindBoost.cmake:1231 (message):
      Unable to find the requested Boost libraries.
    
      Boost version: 1.72.0
    
      Boost include path: C:/local/boost_1_72_0
    
      Could not find the following static Boost libraries:
    
              boost_system
              boost_filesystem
              boost_thread
              boost_program_options
              boost_iostreams
              boost_regex
    
      No Boost libraries were found.  You may need to set BOOST_LIBRARYDIR to the
      directory containing Boost libraries or BOOST_ROOT to the location of
      Boost.  If you still have problems search on forum for TCE00020.
    Call Stack (most recent call first):
      dep/boost/CMakeLists.txt:44 (find_package)
    
    
    CMake Error at C:/Program Files/CMake/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:165 (message):
      Could NOT find OpenSSL (missing: OPENSSL_LIBRARIES OPENSSL_INCLUDE_DIR)
    Call Stack (most recent call first):
      C:/Program Files/CMake/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:458 (_FPHSA_FAILURE_MESSAGE)
      cmake/macros/FindOpenSSL.cmake:186 (find_package_handle_standard_args)
      dep/openssl/CMakeLists.txt:16 (find_package)
    
    
    Configuring incomplete, errors occurred!
    See also "D:/ProjectSourceCode/Sholazar-solution/CMakeFiles/CMakeOutput.log".
    See also "D:/ProjectSourceCode/Sholazar-solution/CMakeFiles/CMakeError.log".

  10. #10
    What I see is:

    Your CMake
    * Is using MySQL Server 5.5 libraries (Maybe 5.7 are needed)
    Found MySQL library: C:/Program Files (x86)/MySQL/MySQL Server 5.5/lib/libmysql.lib
    Found MySQL headers: C:/Program Files (x86)/MySQL/MySQL Server 5.5/include
    Found MySQL executable: C:/Program Files (x86)/MySQL/MySQL Server 5.5/bin/mysql.exe
    * Cannot find Boost on your System
    Unable to find the requested Boost libraries.

    Boost version: 1.72.0

    Boost include path: C:/local/boost_1_72_0

    Could not find the following static Boost libraries:

    boost_system
    boost_filesystem
    boost_thread
    boost_program_options
    boost_iostreams
    boost_regex

    No Boost libraries were found.
    * Cannot find OpenSSL either
    Could NOT find OpenSSL (missing: OPENSSL_LIBRARIES OPENSSL_INCLUDE_DIR)
    So...
    CMake in order to compile your stuff needs all these libraries, which it can't find installed on your system.
    Be sure you've installed Boost & OpenSSL, if you do, then you've installed them on another location (not default one) and this stuff happens.

    What would I do?
    I would uninstall OpenSSL & Boost, and re-install them into default location.

  11. #11
    Funserver Grandmaster

    Join Date
    Nov 2007
    Location
    Lua/C++/.DBC/SQL Developer
    Posts
    3,050
    Quote Originally Posted by molinita View Post
    What I see is:

    Your CMake
    * Is using MySQL Server 5.5 libraries (Maybe 5.7 are needed)


    * Cannot find Boost on your System


    * Cannot find OpenSSL either


    So...
    CMake in order to compile your stuff needs all these libraries, which it can't find installed on your system.
    Be sure you've installed Boost & OpenSSL, if you do, then you've installed them on another location (not default one) and this stuff happens.

    What would I do?
    I would uninstall OpenSSL & Boost, and re-install them into default location.
    I already reinstalled the updated versions of those components. Im wondering whether or not its requiring me to use older versions to compile it since its older code.

    edit: yeah this is fucking dumb,

    CMake Error at cmake/macros/FindOpenSSL.cmake:233 (message):
    TrinityCore needs OpenSSL version 1.0 but found too new version ..`. Any
    version different to 1.0.x breaks TrinityCore compatibility (and we cannot
    fix this). Please install OpenSSL 1.0.x if you still have problems search
    on forum for TCE00022
    Call Stack (most recent call first):
    dep/openssl/CMakeLists.txt:16 (find_package)

    Ive tried 1.0.2 and ive tried 1.1.1, doesnt seem to matter.
    Last edited by runemaster; 08-07-2020 at 10:06 AM.

  12. #12
    If it is not the latest Rev. then it might not need latest versions.
    OpenSSL 1.1.1 won't work since 1.0.x is required.

    Try with OpenSSL versions: 1.0.0 & 1.0.1
    Downgrading your CMake and compiling with VS 2017 should work.
    Also Boost, I think 1.66.0 is the version for older revs.
    Last edited by molinita; 08-07-2020 at 04:11 PM.

  13. #13
    Funserver Grandmaster

    Join Date
    Nov 2007
    Location
    Lua/C++/.DBC/SQL Developer
    Posts
    3,050
    Quote Originally Posted by molinita View Post
    If it is not the latest Rev. then it might not need latest versions.
    OpenSSL 1.1.1 won't work since 1.0.x is required.

    Try with OpenSSL versions: 1.0.0 & 1.0.1
    Downgrading your CMake and compiling with VS 2017 should work.
    Also Boost, I think 1.66.0 is the version for older revs.
    yeah I figured that, but then I downloaded opensll 1.0.2 and I'm still getting the same crap. I'm thinking you're right about the 1.0 and 1.0.1 thing though, I can't seem to find it availible for download anymore. I might just be shit outa luck.

    Oh well, I guess I'll just have to port the scripts over to new source code : / It isnt the worst thing ever but its definitely more work than I'd like to have done just to recover my project.


    Thanks anyway, Molinita, you've been very helpful. +rep.
    Last edited by Exileḏ; 08-09-2020 at 12:04 PM.

  14. #14

  15. #15
    Funserver Grandmaster

    Join Date
    Nov 2007
    Location
    Lua/C++/.DBC/SQL Developer
    Posts
    3,050

    REGISTER! (FREE)
    Registered members see less ads
    and also gain access to other great features.
    Quote Originally Posted by molinita View Post
    I tried those, Still nothing. I'm still going with making a new core and trying to transfer what I can over from it. I'm fortunate in the way that most of my content is clientside, Lua, and database so I think almost all of it will port over. It just sucks that I have to do this instead of booting up 2017 visual studio and compiling like normal. I'm still wondering what caused this.

    To recap for anyone new reading: I basically had trinitycore from 2018 that I've been working on for the last 2 years. The last time I opened my source in visual studio 2017 was a week ago. I did it at the start of the thread and it would give me errors, so I opened another servers source with the same code that was used a few weeks prior to that and received completely different errors. This lead me to delete visual studio 2017, download 2019, redownload 2017, update cmake, boost, mysql and openssl, which allows me to download brand new trinitycore source code for compilation from today that works however is now compiling in 64 bit and throws up completely different tertiary errors in regards to openssl, boost, and mysql, which even if solved, would not solve the original issue.

    Is there an easy way to just port my changes from my source to the new code?

    Oh and some no name guy showed up to try to troll the thread, please ignore him as other users on the board do. He thrives on the attention, so I wrote a guide!

    Troll-B-Gone Tutorial!

    The best way to deal with this is to click his name, Then go to View Profile.



    Once done, beneath his name are a list of options, you want to click "Add To Ignore List"



    and then confirm.


    This gets rid of the attention seeking children and makes them sad.
    Last edited by Exileḏ; 08-09-2020 at 12:04 PM.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •