Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: MichaelAgarkov on February 15, 2024, 05:59:15 pm

Title: wxWidgets location doesn't work when portable
Post by: MichaelAgarkov on February 15, 2024, 05:59:15 pm
Hello everyone.

I have a flash drive on which I run Code::Blocks through CbLauncher.exe. I also have wxWidgets-3.0.5 on the same drive.
I tried to create a global variable for it as $(APPPATH)\wxWidgets-3.0.5, but when I create a new project, it throws me this error:
Quote
Script error
The path you entered seems valid, but this wizard can't locate wxWidgets' files in it...
However it works when I directly specify it including the drive letter.

What can be done about this?
Sincerely thank you.
Title: Re: wxWidgets location doesn't work when portable
Post by: Miguel Gimenez on February 15, 2024, 06:06:08 pm
The wizard appends "/include/wx/wx.h" to the address you gave, if the file does not exist it emits that message.

Have you tried $(APPPATH)/wxWidgets-3.0.5?
Title: Re: wxWidgets location doesn't work when portable
Post by: MichaelAgarkov on February 15, 2024, 06:14:14 pm
$(APPPATH)/wxWidgets-3.0.5 also doesn't work. "wxWidgets-3.0.5\include\wx\wx.h" does exist.
Title: Re: wxWidgets location doesn't work when portable
Post by: Miguel Gimenez on February 15, 2024, 06:17:19 pm
Then the value of $(APPPATH) may be different from expected. Try modifying the script so it shows the value.
Title: Re: wxWidgets location doesn't work when portable
Post by: MichaelAgarkov on February 15, 2024, 06:23:27 pm
Simply trying $(APPPATH)wxWidgets-3.0.5 worked. Thanks for help though.