Giter Club home page Giter Club logo

Comments (9)

cboulay avatar cboulay commented on May 9, 2024

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.

tstenner avatar tstenner commented on May 9, 2024

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.

tnguyen1992 avatar tnguyen1992 commented on May 9, 2024

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.

tstenner avatar tstenner commented on May 9, 2024

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.

tnguyen1992 avatar tnguyen1992 commented on May 9, 2024

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.

cboulay avatar cboulay commented on May 9, 2024

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.

cboulay avatar cboulay commented on May 9, 2024

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.

cboulay avatar cboulay commented on May 9, 2024

OK it's been fixed. If you do a git fetch && git pull && git submodule update then everything should be in place.

from labstreaminglayer.

tnguyen1992 avatar tnguyen1992 commented on May 9, 2024

from labstreaminglayer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.