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
Text example setup #41
Comments
Hi! first of all: sorry about things at the moment, I'm in a process of releasing a new version and everything is a bit unstable and confusing at the moment. Are you using the stable (2018.02) version or latest So, options:
Cheers (and sorry again for the unfortunate timing)! :) |
Thanks for the fast reply! My first dabbling with magnum dates back to last fall - to see the magnitude of changes (improvements!) since then is staggering. Great work! One idea for the Visual studio users like me would be to include the CMakeSettings.json in the repo to achieve a git-clone-and-run-experience without any extra setup beyond the vcpkg step. |
You mean for the examples repo or all repos? If that's the three lines above, I'm not sure if it could be done in a generic way -- someone else might want to enable a different set of examples, or have vcpkg installed in a different place. But maybe it would be worth to include this in the docs, at least? |
You are right that in most cases paths would need to be customized. However one thing I feel would be very useful is to include a commented out sample version with some comments to mark them as 'to be adapted'. |
The 2018.04 package update was merged to vcpkg: microsoft/vcpkg#3407 I agree documentation for visual studio isn't great, as you have to go to really a lot of spots in the docs. The plan is to provide a "Getting Started" guide dedicated for Visual Studio, code samples included. Unfortunately I was not able to do it in time for 2018.04 -- the progress is tracked in mosra/magnum#236. Thanks for the feedback! :) |
Nice, I can now run the test example after updating the packages (I had to rebuild vcpkg and reinstall the packages but I don't think that's magnum related). From the issues I listed above, B and C are not resolved, I still had to copy the SDL2.dll manually and the install directory is missing the deps. |
Yes, I noticed that, too! @mosra This is due to Sdl2Application always being a static library and vcpkg can therefore not detect the dependency on SDL2.dll through it... honestly it should on the .exe, though. I wonder what's going on there. Opening an issue. |
@Squareys thanks! Yeah, I also think it has to do something with being a static lib. @Guillaume227 For the issue B, CMake |
Okay, moving the SDL2 issue to #42 :) |
I have tried to follow closely the documentation to run the
I am on windows, using vcpkg (it's quite neat!).
I have vcpkg-installed: sdl2, magnum, corrade, magnum-plugins[freetypefont]
I am trying to stay entirely within visual studio (2017 community edition) so I have edited CMakeSettings.json to include the CMake directives:
I have one blocking issue and two minor ones:
A) at runtime I get the error:
PluginManager::Manager::load(): plugin FreeTypeFont is not static and was not found in
What step am I missing?
B)when I run the install target, only magnum-text.exe and magnum-triangle.exe get copied in the install location (magnum-examples\install\x86-Debug\bin), none of the supporting libs are present so I am running from the build directory for the time being, i.e. magnum-examples\build\x86-Debug\src\text\bin
C)SDL2.dll doesn't get copied to the build directory along with the other libs, I have to do it manually. I thought the point of CMAKE_RUNTIME_OUTPUT_DIRECTORY was to grab all the dependencies?
The text was updated successfully, but these errors were encountered: