Comments (9)
I'm getting this too using command-line cmake, and I'm getting it for LabRecorder too.
I'm in the operating room today so I won't be able to fix it right away. Hopefully @tstenner can.
from labstreaminglayer.
I'm currently on vacation without my laptop, but here's what I think:
The MSVC generator supports multiple configurations (debug/release) and in debug builds, we add an extra flag to the windepoyqt options.
The offending party starts in lslcmake.cmake (liblsl repo) with if (CMAKE_INSTALL_CONFIG_NAME STREQUAL "Debug")
It should suffice to replace the file name $target_path with $target_$install_config_name_path
from labstreaminglayer.
Did I understand you correctly when replacing the file name like this:
set(QT_DEPLOYQT_FLAGS --no-translations --no-system-d3d-compiler --no-opengl-sw --no-compiler-runtime) file(GENERATE OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/$target_$install_config_name_path" CONTENT "$<TARGET_FILE:${target}>" ) get_filename_component(appdir ${appbin} DIRECTORY CACHE) install (CODE " file(READ \"${CMAKE_CURRENT_BINARY_DIR}/${target}_$install_config_name_path\" _file) message (STATUS \"Running Qt Deploy Tool for \${_file}\") if (CMAKE_INSTALL_CONFIG_NAME STREQUAL \"Debug\") set(QT_DEPLOYQT_FLAGS \"\${QT_DEPLOYQT_FLAGS} --debug\") else () set(QT_DEPLOYQT_FLAGS \"\${QT_DEPLOYQT_FLAGS} --release\") endif ()
If yes, I still get a similar error:
CMake Error in Apps/LabRecorder/CMakeLists.txt:
Evaluation file to be written multiple times with different content. This
is generally caused by the content evaluating the configuration type,
language, or location of object files:
C:/Users/User/Documents/labstreaminglayer/build/Apps/LabRecorder/$target_$install_config_name_path
CMake Error in Apps/LabRecorder/CMakeLists.txt:
Evaluation file to be written multiple times with different content. This
is generally caused by the content evaluating the configuration type,
language, or location of object files:
C:/Users/User/Documents/labstreaminglayer/build/Apps/LabRecorder/$target_$install_config_name_path
CMake Error in Apps/BrainAmpSeries/CMakeLists.txt:
Evaluation file to be written multiple times with different content. This
is generally caused by the content evaluating the configuration type,
language, or location of object files:
C:/Users/User/Documents/labstreaminglayer/build/Apps/BrainAmpSeries/$target_$install_config_name_path
CMake Error in Apps/BrainAmpSeries/CMakeLists.txt:
Evaluation file to be written multiple times with different content. This
is generally caused by the content evaluating the configuration type,
language, or location of object files:
C:/Users/User/Documents/labstreaminglayer/build/Apps/BrainAmpSeries/$target_$install_config_name_path
CMake Error in Apps/BrainProducts/BrainVisionRDA/CMakeLists.txt:
Evaluation file to be written multiple times with different content. This
is generally caused by the content evaluating the configuration type,
language, or location of object files:
C:/Users/User/Documents/labstreaminglayer/build/Apps/BrainProducts/BrainVisionRDA/$target_$install_config_name_path
CMake Error in Apps/BrainProducts/BrainVisionRDA/CMakeLists.txt:
Evaluation file to be written multiple times with different content. This
is generally caused by the content evaluating the configuration type,
language, or location of object files:
C:/Users/User/Documents/labstreaminglayer/build/Apps/BrainProducts/BrainVisionRDA/$target_$install_config_name_path
from labstreaminglayer.
My bad, I didn't type it out because it's a bit hard to do on a smartphone keyboard. The correct filename should be ${CMAKE_CURRENT_BINARY_DIR}/${target}_${CMAKE_INSTALL_CONFIG_NAME}_path
from labstreaminglayer.
Oh ok, I also tried that and other variations with the same error as a result:
CMake Error in Apps/LabRecorder/CMakeLists.txt:
Evaluation file to be written multiple times with different content. This
is generally caused by the content evaluating the configuration type,
language, or location of object files:
C:/Users/User/Documents/labstreaminglayer/build/Apps/LabRecorder/LabRecorder__path
CMake Error in Apps/LabRecorder/CMakeLists.txt:
Evaluation file to be written multiple times with different content. This
is generally caused by the content evaluating the configuration type,
language, or location of object files:
C:/Users/User/Documents/labstreaminglayer/build/Apps/LabRecorder/LabRecorder__path
CMake Error in Apps/BrainAmpSeries/CMakeLists.txt:
Evaluation file to be written multiple times with different content. This
is generally caused by the content evaluating the configuration type,
language, or location of object files:
C:/Users/User/Documents/labstreaminglayer/build/Apps/BrainAmpSeries/BrainAmpSeries__path
CMake Error in Apps/BrainAmpSeries/CMakeLists.txt:
Evaluation file to be written multiple times with different content. This
is generally caused by the content evaluating the configuration type,
language, or location of object files:
C:/Users/User/Documents/labstreaminglayer/build/Apps/BrainAmpSeries/BrainAmpSeries__path
CMake Error in Apps/BrainProducts/BrainVisionRDA/CMakeLists.txt:
Evaluation file to be written multiple times with different content. This
is generally caused by the content evaluating the configuration type,
language, or location of object files:
C:/Users/User/Documents/labstreaminglayer/build/Apps/BrainProducts/BrainVisionRDA/BrainVisionRDA__path
CMake Error in Apps/BrainProducts/BrainVisionRDA/CMakeLists.txt:
Evaluation file to be written multiple times with different content. This
is generally caused by the content evaluating the configuration type,
language, or location of object files:
C:/Users/User/Documents/labstreaminglayer/build/Apps/BrainProducts/BrainVisionRDA/BrainVisionRDA__path
Generating done
from labstreaminglayer.
The fix didn't work because at the time installLSLAppSingleFolder
is run, ${CMAKE_INSTALL_CONFIG_NAME}
resolves to '', and is thus still the same for both configs. The install
code block, where CMAKE_INSTALL_CONFIG_NAME
is used to change the qt deploy flags, is run later.
I'll keep looking.
from labstreaminglayer.
I replaced ${CMAKE_INSTALL_CONFIG_NAME}
with ${CMAKE_BUILD_TYPE}
, which does correctly resolve to Release
or Debug
, but the problem persists. In fact, even if I use -DCMAKE_BUILD_TYPE=Debug
(or Release
), the problem is still there. i.e., it happens for single configurations.
Also worth noting that the error happens well after configure, during generation. So it's likely a problem in the generator expressions.
BTW, @tnguyen1992 , until we fix this, you can use MSVC 2017 integrated cmake support. In file explorer, right click somewhere in the labstreaminglayer folder and choose "Open in Visual Studio". There are more instructions in docs/BUILD.md
from labstreaminglayer.
OK it's been fixed. If you do a git fetch && git pull && git submodule update
then everything should be in place.
from labstreaminglayer.
from labstreaminglayer.
Related Issues (20)
- How do I find device name that is being streamed through LSL? HOT 1
- Synch Xsens + TCD/IP cameras HOT 2
- time stamp jump bug HOT 6
- Submitting new app fails HOT 6
- building for android fails HOT 5
- "Error trying to send a time packet: Invalid argument" when accessing a new stream HOT 8
- empty folders HOT 1
- Screen Capture as an LSL Inlet HOT 4
- Single PC clock offset meaning vs. latency and jitter HOT 1
- Is there a specification of the wire protocol? HOT 1
- liblsl on a Raspberry pi HOT 1
- Support for QUIC? HOT 1
- Unable to record multiple audio streams HOT 1
- Bluetooth version HOT 1
- what happened to your forum, formerly at https://mailman.ucsd.edu/mailman/listinfo/lsl-l ? HOT 5
- Record data by SCAN4.5 and labrecorder is different? HOT 4
- LSL connection between Windows and Ubuntu HOT 3
- Documentation for maintaining various distributions. HOT 1
- Best way to send data from a device to the web HOT 5
- Streams with manual timestamps sent by LSL to Labrecorder are incorrectly loaded from .xdf HOT 7
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 labstreaminglayer.