Thread: Process terminated with status -11

  1. #46
    Registered User
    Join Date
    May 2009
    Posts
    3,865
    Quote Originally Posted by stahta01 View Post
    Directions that cover what a full build log is: FAQ-Compiling (errors) - CodeBlocks
    Please follow and read the above link!

    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

  2. #47
    Registered User
    Join Date
    Dec 2016
    Posts
    87
    I followed this tutorial for the installation.

    Build log:
    Code:
    -------------- Build: Debug in OS.wxWidgets.Setup.7 (compiler: GNU GCC Compiler)---------------
    
    g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DwxUSE_UNICODE -Wall -g -D__WXDEBUG__ -IC:\wxWidgets-3.1.3\include -IC:\wxWidgets-3.1.3\lib\gcc_dll\mswud -c Y:\Other\OS.wxWidgets.Setup.7\OS_wxWidgets_Setup_7App.cpp -o obj\Debug\OS_wxWidgets_Setup_7App.o
    g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DwxUSE_UNICODE -Wall -g -D__WXDEBUG__ -IC:\wxWidgets-3.1.3\include -IC:\wxWidgets-3.1.3\lib\gcc_dll\mswud -c Y:\Other\OS.wxWidgets.Setup.7\OS_wxWidgets_Setup_7Main.cpp -o obj\Debug\OS_wxWidgets_Setup_7Main.o
    In file included from C:\wxWidgets-3.1.3\include/wx/defs.h:45,
                     from C:\wxWidgets-3.1.3\include/wx/event.h:14,
                     from C:\wxWidgets-3.1.3\include/wx/app.h:19,
                     from Y:\Other\OS.wxWidgets.Setup.7\OS_wxWidgets_Setup_7App.h:13,
                     from Y:\Other\OS.wxWidgets.Setup.7\OS_wxWidgets_Setup_7App.cpp:10:
    C:\wxWidgets-3.1.3\include/wx/platform.h:154:10: fatal error: wx/setup.h: No such file or directory
     #include "wx/setup.h"
              ^~~~~~~~~~~~
    compilation terminated.
    Process terminated with status 1 (0 minute(s), 0 second(s))
     
    In file included from C:\wxWidgets-3.1.3\include/wx/defs.h:45,
                     from C:\wxWidgets-3.1.3\include/wx/event.h:14,
                     from C:\wxWidgets-3.1.3\include/wx/window.h:18,
                     from C:\wxWidgets-3.1.3\include/wx/nonownedwnd.h:14,
                     from C:\wxWidgets-3.1.3\include/wx/toplevel.h:20,
                     from C:\wxWidgets-3.1.3\include/wx/frame.h:18,
                     from Y:\Other\OS.wxWidgets.Setup.7\OS_wxWidgets_Setup_7Main.h:14,
                     from Y:\Other\OS.wxWidgets.Setup.7\OS_wxWidgets_Setup_7Main.cpp:10:
    C:\wxWidgets-3.1.3\include/wx/platform.h:154:10: fatal error: wx/setup.h: No such file or directory
     #include "wx/setup.h"
              ^~~~~~~~~~~~
    compilation terminated.
    Process terminated with status 1 (0 minute(s), 0 second(s))
    2 error(s), 0 warning(s) (0 minute(s), 0 second(s))
    Build log for the VLC project:
    Code:
    -------------- Build: Debug in wxVLC (compiler: GNU GCC Compiler)---------------
    
    g++.exe -Wall -Winvalid-pch -include wx_pch.h -DWX_PRECOMP -DwxUSE_UNICODE -D_UNICODE -DUNICODE -g -I\usr\local\include\codeblocks\wxContribItems\wxImagePanel\include -c Y:\Other\OS.wx.VLC\wx_pch.h -o wx_pch.h.gch\Debug_wx_pch_h_gch
    g++.exe -Wall -Winvalid-pch -include wx_pch.h -DWX_PRECOMP -DwxUSE_UNICODE -D_UNICODE -DUNICODE -g -I\usr\local\include\codeblocks\wxContribItems\wxImagePanel\include -c Y:\Other\OS.wx.VLC\imagepanel.cpp -o obj\Debug\imagepanel.o
    In file included from <command-line>:
    ./wx_pch.h:15:10: fatal error: wx/wxprec.h: No such file or directory
     #include <wx/wxprec.h>
              ^~~~~~~~~~~~~
    compilation terminated.
    Process terminated with status 1 (0 minute(s), 0 second(s))
    1 error(s), 0 warning(s) (0 minute(s), 0 second(s))

    EDIT:Process terminated with status -11-wxwidgets-filesearch-jpg
    I am posting a picture of the search. In red is places where the file is located and we care for. I will post a video when I can.

    Here is the video:
    I am using monolityc enabled and shared enabled. Only who has the link can see the video.

    YouTube

    If you want me to make another video, just tell me.

    Unfortunately sleeping will not help me. Tomorrow I have to work again. The COVID-19 has caused a lot of problems. I am left with no option, after this I will have a vacation for at least a week, but until then I have to eat. On top of that no one cares for my problems.
    Last edited by ArakelTheDragon; 2 Weeks Ago at 11:12 AM. Reason: Add video

  3. #48
    Registered User
    Join Date
    May 2009
    Posts
    3,865
    Change the "C:\wxWidgets-3.1.3\lib\gcc_dll\mswud" to "D:\wxWidgets-3.1.3\lib\gcc_dll\mswud"!
    Note: The drive letter is different!

    I suggest you decide what drive wxWidgets is going to be on; and, get rid of the copies on the other drives that have the same folder names!

    You appeared to have only built wxWidgets under the "D:\wxWidgets-3.1.3" folder and are trying to use "C:\wxWidgets-3.1.3" were you never built wxWidgets.

    Tim S.
    Last edited by stahta01; 2 Weeks Ago at 11:33 AM.
    "...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

  4. #49
    Registered User
    Join Date
    May 2009
    Posts
    3,865
    Also, you need to make sure you use rebuild instead of build; some weird problems are fixed by doing rebuild.
    And, I would not use an PCH Precompiled header till after you get the project to build at least once.

    PCH sometimes hides the real problems from being found.

    Tim S.
    Last edited by stahta01; 2 Weeks Ago at 12:46 PM. Reason: Grammar
    "...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

  5. #50
    Registered User
    Join Date
    Dec 2016
    Posts
    87
    Thanks to everyone for the help an patience!

    Ok part of the problems:

    On Windows 10, wxWidgets did not compile. I don't know why, it shows that it has, but it didn't.
    On Windows 7, the compilation went well, but the CodeBlocks/ wxWidgets settings are beyond critic. I changed all drive letters and copied the compiled version from drive D:\ to Drive C:\. I started a new project, used the project wizard, selected wxWidgets and after messing with the search directories through 10 0000000000 ways and for 10 00000000000000 things, it finally found this thing.

    Now it can not find only for the VLC project:
    Code:
    wx/wxprec.h
    Starting a normal project with the wxWidgets wizard works correctly. Loading an old project does not. I have only tested on Windows 7. Something in the VLC projects settings is wrong. I will try the other VLC project that you posted previously on the thread and give the results.

    This is the full build log:
    Code:
    -------------- Build: Debug in wxVLC (compiler: GNU GCC Compiler)---------------
    
    g++.exe -Wall -Winvalid-pch -include wx_pch.h -DWX_PRECOMP -DwxUSE_UNICODE -D_UNICODE -DUNICODE -g -I\usr\local\include\codeblocks\wxContribItems\wxImagePanel\include -ID:\wxWidgets-3.1.3 -ID:\wxWidgets-3.1.3\lib -ID:\wxWidgets-3.1.3\lib\gcc_dll -ID:\wxWidgets-3.1.3\lib\gcc_dll\mswud\wx -ID:\wxWidgets-3.1.3\include\wx -ID:\wxWidgets-3.1.3\lib\gcc_dll\mswud\wx -ID:\wxWidgets-3.1.3\lib\gcc_dll -ID:\wxWidgets-3.1.3 -ID:\wxWidgets-3.1.3\include\wx\ -c Y:\Other\OS.wx.VLC\wx_pch.h -o wx_pch.h.gch\Debug_wx_pch_h_gch
    g++.exe -Wall -Winvalid-pch -include wx_pch.h -DWX_PRECOMP -DwxUSE_UNICODE -D_UNICODE -DUNICODE -g -I\usr\local\include\codeblocks\wxContribItems\wxImagePanel\include -ID:\wxWidgets-3.1.3 -ID:\wxWidgets-3.1.3\lib -ID:\wxWidgets-3.1.3\lib\gcc_dll -ID:\wxWidgets-3.1.3\lib\gcc_dll\mswud\wx -ID:\wxWidgets-3.1.3\include\wx -ID:\wxWidgets-3.1.3\lib\gcc_dll\mswud\wx -ID:\wxWidgets-3.1.3\lib\gcc_dll -ID:\wxWidgets-3.1.3 -ID:\wxWidgets-3.1.3\include\wx\ -c Y:\Other\OS.wx.VLC\imagepanel.cpp -o obj\Debug\imagepanel.o
    In file included from <command-line>:
    ./wx_pch.h:15:10: fatal error: wx/wxprec.h: No such file or directory
     #include <wx/wxprec.h>
              ^~~~~~~~~~~~~
    compilation terminated.
    Process terminated with status 1 (0 minute(s), 0 second(s))
    1 error(s), 0 warning(s) (0 minute(s), 0 second(s))

  6. #51
    Registered User
    Join Date
    May 2009
    Posts
    3,865
    Replace "D:\wxWidgets-3.1.3\lib\gcc_dll\mswud\wx" with "D:\wxWidgets-3.1.3\lib\gcc_dll\mswud".

    Edit: Also replace "D:\wxWidgets-3.1.3\include\wx" with "D:\wxWidgets-3.1.3\include".

    Tim S.
    Last edited by stahta01; 2 Weeks Ago at 02:08 PM.
    "...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

  7. #52
    Registered User
    Join Date
    Dec 2016
    Posts
    87
    It works! Finally .
    EDIT: don't put "" on the end of the path, for example the path can not finish as
    "D:\wxWidgets-3.1.3\lib\gcc_dll\mswud", it must be "D:\wxWidgets-3.1.3\lib\gcc_dll\mswud".

    Now don't kill me, the next problem, your patience is great:
    Code:
    fatal error: vlc/vlc.h: No such file or directory|
    Last edited by ArakelTheDragon; 2 Weeks Ago at 02:46 PM.

  8. #53
    Registered User
    Join Date
    May 2009
    Posts
    3,865
    Quote Originally Posted by ArakelTheDragon View Post
    It works! Finally .
    EDIT: don't put "" on the end of the path, for example the path can not finish as
    "D:\wxWidgets-3.1.3\lib\gcc_dll\mswud", it must be "D:\wxWidgets-3.1.3\lib\gcc_dll\mswud".

    Now don't kill me, the next problem, your patience is great:
    Code:
    fatal error: vlc/vlc.h: No such file or directory|
    I have no idea of the best place to find the vlc/vlc.h header. I did an git clone of master; but, it is too different from your code to work.
    I suggest using the version used by MSys2 since it work for me on Windows.

    Code:
    https://get.videolan.org/${_realname}/${pkgver}/${_realname}-${pkgver}.tar.xz
    The MSys2 package used the above URL with the values of
    _realname=vlc
    pkgver=3.0.10

    You will have to figure out how to compile it.

    Edit: Looks like vlc is C code; this should mean that you can link to an vlc DLL; so, I would download VLC for Windows and see if the installed files has an DLL. You also need to download the source for for the same version as the DLL in order to compiler the project.

    Tim S.
    Last edited by stahta01; 2 Weeks Ago at 03:53 PM.
    "...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

  9. #54
    Registered User
    Join Date
    May 2009
    Posts
    3,865
    I am trying to see if "http://get.videolan.org/vlc/3.0.11/vlc-3.0.11.tar.xz" works.

    Edit: It compiles and I can link with DLL but, I am currently having run-time crashes.

    Tim S.
    Last edited by stahta01; 2 Weeks Ago at 04:31 PM.
    "...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

  10. #55
    Registered User
    Join Date
    May 2009
    Posts
    3,865
    It works for me on Windows 7 64 bit.
    I used static wxWidgets library because that is what you were using at first.

    The unusual settings are:
    CB Global Settings vlc
    base: C:\Users\stahta01\devel\libraries\vlc-3.0.11
    lib: C:\Program Files\VideoLAN\VLC
    link library: "$(#VLC.lib)/libvlc.dll" the double quote was needed because of spaces in the path.
    Edit: I have never been able to link to an DLL without the full path to the DLL;
    I think this should not be needed but, I have failed to find what else works instead without a lot of work to
    create an import library.
    linker search directory: $(#VLC.lib) CB adds the linker search directory during runtime and this helps the program to run without editing the path. I have no idea what was needed but, copying the two DLLs was not enough to avoid an runtime crash.

    Tim S.
    Last edited by stahta01; 2 Weeks Ago at 04:42 PM.
    "...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

  11. #56
    Registered User
    Join Date
    Dec 2016
    Posts
    87
    Thank for everything! I don' want to disrespect your help, but this project will be postponed for now. I did not have time to post or I would have told you later.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 14
    Last Post: 07-06-2016, 01:48 PM
  2. SDL_ttf Process terminated with status 3
    By darpan1118 in forum Game Programming
    Replies: 5
    Last Post: 04-13-2014, 09:35 AM
  3. Replies: 2
    Last Post: 03-13-2013, 01:03 AM
  4. Process Terminated with status -1073741510
    By Varethien in forum C Programming
    Replies: 5
    Last Post: 08-09-2011, 04:16 AM
  5. Process terminated with status -1073741819
    By smithx in forum C Programming
    Replies: 5
    Last Post: 11-01-2010, 11:13 PM

Tags for this Thread