Jump to content

CMake undefined reference to symbol


martyj
 Share

Recommended Posts

I'm trying to get my game to compile via CMake and I am getthing this error

/usr/bin/ld: /home/martyj/.steam/steam/steamapps/common/Leadwerks/Library/Linux/Debug/Leadwerks.a(Window.linux.o): undefined reference to symbol 'XdbeAllocateBackBufferName'
//usr/lib/x86_64-linux-gnu/libXext.so.6: error adding symbols: DSO missing from command line

Here is my library list

target_link_libraries(WorldFactions
        m
        "${SHORT_PATH_LINK}/Linux/Debug/Leadwerks.a"
        dl
        openal
        GL
        GLU
        ${SHORT_PATH_LINK}/Linux/libsteam_api.so
        X11
        pthread)

 

Any help with this would be great.

Thanks,
Marty

Link to comment
Share on other sites

From the default linux-codeblocks-file I gather that the libraries needed should be the following:

$(LeadwerksPath)/Library/Linux/Debug/Leadwerks.a
dl
openal
GL
GLU
$(LeadwerksPath)/Library/Linux/libluajit.a
../../libsteam_api.so
X11
Xext
Xrender
Xft
pthread
libcurl
$(LeadwerksPath)/Library/Linux/libopenvr_api.so

See whether it works, if you include all of these (in the specified order).

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...