Coder Social home page Coder Social logo

Unresolved Link Errors about rs HOT 13 CLOSED

ravishchawla avatar ravishchawla commented on July 29, 2024
Unresolved Link Errors

from rs.

Comments (13)

taketwo avatar taketwo commented on July 29, 2024

In the CMake output, do you see a line starting with Found RSSDK: ...? Can you paste it here?

from rs.

ravishchawla avatar ravishchawla commented on July 29, 2024

that line isn't there. It finds the RSSDK and shows the location it found. Here is the output from that point

-- RSSDK: C:/Program Files (x86)/Intel/RSSDK
-- Configuring done
-- Generating done
-- Build files have been written to: C:/--/Documents/Visual Studio 2015

from rs.

taketwo avatar taketwo commented on July 29, 2024

Strange... maybe it's because we use different CMake versions (mine is 3.0.1).
Okay, what is the value of RSSDK_LIBRARIES variable?

from rs.

ravishchawla avatar ravishchawla commented on July 29, 2024

I am using 3.30. These are the RSSDK variables that cmake has

RSSDK_DIR : C:/Program Files (x86)/Intel/RSSDK
RSSDK_LIBRARY : C:/Program Files (x86)/Intel/RSSDK/lib/x64/libpxc.lib
RSSDK_LIBRARY_DEBUG : C:/Program Files (x86)/Intel/RSSDK/lib/x64/libpxc_d.lib

from rs.

taketwo avatar taketwo commented on July 29, 2024

This looks good. Though you should have RSSDK_LIBRARIES variable set as well. If it does not show up in the cmake-gui, let's try to output it from the script. Paste in the end of CMakeLists.txt:

message(WARNING "RSSDK_LIBRARIES: ${RSSDK_LIBRARIES}")
message(WARNING "RSSDK_VERSION: ${RSSDK_VERSION}")

What does it give when configuring?

from rs.

ravishchawla avatar ravishchawla commented on July 29, 2024

Here is the output.

CMake Warning at CMakeLists.txt:44 (message):
RSSDK_LIBRARIES: optimized;C:/Program Files
(x86)/Intel/RSSDK/lib/x64/libpxc.lib;debug;C:/Program Files
(x86)/Intel/RSSDK/lib/x64/libpxc_d.lib

CMake Warning at CMakeLists.txt:45 (message):
RSSDK_VERSION: 6.0.21.6598

from rs.

sebandraos avatar sebandraos commented on July 29, 2024

I hate to butt in but Ravish, you said you were building x86 (32-bit) and it looks like you're linking the x64 RSSDK libraries. Worth correcting that to make sure it isn't the issue or maybe it is.

RSSDK_LIBRARIES: optimized;C:/Program Files
(x86)/Intel/RSSDK/lib/x64/libpxc.lib;debug;C:/Program Files
(x86)/Intel/RSSDK/lib/x64/libpxc_d.lib

should be

RSSDK_LIBRARIES: optimized;C:/Program Files
(x86)/Intel/RSSDK/lib/Win32/libpxc.lib;debug;C:/Program Files
(x86)/Intel/RSSDK/lib/Win32/libpxc_d.lib

from rs.

ravishchawla avatar ravishchawla commented on July 29, 2024

ah you were right. that fixed it. building properly now.

from rs.

sebandraos avatar sebandraos commented on July 29, 2024

Excellent, glad to hear it

from rs.

taketwo avatar taketwo commented on July 29, 2024

@sebandraos thanks for helping out! I'm an alien on Windows platform and don't feel comfortable myself when seeing such errors :)

from rs.

sebandraos avatar sebandraos commented on July 29, 2024

No worries Sergey, it's one of those errors that's so easy to miss as it's just a couple of letters in a path but puts a real spanner in the works.

from rs.

friend047 avatar friend047 commented on July 29, 2024

Sorry guys, I got the same problem in this
RSSDK_LIBRARIES: optimized;C:/Program Files
(x86)/Intel/RSSDK/lib/x64/libpxc.lib;debug;C:/Program Files
(x86)/Intel/RSSDK/lib/x64/libpxc_d.lib

but I don't know how to change the path to
RSSDK_LIBRARIES: optimized;C:/Program Files
(x86)/Intel/RSSDK/lib/Win32/libpxc.lib;debug;C:/Program Files
(x86)/Intel/RSSDK/lib/Win32/libpxc_d.lib

Someone could help me :( ?

from rs.

sebandraos avatar sebandraos commented on July 29, 2024

I assume that text is copied from CMake in which case the easiest thing to do is load the make via the GUI and then you can simply click on the text to change it.

from rs.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.