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

Errors when building solution in Visual Studio 2017 #80

Open
MJVville opened this issue Aug 13, 2023 · 1 comment
Open

Errors when building solution in Visual Studio 2017 #80

MJVville opened this issue Aug 13, 2023 · 1 comment

Comments

@MJVville
Copy link

MJVville commented Aug 13, 2023

Hi,

I am trying to make the pd external by building the solution in Visual Studio 2017 so that I can add addons, as described here, but before I add any addons, I need to get the default version to work. I am using this version of ofelia.

I have followed the steps described here to properly configure ofxPd in the project. After creating the right files and putting the right ones in the bin folder like it says, I added "C:\OF\addons\ofxOfelia\libs\ofxPd\libs\libpd\lib\libpd.lib" to the "Additional dependencies" cell in the table in the project preferences. I think that took care of all the errors related to ofxPd.

Also as described here, I changed the properties of all the ofxLua source files in C:\OF\addons\ofxOfelia\libs\ofxLua\libs\lua to be compiled in C rather than C++. That took care of most of the errors related to ofxLua.

I had to copy the files "m_pd.h" and "g_canvas.h" into the folder C:\OF\addons\ofxOfelia\src so that they could be found by other files that referenced them. I'm not sure if this action causes any other problems or if it is not enough to fix the problem but it got rid of the errors associated with those files.

After these steps I am still left with one error when I try to build. It seems to be caused by a file that is generated and then deleted during the build process. At least, I can't find the file existing anywhere on my system. Here is what the error says:
link_error

Does anyone know how this can be resolved? Also let me know if I am doing any of the other steps I described incorrectly.

@MJVville
Copy link
Author

I just realized that maybe it was an issue that I downloaded the github code as a zip rather than cloning the repository properly with git. So I tried all this again using the cloned repository, but now I am getting a different error. There is a certain error() function used all over the place that the compiler says is undefined.
error_error

@MJVville MJVville changed the title Link error when building solution in Visual Studio 2017 Errors when building solution in Visual Studio 2017 Aug 14, 2023
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

1 participant