how to compile version 5.0?

Advertisement

doug
Joined:
Posts:
13
Location:
slovakia

how to compile version 5.0?

I'm trying to compile newest winscp from source, but I have some problems.
first problem was that builder 2010 is missing mfc headers and build fails at building filezilla, I solved this by copying mfc headers from borland 6.0
another problem was that during compilation of winscp.exe it was missing ssleay32.lib, I solved this by adding lib\ path to winscp.exe project library directories
now I am stuck at linking winscp.exe which fails with [ILINK32 Error] Fatal: Unable to open file 'UAFXCW.LIB'. there is no uafxcw.lib in builder 2010 or 6.0 and if I try to use one from visual studio it also fails since the library is not compatible with builder.
So how can i get working uafxcw.lib or get winscp compiled correctly?
also the readme file mentions "To build WinSCP from source by yourself, modify and use 'build.bat' in root folder of source code package." but there is no build.bat in source archive

thanks for any help

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,431
Location:
Prague, Czechia

Re: how to compile version 5.0?

doug wrote:

also the readme file mentions "To build WinSCP from source by yourself, modify and use 'build.bat' in root folder of source code package." but there is no build.bat in source archive
This issue has been added to the tracker:
https://winscp.net/tracker/724

Regarding MFC/ATL (UAFXCW.lib), see <invalid hyperlink removed by admin>
This link will be included into the readme file in the next release.

Reply with quote

doug
Joined:
Posts:
13
Location:
slovakia

with 5.0.1 I was able to successfully compile winscp without ftp support if I defined NO_FILEZILLA
problems:
in source archive the readme_mfc is the same file as readme
using the directions from the embarcadero forum I am able to compile only debug ansi version of mfc library, it fails if I try to build nondebug or unicode version

Reply with quote

sfda
Guest

what is correct flags to compile no debug, unicode version?

whaen i try to build no debug uafxcw.lib,
i got internal backend error c10862,
bartool.cpp line 1883.

can i GET CORRECT UNICODE LIB IF add ONLY UNICODE=1 TO MAKE OPTION FLAGS?

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,431
Location:
Prague, Czechia

doug wrote:

in source archive the readme_mfc is the same file as readme
My fault. I'll fix it.

using the directions from the embarcadero forum I am able to compile only debug ansi version of mfc library, it fails if I try to build nondebug or unicode version
Actually my readme is for debug only too. I do not remember why anymore. Will check.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,431
Location:
Prague, Czechia

I have updated the readme to include all code changes necessary to compile MFC using C++ Builder 2010


This readme will be included in the next release.

Reply with quote

Guest

martin wrote:

I have updated the readme to include all code changes necessary to compile MFC using C++ Builder 2010


This readme will be included in the next release.

Hi Prikryl,

Could you please share the mfc source and include files from BCB6?

Thanks.

Stoval

Reply with quote

Guest

martin wrote:

doug wrote:

in source archive the readme_mfc is the same file as readme
My fault. I'll fix it.

using the directions from the embarcadero forum I am able to compile only debug ansi version of mfc library, it fails if I try to build nondebug or unicode version
Actually my readme is for debug only too. I do not remember why anymore. Will check.

Hi Prikry1,

I've managed to find the mfc sources, but it looks that the sources file might be different from yours as I have the following issues:
1)No suitable place for
- add the following line to dumpstak.cpp at line 141
TARGDEFS=/D_UNICODE /DUNICODE
2)There is no atldbcli.h in source\mfc directory, I searched and found one in C:\Program Files (x86)\Embarcadero\RAD Studio\7.0\include\atl
3) There is no arccode.cpp but a arccore.cpp under source\mfc
4) bartool.obj,ctlcore.obj, ctlnownd.obj, dockcont.obj, viewprev.obj and dockstat.obj have to be removed in borland.mak
5) My dumpstak.cpp has 386 lines in total, so place for
- add the following line to dumpstak.cpp at line 432
#define _tclen(__a) (1)
The good news is that UafxcW.lib is created.

When I tried to run the build.bat, I have the following error:
F:\Share\winscp505source>build.bat
Microsoft (R) Build Engine Version 4.0.30319.1
[Microsoft .NET Framework, Version 4.0.30319.239]
Copyright (C) Microsoft Corporation 2007. All rights reserved.

Build started 16/12/2011 3:07:58 PM.
Project "F:\Share\winscp505source\WinSCP.groupproj" on node 1 (clean;Build targ
et(s)).
Project "F:\Share\winscp505source\WinSCP.groupproj" (1) is building "F:\Share\w
inscp505source\packages\Moje.cbproj" (2) on node 1 (Clean target(s)).
F:\Share\winscp505source\packages\Moje.cbproj : error MSB4057: The target "Clea
n" does not exist in the project.
Done Building Project "F:\Share\winscp505source\packages\Moje.cbproj" (Clean ta
rget(s)) -- FAILED.

Done Building Project "F:\Share\winscp505source\WinSCP.groupproj" (clean;Build
target(s)) -- FAILED.

Thanks for your help.

Regards,
Stoval

Build FAILED.

"F:\Share\winscp505source\WinSCP.groupproj" (clean;Build target) (1) ->
"F:\Share\winscp505source\packages\Moje.cbproj" (Clean target) (2) ->
F:\Share\winscp505source\packages\Moje.cbproj : error MSB4057: The target "Cl
ean" does not exist in the project.

0 Warning(s)
1 Error(s)

Time Elapsed 00:00:00.70

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum