U++ framework
Do not panic. Ask here before giving up.

Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » [Bug+Patch] when there is a space in Upp path (gdb does not find exefile, && problem using windres)
[Bug+Patch] when there is a space in Upp path [message #47744] Fri, 17 March 2017 16:55 Go to previous message
omari is currently offline  omari
Messages: 276
Registered: March 2010
Experienced Member
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
	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:
				exec << GetHostPathShort( FindInDirs(((LocalHost*)host)->exedirs, "windres.exe")) << " -i " << GetHostPathQ(fn);


instead of:
				exec << "windres -i " << GetHostPathQ(fn);


regards
omari.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Files save issue
Next Topic: MySql and upp 2017r1
Goto Forum:
  


Current Time: Sun Apr 26 22:00:10 GMT+2 2026

Total time taken to generate the page: 0.00793 seconds