Jump to content

Leadwerks Engine on Arch Linux


Padman
 Share

Recommended Posts

Just for information, I succesfully install Leadwerks on my Arch Linux with nvidia drivers so I just want to explain how I did it if someone has some trouble.

 

My system :

Arch Linux x64 with Nvidia drivers

Nvidia GTX 670

Core i5 3570K

Gnome 3

 

First, I installed these packages :

 

# pacman -S gcc nvidia-libgl lib32-openal gtk-engines gtk-engine-murrine lib32-libx11 lib32-libxxf86vm lib32-glib2 lib32-gtk2

 

 

Next, I had some problems with the gtk lib path, so I had to set this environment variable :

 

$ export GTK_PATH=:/usr/lib/gtk-2.0

 

You can also add this line at the end of your .xinitrc file to automatically set this env at startup.

 

Now you can start the LeadwerksUpdater and finally the editor when the update has finished. happy.png

 

If someone have an other arch linux configuration with some other steps to do. You can post it here.

  • Like 1
  • Upvote 2
Link to comment
Share on other sites

  • 4 months later...

I'm running leadwerks on an optimus laptop with nvidia 620M, so I run leadwerks with primusrun %command%. Noticed that when leadwerks starts it complains about a missing font but leadwerks seems to work just fine anyway running examples etc so I don't think that caused the crash.

 

Error: Failed to load font "/usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-L.ttf"

 

Arch Linux 64

Gnome Shell

 

Installed dependencies just like above and set gtk environment variable.

 

Here is my Leadwerks.log :

 

~/.leadwerks/leadwerks.log

 

Initializing OpenGL4 graphics driver...
OpenGL version 440
GLSL version 440
Device: GeForce GT 620M/PCIe/SSE2
Loading texture "/home/maokei/Documents/Leadwerks/Projects/MyGame/Materials/Common/bfn.tex"...
Loading shader "/home/maokei/Documents/Leadwerks/Projects/MyGame/Shaders/Editor/terraintool.shader"...
Loading shader "/home/maokei/Documents/Leadwerks/Projects/MyGame/Shaders/Editor/wireframe.shader"...
Loading shader "/home/maokei/Documents/Leadwerks/Projects/MyGame/Shaders/Editor/solid.shader"...
Loading shader "/home/maokei/Documents/Leadwerks/Projects/MyGame/Shaders/Model/default.shader"...
Loading shader "/home/maokei/Documents/Leadwerks/Projects/MyGame/Shaders/Editor/grid.shader"...
Loading shader "/home/maokei/Documents/Leadwerks/Projects/MyGame/Shaders/Lighting/ambientlight.shader"...
Error: Failed to load font "/usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-L.ttf"
Loading font "/home/maokei/Documents/Leadwerks/Projects/MyGame/Fonts/arial.ttf"...
Loading shader "/home/maokei/Documents/Leadwerks/Projects/MyGame/Shaders/Drawing/drawtext.shader"...
Loading shader "/home/maokei/Documents/Leadwerks/Projects/MyGame/Shaders/Drawing/drawprimitive.shader"...
Loading shader "/home/maokei/Documents/Leadwerks/Projects/MyGame/Shaders/Editor/skybox.shader"...
Loading shader "/home/maokei/Documents/Leadwerks/Projects/MyGame/Shaders/Misc/occlusionquery.shader"...
Loading shader "/home/maokei/Documents/Leadwerks/Projects/MyGame/Shaders/Model/Shadow/shadow.shader"...
Loading shader "/home/maokei/Documents/Leadwerks/Projects/MyGame/Shaders/Lighting/directionallight.shader"...
Loading shader "/home/maokei/Documents/Leadwerks/Projects/MyGame/Shaders/Drawing/drawimage.shader"...
Loading texture "/home/maokei/Documents/Leadwerks/Projects/MyGame/Materials/Sky/skybox_texture.tex"...
Loading material "/home/maokei/Documents/Leadwerks/Projects/MyGame/Materials/Icons/DirectionalLight.mat"...
Loading shader "/home/maokei/Documents/Leadwerks/Projects/MyGame/Shaders/Editor/sprite.shader"...
Loading texture "/home/maokei/Documents/Leadwerks/Projects/MyGame/Materials/Icons/DirectionalLight.tex"...
Loading model "/home/maokei/Documents/Leadwerks/Projects/MyGame/Models/Characters/Generic/generic.mdl"
Loading shader "/home/maokei/Documents/Leadwerks/Projects/MyGame/Shaders/Terrain/stamp.shader"...
Loading shader "/home/maokei/Documents/Leadwerks/Projects/MyGame/Shaders/Terrain/updatenormals.shader"...
Loading shader "/home/maokei/Documents/Leadwerks/Projects/MyGame/Shaders/Terrain/clear.shader"...
Loading shader "/home/maokei/Documents/Leadwerks/Projects/MyGame/Shaders/Terrain/clipmap.shader"...
Loading shader "/home/maokei/Documents/Leadwerks/Projects/MyGame/Shaders/Terrain/terrain.shader"...
Loading shader "/home/maokei/Documents/Leadwerks/Projects/MyGame/Shaders/Terrain/textured.shader"...
Loading shader "/home/maokei/Documents/Leadwerks/Projects/MyGame/Shaders/Terrain/solid.shader"...
Loading shader "/home/maokei/Documents/Leadwerks/Projects/MyGame/Shaders/Terrain/wireframe.shader"...
Loading texture "/home/maokei/Documents/Leadwerks/Projects/MyGame/Materials/Dirt/dirt01.tex"...
Loading texture "/home/maokei/Documents/Leadwerks/Projects/MyGame/Materials/Dirt/dirt01_dot3.tex"...
Loading texture "/home/maokei/Documents/Leadwerks/Projects/MyGame/Materials/Rock/rockwall01.tex"...
Loading texture "/home/maokei/Documents/Leadwerks/Projects/MyGame/Materials/Rock/rockwall01_dot3.tex"...
Loading texture "/home/maokei/Documents/Leadwerks/Projects/MyGame/Materials/Rock/rockwall01_disp.tex"...
Loading texture "/home/maokei/Documents/Leadwerks/Projects/MyGame/Materials/Snow/snow01.tex"...
Loading texture "/home/maokei/Documents/Leadwerks/Projects/MyGame/Materials/Snow/snow01_dot3.tex"...
Loading texture "/home/maokei/Documents/Leadwerks/Projects/MyGame/Materials/Snow/snow01_disp.tex"...
Loading shader "/home/maokei/Documents/Leadwerks/Projects/MyGame/Shaders/Lighting/directionallight.shader"...
Loading texture "/home/maokei/Documents/Leadwerks/Projects/MyGame/Materials/Developer/GreenGrid.tex"...
Deleting te

 

-

 

The model viewer and material editor seems to work just fine.

 

also log from /document/Leadwerks/Leadwerks.log

 

Syncing Addons...
Initializing...
Initializing OpenGL4 graphics driver...
OpenGL version 440
GLSL version 440
Device: GeForce GT 620M/PCIe/SSE2
Loading texture "/home/maokei/Documents/Leadwerks/Projects/MyGame/Materials/Common/bfn.tex"...
Loading shader "/home/maokei/Documents/Leadwerks/Projects/MyGame/Shaders/Editor/terraintool.shader"...
Loading shader "/home/maokei/Documents/Leadwerks/Projects/MyGame/Shaders/Editor/wireframe.shader"...
Loading shader "/home/maokei/Documents/Leadwerks/Projects/MyGame/Shaders/Editor/solid.shader"...
Loading shader "/home/maokei/Documents/Leadwerks/Projects/MyGame/Shaders/Model/default.shader"...
Loading shader "/home/maokei/Documents/Leadwerks/Projects/MyGame/Shaders/Editor/grid.shader"...
Loading shader "/home/maokei/Documents/Leadwerks/Projects/MyGame/Shaders/Lighting/ambientlight.shader"...
Error: Failed to load font "/usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-L.ttf"
Loading font "/home/maokei/Documents/Leadwerks/Projects/MyGame/Fonts/arial.ttf"...
Loading shader "/home/maokei/Documents/Leadwerks/Projects/MyGame/Shaders/Drawing/drawtext.shader"...
Loading shader "/home/maokei/Documents/Leadwerks/Projects/MyGame/Shaders/Drawing/drawprimitive.shader"...
Loading shader "/home/maokei/Documents/Leadwerks/Projects/MyGame/Shaders/Editor/skybox.shader"...
Loading shader "/home/maokei/Documents/Leadwerks/Projects/MyGame/Shaders/Misc/occlusionquery.shader"...
Loading shader "/home/maokei/Documents/Leadwerks/Projects/MyGame/Shaders/Model/Shadow/shadow.shader"...
Loading shader "/home/maokei/Documents/Leadwerks/Projects/MyGame/Shaders/Lighting/directionallight.shader"...
Loading shader "/home/maokei/Documents/Leadwerks/Projects/MyGame/Shaders/Drawing/drawimage.shader"...
Loading texture "/home/maokei/Documents/Leadwerks/Projects/MyGame/Materials/Sky/skybox_texture.tex"...
Loading material "/home/maokei/Documents/Leadwerks/Projects/MyGame/Materials/Icons/DirectionalLight.mat"...
Loading shader "/home/maokei/Documents/Leadwerks/Projects/MyGame/Shaders/Editor/sprite.shader"...
Loading texture "/home/maokei/Documents/Leadwerks/Projects/MyGame/Materials/Icons/DirectionalLight.tex"...
Loading model "/home/maokei/Documents/Leadwerks/Projects/MyGame/Models/Characters/Generic/generic.mdl"
Loading shader "/home/maokei/Documents/Leadwerks/Projects/MyGame/Shaders/Terrain/stamp.shader"...
Loading shader "/home/maokei/Documents/Leadwerks/Projects/MyGame/Shaders/Terrain/updatenormals.shader"...
Loading shader "/home/maokei/Documents/Leadwerks/Projects/MyGame/Shaders/Terrain/clear.shader"...
Loading shader "/home/maokei/Documents/Leadwerks/Projects/MyGame/Shaders/Terrain/clipmap.shader"...
Loading shader "/home/maokei/Documents/Leadwerks/Projects/MyGame/Shaders/Terrain/terrain.shader"...
Loading shader "/home/maokei/Documents/Leadwerks/Projects/MyGame/Shaders/Terrain/textured.shader"...
Loading shader "/home/maokei/Documents/Leadwerks/Projects/MyGame/Shaders/Terrain/solid.shader"...
Loading shader "/home/maokei/Documents/Leadwerks/Projects/MyGame/Shaders/Terrain/wireframe.shader"...
Loading texture "/home/maokei/Documents/Leadwerks/Projects/MyGame/Materials/Dirt/dirt01.tex"...
Loading texture "/home/maokei/Documents/Leadwerks/Projects/MyGame/Materials/Dirt/dirt01_dot3.tex"...
Loading texture "/home/maokei/Documents/Leadwerks/Projects/MyGame/Materials/Rock/rockwall01.tex"...
Loading texture "/home/maokei/Documents/Leadwerks/Projects/MyGame/Materials/Rock/rockwall01_dot3.tex"...
Loading texture "/home/maokei/Documents/Leadwerks/Projects/MyGame/Materials/Rock/rockwall01_disp.tex"...
Loading texture "/home/maokei/Documents/Leadwerks/Projects/MyGame/Materials/Snow/snow01.tex"...
Loading texture "/home/maokei/Documents/Leadwerks/Projects/MyGame/Materials/Snow/snow01_dot3.tex"...
Loading texture "/home/maokei/Documents/Leadwerks/Projects/MyGame/Materials/Snow/snow01_disp.tex"...
Loading shader "/home/maokei/Documents/Leadwerks/Projects/MyGame/Shaders/Lighting/directionallight.shader"...
Failed to load thumbnail 6 for /home

  • Upvote 1
Link to comment
Share on other sites

  • 3 weeks later...

An arch user can in fact obtain the ubuntu font family package from the official arch repositories, with:

pacman -S ttf-ubuntu-font-family

 

The error will still occur on launching the editor, as Arch stores the fonts in a different directory setup. I see it every time I load up the editor on my system. I haven't bothered to ask about fixing it, and I know I even could redneck rig it up by sym linking the font to a different directory (structured the Ubuntu way). I haven't bothered with this either, because like Guppy said, it shouldn't matter. The editor seems to run fine for me even though it throws the error upon booting every time.

 

I posed the question because I was hesitant to give a fellow arch user the entire solution any problem, as this is not the 'Arch Way'. The message boards over at Arch have a different culture than the ones here at Leadwerks, and it is so with good reason. Leadwerks is a commercially licensed product, whereas Arch is an open source project developed by programmers/hobbyists in their spare time.

 

It made me cringe to read through a post on Leadwerks boards that an 'Arch user' requested a refund because he/she was upset that Leadwerks didn't work out of the box. That particular user failed to recognized that his/her issue was in fact O/S specific. The Arch O/S is extremely vulnerable to the PEBKAC virus.

"The only true wisdom is in knowing you know nothing." ~ Socrates

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...