Problem with installation
Problem with installation
Sorry if this is posted in the wrong place. I searched and do not know the appropriate forum in which to post this.
I had this working in 2015. I had modified imdb.ifs and getscript.pas so that the program downloads all the movies based on the movies that are currently in one folder in batch mode.
It would select the movie based on the closest match but some of them were missing the year it was made so it was correct about 95% of the time. It would take about 45 minutes them.
I'm using Windows 10, the latest release of the Ant Movie Catalog source code and I have installed Borland Delphi 7.1. I am now having an installation problem.
Contents of tools/environment options/library path:
$(DELPHI)\Lib;
$(DELPHI)\Bin;
$(DELPHI)\Imports;
$(DELPHI)\Projects\Bpl;
$(DELPHI)\Rave5\Lib;
$(DELPHI)\Projects\AMC\amc\antcomponents;
$(DELPHI)\Projects\AMC\amc\antcomponents\xml;
$(DELPHI)\Projects\AMC\amc\indy10\lib;
$(DELPHI)\Projects\AMC\amc\png;
$(DELPHI)\Projects\AMC\amc\synedit\packages;
$(DELPHI)\Projects\AMC\amc\synedit\source;
$(DELPHI)\Projects\AMC\amc\tb2k-tbx\toolbar2000\packages;
$(DELPHI)\Projects\AMC\amc\tb2k-tbx\toolbar2000\source;
$(DELPHI)\Projects\AMC\amc\tb2k-tbx\toolbar2000\tbx;
$(DELPHI)\Projects\AMC\amc\tb2k-tbx\toolbar2000\tbx\packages;
$(DELPHI)\Projects\AMC\amc\thtml\package;
$(DELPHI)\Projects\AMC\amc_sources\eltree\code\design;
$(DELPHI)\Projects\AMC\amc_sources\eltree\code\source;
$(DELPHI)\Projects\AMC\amc_sources\freereport\source;
$(DELPHI)\Projects\AMC\amc_sources\rksmartviewpack
Contents of bpl folder:
Ant_D7.bpl
Ant_D7.dcp
Ant_D7.~bpl
dcleltD7.bpl
dcleltD7.dcp
dcleltD7.~bpl
eltreeD7.bpl
eltreeD7.dcp
FrameViewer7.bpl
FrameViewer7.dcp
FrameViewer7.~bpl
FREEREP7.bpl
FreeRep7.dcp
FREEREP7.~bpl
rkSmartViewPack.bpl
rkSmartViewPack.dcp
rkSmartViewPack.~bpl
SynEdit_D7.bpl
SynEdit_D7.dcp
SynEdit_D7_PE.bpl
SynEdit_D7_PE.dcp
SynEdit_D7_PE.~bpl
SynEdit_R7.bpl
SynEdit_R7.dcp
tb2kdsgn_d7.bpl
tb2kdsgn_d7.dcp
tb2kdsgn_d7.~bpl
tb2k_d7.bpl
tb2k_d7.dcp
tbxdsgn_d7.bpl
tbxdsgn_d7.dcp
tbxdsgn_d7.~bpl
tbx_d7.bpl
tbx_d7.dcp
I'm getting a compilation error and I believe it is related to the installation as I believe there is nothing wrong with the source code.
Any ideas?
I've been now almost a week with this problem. I had some earlier version working but the latest code does not work.
I had this working in 2015. I had modified imdb.ifs and getscript.pas so that the program downloads all the movies based on the movies that are currently in one folder in batch mode.
It would select the movie based on the closest match but some of them were missing the year it was made so it was correct about 95% of the time. It would take about 45 minutes them.
I'm using Windows 10, the latest release of the Ant Movie Catalog source code and I have installed Borland Delphi 7.1. I am now having an installation problem.
Contents of tools/environment options/library path:
$(DELPHI)\Lib;
$(DELPHI)\Bin;
$(DELPHI)\Imports;
$(DELPHI)\Projects\Bpl;
$(DELPHI)\Rave5\Lib;
$(DELPHI)\Projects\AMC\amc\antcomponents;
$(DELPHI)\Projects\AMC\amc\antcomponents\xml;
$(DELPHI)\Projects\AMC\amc\indy10\lib;
$(DELPHI)\Projects\AMC\amc\png;
$(DELPHI)\Projects\AMC\amc\synedit\packages;
$(DELPHI)\Projects\AMC\amc\synedit\source;
$(DELPHI)\Projects\AMC\amc\tb2k-tbx\toolbar2000\packages;
$(DELPHI)\Projects\AMC\amc\tb2k-tbx\toolbar2000\source;
$(DELPHI)\Projects\AMC\amc\tb2k-tbx\toolbar2000\tbx;
$(DELPHI)\Projects\AMC\amc\tb2k-tbx\toolbar2000\tbx\packages;
$(DELPHI)\Projects\AMC\amc\thtml\package;
$(DELPHI)\Projects\AMC\amc_sources\eltree\code\design;
$(DELPHI)\Projects\AMC\amc_sources\eltree\code\source;
$(DELPHI)\Projects\AMC\amc_sources\freereport\source;
$(DELPHI)\Projects\AMC\amc_sources\rksmartviewpack
Contents of bpl folder:
Ant_D7.bpl
Ant_D7.dcp
Ant_D7.~bpl
dcleltD7.bpl
dcleltD7.dcp
dcleltD7.~bpl
eltreeD7.bpl
eltreeD7.dcp
FrameViewer7.bpl
FrameViewer7.dcp
FrameViewer7.~bpl
FREEREP7.bpl
FreeRep7.dcp
FREEREP7.~bpl
rkSmartViewPack.bpl
rkSmartViewPack.dcp
rkSmartViewPack.~bpl
SynEdit_D7.bpl
SynEdit_D7.dcp
SynEdit_D7_PE.bpl
SynEdit_D7_PE.dcp
SynEdit_D7_PE.~bpl
SynEdit_R7.bpl
SynEdit_R7.dcp
tb2kdsgn_d7.bpl
tb2kdsgn_d7.dcp
tb2kdsgn_d7.~bpl
tb2k_d7.bpl
tb2k_d7.dcp
tbxdsgn_d7.bpl
tbxdsgn_d7.dcp
tbxdsgn_d7.~bpl
tbx_d7.bpl
tbx_d7.dcp
I'm getting a compilation error and I believe it is related to the installation as I believe there is nothing wrong with the source code.
Any ideas?
I've been now almost a week with this problem. I had some earlier version working but the latest code does not work.
Re: Problem with installation
Difficult to help without knowing/seeing what error you have.
Also, you mention changes made to the scripts, but you don't need to compile the program for that (that's the interest of using scripts).
The IMDb script has a "BatchMode" option that is somewhat you mention, retrieving movie info without interruption.
Also, you mention changes made to the scripts, but you don't need to compile the program for that (that's the interest of using scripts).
The IMDb script has a "BatchMode" option that is somewhat you mention, retrieving movie info without interruption.
Re: Problem with installation
The compilation error is [Error] functions_str.pas(571): Incompatible types: 'String' and 'TStream'.
Line 571 is DecodeToStream(AStream, AString); in
I put this in the first post but you must have accidentally deleted it.
Line 571 is DecodeToStream(AStream, AString); in
Code: Select all
procedure DecodeToStream(const AStream: TStream; const AString: string);
begin
with TIdDecoderMIME.Create(nil) do
try
AStream.Seek(0, soFromBeginning);
DecodeToStream(AStream, AString);
finally
Free;
end;
end;
Re: Problem with installation
I didn't modify your first post
Or maybe if it was in multiple messages, one was accidentally deleted when filtering spam messages (99% of new posts on the forum are spam so sometimes I accidentally reject a non-spam message from a new user).
The error in there is maybe due to a wrong version of Indy components.
I see you only have
$(DELPHI)\Projects\AMC\amc\indy10\lib;
But on my install I have
...\Indy10\Lib\Core
...\Indy10\Lib\Protocols
...\Indy10\Lib\System
Did you get Indy10 from https://update.antp.be/comps/Indy10.rar or from elsewhere?
That function that it tries to call is from the class TIdDecoderMIME which is normally in ...\Indy10\Lib\Protocols\IdCoderMIME.pas
Or maybe if it was in multiple messages, one was accidentally deleted when filtering spam messages (99% of new posts on the forum are spam so sometimes I accidentally reject a non-spam message from a new user).
The error in there is maybe due to a wrong version of Indy components.
I see you only have
$(DELPHI)\Projects\AMC\amc\indy10\lib;
But on my install I have
...\Indy10\Lib\Core
...\Indy10\Lib\Protocols
...\Indy10\Lib\System
Did you get Indy10 from https://update.antp.be/comps/Indy10.rar or from elsewhere?
That function that it tries to call is from the class TIdDecoderMIME which is normally in ...\Indy10\Lib\Protocols\IdCoderMIME.pas
Re: Problem with installation
It works now. Thanks.
Re: Problem with installation
What do you click on to install Indy10?
Instructions say to compile and install in the following order:
For Delphi and C++ Builder, the run-time package files should be opened and compiled in the following order:
IndySystem (in Lib\System)
IndyCore (in Lib\Core)
IndyProtocols (in Lib\Protocols)
IndySuperCore (in Lib\SuperCore) (for Delphi 7 only)
For Delphi and C++ Builder, the design-time package files should be opened, compiled, and installed in the following order:
dclIndyCore (in Lib\Core)
dclIndyProtocols (in Lib\Protocols)
dclSuperCore (in Lib\SuperCore) (for Delphi 7 only)
I get errors compiling IndyProtocols70.dpk and IndySuperCore70.dpk.
[Error] IdURI.pas(93): Undeclared identifier: 'TIdIPVersion'
[Error] IdURI.pas(102): Undeclared identifier: 'IIdTextEncoding'
[Error] IdCharsets.pas(3889): Undeclared identifier: 'TextIsSame'
[Fatal Error] IdURI.pas(133): Could not compile used unit 'IdCharsets.pas'
Instructions say to compile and install in the following order:
For Delphi and C++ Builder, the run-time package files should be opened and compiled in the following order:
IndySystem (in Lib\System)
IndyCore (in Lib\Core)
IndyProtocols (in Lib\Protocols)
IndySuperCore (in Lib\SuperCore) (for Delphi 7 only)
For Delphi and C++ Builder, the design-time package files should be opened, compiled, and installed in the following order:
dclIndyCore (in Lib\Core)
dclIndyProtocols (in Lib\Protocols)
dclSuperCore (in Lib\SuperCore) (for Delphi 7 only)
I get errors compiling IndyProtocols70.dpk and IndySuperCore70.dpk.
Code: Select all
FHost: string;
FBookmark: string;
FUserName: string;
FPassword: string;
FParams: string;
FIPVersion: TIdIPVersion;
//
procedure SetURI(const Value: String);
function GetURI: String;
[Error] IdURI.pas(102): Undeclared identifier: 'IIdTextEncoding'
[Error] IdCharsets.pas(3889): Undeclared identifier: 'TextIsSame'
[Fatal Error] IdURI.pas(133): Could not compile used unit 'IdCharsets.pas'
Re: Problem with installation
I don't remember what I did to install these components, as that was a while ago.
Maybe there are other things to build in addition of that?
For the missing things, check that the file in which they are are indeed accessible, e.g. TIdIPVersion is in System/IdGlobal.pas
Also, for design time package I tend to just click "Install" and not build them completely, I only build the runtime package and let it decide what is needed to build for design time.
Maybe try first a rebuild of all runtime packages otherwise?
Maybe there are other things to build in addition of that?
For the missing things, check that the file in which they are are indeed accessible, e.g. TIdIPVersion is in System/IdGlobal.pas
Also, for design time package I tend to just click "Install" and not build them completely, I only build the runtime package and let it decide what is needed to build for design time.
Maybe try first a rebuild of all runtime packages otherwise?
Re: Problem with installation
The problem I'm having is running a script (IMDB) is giving me the following error:
"Project MovieCatalog.exe raised exception class EldoSSLCouldNotLoadSSLLibrary with message 'Could not load SSL library.'. Process stopped. Use Step or Run to continue."
The error is in Indy10/lib/protocols/IdSSLOpenSSL.pas.
Can you take a look at the rest of the Tools-Environment Options-Library and bpl folder and see if you see any more discrepancies?
"Project MovieCatalog.exe raised exception class EldoSSLCouldNotLoadSSLLibrary with message 'Could not load SSL library.'. Process stopped. Use Step or Run to continue."
The error is in Indy10/lib/protocols/IdSSLOpenSSL.pas.
Can you take a look at the rest of the Tools-Environment Options-Library and bpl folder and see if you see any more discrepancies?
Re: Problem with installation
Maybe the files libeay32.dll & ssleay32.dll are missing from the folder where the .exe is ("dev" subfolder of the project)
Do you have that error with the program downloaded from my site as well? Or just with the one you compile?
Do you have that error with the program downloaded from my site as well? Or just with the one you compile?
Re: Problem with installation
That fixes the problem.
No, the error does not occur with the one downloaded from the site and those two files are only found in that folder (i.e., the Ant Movie Catalog that I install separately in the "C:\Program Files (x86)\Ant Movie Catalog" folder").
Maybe they should be included in the amc_sources.rar file as well.
Thanks for all the help.
No, the error does not occur with the one downloaded from the site and those two files are only found in that folder (i.e., the Ant Movie Catalog that I install separately in the "C:\Program Files (x86)\Ant Movie Catalog" folder").
Maybe they should be included in the amc_sources.rar file as well.
Thanks for all the help.
How do you automate it
You said earlier something about batch mode. Can you automatically set the scripts to look at the names of the files in a folder and download the descriptions from IMDB based on those movie names?
Re: Problem with installation
Indeed, I'll do that for the next update
edit: or rather put a note in the folder, as the MediaInfo file also has to be added, and all these DLL are not so small
Via File -> Import -> Media Files, you can create a catalog from a list of movie files. The once you have your catalog with one entry per movie, you can run the script in batch mode.
Re: Problem with installation
Thanks.
Re: Problem with installation
I am running File-Import-Media Files and I'm pressing "Scan folder". It works fine with the "C:\Program Files (x86)\Ant Movie Catalog" version. But with the compiled one I'm getting the error:
"Debugger Exception Notification"
"Project MovieCatalog.exe raised exception class EOSError with message 'System Error. Code: 126. The specified module could not be found'. Process Stopped. Use Step or Run to continue."
"Debugger Exception Notification"
"Project MovieCatalog.exe raised exception class EOSError with message 'System Error. Code: 126. The specified module could not be found'. Process Stopped. Use Step or Run to continue."
Re: Problem with installation
It is probably missing MediaInfo.dll
Like for the OpenSSL DLLs, I added that one to the readme of the source for next updated
Like for the OpenSSL DLLs, I added that one to the readme of the source for next updated
Re: Problem with installation
Thanks.
Re: Problem with installation
Where is the proper place to post questions about code?
I am looking for where in the code the jpeg pictures are displayed on the screen when in display mode.
I am looking for where in the code the jpeg pictures are displayed on the screen when in display mode.
Re: Problem with installation
You can create a thread in the Help or in the Comments section.
For that one, I can reply here.
When you mention "display mode", you mean "display as grid" from the Display menu?
It is done by the component named ThumbsViewer, so if you search for references to that in main.pas you find probably all its handling functions, e.g. in ThumbsViewerCellPaint
For that one, I can reply here.
When you mention "display mode", you mean "display as grid" from the Display menu?
It is done by the component named ThumbsViewer, so if you search for references to that in main.pas you find probably all its handling functions, e.g. in ThumbsViewerCellPaint
Re: Problem with installation
Thank you.