User Tag List

Results 1 to 5 of 5

Thread: TrinityCore 3.3.5 CMAKE errors

  1. #1
    Respected Member
    Join Date
    Mar 2014
    Posts
    159
    XP
    3,722
    Level
    17
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Question TrinityCore 3.3.5 CMAKE errors

    Hello!

    I tried to create a build solution for my sourcecode and I am getting those errors:


    Code:
    CMake Error at src/server/logonserver/CMakeLists.txt:103 (add_executable):
      add_executable called with incorrect number of arguments
    
    
    CMake Error at src/server/logonserver/CMakeLists.txt:108 (add_dependencies):
      Cannot add target-level dependencies to non-existent target "logonserver".
    
      The add_dependencies works for top-level logical targets created by the
      add_executable, add_library, or add_custom_target commands.  If you want to
      add file-level dependencies see the DEPENDS option of the add_custom_target
      and add_custom_command commands.
    
    
    CMake Error at src/server/logonserver/CMakeLists.txt:116 (target_link_libraries):
      Cannot specify link libraries for target "logonserver" which is not built
      by this project.
    Here is that CMAKE file: http://pastebin.com/B46KTWyr

    Sincerely, Intouch!

  2. #2
    Moderator / Eluna Dev <span style='color: #FF0000'><span class='glow_8B0000'>Rochet2</span></span>'s Avatar
    Join Date
    Apr 2013
    Location
    Finland
    Posts
    1,859
    XP
    13,487
    Level
    35
    Thanks
    95
    Thanked 591 Times in 418 Posts
    What is your core version hash?
    The latest TC 3.3.5 and 6.x dont have "logonserver" folder.

    So likely you do not have official TC or you have some old version and we need to know what version that is.
    Awards:
    Support LOL Scripter Facepalm! Raffle Winner
    rochet2.github.io - Home of great codes

  3. #3
    Original Poster
    Respected Member
    Join Date
    Mar 2014
    Posts
    159
    XP
    3,722
    Level
    17
    Thanks
    3
    Thanked 0 Times in 0 Posts
    I don't follow TC standards since 2014-2015 (once they added BOOST feature) but I do have almost exact same fixes as they do.

    So, basically I started working on something and I added new login (auth) feature to my core but this code is old so I had to fix some codestyle and once I did that, I transfered it to my core and I got these errors so I am not sure what I forgot to add / change in my core. Here is one example of my CMAKE file (authserver's cmake):

    http://pastebin.com/etpw7MGy

    So I am not sure what I have to change in that CMake file in order to fix this error.
    Last edited by Intouch; 08-20-2016 at 12:58 PM.
    Achievements:
    Member 1 year registered Level XV

  4. #4
    Moderator / Eluna Dev <span style='color: #FF0000'><span class='glow_8B0000'>Rochet2</span></span>'s Avatar
    Join Date
    Apr 2013
    Location
    Finland
    Posts
    1,859
    XP
    13,487
    Level
    35
    Thanks
    95
    Thanked 591 Times in 418 Posts
    Looks to me like these are not defined:
    ${logon_SRCS}
    ${logon_PCH_SRC}
    You probably made a mistake with the name and they should be
    ${logonserver_SRCS}
    ${logonserver_PCH_SRC}
    Awards:
    Support LOL Scripter Facepalm! Raffle Winner
    rochet2.github.io - Home of great codes

  5. #5
    Original Poster
    Respected Member
    Join Date
    Mar 2014
    Posts
    159
    XP
    3,722
    Level
    17
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Okay, I found out what was wrong now so problem is solved.

    Basically I was missing that part so I added:

    Code:
    ${logonserver_SRCS}
    ${logonserver_PCH_SRC}
    Together with:

    Code:
    ${logon_SRCS}
    ${logon_PCH_SRC}
    (Because there is one more folder called "logon")

    --

    Tnx for helping me!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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