Recent Posts

Pages: 1 2 3 [4] 5 6 7 8 9 10
31
Using Code::Blocks / Re: wx-config not effect
« Last post by ollydbg on March 15, 2023, 07:58:09 am »
About the image in your first post, I don't see the two options in my C::B. Do you use a special C::B?
For me, I usually add such kinds of command in the "Other compiler options".
32
Using Code::Blocks / Re: wx-config not effect
« Last post by ollydbg on March 15, 2023, 05:27:16 am »
Hi, I think you "wx-config.exe" does not work correctly.

Can you open windows command line window, and type the command

Code
wx-config.exe --cflags

and see what is the output of the command.

I guess that it can't find the location of wx library.

You can try some other parameter of the argument, such as "--prefix" option to tell the command that where your wx library locates.
33
Using Code::Blocks / Re: wx-config not effect
« Last post by wieniawski on March 15, 2023, 03:08:05 am »
wx-config is in my path.

I also tried 'Other complier options' and 'other linker options', still without success.

The build log shows that the flags doesnot effect, where I should see the flags in g++'s option, but there is none.

The build log is shown as below

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

g++ -Wall -g -I../../../../../opt/wxWidgets/include/wx-3.0 -c /home/schoenberg/work/wxWidgets/demo/demoApp.cpp -o obj/Debug/demoApp.o
In file included from ../../../../../opt/wxWidgets/include/wx-3.0/wx/defs.h:27:0,
                 from ../../../../../opt/wxWidgets/include/wx-3.0/wx/event.h:14,
                 from ../../../../../opt/wxWidgets/include/wx-3.0/wx/app.h:19,
                 from /home/schoenberg/work/wxWidgets/demo/demoApp.h:13,
                 from /home/schoenberg/work/wxWidgets/demo/demoApp.cpp:10:
../../../../../opt/wxWidgets/include/wx-3.0/wx/platform.h:183:10: fatal error: wx/setup.h: 没有那个文件或目录
 #include "wx/setup.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))
 

34
Help / Re: wxSmith show a untitled item under the root resource tree
« Last post by ollydbg on March 15, 2023, 02:00:39 am »
Hi, Pecan, many thanks for the fix. I will try to build the latest C::B svn trunk to test it.

I can confirm the bug is fixed now, thanks.

About the wxSmith, It also looks a bit complex to me, hope some day, I have time to read those code again. Maybe, we can use the chapGPT like AI tool to read the code, and it can explain the code structure to me.  :)
35
Help / Re: wxSmith show a untitled item under the root resource tree
« Last post by ollydbg on March 15, 2023, 01:47:58 am »
Hi, Pecan, many thanks for the fix. I will try to build the latest C::B svn trunk to test it.
36
Help / Re: wxSmith show a untitled item under the root resource tree
« Last post by Pecan on March 15, 2023, 12:40:49 am »
Fixed in Head 13233

Clangd_Client v1.2.64 23/03/14
Fix "untitled" project appearing in wxSmith resources by removing <Extensions> from the ~ProxyProject~.cbp thereby avoiding wxSmith's LoadHook invocation.

wxSmith is not removing closed projects from it's wxsResources.

Clangd_client creates and closes the ~ProxyProject~, but wxSmith created an entry in its wxsResource container during its Project Load Hook, but does not delete it during its OnProjectClose event.

Since clangd_client doesn't use <Extensions> anyway, it was easier to solve the problem by modifying the ~ProxyProject~.cbp.

wxSmith should actually remove closed projects from it's wxsResource containers during the OnProjectClose event. However, wxSmith looks too complex for me to mangle.
37
Using Code::Blocks / Re: wx-config not effect
« Last post by Miguel Gimenez on March 14, 2023, 03:17:00 pm »
Is wx-config in your path?

I would put those commands in the "Other compiler options" and "Other linker options", respectively, not as flags.

You can create a wxiWidgets project using the wizard and then modify it as needed.
38
Using Code::Blocks / wx-config not effect
« Last post by wieniawski on March 14, 2023, 01:10:00 pm »
hi,

I am trying to setup a demo project of wxWidgets using CB.
in wx wiki https://wiki.wxwidgets.org/CodeBlocks_Setup_Guide, it shows how to set wx-config in CB. And my result is as attachment
However, while I am building, the log is
g++ -Wall -g -I../../../../../opt/wxWidgets/include/wx-3.0 -c /home/schoenberg/work/wxWidgets/demo/demoApp.cpp -o obj/Debug/demoApp.o

It seems that the build setting is not effect.

Is there anyone knows why?

thx
39
Help / Re: wxSmith show a untitled item under the root resource tree
« Last post by ollydbg on March 14, 2023, 05:04:51 am »
If you open the C::B without opening any cbp files, you will see wxSmith show a untitled node.

I think what wxSmith does is try to add one node for each cbp, whether the cbp is hidden or not.
40
Help / Re: wxSmith show a untitled item under the root resource tree
« Last post by Pecan on March 14, 2023, 02:58:14 am »
I think I have found the reason.

Every C::B cbp(even it is a console project) will have a node shown in the wxSmith's item tree. The untitled node is from the "Clangd_client plugin", because it will create a dummy project.  ;)

I think we have to fix it.
Yes, clangd_client has a hidden "proxy" project.

But I don't understand what this has to do with wxSmith, or why it would show up in a wxSmith tree.

Can you explain this to me?
Can you tell me how to show it for myself.
Maybe I can "hide" it again.

Unfortunately, we need this hidden project in order for clangd_client to add "unowned" files that do not have a parent project.
Else we can't send them to clangd for parsing/analysis.

Pages: 1 2 3 [4] 5 6 7 8 9 10