-
Notifications
You must be signed in to change notification settings - Fork 8
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
Runtime issues in Debian #10
Comments
I think this may have something to do with static initialization order of variables, |
New bug: rtentser@desktop:~/Sources/cmake$ src/openmom
rtentser@desktop:~/Sources/cmake$ gdb src/openmom
(gdb) backtrace
I've copied LBX files to data/lbx of source code before a build. I'm not sure if openmom sees them from the cmake configuration directory. Also about lbx files. There can be case trouble: Master of Magic data files in gog installer for linux is in upper case and i don't know which case you use. I'm not sure it's the problem now, but i think it's worth checking. Can you make names of data files case insensitive (if not already)? |
Currently you can adjust the relative path from the executable from
Now I don't know where your binary resides exactly but you can easily adjust their relative path either on file system or in |
Most probably we should be fine in having a Regarding case sensitivity I didn't encounter the issue because I'm on a case insensitive file system. I'll try to enhance the loader to automatically check for both insensitive and sensitive file names. If you are willing to help and you are not fluent with C++ there are some useful tasks (like populating yaml files) which doesn't require any programming skill at all (mostly). |
Ok I added a case insensitive find algorithm which uses <dirent.h> to search for any file with same name regardless of case. I haven't been able to test in on unix though. |
I also enhanced the CMake script to build the executable directly in build directory (not in any subfolder) and to copy the data directory there. So if everything works fine
Should work directly. |
I am, but i don't have much time now. If you have tasks for me, you can create an issue and assign me to it, and i'll try to solve them. Or you can write me in Telegram (same nickname).
I have some programming skills, but i'm not good in C/C++. I want to be better, if you have some simple C++ tasks, i'll try to solve them too. |
Doesn't work for me. Right now the path sets to root directory, not to source directory as it should. You need to find a way to return it from getResourcePath (take it from cmake configs in build directory which can be easy to find because of relation with openmom file?). Or at least delete first '/' character from "/data/yaml/" in |
maybe letting |
If data is in build directory, than yes, i think it should be enough. |
I've checked. Yes, it works. Thanks! |
When i try to run openmom i get "Floating point exception". So i've run it with gdb and got this:
(gdb) run
(gdb) backtrace
The text was updated successfully, but these errors were encountered: