Thread: Cygwin (MS Windows 10) - SDL

  1. #1
    Registered User
    Join Date
    Aug 2018
    Posts
    2

    Question Cygwin (MS Windows 10) - SDL

    Hello!

    I am very new to this forum and i have a question.

    I use:
    - WINDOWS 10, 64 Bit
    - CYGWIN_NT-10.0 DESKTOP-08V6D05 2.10.0(0.325/5/3) 2018-02-02 15:16 x86_64 Cygwin (used "uname -a")
    - SDL
    - X-Windows (Xorg Server)

    So, i can compile with GCC (gcc foo.c -lsdl) a graphic application in X-WINDOWS. All runs fine!

    BUT, when i try to run this application direct in Windows i get always the error that 2 DLL's are missing:

    1) cygwin1.dll
    2) cygSDL-1-2-0.dll

    I copied these 2 files from fresh and original Cygwin Directory to this folder where the executable (a.exe) is to see what happened.

    Result: I see a fast console popup and nothing happened.

    Question: How can i run / start kind of these (graphic) application in native Windows made in Cygwin?

  2. #2
    Registered User
    Join Date
    May 2009
    Posts
    3,629
    If it requires X-Windows (Xorg Server) I do not know of a simple way.

    If you remove X-Windows in Cygwin does it run? If yes, then you likely need to copy a few more DLLs.

    Note: I would suggest trying to build using the MinGW64 GCC toolkit that should be much easier to get to run under native Windows.

    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  3. #3
    Registered User
    Join Date
    Aug 2018
    Posts
    2
    Thanks Tim,

    I tried to copy with all DLL's (from CygWin) to test, but result is the same (console popup for a second and then close)

    Yes, i agree, with MinGW the chance that it should be run in native Windows should be higher.

    EDIT: I tried with:
    1) cygwin1.dll
    2) cygSDL-1-2-0.dll
    "ONLY" a console app and it works in native Windows. Hmm
    Last edited by pkroll; 08-18-2018 at 09:42 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. CodeBlocks / GCC / Cygwin Installation Windows 10
    By c00b in forum C Programming
    Replies: 4
    Last Post: 10-11-2016, 03:30 AM
  2. Can Cygwin and Windows access the same memory?
    By evb@studioe.com in forum C Programming
    Replies: 1
    Last Post: 02-15-2012, 11:18 PM
  3. How to get Cygwin compiled app to run in windows.
    By evb@studioe.com in forum C Programming
    Replies: 0
    Last Post: 02-15-2012, 08:46 PM
  4. Cygwin SDL windows.h
    By agent933 in forum C Programming
    Replies: 0
    Last Post: 02-09-2010, 02:04 PM
  5. Replies: 8
    Last Post: 08-01-2009, 11:07 AM

Tags for this Thread