-
Notifications
You must be signed in to change notification settings - Fork 74
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
Executables not being built for CEGUI sample code #1301
Comments
Did you place the dependencies into the dependencies folder after building them? You were able to build CEGUI and the sample browser right? So I guess yes. What CEGUI version is this for? V0-8? Default has a very different setup |
CEGUI-0.8.7 is the version I am working with. I moved the dependencies folder created by the dependencies build into the main directory for CEGUI. Indeed, the CEGUI build would have failed without that being present. What is the sample browser? |
Yes it would have. Unfortunately i dont have a set up v0-8 version on my PC right now to test it.
|
If there is a more widely used or easier to check version, I can certainly give that a try instead. |
I would use default branch. It has a sample browser instead of executables for each sample so it behaves a bit differently.
It might not yet exist in 0.8.7. I created it like 10 years ago lol but 0.8.X is quite old and kept stable. Regarding your image: It looks like it builds them as dlls so you cant start them directly. |
Okay, thank you. Perhaps I will try that version.
Right, I suppose it makes sense that the default CMake output would set Visual Studio to produce CEGUI dlls. So I guess I need to change my configuration in Visual Studio. Presumably that is why my Release build generates nothing at all. I shall try to get it outputting an executable. |
I tried switching the output from .dll to .exe and now I am getting fatal linking errors. It looks like it is quite difficult to change the output type once a Visual Studio project has been created, so I think I will be better off trying the default version of CEGUI, since that is newer. Thank you for me pointing in a more productive direction. |
hm actually i d blame CEGUI setup in this case. CMAKE should set the project files up in a way you get an exe or dll depending on whether it should be an exe or dll in the end. We might have screwed this up for v0-8 at some point :/ i dont know |
I used CMake and VS2022 to build the latest version of CEGUI (and its dependencies). Everything seemed to be in order, and I checked to make sure that CEGUI_SAMPLE_ENABLED and the individual project variables were all enabled so that CMake would generate buildable samples for VS2022.
I can open and build the samples solution in VS 2022 without any problems, but I can't run any of the projects in Debug mode. Instead it complains that the relevant .dll is not a valid Win32 application.
I also tried to run the Release executable, but the Release directories don't have any executables in them.
So clearly the executable files for Debug and Release haven't been created. I went through the entire process again, but this time building a Win32 configuration for VS2017, instead of x64 for VS2022. Same problem - no executables being built for sample projects for either Debug or Release.
I have looked at the CEGUI online documentation and various Youtube videos to find out how to run the samples, but have found nothing beyond a couple of passing references which suggest that they are ready to run once CEGUI is built.
The text was updated successfully, but these errors were encountered: