FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveMac / FivePhone (iPhone, iPad) modificando el build.sh para Mac me da un error... ayuda
Posts: 1956
Joined: Fri Oct 07, 2005 07:08 PM
modificando el build.sh para Mac me da un error... ayuda
Posted: Wed Dec 27, 2023 06:28 AM
Hola.
Estoy adaptando el build.sh y cuando quiere comenzar a compilar los modelos "c" me sale este error:
clang: error: no such file or directory: 'test.prg.c'

y cuando veo en la carpeta existe el test.c pero no el "test.prg.c" como puedo hacer para modificar esto?
la parte del script es esta:
Code (fw): Select all Collapse
HARBOUR=~/harbour
HARB_INC=$HARBOUR/include
SOURCE_INC=../include
FIVEMAC=~/fivemac

echo compiling C module...
#  add -arch ppc -arch i386 for universal binaries
if [ -d /Applications/Xcode.app ]; then
   echo "uno"
   SDKPATH=$(xcrun --sdk macosx --show-sdk-path)
   gcc -ObjC $1.c -c -I$SDKPATH -I$SOURCE_INC -I$HARB_INC 
else
   echo "dos"
   gcc -ObjC $1.c -c -I$SOURCE_INC -I$HARB_INC
fi
Por lo que pude ver es cuando pasa por el tramo donde puse echo "uno"
FWH 21.02
Harbour 3.2.0dev (r2104281802)
Copyright (c) 1999-2021, https://harbour.github.io/
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: modificando el build.sh para Mac me da un error... ayuda
Posted: Wed Dec 27, 2023 08:06 PM

Estimado Gustavo,

Tienes que usarlo asi:

./build.sh test

y no asi:

./build.sh test.prg

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion