Bug #1661

Problem When there is a space in Upp path (gdb does not find exefile, && problem using windres)

Added by Zbigniew Rebacz about 8 years ago. Updated about 8 years ago.

Status:ApprovedStart date:03/18/2017
Priority:NormalDue date:
Assignee:Zbigniew Rebacz% Done:

0%

Category:IDESpent time:-
Target version:-

Description

http://www.ultimatepp.org/forums/index.php?t=msg&goto=47744&#msg_47744

Hi,
I have to install upp in Program Files, so I found the following two bug:

1: gdb does not find the exe file

solution: add quote before and after the path of the exe file
in ide\Debuggers\Gdb.cpp line 338
Code: [Select all] [Show/ hide]

    dbg = host->StartProcess(GdbCommand(console) + "\"" + GetHostPath(exefile) + "\"");

2: windres does not find the preprocessor
in it's internal, windres use it's path (without quotes) as base in order to find the propressor.
solution: call windres using it's ShortPath:
in ide\Builders\GccBuilder.cpp, line 217:
Code: [Select all] [Show/ hide]

                exec << GetHostPathShort( FindInDirs(((LocalHost*)host)->exedirs, "windres.exe")) << " -i " << GetHostPathQ(fn);

instead of:
Code: [Select all] [Show/ hide]

                exec << "windres -i " << GetHostPathQ(fn);

History

#1 Updated by Zbigniew Rebacz about 8 years ago

  • Status changed from New to Approved
  • Assignee changed from Miroslav Fidler to Zbigniew Rebacz

Change in the trunk.

Also available in: Atom PDF