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

How to compile examples in the sproutsdk directory #54

Closed
htrlq opened this issue Sep 10, 2020 · 8 comments
Closed

How to compile examples in the sproutsdk directory #54

htrlq opened this issue Sep 10, 2020 · 8 comments

Comments

@htrlq
Copy link

htrlq commented Sep 10, 2020

I used examples and modified part of the code. The compilation environment is vs2017. The compiler prompts "missing type specifier - assumed to be int. Note: the default int * d:\windows kits\10\include\10.0.17763.0\um\mmsyscom.h". Do you want to configure compiler selection or install reference libraries

image

@leadedge
Copy link
Owner

I can't say what the problem is from your description. I assume that you are using the Openframeworks examples. The solution files are now very old and I am presently working on the beta branch as replacement. If you are using Visual Studio 2017 and Openframeworks 11, try the project generator to create a new project and include the example files and the Spout SDK files in that. Alternatively you could try the examples in the beta branch.

@htrlq
Copy link
Author

htrlq commented Sep 10, 2020

clone project to local, but not find resources 'E:\wemew.extension\Spout2-beta\libs\openFrameworksCompiled\project\vs\openframeworksLib.vcxproj'

@htrlq
Copy link
Author

htrlq commented Sep 10, 2020

branch 'bata'

@leadedge
Copy link
Owner

Clearly there is something missing.

Can you create an empty project with the project generator and build it? If so, the Openframeworks project will be available.

If this is successful, you should be able to exchange the demo project files, main.cpp, ofApp.cpp and ofApp,h, add a new filter "SpoutSDK", add existing files Add > Existing Item - select all the SpoutSKD files and add them.

Then in "ofApp.h" you will need to change "#include "......\SpoutSDK\Spout.h", to the path you actually have for these files.

@htrlq
Copy link
Author

htrlq commented Sep 10, 2020

If you use an old project, you will be prompted "unknown compiler version - please run the configure tests and report the results" when compiling. Is this the reason why the project cannot be compiled

@leadedge
Copy link
Owner

Are you using the Openframeworks project generator to create a new project?

@leadedge
Copy link
Owner

I have not seen the "unknown compiler version" message with Visual Studio 2017. I just tested the existing project and source files from the master branch (Spout version 2.006) and it builds without this error. These are the steps for my test ..
First, is a message as below:

Click OK to re-target ..

I usually change to "Release" for build but "Debug" will work as well ..

After build there may be many warnings for updated Openframeworks (for this test I used Openframeworks 10). But these do not matter ..

The project builds and runs successfully ..

If at the start you click Cancel instead of OK to re-target, you will see ..

It still builds successfully for me ..
There must be something in your system that is causing this but I can't reproduce it. After you build a project there is a ".vs" folder. Erase that and try again with the project files from GitHub.
I suggested using the Openframeworks project generator because you get a project that you can test straight away. If that succeeds, you can replace the source files with the example, include a filter with the Spout SDK files, and you might find what the problem might be.

@leadedge
Copy link
Owner

I will close this now. If you have ongoing problems, I suggest that you use the Openframeworks project generator to create a new project that builds OK and add the Spout code into it.

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