Important: Please read the Qt Code of Conduct -

Porting Microsft Visual Studios to Qt 5.2.1

  • So I have a program that was created in MVS. I don't have MVS nor do I know how to use MVS but I would like to move the code over to Qt 5.2.1

    There are a few things I have to figure out as I move it over.

    @#pragma comment(lib, "../lib/edk.lib")@

    How do I change this to Qt?

  • This feature of the MS compiler to pull in libraries with a line in the sources is convenient at times, but not part of a "normal" C++ development workflow. You have to move that task to the build system (or whatever calls your linker). When using e.g. qmake that would be something similar to a LIBS += -L/path/to/where/your/libs/are -ledk in your .pro file.

  • What is the "-ledk", is that a shorthand for edk.lib?

    So I did something like this:
    @LIBS += "C:/Program Files (x86)/Emotiv Education Edition SDK v2.0.0.20/doc/examples/lib/"@

    But get
    @:-1: error: cannot find C:/Program Files (x86)/Emotiv Education Edition SDK v2.0.0.20/doc/examples/lib/: Permission denied@

  • Try @LIBS += "-LC:/Program Files (x86)/Emotiv Education Edition SDK v2.0.0.20/doc/examples/lib/" -ledk@ or if that doesn't work @LIBS += "C:/Program Files (x86)/Emotiv Education Edition SDK v2.0.0.20/doc/examples/lib/edk.lib"@

Log in to reply