Wings 3D Development Forum
[fixed]can't find the cl.exe - Printable Version

+- Wings 3D Development Forum (https://www.wings3d.com/forum)
+-- Forum: Wings 3D (https://www.wings3d.com/forum/forumdisplay.php?fid=1)
+--- Forum: Programming (https://www.wings3d.com/forum/forumdisplay.php?fid=7)
+--- Thread: [fixed]can't find the cl.exe (/showthread.php?tid=2882)



[fixed]can't find the cl.exe - nigec - 01-03-2020

I manage to make W3D last night on Windows 10 however on the "rebar compile" command it fails to find cl.exe.
The path for cl.exe is set for vs2017 but I'm guessing something is wrong for my msys64 setup?

the header files for OpenCL and the lib are there from the nvidia sdk
C:\wingsdev\msys64\usr\include\opencl.h (and the other files in the sdk folder)
C:\wingsdev\msys64\usr\lib\OpenCL.lib

I don't "need" it working but I guess it would be nice if it did lol

I'm currently looking at my Thea script but I'm considering porting it for Luxcore.. which is probably the best free option these days
if Wings had a ply exporter that would be really easy!!

edit..
after some messing about I now get:
Code:
$ rebar compile
==> cl (compile)
make: Entering directory '/c/wingsdev/src/cl/c_src'
make nif TYPE=release
make[1]: Entering directory '/c/wingsdev/src/cl/c_src'
gcc -c -ocl_nif.o -Wall -Wextra -Wswitch-default -Wswitch-enum -D_THREAD_SAFE -D_REENTRANT -fno-common -Wno-deprecated-declarations -Wno-missing-field-initializers -I"c:/Program Files/erl10.5/usr/include" cl_nif.c
/bin/sh: gcc: command not found
make[1]: *** [Makefile:188: cl_nif.o] Error 127
make[1]: Leaving directory '/c/wingsdev/src/cl/c_src'
make: *** [Makefile:167: all] Error 2
make: Leaving directory '/c/wingsdev/src/cl/c_src'
ERROR: Command [compile] failed!


edit2:
you can get the include and lib files here:
https://github.com/GPUOpen-LibrariesAndSDKs/OCL-SDK/releases


RE: can't find the cl.exe - micheus - 01-03-2020

Hi. I'm away from my PC to help with that since my dev environment was built over MySys too.

The instructions to build wings3d here in the forum are a little old. But, you may have noticed in the source repository there are two files starting with BUILD. - one for Windows and other for Linux / OSX. They have instructions about how to build wings3d for each environment.

Something I remember is that for Windows you may not to need to build the club module. If it's not present the script to build wings3d will download a pre-built version of it.


RE: can't find the cl.exe - nigec - 01-03-2020

That seems even more confusing :/

I tied rebar3 and the cl repo mentioned in the build file and I get the same.. I'll try using the source from the site


edit:
Fixed it, the path was wrong in C:\wingsdev\msys64\usr\lib for the folder x64.. by default x86_64.. I created the x64 folder and it works now

Code:
退Erlang/OTP 22 [erts-10.5] [64-bit] [smp:1:1] [ds:1:1:10] [async-threads:1]

Eshell V10.5  (abort with ^G)
1> wings-2.2.5
Reading preferences from: c:/Users/nige/AppData/Roaming/Wings3D/Preferences.txt
Using OpenCL via gpu:Name NVIDIA CUDA:VSN: OpenCL 1.2 CUDA 8.0.0

edit:
All working and I can build the win package