Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: 264
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: Thu Apr 18 14:24:36 CEST 2024

Total time taken to generate the page: 0.01427 seconds