AnsweredAssumed Answered

cst tools windows compile

Question asked by rohith.chinnaswamy@doverfs.com on Oct 17, 2018
Latest reply on Oct 18, 2018 by rohith.chinnaswamy@doverfs.com

Hi,

 

I downloaded the cst tool 3.0.1 and im trying to compile the csp.exe in windows using the steps listed in release notes. The reason i need to recompile is eventually I have to modify this tool to run with a adaption plugin to sign the image using HSM.

 

So as a first step i tried to recompile the cst with the following command

 

cd <CST install directory/code/back_end/src
i686-w64-mingw32-gcc -o cst.exe -I ../hdr -L ../../../mingw32/lib \
*.c -lfrontend -lcrypto

 

The error i get is 

 

i686-w64-mingw32-gcc -o cst.exe -I ../hdr -L ../../../mingw32/lib \ *.c -lfrontend -lcrypto
C:/Program Files (x86)/mingw-w64/i686-8.1.0-posix-dwarf-rt_v6-rev0/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find \: No such file or directory
collect2.exe: error: ld returned 1 exit status

 

I am not sure what is wrong here. Is there something wrong with the command?

 

The steps from release note

 

To relink on Windows machines:
This requires the MINGW compiler and OpenSSL header files and
library. The easiest way to get them is to install Cygwin

cd <CST install directory/code/back_end/src
i686-w64-mingw32-gcc -o cst.exe -I ../hdr -L ../../../mingw32/lib \
*.c -lfrontend -lcrypto
cp cst ../../../mingw32

Outcomes