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

Same computer and configuration, 2.7 can be compiled successfully, while the latest release of the code 2.8.1 & 2.8 cannot be compiled successfully #134

Closed
dollPrincess opened this issue Feb 21, 2025 · 5 comments

Comments

@dollPrincess
Copy link

No, it still can't work successfully.
Using FEBio 4.8 and FS 2.8.1, which is the lastest release version.

@dollPrincess
Copy link
Author

#123

@dollPrincess
Copy link
Author

windows 11, VS 2022

I search for fail,error,fatal,etc.,and what I got is that
23>D:\Projects\FEBioStudio 2.8\FEBioStudio-2.8.1\FEBioStudio\FEBioJob.cpp(67,2): error C2065: ‘m_sshHandler’. Undeclared identifier

23>Completed generation of project ‘FEBioStudio2.vcxproj’ - failed.
24>------ Started all regeneration: Project: ALL_BUILD, Config: Debug x64 ------24>Building
 Custom Rule D:/Projects/FEBioStudio 2.8/FEBioStudio-2.8.1/CMakeLists.txt= ========= All regenerated: 23 Successful, 1 Failed, 0 Skipped ====================
 Regeneration completed at 16:21 in 14:10.259 minutes ==========

@SteveMaas1978
Copy link
Member

I'm a little puzzled since in the latest commit, that line you are referring to, is line 68, not line 67 (see here)

Do you see these lines in the file (lines 67-69)?

#ifdef HAS_SSH
	m_sshHandler = nullptr;
#endif

If not, then I suspect you may not be on the latest commit.

Best,

Steve

@dollPrincess
Copy link
Author

dollPrincess commented Feb 26, 2025

I really didn't move any configuration options or code.
And after your team changed FS 2.8, the FS 2.8.1 errors report became that.
The FS I downloaded was the latest released version 2.8.1.

Image

Umm. I am also able to see the lines through the linker called here in blue. But I suspect that it may not what you meant.
The generating process in VS 2022 failed as I mentioned before, and the local FEBioJob.cpp reported errors as below after generating process interrupted,.

E0020 undefined identifier "m_sshHandler"

and the related code in FEBioJob.cpp is here

CFEBioJob::CFEBioJob(CDocument* doc) : m_doc(doc)
{
	m_count++;
	std::stringstream ss;
	ss << "job" << m_count;
	SetName(ss.str());

	m_status = NONE;

	m_bhasProgress = false;
	m_pct = 0.0;

	m_writeNotes = true;
	m_allowMixedMesh = false;

	m_sshHandler = nullptr; // (line 67) After generating, error pointed to here. But the original code didn't has any error here.
}

@SteveMaas1978
Copy link
Member

The fix I mentioned is not available yet in the releases. Instead, you can fork the FEBioStudio repo and then checkout the develop branch. That should give you the latest code.

I suspect you are getting this error because you disabled USE_SSH in the cmake settings? You can try turning it on, but then you might need additional dependencies.

Alternatively, you can also just temporarily comment out that line.

Best,

Steve

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