News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

wxWidgets location doesn't work when portable

Started by MichaelAgarkov, February 15, 2024, 05:59:15 PM

Previous topic - Next topic

MichaelAgarkov

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.

Miguel Gimenez

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?

MichaelAgarkov

$(APPPATH)/wxWidgets-3.0.5 also doesn't work. "wxWidgets-3.0.5\include\wx\wx.h" does exist.

Miguel Gimenez

Then the value of $(APPPATH) may be different from expected. Try modifying the script so it shows the value.

MichaelAgarkov

Simply trying $(APPPATH)wxWidgets-3.0.5 worked. Thanks for help though.