Comments (4)
Hey, thanks for reporting. Currently, the network protocol is not supported on Windows, as it assumes a Berkeley sockets style API.
I'm guarding the network code with a simple #ifndef WINDOWS
. Reworking these guards is needed to get it building on MINGW environments.
I don't have a MINGW environment available, but the included instructions in the README on how to build natively on Windows should still work.
from c-ray.
Hey, thanks for reporting. Currently, the network protocol is not supported on Windows, as it assumes a Berkeley sockets style API. I'm guarding the network code with a simple
#ifndef WINDOWS
. Reworking these guards is needed to get it building on MINGW environments. I don't have a MINGW environment available, but the included instructions in the README on how to build natively on Windows should still work.
Shouldn't it be #ifndef _WIN32
? Your usage of #ifndef WINDOWS
is wrong. This is the reason why <arpa/inet.h>
is still included.
from c-ray.
Oh I see, -DWINDOWS
is added by you on your CMakeLists.txt
. @vkoskiv What about replacing #ifndef WINDOWS
in code with #ifndef _WIN32
so you will not need to define -DWINDOWS
on CMakeLists.txt
? Btw, please have a look at your CMakeLists.txt
and add support for MinGW compiler. You could use if (MinGW)
to check for MinGW on CMake. Currently you only check for MSVC
so -DWINDOWS
is not defined when building with MSYS2.
from c-ray.
Btw, please have a look at your CMakeLists.txt and add support for MinGW compiler.
I personally don't have a need for MinGW support, nor a test environment to implement that support, but I'd be happy to merge in those changes if someone else works on it.
from c-ray.
Related Issues (20)
- How to compile custom build with Cygwin for Windows? HOT 1
- New rendering protocol doesn't work on Windows
- Add an NSI C binding HOT 6
- Rendering protocol doesn't work across architectures HOT 1
- How to run on Apple Silicon MacBook Pro? HOT 7
- The rendered image is not sharp as that in c-ray readme HOT 4
- munmap error when rendering an obj file HOT 4
- Crash with OBJ files from OneShape HOT 7
- How to change the camera position and direction
- Flatten k-d trees. HOT 2
- Implement a top-level BVH. HOT 6
- Do not force the compiler version HOT 2
- Make the material system physically correct HOT 1
- Implement more nodes
- Implement cubic interpolation HOT 2
- Implement next event estimation
- Implement multiple importance sampling
- Can't find assets HOT 7
- Implement cluster rendering HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from c-ray.