Page 1 of 1

Compile error in cygwin

Posted: Fri May 21, 2004 2:11 am
by Sutabi
====> make all in blender/extern
====> make all in extern/ode
[ -d dist/lib ] || mkdir dist/lib
# prepare settings for patching, clean in case of interruption
[ ! -f ./user-settings ] || mv ./user-settings ./dist/config/user-settings
cp ./dist/config/user-settings ./user-settings
# compile with MSVC
cat ./user-settings | sed s/unix-gcc/msvc/ > ./dist/config/user-settings
env PATH=".:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/WINNT/system
32:/cygdrive/c/WINNT:/cygdrive/c/WINNT/System32/Wbem:/cygdrive/c/Program Files/A
qsis/bin" make -C dist
cl /nologo /DWIN32 /DMSVC /DSHAREDLIBEXPORT= /DSHAREDLIBIMPORT= /DdSINGLE /DdNO
DEBUG /Feconfigurator.exe configurator.c
make[3]: cl: Command not found
make[3]: *** [configurator.exe] Error 127
make[2]: *** [all] Error 2
make[1]: *** [all] Error 1
make: *** [all] Error 1

I am not sure if I gotta edit some files or not....

Re: Compile error in cygwin

Posted: Fri May 21, 2004 7:12 am
by jesterKing
Sutabi wrote: make[3]: cl: Command not found
Make sure cl.exe is in your path (for cygwin). Btw, I was not aware that you can build blender through cygwin with make using msvc.

/jesterKing.

Posted: Fri May 21, 2004 10:44 am
by bjornmose
depends on what you want to do

using gcc as compiler add

Code: Select all

export  FREE_WINDOWS= true
to user-def.mk

or to use MS compiler
i start cygwin with some additional path information
(vcvars32.bat does not work with me on cygwin)

my cyvc.bat

Code: Select all

@echo off
rem
rem Root of Visual Developer Studio Common files.
set VSCommonDir=C:\PROGRA~1\MICROS~2\Common

rem
rem Root of Visual Developer Studio installed files.
rem
set MSDevDir=C:\PROGRA~1\MICROS~2\Common\msdev98

rem
rem Root of Visual C++ installed files.
rem
set MSVCDir=C:\PROGRA~1\MICROS~2\VC98

rem
rem VcOsDir is used to help create either a Windows 95 or Windows NT specific path.
rem
set VcOsDir=WIN95
if "%OS%" == "Windows_NT" set VcOsDir=WINNT

rem
echo Setting environment for using Microsoft Visual C++ tools.
rem

if "%OS%" == "Windows_NT" set PATH=%MSDevDir%\BIN;%MSVCDir%\BIN;%VSCommonDir%\TOOLS\%VcOsDir%;%VSCommonDir%\TOOLS;%PATH%
if "%OS%" == "" set PATH="%MSDevDir%\BIN";"%MSVCDir%\BIN";"%VSCommonDir%\TOOLS\%VcOsDir%";"%VSCommonDir%\TOOLS";"%windir%\SYSTEM";"%PATH%"
set INCLUDE=%MSVCDir%\ATL\INCLUDE;%MSVCDir%\INCLUDE;%MSVCDir%\MFC\INCLUDE;%INCLUDE%
set LIB=%MSVCDir%\LIB;%MSVCDir%\MFC\LIB;%LIB%

set VcOsDir=
set VSCommonDir=



C:
chdir C:\cygwin\bin

bash --login -i

Posted: Sat May 22, 2004 8:26 am
by Sutabi
where do i get cl.exe(i downloaded it from goggling but it was from mozilla dn not sure if thats the right cl.exe)?

Also I am just tring to compile.

I got Cygwin.... I dont have a MS compiler.....

Posted: Sat May 22, 2004 8:49 am
by Sutabi
the error:

Clausal Language 5.81.16
Copyright (C) 1996--2002 Paul J. Voda, Jan Komara
Copyright (C) 2002--2003 Jan Kluka

Heap free: 131068K
Reading a module from /nologo /DWIN32 /DMSVC /DSHAREDLIBEXPORT= /DSHAREDLIBIMPOR
T= /DdSINGLE /DdNODEBUG /Feconfigurator.exe configurator.c...

Import problem: file /nologo /DWIN32 /DMSVC /DSHAREDLIBEXPORT= /DSHAREDLIBIMPORT
= /DdSINGLE /DdNODEBUG /Feconfigurator.exe configurator.clb error: The system ca
nnot find the file specified.♪◙

Press any key to end CL...
c
onfigurator.exe include/ode/config.h "cl /nologo /DWIN32 /DMSVC /DSHAREDLIBEXPOR
T= /DSHAREDLIBIMPORT= /DdNODEBUG /Fe" "tools\rm"
configurator.exe: not found
make[3]: *** [include/ode/config.h] Error 127
make[2]: *** [all] Error 2
make[1]: *** [all] Error 1
make: *** [all] Error 1

Posted: Sat May 22, 2004 11:39 am
by jesterKing
As bjornmose already stated, you have to

Code: Select all

export  FREE_WINDOWS= true 
/jesterKing

Posted: Sat May 22, 2004 7:59 pm
by Sutabi
THere is no "user-def.mk" ....

I added that line to "nan_definitions.mk" and the error above was from me adding that...

Posted: Mon May 24, 2004 2:56 pm
by bjornmose
hm.. your cl.exe is definitely not the one from MS but you do not need it for compiling with cygwin / gcc !
Sutabi wrote:THere is no "user-def.mk" ....

I added that line to "nan_definitions.mk" and the error above was from me adding that...
but there is a "user-def.mk.defaults"
copy this to user-def.mk
insert the
"export FREE_WINDOWS= true "
line there.
with this line make will switch to gcc (which should be in your cygwin installation)

BM