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

Plugin does not compile #5

Open
Barryjuait opened this issue May 28, 2021 · 2 comments
Open

Plugin does not compile #5

Barryjuait opened this issue May 28, 2021 · 2 comments

Comments

@Barryjuait
Copy link

Hi,
I tried to install the plugin with the Plugin Installer, but the whole GUI crashes. Instead I tried to compile it manually as follows:

  • I moved the cloned folder of the Network Events repository into the Plugins folder of the GUI.
  • I generate the files for VS2019 with CMake form the Build subfolder of the NetworkEvents
  • I opened the file OE_PLUGIN_NetworkEvents.sln with VS2019 and compiled in Release mode.

Right away I got 3 errors:

Build started...
1>------ Build started: Project: NetworkEvents, Configuration: Release x64 ------
1>NetworkEvents.cpp
1>C:\Users\Recording Station\Documents\plugin-GUI\Plugins\NetworkEvents\Source\NetworkEvents.h(38,10): fatal error C1083: Cannot open include file: 'ProcessorHeaders.h': No such file or directory
1>NetworkEventsEditor.cpp
1>C:\Users\Recording Station\Documents\plugin-GUI\Plugins\NetworkEvents\Source\NetworkEventsEditor.h(28,10): fatal error C1083: Cannot open include file: 'EditorHeaders.h': No such file or directory
1>OpenEphysLib.cpp
1>C:\Users\Recording Station\Documents\plugin-GUI\Plugins\NetworkEvents\Source\OpenEphysLib.cpp(24,10): fatal error C1083: Cannot open include file: 'PluginInfo.h': No such file or directory
1>Generating Code...
1>Done building project "NetworkEvents.vcxproj" -- FAILED.
2>------ Skipped Build: Project: INSTALL, Configuration: Release x64 ------
2>Project not selected to build for this solution configuration
========== Build: 0 succeeded, 1 failed, 2 up-to-date, 1 skipped ==========

What am I missing??

Thank you very much,

Sebastian

@anjaldoshi
Copy link
Collaborator

Hi Sebastian,

First of all, lets make sure why installing NetworkEvents plugin via Plugin Installer is making the GUI crash for you. Are you able to install any other plugin via Plugin Installer? Does that crash the GUI too? If you are not able to install any of the plugins, can you make sure you built the GUI in Release x64 mode and not in Debug mode. Plugins installed via plugin installer only work with GUI built in Release mode.

Regarding building the plugin from source, you cannot clone the plugin inside the GUI's Plugins directory. That directory is reserved for Plugins shipped with the GUI and not external plugins like NetworkEvents. We recommend cloning all external plugins inside a separate directory (create a directory called OEPlugins) which is at the same level as the plugin-GUI directory. So for you, NetworkEvents should be cloned inside C:\Users\Recording Station\Documents\OEPlugins. Then you can build the plugins after generating build files. Details regarding this is avialable on our wiki over here and our new docs site will have the details regarding this added soon.

Anjal

@Barryjuait
Copy link
Author

@anjaldoshi Having the folder out of the plugin-GUI worked very well, thank you very much! :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants