-
Notifications
You must be signed in to change notification settings - Fork 2
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
gvbam will compile but not run in out of tree builds #2
Comments
You need to build from the top level. That CMakeLists.txt has options for which binary you want to build. If you don't then the shared libraries never get built, and you're probably going to have some issues. The whole purpose of the CMakeLists.txt files in the src directory is to make the binaries modular. In an ideal world we could rip out any three of the gui binaries by only deleting the directory and removing two or three lines from the top level CMakeLists.txt. |
Also, what platform are you working on? I haven't done any testing on anything but my Linux machine, and there are some platform specific parts in the cmake files. |
Thanks for the answer :) In CMakeLists.txt I have:
Is that what you were referring to? And I'm using CrunchBang Linux 11 "Waldorf" with unstable Debian repos. |
Yes, that's what I'm referring to. I'll try to create a readme file with build instructions sometime soon. For now look here: http://vba-m.com/forum/Thread-how-to-build-vba-m-from-the-svn-code-in-linux One other thing is if you're doing out of tree builds: For now you can manually run |
I've added more error checking. Now I know that it's looking for '/usr/local/share/vbam/ui/vbam.ui' in out of tree builds. Now I just have to figure out what it's doing for regular builds and fix the issue. |
Problem is in sGetUiFilePath from src/gtk/window.cpp:1540 |
Out of tree builds should now work. Please test and let me know if it works. |
I wish I could check, but git doesn't want to play nice:
Any idea what's causing this? |
You managed to catch things at just the wrong time. I occasionally use git gui's amend last commit feature, and force push to the repository. You were probably cloning the thing just as I was making changes. Just delete the whole directory and try again. I think I'm pretty much done for the night so there shouldn't be any more issues. |
Thanks for the answers, this fix, and all your endeavours :D Also when doing a
So I'm guessing somewhere you hardcoded the paths to install stuff, as I set a custom prefix at the cmake step, set it to install in my home folder. Also seems that the graphics settings seem a lot less thorough than the VBA-M I remember (under Windows), for example I have no ability to choose a custom scaler for fullscreen (so I would chose 3x and instead have black borders fill the rest of the screen). But I guess this might be due to the limits imposed by the OS. And another issue is that the animations are a bit jerky and there are quite a few frames that are dropped, this is fixed only if I go in fullscreen or turn off compositing, but I guess this is due to the crap integrated video that I use ATM... Anyway, thanks again for everything :) EDIT: Forgot to mention that when running the GTK flavour, when the emulator is inactive (no ROM loaded) it takes about 5-10% CPU, any reasons for that? |
Glad to help. use Honestly gvbam is the worst version. See Bug #4 for more details. If you'll go ahead and open a new bug report for the wxvbam issue I'll try to find the problem, or at least come up with a nice script to build and install everything for you. |
Not really, running that with root will only copy those files in their respective folders under / instead of /home/andoru/ Should I make a separate issue for the strange CPU usage too? :) |
Yep. That's the expected behavior of make install. vbam.cfg is the default configuration file for vbam, individual users are supposed to overide it using the -c option. gvbam is also pretty bad in that it doesn't have use the proper icon unless it's installed in the system icon themes directory, and really wants a folder with all its ui elements in its system data directory as well. wxvbam doesn't need a default and automatically generates a config file in ~/.wxvbam/wxvbam.conf Don't ask me why it's all set up that way. I just picked all this up a couple of months ago after the original maintainer abandoned it. |
Also if you disable the SDL version it won't install that file. |
Tried compiling myself but only got the CLI executable. Went under ./src/gtk and tried to cmake from there but got this:
Is there some way to compile the GUI executable?
EDIT: Found GTK and wxWidgets binaries, the GTK one gives this in the terminal:
wxWidgets runs, but get notified that it cannot find the configuration file (don't know where to place it actually) and when I try to open any option from the menus I get this:
The text was updated successfully, but these errors were encountered: