-
Notifications
You must be signed in to change notification settings - Fork 1
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
"[file error] file <> could not be opened" when trying to import .fis #10
Comments
That's a bit odd. Some thoughts to experiment:
If nothing works, create a simple file where you try using the same tools in FuzzyLite to open the file and debug it to see why the file cannot be opened. Let me know if any works. Cheers. |
Thanks for replying! Also (as I forgot to say earlier), amazing library! Did step 1, nothing. I'm able to read the file's content using Did step 2, now it's not even catching the exception, it's just throwing this again and again: It's curious, given that I can access the file's content just fine using Step 3: it exists and I can open it. Step 4: Using
I tried saving a simple
but got:
|
Thanks for your kind words. Did you compile the library? Maybe the issue is in the compiled libraries and your version of C++ libraries. If you have not compiled the libraries, please do so following instructions from GitHub. I built those libraries about 6 years ago. |
Prior to your reply I had not compiled the library, so I followed the instructions and ran cl.exe ftest.cpp fuzzylite-static.lib C:\fuzzylite-6.0-Win64\fuzzylite-6.0\fuzzylite\release\bin\fuzzylite.lib /EHsc /MD
I get the sense that I'm doing something very wrong so I'm grateful for the patience anyways. EDIT: sorry for the slowness, I didn't realize the source code wasn't in the same folder as the cl.exe ftest.cpp C:\fuzzylite-6.0-Win64\fuzzylite-6.0\fuzzylite\release\bin\fuzzylite-static.lib /EHsc /MD Now I just need to figure out how to make it work in Visual Studio. Thanks. |
Nice. Well done. You can find more information about setting up a project using CMake here: https://github.com/fuzzylite/fuzzylite/tree/release/examples/application You could probably copy the application CMake file, adapt it to your needs, and then export the cmake project to Visual Studio. Although perhaps simpler would be to manually configure:
|
I'm trying to import a .fis file:
Which is outputting to the console:
Line 31 from
Importer.cpp
checks whether or not the reader is open:So it seems the file path is blank when it's passed to the reader at line 29:
std::ifstream reader(path.c_str());
I'm currently using Visual Studio Community 2022 17.5.0 with Visual C++ 2022, on Windows 11.
The text was updated successfully, but these errors were encountered: