Recent Posts

Pages: [1] 2 3 4 5 6 ... 10
1
Using Code::Blocks / CB with Wx Widgers giving normal console output
« Last post by jmClifford on Today at 08:34:59 am »
Hi. From the web (an example from a tutorial by a "Mr Luke") uses WxWidgets (not CB) and gives a console output.  The source is attached. 

Is this possible with CB and WxWidgets.??

This source (main.cpp) compiles OK.  An example of a compile is;
Quote
-------------- Clean: Debug in Events (compiler: GNU GCC Compiler)---------------

Cleaned "Events - Debug"

-------------- Build: Debug in Events (compiler: GNU GCC Compiler)---------------

g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DwxUSE_UNICODE -Wall -g -D__WXDEBUG__ -IC:\WxWidgetsSetup\include -IC:\WxWidgetsSetup\lib\gcc_dll\mswud -IC:\WxWidgetsSetup\include -IC:\WxWidgetsSetup\lib\gcc_dll -c C:\u\CodeBlock_C++\wx_WidgetsLuke\04_Events\main.cpp -o obj\Debug\main.o

windres.exe -IC:\WxWidgetsSetup\include -IC:\WxWidgetsSetup\lib\gcc_dll\mswud  -J rc -O coff -i C:\u\CODEBL~1\WX_WID~1\04_EVE~1\resource.rc -o obj\Debug\resource.res

g++.exe -LC:\WxWidgetsSetup\lib\gcc_dll -o bin\Debug\Events.exe obj\Debug\main.o  obj\Debug\resource.res -mthreads  -lwxmsw32ud C:\WxWidgetsSetup\lib\gcc_dll\libwxmsw32ud.a C:\WxWidgetsSetup\lib\gcc_dll\libwxmsw32u.a -mwindows
Output file is bin\Debug\Events.exe with size 828.74 KB

Process terminated with status 0 (0 minute(s), 5 second(s))
0 error(s), 0 warning(s) (0 minute(s), 5 second(s))


Regards JC......
2
Nightly builds / Re: The 27 April 2024 build (13513) is out.
« Last post by blauzahn on Today at 12:46:20 am »
Thank you.

It compiles (tried on arch linux), a touched cbp or cpp file is detected like it should be.
One issue I observe in the "Open files List" is that relative paths are turned into
absolute paths. They should remain relative paths.

As for the code:
Code
#include <wx/fswatcher.h>
seems avoidable in FileExplorer.h if wxFileSystemWatcherEvent and wxFileSystemWatcher* are forward-declared. Compiletime is already not ideal when compiling cb.

Have you considered making
Code
wxFileSystemWatcher *m_fs_watcher;
a std::unique_ptr?

I like the fact that the patch is focussed on the necessary changes. Have you considered a second patch with refactorings e.g. moving initialization of non-static data-members in the ctor body into
a member initializer list  or using default member initializers?
3
Nightly builds / Re: The 27 April 2024 build (13513) is out.
« Last post by danselmi on Yesterday at 09:23:53 pm »
As promised
Find attached the previously mentioned patch.
4
Nightly builds / Re: The 27 April 2024 build (13513) is out.
« Last post by blauzahn on Yesterday at 01:58:16 pm »
As mentioned in the ticket: If C++17 is an acceptable lower limit, the std::filesystem will become available. If it provides the needed functionality to replace libgamin in cb, I would prefer std over wxWidgets. Since I have not used neither std::filesystem nor wxFilesystemwatcher yet, I can not say. At least it has a non-member function named 
Code
last_write_time
.
5
Nightly builds / Re: The 27 April 2024 build (13513) is out.
« Last post by Wkerry on Yesterday at 09:52:50 am »
See https://sourceforge.net/p/codeblocks/tickets/663/ for "Don't use deprecated gamin library", which may be helpful.
6
Nightly builds / Re: The 27 April 2024 build (13513) is out.
« Last post by blauzahn on April 28, 2024, 05:49:01 pm »
@danselmi: Great!
7
Nightly builds / Re: The 27 April 2024 build (13513) is out.
« Last post by danselmi on April 28, 2024, 04:59:22 pm »
Fedora also don't provide gaming anymore.
I have a patch relying on wxFilesystemwatcher. This I have tested on windows and feodra39.
Will provide it later tonight when I have access to my computer.
8
Announcements / Re: successor of 20.03 available?
« Last post by grem on April 27, 2024, 07:00:01 pm »
main focus is on stabilizing the clangd plug-in.

And fix regressions in the before hidden glob feature.
Is it planning to prepare "Nightlies" tarballs under https://sourceforge.net/projects/codeblocks/files/Sources/ to simplify packaging developer preview versions in Linux distributives?
Unfortunately the zip archives that generated by Sourceforge on request are temporary and URLs lifetime seems lesser than 24 hours. If request it again the zip-file has differ checksum.
9
Nightly builds / Re: The 27 April 2024 build (13513) is out.
« Last post by blauzahn on April 27, 2024, 06:59:28 pm »
looks like.

On arch I installed it from trunk but it seems that the source I used then (https://people.gnome.org/~veillard/gamin/) is no longer available.
10
Nightly builds / Re: The 27 April 2024 build (13513) is out.
« Last post by killerbot on April 27, 2024, 05:16:54 pm »
ubuntu 24.04 no longer provides that package ?
Pages: [1] 2 3 4 5 6 ... 10