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

ofxAssimp not working if used alongside ofxAssimpModelLoader #8022

Open
dimitre opened this issue Jun 21, 2024 · 6 comments
Open

ofxAssimp not working if used alongside ofxAssimpModelLoader #8022

dimitre opened this issue Jun 21, 2024 · 6 comments

Comments

@dimitre
Copy link
Member

dimitre commented Jun 21, 2024

Using one or another is OK. I was using both to port some code to the new ofxAssimp

Screenshot 2024-06-21 at 13 21 04
@NickHardeman
Copy link
Contributor

Hi @dimitre,
I quickly made a project using the PG and including both addons, loaded a model of each kind without issues.
Do you have some code or direction on how to reproduce this error?

@dimitre
Copy link
Member Author

dimitre commented Jul 29, 2024

Glad to know, thanks. maybe I had something outdated. just found some other issues trying to test this one again :)

@dimitre
Copy link
Member Author

dimitre commented Jan 8, 2025

Hey @NickHardeman I'm just again trying new ofxAssimp and having the same compiling issues in XCode / make
Errors vary from time to time. my supposition is:

Both addons have identical .h names, like

#include "ofxAssimpTexture.h"

compiler doesn't know which one to pick and have to choose one, sometimes returning errors.
one error persists everytime:

Use of undeclared identifier 'aiQuatToOfQuat'

@dimitre
Copy link
Member Author

dimitre commented Jan 8, 2025

if I remove only the "src" files from ofxAssimpModelLoader the project compiles ok. but as I'm porting some stuff I will need both

@dimitre
Copy link
Member Author

dimitre commented Jan 8, 2025

use make to test. I've just found XCode in master seems to compile ok.
for some strange reason the error appear in a branch I'm using for projects.
but it is there in any branch using make

@NickHardeman
Copy link
Contributor

Hmm. It seems like I should be getting the errors you mentioned but I can't reproduce them. I created a project with the project generator and included both add ons. Both Xcode and make compiled for me. I tested with the nightly.
Do you have a simple example that might help me re-create it?
This is the code I used in the .h file

#include "ofMain.h"
#include "ofxAssimpModel.h"
#include "ofxAssimpModelLoader.h"
#include "ofxAssimpTexture.h"

class ofApp : public ofBaseApp{

	public:
		void setup() override;
		void update() override;
		void draw() override;
	void exit() override;
	
	ofx::assimp::Model mModel;
	ofxAssimpModelLoader mLoader;
	
	ofx::assimp::Texture mTex;
};

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