Skip to content
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

Demo using Pencil.Gaming and suggestions #49

Open
migueltk opened this issue Nov 2, 2016 · 1 comment
Open

Demo using Pencil.Gaming and suggestions #49

migueltk opened this issue Nov 2, 2016 · 1 comment
Assignees
Milestone

Comments

@migueltk
Copy link

migueltk commented Nov 2, 2016

Unable to run my application correctly on Linux-Ubuntu using OpenTK have had to resort to Penci.Gaming, and the result has been satisfactory.

However the beginning was frustrating, using Monodevelop 5.10, the start of each building with a sample project, informed me that construction was canceled

"Running: mv" /home/miguel/Descargas/Pencil.Gaming-master/Pencil.Gaming/bin/Compatibility-GLFW2/natives32-glfw2 "" /home/miguel/Descargas/Pencil.Gaming-master/Pencil.Gaming/ bin / Compatibility-GLFW2 / natives32 "
/ Bin / mv: can not move '/home/miguel/Descargas/Pencil.Gaming-master/Pencil.Gaming/bin/Compatibility-GLFW2/natives32-glfw2' a '/home/miguel/Descargas/Pencil.Gaming- master / Pencil.Gaming / bin / Compatibility-GLFW2 / natives32 / natives32-glfw2 ': The directory is not empty "

To fix this remove all custom commands in Monodevelop.

I also had to modify the strings that reference libraries;

To GLFW2_32: private const string lib = "natives32-glfw2 / glfw.dll";
To GLFW2_64: private const string lib = "natives64-glfw2 / glfw.dll";
To GLFW3_32: private const string lib = "natives32-glfw3 / glfw3.dll";
To GLFW3_64: private const string lib = "natives64-glfw3 / glfw3.dll";

Of course, you also have to modify "Pencil.Gaming.dll.config", being so;

<Configuration>
  <Dllmap os = "linux" dll = "natives64-glfw2 / glfw.dll" target = "natives64-glfw2 / libglfw.so" />
  <Dllmap os = "linux" dll = "natives64-glfw3 / glfw3.dll" target = "natives64-glfw3 / libglfw.so.3.2" />
  <Dllmap os = "linux" dll = "natives32-glfw2 / glfw.dll" target = "natives32-glfw2 / libglfw.so" />
  <Dllmap os = "linux" dll = "natives32-glfw3 / glfw3.dll" target = "natives32-glfw3 / libglfw.so" />
  <Dllmap os = "linux" dll = "natives64 / openal32.dll" target = "natives64 / libopenal.so" />
  <Dllmap os = "linux" dll = "natives32 / openal32.dll" target = "natives32 / libopenal.so" />
  <Dllmap os = "linux" dll = "opengl32.dll" target = "libGL.so.1" />
  <Dllmap os = "linux" dll = "natives64 / lua.dll" target = "natives64 / liblua.so" />
  <Dllmap os = "linux" dll = "natives32 / lua.dll" target = "natives32 / liblua.so" />
  <Dllmap os = "osx" dll = "natives32 / glfw.dll" target = "natives32 / libglfw.dylib" />
  <Dllmap os = "osx" dll = "natives32 / openal32.dll" target = "/ System / Library / Frameworks / OpenAL.framework / OpenAL" />
  <Dllmap os = "osx" dll = "natives32 / lua.dll" target = "natives32 / liblua.dylib" />
</ Configuration>

Use my application as an example of using Pencil.Gaming, you can find it here: https://sites.google.com/site/bitiopia/nanovg-fontstash

regards

@antonijn
Copy link
Collaborator

I'll try to build using MonoDevelop, and see what results I get. I'll look at this over the weekend as part of v2. Building should be as easy as possible of course!

@antonijn antonijn self-assigned this Jul 12, 2017
@antonijn antonijn added this to the v2 milestone Jul 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants