FiveWin 64 Bit Environment Settings

FiveWin 64 Bit Environment Settings

Postby Jimmy » Thu Jul 21, 2022 1:30 am

hi,

i try to use 64 Bit Version and use c:\fwh64\samples\buildh.bat
i have modify Settings for my Environment but do not understand Error when compile / link

bcc64.exe: warning: argument unused during compilation: '-e 32or64.exe'
...
Fatal: Unable to open file '32OR64.OBJ'
* Linking errors *


need some Help please
Code: Select all  Expand view  RUN
@ECHO OFF
CLS
ECHO ┌────────────────────────────────────────────────────────────────────────────┐
ECHO │ FiveWin for Harbour 22.06 - Jun. 2022           Harbour development power  │▄
ECHO │ (c) FiveTech 1993-2022 for Microsoft Windows 9X/NT/200X/ME/XP/Vista/7/8/10 │█
ECHO └────────────────────────────────────────────────────────────────────────────┘█
ECHO   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀

if A%1 == A GOTO :SINTAX
if NOT EXIST %1.prg GOTO :NOEXIST

if "%FWDIR%" == "" set FWDIR=c:\fwh64
if "%HBDIR%" == "" set HBDIR=c:\harbour64
rem if "%2" == "/b" set GT=gtwin
rem if not "%2" == "/b" set GT=gtgui
set GT=gtgui

ECHO Compiling...

set hdir=%HBDIR%
set hdirl=%hdir%\lib\win\bcc
set fwh=%FWDIR%
rem if exist c:\bcc7 set bcdir=c:\bcc7
rem if exist c:\bcc64 set bcdir=c:\bcc64
if exist c:\BCC7-64 set bcdir=c:\BCC7-64

%hdir%\bin\harbour %1 /n /i%fwh%\include;%hdir%\include /w /p %2 %3 > comp.log 2> warnings.log
if errorlevel 1 goto COMPILEERRORS
@type comp.log
@type warnings.log

echo -O2 -e%1.exe -I%hdir%\include -I%bcdir%\include\windows\crtl -I%fwh%\include %1.c > b64.bc
%bcdir%\bin\bcc64 -M -c @b64.bc
:ENDCOMPILE

rem IF EXIST %1.rc %bcdir%\bin\brc64.exe -r -I%bcdir%\include\windows\crtl -I%bcdir%\include\windows\sdk %1
rem IF EXIST %1.rc %bcdir%\bin\cgrc.exe -r -m -I%bcdir%\include\windows\crtl -I%bcdir%\include\windows\sdk %1
rem IF EXIST %1.rc %vcdir%\bin\rc -r -d__FLAT__ %1
IF EXIST %1.rc %bcdir%\bin\rc.exe -r -I%bcdir%\include\windows\crtl -I%bcdir%\include\windows\sdk %1

echo %bcdir%\lib\c0w64.o + > b64.bc
echo %1.obj, + >> b64.bc
echo %1.exe, + >> b64.bc
echo %1.map, + >> b64.bc
echo %fwh%\lib\FiveH64.lib %fwh%\lib\FiveHC64.lib %fwh%\lib\libmysql.lib + >> b64.bc
echo %fwh%\lib\hbpgsql.lib %fwh%\lib\libpq.lib + >> b64.bc
echo %hdirl%\hbhpdf.lib + >> b64.bc
echo %hdirl%\libhpdf.lib + >> b64.bc
echo %hdirl%\png.lib + >> b64.bc
echo %hdirl%\hbwin.lib + >> b64.bc
echo %hdirl%\gtgui.lib + >> b64.bc
echo %hdirl%\hbrtl.lib + >> b64.bc
echo %hdirl%\hbvm.lib + >> b64.bc
echo %hdirl%\hblang.lib + >> b64.bc
echo %hdirl%\hbmacro.lib + >> b64.bc
echo %hdirl%\hbrdd.lib + >> b64.bc
echo %hdirl%\rddntx.lib + >> b64.bc
echo %hdirl%\rddcdx.lib + >> b64.bc
echo %hdirl%\rddfpt.lib + >> b64.bc
echo %hdirl%\hbsix.lib + >> b64.bc
echo %hdirl%\hbdebug.lib + >> b64.bc
echo %hdirl%\hbcommon.lib + >> b64.bc
echo %hdirl%\hbpp.lib + >> b64.bc
echo %hdirl%\hbcpage.lib + >> b64.bc
echo %hdirl%\hbcplr.lib + >> b64.bc
echo %hdirl%\hbct.lib + >> b64.bc
echo %hdirl%\hbpcre.lib + >> b64.bc
echo %hdirl%\xhb.lib + >> b64.bc
echo %hdirl%\hbziparc.lib + >> b64.bc
echo %hdirl%\hbmzip.lib + >> b64.bc
echo %hdirl%\hbzlib.lib + >> b64.bc
echo %hdirl%\minizip.lib + >> b64.bc
rem echo %hdirl%\png.lib + >> b64.bc
echo %hdirl%\hbusrrdd.lib + >> b64.bc
echo %hdirl%\hbtip.lib + >> b64.bc
echo %hdirl%\hbzebra.lib + >> b64.bc
echo %hdirl%\hbcurl.lib + >> b64.bc
echo %hdirl%\libcurl.lib + >> b64.bc

rem Uncomment these two lines to use Advantage RDD
rem echo %hdirl%\rddads.lib + >> b64.bc
rem echo %hdirl%\Ace64.lib + >> b64.bc

echo %fwh%\lib\dolphin.lib + >> b64.bc
rem echo %fwh%\lib\libmysql.lib + >> b64.bc

echo %bcdir%\lib\cw64.lib + >> b64.bc
echo %bcdir%\lib\uuid.lib + >> b64.bc
echo %bcdir%\lib\import64.lib + >> b64.bc
echo %bcdir%\lib\ws2_64.lib + >> b64.bc
echo %bcdir%\lib\psdk\odbc64.lib + >> b64.bc
echo %bcdir%\lib\psdk\nddeapi.lib + >> b64.bc
echo %bcdir%\lib\psdk\iphlpapi.lib + >> b64.bc
echo %bcdir%\lib\psdk\msimg64.lib + >> b64.bc
echo %bcdir%\lib\psdk\psapi.lib + >> b64.bc
echo %bcdir%\lib\psdk\rasapi64.lib + >> b64.bc
echo %bcdir%\lib\psdk\gdiplus.lib + >> b64.bc
echo %bcdir%\lib\psdk\shell64.lib, >> b64.bc

IF EXIST %1.res echo %1.res >> b64.bc
if %GT% == gtwin %bcdir%\bin\ilink64 -Gn -Tpe -s @b64.bc
IF ERRORLEVEL 1 GOTO LINKERROR
if %GT% == gtgui %bcdir%\bin\ilink64 -Gn -aa -Tpe -s @b64.bc
IF ERRORLEVEL 1 GOTO LINKERROR
ECHO * Application successfully built *
rem signtool.exe sign /fd sha256 %1.exe
%1
GOTO EXIT
ECHO

rem delete temporary files
@del %1.c

:COMPILEERRORS
@type comp.log
@type warnings.log
ECHO * Compile errors *
GOTO EXIT

:LINKERROR
ECHO * Linking errors *
GOTO EXIT

:SINTAX
ECHO    SYNTAX: Build [Program]     {-- No especifiques la extensi?n PRG
ECHO                                {-- Don't specify .PRG extension
GOTO EXIT

:NOEXIST
ECHO The specified PRG %1 does not exist

:EXIT
greeting,
Jimmy
User avatar
Jimmy
 
Posts: 1732
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: FiveWin 64 Bit Environment Settings

Postby Antonio Linares » Thu Jul 21, 2022 4:55 am

Dear Jimmy,

For FWH 64 you have to use FWH\samples\buildh64.bat
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42121
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: FiveWin 64 Bit Environment Settings

Postby Jimmy » Thu Jul 21, 2022 4:48 pm

hi Antonio,
Antonio Linares wrote:For FWH 64 you have to use FWH\samples\buildh64.bat

c:\fwh64\samples\buildh64.bat does use MSVC
Code: Select all  Expand view  RUN
set hdirl=%hdir%\lib\win\msvc64

must i use MSVC for 64 Bit :?:
i like to use BCC 64 Bit (where do i get latest Version ?)
greeting,
Jimmy
User avatar
Jimmy
 
Posts: 1732
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: FiveWin 64 Bit Environment Settings

Postby Jimmy » Fri Jul 22, 2022 12:22 am

hi,

Ok, have understood that FiveWin 64 Bit use MSVC

so have install MSVC but my harbour64 have only MinGW64 or BCC64 but no MSVC64 LIB Folder :cry:
Code: Select all  Expand view  RUN
c:\harbour64\lib\win\msvc64

so where do i get harbour64 with MSVC64 LIBs :?:
greeting,
Jimmy
User avatar
Jimmy
 
Posts: 1732
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: FiveWin 64 Bit Environment Settings

Postby Jimmy » Fri Jul 22, 2022 12:30 am

hi,

have try to check Path
Code: Select all  Expand view  RUN
"%ProgramFiles%\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat"

c:\fwh64\samples>dir "%ProgramFiles%\Microsoft Visual Studio\2022\Community\VC\Auxiliary

Verzeichnis von C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary

22.07.2022 02:00 <DIR> .
22.07.2022 02:01 <DIR> ..
22.07.2022 02:00 <DIR> VS

so Folder "\Build\vcvarsall.bat" is missing ... :(
i have NOT start IDE

what do i miss :?:
greeting,
Jimmy
User avatar
Jimmy
 
Posts: 1732
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: FiveWin 64 Bit Environment Settings

Postby richard-service » Fri Jul 22, 2022 12:50 am

Jimmy wrote:hi,

have try to check Path
Code: Select all  Expand view  RUN
"%ProgramFiles%\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat"

c:\fwh64\samples>dir "%ProgramFiles%\Microsoft Visual Studio\2022\Community\VC\Auxiliary

Verzeichnis von C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary

22.07.2022 02:00 <DIR> .
22.07.2022 02:01 <DIR> ..
22.07.2022 02:00 <DIR> VS

so Folder "\Build\vcvarsall.bat" is missing ... :(
i have NOT start IDE

what do i miss :?:


Dear Jimmy,
Look it. I install MSVC and commandline process not IDE
Image
Image
Best Regards,

Richard

Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 804
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan

Re: FiveWin 64 Bit Environment Settings

Postby Jimmy » Fri Jul 22, 2022 1:15 am

hi,

got it :)

have download FiveWin Harbour 64 Version here
https://github.com/FiveTechSoft/Harbour_builder

File
https://www.fivetechsoft.com/files/harbour/harbour_all.zip

---

have install "wrong" Paket for MSVC :roll:

i have read Message from Detlef
https://forums.fivetechsupport.com/viewtopic.php?f=3&t=41986
that i need "Desktop with C++" and re-installed it

now 1st Sample work and i can go on :)
greeting,
Jimmy
User avatar
Jimmy
 
Posts: 1732
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: FiveWin 64 Bit Environment Settings

Postby richard-service » Fri Jul 22, 2022 2:12 am

Jimmy wrote:hi,

got it :)

have download FiveWin Harbour 64 Version here
https://github.com/FiveTechSoft/Harbour_builder

File
https://www.fivetechsoft.com/files/harbour/harbour_all.zip

---

have install "wrong" Paket for MSVC :roll:

i have read Message from Detlef
https://forums.fivetechsupport.com/viewtopic.php?f=3&t=41986
that i need "Desktop with C++" and re-installed it

now 1st Sample work and i can go on :)


Sounds good ...
Best Regards,

Richard

Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 804
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 45 guests