Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: Compile for Linux on Windows 10?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Junior Member Newbie
    Join Date
    May 2014
    Posts
    11

    Compile for Linux on Windows 10?

    Hello,

    I made a simple application with C++ and OpenGL in Visual Studio Community 2017. How can I compile this so it runs on linux as well? I had quite some issues setting up OpenGL under Windows and I have no clue how to set this up without Visual Studio helping me. I tried creating a new plattform but it doesn't seem to know the .libs like glu or opengl32 nor I do know what exactly I need to do. Also can someone explain me why I can't compile my project without having this settings in preprocessor definition?

    WIN32
    _WINDOWS
    TW_STATIC
    TW_NO_LIB_PRAGMA
    TW_NO_DIRECT3D
    GLEW_STATIC
    _CRT_SECURE_NO_WARNINGS
    CMAKE_INTDIR="Debug"

    This issue I had years ago and I did just figured it out after trying opengl again and carefully checking all settings from a different project, but in the project and in all other tutorials I found it is not mentioned that I need those defines, but I can't compile without manually adding them.

    Thanks for your help
    Last edited by QuesterDesura; 09-18-2017 at 07:30 AM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •