Why am I getting this error, compiling a package in Delphi XE2 32bits platform:
c:\program files (x86)\embarcadero\rad
studio\9.0\Bin\CodeGear.Delphi.Targets(465,5): error MSB3191: Unable
to create directory "C:\Program Files\Adobe\Adobe Photoshop
CS2\Plug-Ins\Import-Export". Access to the path 'C:\Program
Files\Adobe\Adobe Photoshop CS2\Plug-Ins\Import-Export' is denied.
I found that directory in the package resource directory and conditional search path, and I have removed it from there, but I am still getting this error. Where does it find this path and why does it attempt to create the folder?
This error started to appear when I change the unit output directory to a relative path, that is: "..\source\win32"
Problem solved by creating new package and copying the source file of old package. I think some old info was left incorrectly inside the old package.
Related
I got location for windbg in here but opening this exe file it looks different from windbg preview
:- "C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\windbg.exe"
I was unable to change the name so I made another project and copy paste the code now I am getting this error :
*** WARNING: Unable to verify checksum for CDAnalysis.exe
WinDbg Preview is a UWP app, so its binaries span in multiple locations.
Its launcher is at %LocalAppData%\Microsoft\WindowsApps\WinDbgX.exe.
I've installed latest Jedi VCL for Delphi (JVCL 3.49) using install.bat (from jcl and jvcl folders respectively), without errors. The problem is when I run Delphi 2010, I get a lot of errors about invalid entry point in jvcl bpls.
entry point invalid #jclsysinfo#jclcheckwinversion$qqrri in JvCore140.pbl
I get this error in all Jv*.bpl files, and always with the same entry point.
I've checked I don't have old jcl/jvcl files or jv*.bpl/jc*.bpl files. I don't know how to fix this problem. Any sugestion?
When compiling packages in Delphi (as the JCL and JVCL do) that require other packages at compiletime the compiler uses the dcp files for the required packages and not the bpl files of those packages.
For example the JvCore.dpk has Jcl and JclVcl in its required clause among some RTL packages. That means when compiling it will take Jcl.dcp and JclVcl.dcp to get the information where the procedures/classes it needs are located in the bpl.
These dcp files are most of the time (unless specified differently - see next paragraph) located in the DCP folder which is right next to the BPL folder.
If the dcp it uses is not compatible to the bpl it finds when loading you will get those errors. Make sure you don't have any old bpl and dcp files anywhere that the compiler may find. In the JCL setup you can specify where it puts those while the JVCL setup puts them into the same directory as the dcu files.
Additionally if you have different Delphi versions installed it can get worse because usually the dcp files don't have a suffix. If the directory it puts those happens to be in the PATH variable wrong versions might be found. However the DCP directory is not put into PATH by the Delphi installation but only the BPL directory.
(While I've been writing this, Stefan Glienke has posted an answer which has a lot more useful info in it, but I'll post it anyway because it's easy to test if you're only interested in one Delphi version)
I'm not sure the following will work for you because I don't have D2010
installed to test it against. You could check it out quite quickly by
trying it using only one .Dpk file in step 4.
Note that I always set the Output paths for BPL,
DCP and DCU files to a Lib2 folder under the Delphi version's install folder.
That way I know where they all are so it's easier to tidy up if something goes
wrong.
I uninstalled the JCL and JVCL and deleted all the JV*.BPL, .DCP and
.DCU files
I ran the JCL install .bat, and ignored all the prompts to add folders to
the system PATH, because my Lib2 folder is already on the PATH.
In the folder for my Delphi version below JVCL\Packages, I edited all the
.Dpk files to use my Lib2 folder for the BPL, DCP and DCU output files. this is
a bit tedious but only needs to be done once and can be made easier by doing it
using a keyboard macro.
Then, using the IDE package tool, compiled and installed all the JVCL .Dpk
files that have "Design" in their names and that I want to install.
They all installed without ther error message you are getting.
When installing TMS Software packages I suddenly got error "Required package 'rtl' not found"
After several tries I found that in \bin\dcc32.cfg file the path to libraries had somehow got wrong drive: D:\Program Files\Embarcadero\RAD Studio\7.0\lib instead of C:\Program Files\Embarcadero\RAD Studio\7.0\lib.
I have no idea how this happened. After fixing it the installation worked OK.
I am in the process of upgrading our build server (Jenkins) to Delphi XE2. While compiling a runtime package the following error occurs:
ComponentsR.vrc(61): error RC2135: file not found: ComponentsR_Icon4.ico
There are no icons or resources in this runtime package, so I don't know what to do with this message. What's the "vrc" file btw?
Thanks for your help.
This happens while upgrading the dproj file of a package. The entry is created but the ico file is not (it is not used anyway).
Open the dproj file, search for the ico name and delete that entry.
I've installed Delphi 2010 and Quick report 2010 recently. the problem is finding DCU files of the quick report packages when i'm trying to compile the project although the path of the installed package of Quick Report has been added to "Include file search path" of resource compile.
How i can specify the path of installed packages in new version of Delphi when that doesn't work?
Make sure that the path is already present in the compiler search path (not resource compiler!) for the project or the library path of the IDE.
In Delphi 2010:
Go to Options | Environment Options | Delphi Options | Library - Win32
And add DCU or PAS files path of QuickReport to "Library Path".