How to set up wxWidgets 3.1.0 with Visual Studio 2015

后端 未结 1 1703
伪装坚强ぢ
伪装坚强ぢ 2020-12-16 07:24

I am somewhat of a beginner when it comes to open source libraries. I have tried to compile from source and use the pre-built binaries, but in both cases I get a ton of erro

相关标签:
1条回答
  • 2020-12-16 08:19

    The simplest way to start working with the library is this:

    1. Grab the sources.
    2. Unpack the sources.
    3. Open VS IDE.
    4. Open \build\msw\wx-vc14.sln (adjust as necessary.)
    5. Go to "Build->Batch Build...", click "Select All", "Build".
    6. Go drink some coffee or watch TV.
    7. After the build finishes, open wxWidgets/samples/minimal/minimal_vc9.sln.
    8. Let MSVC convert the solution to become an appropriate format.
    9. Build and run the sample.

    If you will acquire any issue during those steps, let us know. The library build in step 5 should build without any issues and then all you will need is to build the minimal sample.

    The next step is to copy the samples\minimal folder somewhere and start writing the code. All you will need to do is to change the Include and Lib search path.

    [EDIT]

    If you can build the 32-bit libraries (which are default in the provided solutions) all you will need is to convert them to be 64-bit and rebuild.

    There is no changes to the $PATH or any environmental variable involved. Moreover you shouldn't build anything with the admin priviledges.

    Also as Thomas pointed out you library build has to match whatever sample you are trying to build.

    [/EDIT]

    0 讨论(0)
提交回复
热议问题