rejetto forum

Software => HFS ~ HTTP File Server => Programmers corner => Topic started by: Anonymous on March 30, 2006, 04:27:48 PM

Title: want to compile, can't find libs
Post by: Anonymous on March 30, 2006, 04:27:48 PM
Quote from: "rejetto"
Quote from: "Come from China"
It seems lost 'ftmExceptionForm.dcu'. I can't find this file in delphi 6's directory. Is that file in "C:\Program Files\Borland\Delphi6\Lib\Debug" ?
i can't distribute it because it is not mine

anyway
1. redownload sources
2. edit defs.inc and remove the first line

Can you give a list of VCL which needed to compile the sources.  e.g. ICS, GIFImage, JCL and the othors.  

I'm not a developer , when I compile the sources, some errors prompt me that compiler no found *.dcu . But I don't know where can I find the files. Please offer me the files which compile the sources needed it, if you can  :)

I just want to compile hfs myself.
Title: want to compile, can't find libs
Post by: rejetto on March 30, 2006, 10:58:37 PM
Quote from: "Anonymous"
Can you give a list of VCL which needed to compile the sources.  e.g. ICS, GIFImage, JCL and the othors.  
the list is meant to be in main.pas
but i see many people having problems finding it, so i will move it to a separate file.

i'll warn you as soon as i update the src package
Title: want to compile, can't find libs
Post by: Mara on March 31, 2006, 09:07:43 AM
:) I'M NOT ALLONE :P
Title: want to compile, can't find libs
Post by: Azag on March 31, 2006, 09:22:28 PM
Well I found  all the needed libraries to compile last version 2 before fix for "+" chars in file names. Thanks for the well commented sources found all needed 3rd party stuff with no problems. :D
Unfortunately I am getting an error compiling this latest one with the fix for "+" character  :cry: but I figure I am not far from getting it wroking but couldn't find enough info for work around searching web and my Delphi skills are poor.  :lol:  
These are the errors I have:
[Error] HSlib.pas(318): Incompatible types: 'Integer' and 'WideChar'
[Fatal Error] main.pas(44): Could not compile used unit 'HSlib.pas'
Sinced I have altered and //commented out some things I wasn't needing these line numbers may be differnt form the originals and most probably are in my case.

So the specific code givign me a problem in hslib.pas is this line:

StringToWideChar(c,@buffer,4);


The whole procedure or the part in reference to it is this:
----------------------------------------------------------------------------------
procedure includeTrailingString(var s:string; ss:string);
begin if copy(s, length(s)-length(ss)+1, length(ss)) <> ss then s:=s+ss end;

function charToUnicode(c:char):word;
var
  buffer: integer;
begin
StringToWideChar(c,@buffer,4);
result:=word(buffer);
end; // charToUnicode
-----------------------------------------------------------------------------------
I am using Borland Delphi 7 Enterprise specifically if that helps.

If anyone has any pointers, hints or workaround for this a post back would really be appreciated.

Btw thanks rejetto version 2.0 looks great and so do the knew additions  to the site ... very professional looking! :D  :^^:
Have a great weekend. B)

Peace,

Azag
Title: want to compile, can't find libs
Post by: Azag on March 31, 2006, 09:46:58 PM
Never mind it was something I did in Project --> Options before compiling I think error is gone.  :lol:  Thanks again.  ;)

 - Azag
Title: want to compile, can't find libs
Post by: Anonymous on April 01, 2006, 06:04:27 AM
Why prompt me:
[Error] HSlib.pas(1166): Undeclared identifier: 'SD_BOTH'

What can i do ?
Title: want to compile, can't find libs
Post by: rejetto on April 01, 2006, 11:19:11 AM
Quote from: "Anonymous"
Why prompt me:
[Error] HSlib.pas(1166): Undeclared identifier: 'SD_BOTH'
What can i do ?
update your wsocket lib (ics)
Title: want to compile, can't find libs
Post by: Anonymous on April 01, 2006, 11:09:02 PM
thx

Simplified Chinese will be coming soon
Title: want to compile, can't find libs
Post by: Anonymous on April 02, 2006, 12:24:38 AM
What dose the option do
e.g.  menu "Compressed browsing","realm" ...

I hope there is a detailed description of each option about HFS 2.0...
Title: want to compile, can't find libs
Post by: mango on April 02, 2006, 01:38:27 AM
Quote from: "Anonymous"
What dose the option do
e.g.  menu "Compressed browsing","realm" ...

I hope there is a detailed description of each option about HFS 2.0...
Wouldn't it be better for you to learn how HFS works FIRST and learn what each option does BEFORE you try to translate to another language.  If you read through the threads you will already see that HFS v2.0 Final has already been translated to chinese.
Title: want to compile, can't find libs
Post by: rejetto on April 02, 2006, 11:48:53 PM
everything will be documented.
i'm installing a wiki so anyone can help documenting.
Title: want to compile, can't find libs
Post by: Anonymous on April 03, 2006, 01:42:25 PM
Quote from: "rejetto"
everything will be documented.
i'm installing a wiki so anyone can help documenting.
expect it
Title: want to compile, can't find libs
Post by: Anonymous on April 03, 2006, 04:55:04 PM
I have a trouble

after compile, running exe, click Menu->other options->MIME types...
a dialog appeared like this:
(http://www.playball.com.cn/top/hanzify/hfserr.png)

I uncertainty is a problem of my system, but  the unmodified source is the same. why?

you can try compile my modified of source below:
http://www.playball.com.cn/top/hanzify/hfs.rar
this is Simplified Chinese version,but Incomplete :(
the same to click 菜单->其他选项->MIME类型..
(http://www.playball.com.cn/top/hanzify/hfsmenu.png)
Title: want to compile, can't find libs
Post by: rejetto on August 10, 2006, 02:42:53 PM
other than fixing bugs, now should be easier to compile sources.
i removed some problem, and included in notes.txt a list of used libs with URLs.
Title: Re: want to compile, can't find libs
Post by: Dundee on December 25, 2007, 09:29:57 AM
I've just tried to compile the source.
I get an error inmain.pas, these files are not found: wsocket, httpProt, icsMD5, GIFimage, zlibex,

In notes.txt there are no links to these files, where can I find it ?
Title: Re: want to compile, can't find libs
Post by: Dundee on December 25, 2007, 10:52:42 AM
Okay, I've just found the links in "dev notes.txt" and I've copied all needed files to the source code folder
But now I get an error:

Code: [Select]
destructor ThttpConn.destroy;
begin
P_destroying:=TRUE;
if assigned(sock) then
  begin
  sock.Shutdown(SD_BOTH);  <----------------- Error - undefinded
  sock.WaitForClose();
  end;
srv.offlines.remove(self);
freeAndNil(stream);
freeAndNIL(sock);
end; // destroy
Title: Re: want to compile, can't find libs
Post by: rejetto on December 25, 2007, 05:45:15 PM
it's part of Delphi.
i guess you have an old version of Delphi.
it's defined in unit Winsock, and it is a costant

const
  SD_BOTH        = 2;
Title: Re: want to compile, can't find libs
Post by: Dundee on December 25, 2007, 07:16:05 PM
Thanks for your reply.

I use "Turbo Delphi Explorer" and I've downloaded it from http://cc.codegear.com/free/turbo (http://cc.codegear.com/free/turbo)
It's Version 10.0.2288.42451

Another problems are:
1.
When I run the project I get these messages (I translated it, because I use the german version):
Exception in project hfs.exe with class EConvertError with the message "invalid argument to encoding the date"

2.
In the menĂ¼ under "Other Options" I only see "Auto-copy URL on addition" and "Always on top"

Don't know why...
Do I use a wrong Delphi ?

I'm programmer but don't know really Delphi, I just want to make some small modifications.
Title: Re: want to compile, can't find libs
Post by: rejetto on December 25, 2007, 07:55:56 PM
i use Turbo Delphi as well, you just didn't install some small updates.
indeed my version is 10.0.2558.35231

1. exceptions are normal. The point is that they must be catched/handled. if you see an uncatched exception, let me know the line.

2. switch to expert mode
Title: Re: want to compile, can't find libs
Post by: Dundee on December 25, 2007, 10:34:29 PM
Quote
1. exceptions are normal. The point is that they must be catched/handled. if you see an uncatched exception, let me know the line.

After compiling I get no errors  :)

Quote
2. switch to expert mode
Argh, I am so stupid  :-X

Thanks a lot for your support and thanks a lot for this great tool.