mitsuba-renderer / mitsuba2

Mitsuba 2: A Retargetable Forward and Inverse Renderer
Other
2.04k stars 267 forks source link

- [🔨 compilation issue] REGEX mode REPLACE failed to compile regex #268

Open RomboDev opened 4 years ago

RomboDev commented 4 years ago

Summary

CMake REGEX REPLACE failure on ext/asmjit/CMakeLists.txt line 222

System configuration

Description

I have this error from CMake (both cmake 3.10 and 3.18.2) ..

CMake Error at ext/asmjit/CMakeLists.txt:222 (string): string sub-command REGEX, mode REPLACE failed to compile regex "^/media/max/Projects/Dev/C++/mitsuba/v2/mitsuba2/ext/asmjit/src/".

Steps to reproduce

at line 222, ext/asmjit/CMakeLists.txt ...

string(REGEX REPLACE "^${ASMJIT_SOURCE_DIR}/" "" targetpath "${_src_dir}")

frankly I'm not even sure what's going on there.. put src_dir into targetpath ? so I've removed REGEX and just left REPLACE and I could configure/generate and eventually compile/run.

Speierers commented 4 years ago

Hi @RomboDev ,

Not really sure what's going on here. Unfortunately I can't reproduce this on my system.

Could you try to rebase latest master from https://github.com/asmjit/asmjit/commits/master onto ext/asmjit? It could be that this bug was fixed in a more recent version of asmjit. If this is the case, I could update it in our codebase.