Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Porting Microsft Visual Studios to Qt 5.2.1

Porting Microsft Visual Studios to Qt 5.2.1

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 1.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    overtime
    wrote on last edited by
    #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?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andrep
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • O Offline
        O Offline
        overtime
        wrote on last edited by
        #3

        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@

        1 Reply Last reply
        0
        • A Offline
          A Offline
          andrep
          wrote on last edited by
          #4

          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"@

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved