Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Porting to OF 0.12 #244

Open
3 tasks
nitin710 opened this issue Jul 1, 2024 · 0 comments
Open
3 tasks

Porting to OF 0.12 #244

nitin710 opened this issue Jul 1, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@nitin710
Copy link
Collaborator

nitin710 commented Jul 1, 2024

Updating OF to 0.12

  • EmotiBit software can be ported to OF12 without any code changes. Tested on windows 10 build system.

Changes in dependencies

  • updated Windows SDK version to 10.0.22621.0 (previously 10.0)
  • Updated Platform Toolset to v142 (previously v141)
  • Visual studion 2022 (previously 2019)

Dev notes

  • OF12 was compiled using a newer version of Visual studio (VS-2019), and thus uses a Platform Toolset V142. The pre-compiled OF12 project was created in VS2019.
  • Therefore, to compile software using OF 0.12, we need to switch to VS 2019+. Toolset V142 was not available in VS2017.
    • The testing was performed using VS-2022.

Test details to port to OF 0.12 (Windows+Visual Studio 2022)

  • Create a new project using Project Generator. Open the project in VS2022.
  • Make the following changes to the sln
    • Add EmotiBit_XPlat_Utils to the Solution
    • Add EmotiBit_XPlat_Utils/src to the "additional include directories"
  • Add path to lsl.lib file in "Linker > Aditional library directories"
  • Add lsl.dll in bin/data
  • Add path to ofxOscilloscope/ofxPatchboard/Patchboard/src in the "additional include directories"

Changes to EmotiBit software dependency structure

ofxOscilloscope

  • Currently ofxOscillsocope contains ofxPatchboard.
  • But, if the Project Generator is used "as is", it does not include ofxOscilloscope/ofxPatchboard/Patchboard/src automatically into the project. It is therefore advisable to move ofxPatchBoard to another location so that updating project using Project Generator becomes easy.

EmotiBit_Xplat_Utils

  • This should be moved to a location that is automatically scanned and added to the project by VS solution.

Next steps

  • Moving ofxPatchboard and EmotiBit_XPlat_Utils to a new location
    • Do note that Openframeworks automatically detects nested folders in ADDON/src or ADDON/include. Therefore, it might be worth moving ofxPatchboard and EmotiBit_XPlat_Utils to a ADDON/src as a git submodule or a git sub tree.
  • Creating a new project file in VS 2022 for all EmotiBit applications
  • Testing on macOS and Linux
@nitin710 nitin710 added the enhancement New feature or request label Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant