What you posted looks good it appears to use only GTK 3; I think the full build log to confirm it would be good.
Tim S.
What you posted looks good it appears to use only GTK 3; I think the full build log to confirm it would be good.
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
Full build log:
Code:-------------- Clean: Debug in wxVLC (compiler: GNU GCC Compiler)--------------- Cleaned "wxVLC - Debug" -------------- Build: Debug in wxVLC (compiler: GNU GCC Compiler)--------------- g++ -Wall -I/usr/local/lib/wx/include/gtk3-unicode-static-3.1 -I/usr/local/include/wx-3.1 -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -pthread -pthread -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/harfbuzz -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -Winvalid-pch -include wx_pch.h -DWX_PRECOMP -DwxUSE_UNICODE -D_UNICODE -DUNICODE -g -I/usr/local/include/codeblocks/wxContribItems/wxImagePanel/include -c /home/cfcbazar/Downloads/wxVLC/wx_pch.h -o wx_pch.h.gch/Debug_wx_pch_h_gch g++ -Wall -I/usr/local/lib/wx/include/gtk3-unicode-static-3.1 -I/usr/local/include/wx-3.1 -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -pthread -pthread -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/harfbuzz -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -Winvalid-pch -include wx_pch.h -DWX_PRECOMP -DwxUSE_UNICODE -D_UNICODE -DUNICODE -g -I/usr/local/include/codeblocks/wxContribItems/wxImagePanel/include -c /home/cfcbazar/Downloads/wxVLC/imagepanel.cpp -o obj/Debug/imagepanel.o g++ -Wall -I/usr/local/lib/wx/include/gtk3-unicode-static-3.1 -I/usr/local/include/wx-3.1 -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -pthread -pthread -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/harfbuzz -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -Winvalid-pch -include wx_pch.h -DWX_PRECOMP -DwxUSE_UNICODE -D_UNICODE -DUNICODE -g -I/usr/local/include/codeblocks/wxContribItems/wxImagePanel/include -c /home/cfcbazar/Downloads/wxVLC/wxVLCApp.cpp -o obj/Debug/wxVLCApp.o g++ -Wall -I/usr/local/lib/wx/include/gtk3-unicode-static-3.1 -I/usr/local/include/wx-3.1 -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -pthread -pthread -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/harfbuzz -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -Winvalid-pch -include wx_pch.h -DWX_PRECOMP -DwxUSE_UNICODE -D_UNICODE -DUNICODE -g -I/usr/local/include/codeblocks/wxContribItems/wxImagePanel/include -c /home/cfcbazar/Downloads/wxVLC/wxVLCMain.cpp -o obj/Debug/wxVLCMain.o g++ -L/usr/local/lib/codeblocks/wxContribItems -o bin/Debug/wxVLC obj/Debug/imagepanel.o obj/Debug/wxVLCApp.o obj/Debug/wxVLCMain.o -L/usr/local/lib -pthread /usr/local/lib/libwx_gtk3u_xrc-3.1.a /usr/local/lib/libwx_gtk3u_qa-3.1.a /usr/local/lib/libwx_baseu_net-3.1.a /usr/local/lib/libwx_gtk3u_html-3.1.a /usr/local/lib/libwx_gtk3u_core-3.1.a /usr/local/lib/libwx_baseu_xml-3.1.a /usr/local/lib/libwx_baseu-3.1.a -pthread -lgthread-2.0 -lX11 -lXxf86vm -lSM -lgtk-3 -lgdk-3 -lpangocairo-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lXtst -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype -lwxtiff-3.1 -lwxjpeg-3.1 -lwxregexu-3.1 -lwxscintilla-3.1 -lexpat -lpng -lz -ldl -lm -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lvlc Output file is bin/Debug/wxVLC with size 9.00 MB Process terminated with status 0 (0 minute(s), 13 second(s)) 0 error(s), 0 warning(s) (0 minute(s), 13 second(s))
I will try to build your project and Windows; but, I will have to change it to get it to build.
If it was a code issue, the problem might only exist when using wxGTK based on GTK3.
Edit: It works without error under Win 7 64 built using MSys2 MinGW GCC 64 bit.
Tim S.
Last edited by stahta01; 06-23-2020 at 05:11 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
I built it in Debug mode using 3.1.3 wxWidgets shared libraries and it worked OK on Windows 7.
Did you really mean to use Static wxWidgets libraries?
Because, my next guess is that using wxWidgets Static libraries might be the cause.
Edit: Did not see problem using wxWidgets static version 3.0.5; waiting on build of 3.1.3 static.
Tim S.
Last edited by stahta01; 06-23-2020 at 06:01 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
Unfortunately I only have Windows 10, x64.
I am rebuilding wxWidgets based on this tutorial. After its finished I will check again.
Tested okay using MSys2 Mingw 64 bit static wxWidgets library.
You are likely going to have to learn how to use the debugger to fix the cause of your issue.
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
Thats a good idea, first I have to setup wxWidgets and that is like configuring the intel i7 with 1s and 0s instead of programming.
I get this error:
Code:fatal error: wx/wxprec.h: No such file or directory
"...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
Did you search your filesystem for that file?
You need to add two include search paths for building an wxWidgets project under windows.
You likely have neither added for failing to find "wx/wxprec.h"
The second search path is needed to find wx/setup.h and this header is created during the building of wxWidgets.
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
I have the following.
OS:
Windows 10, x64.
Compiler and IDE:
Environmental variables:
Last edited by ArakelTheDragon; 06-24-2020 at 02:49 AM. Reason: Add information
Sorry for the double post, if I edit the images might bug.
It says wx 2.8.12 on CodeBlocks, but I have built C:\wxWidgets-3.1.3
I used the following commands:
Result of the commands:Code:gcc -v mingw32-make -v cd /D C:\wxWidgets-2.8.12\build\msw mingw32-make -f makefile.gcc clean mingw32-make -f makefile.gcc BUILD=debug SHARED=0 MONOLITHIC=1 UNICODE=1 mingw32-make -f makefile.gcc BUILD=release SHARED=0 MONOLITHIC=1 UNICODE=1
gcc -v
mingw32-make -vCode:Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=Y:/PortableSoftware/Codeblocks.portable/MinGW/bin/../libexec/gcc/mingw32/5.1.0/lto-wrapper.exe Target: mingw32 Configured with: ../../../src/gcc-5.1.0/configure --build=mingw32 --enable-languages=ada,c,c++,fortran,lto,objc,obj-c++ --enable-libgomp --enable-lto --enable-graphite --enable-libstdcxx-debug --enable-threads=posix --enable-version-specific-runtime-libs --enable-fully-dynamic-string --enable-libstdcxx-threads --enable-libstdcxx-time --with-gnu-ld --disable-werror --disable-nls --disable-win32-registry --disable-symvers --enable-cxx-flags='-fno-function-sections -fno-data-sections -DWINPTHREAD_STATIC' --prefix=/mingw32tdm --with-local-prefix=/mingw32tdm --with-pkgversion=tdm-1 --enable-sjlj-exceptions --with-bugurl=http://tdm-gcc.tdragon.net/bugs Thread model: posix gcc version 5.1.0 (tdm-1)
Code:GNU Make 3.82.90 Built for i686-pc-mingw32 Copyright (C) 1988-2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
Last edited by ArakelTheDragon; 06-24-2020 at 02:55 AM. Reason: Add information
Please give a logical reason for you to say the folder "C:\wxWidgets-2.8.12\build\msw" has something to do with wxWidgets 3.1.3?
Edit: Is there a logical reason you are using Code::Blocks version 17.12 instead of 20.03?
Edit2: Wanting to use wxWidgets version 2.8.12 32 bit on Windows would be a good reason.
But, I would want to use 64 bit wxWidgets 3.1.3, instead.
Tim S.
Last edited by stahta01; 06-24-2020 at 04:39 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
On the picture CodeBlocks shows wx 2.8.12, post 26. Is this the version with wich CodeBlocks was built?
"...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