SoftPixel Forum

Official community of the SoftPixel Engine and the SoftPixel Sandbox (REGISTRATION only with consultation with the Admin)
It is currently Thu Oct 19, 2017 10:59 am

All times are UTC




Post new topic Reply to topic  [ 10 posts ] 
Author Message
PostPosted: Sat Sep 08, 2012 2:37 pm 
Offline

Joined: Sat Sep 08, 2012 2:21 pm
Posts: 4
Hi,
I tried to build the "Getting started" tutorial and got these errors:
Code:
||=== SoftPixeltest, Debug ===|
/home/user/c++/SoftPixeltest/main.cpp|20|Warnung: Variable »Cam« wird nicht verwendet [-Wunused-variable]|
/home/user/c++/SoftPixeltest/main.cpp|22|Warnung: Variable »Light« wird nicht verwendet [-Wunused-variable]|
obj/Debug/main.o||In function `main':|
/home/user/c++/SoftPixeltest/main.cpp|14|undefined reference to `sp::createGraphicsDevice(sp::video::ERenderSystems, sp::dim::size2d<int> const&, int, sp::io::string<char>, bool, sp::SDeviceFlags const&, void*)'|
/home/user/c++/SoftPixeltest/main.cpp|16|undefined reference to `sp::SoftPixelDevice::getRenderSystem() const'|
/home/user/c++/SoftPixeltest/main.cpp|17|undefined reference to `sp::SoftPixelDevice::getSceneGraph(sp::scene::ESceneGraphs) const'|
/home/user/c++/SoftPixeltest/main.cpp|18|undefined reference to `sp::SoftPixelDevice::getInputControl() const'|
/home/user/c++/SoftPixeltest/main.cpp|25|undefined reference to `sp::scene::SMeshConstruct::SMeshConstruct()'|
/home/user/c++/SoftPixeltest/main.cpp|25|undefined reference to `sp::scene::SMeshConstruct::~SMeshConstruct()'|
/home/user/c++/SoftPixeltest/main.cpp|28|undefined reference to `sp::io::InputControl::keyDown(sp::io::EKeyCodes)'|
/home/user/c++/SoftPixeltest/main.cpp|36|undefined reference to `sp::deleteDevice()'|
/home/user/c++/SoftPixeltest/main.cpp|25|undefined reference to `sp::scene::SMeshConstruct::~SMeshConstruct()'|
||=== Build finished: 11 errors, 0 warnings ===|

There was also a error about spRenderer->flipBuffers(), but I changed (corrected?) it to spRenderer->clearBuffers() and got the errors above.


Top
 Profile  
 
PostPosted: Sat Sep 08, 2012 2:48 pm 
Offline

Joined: Fri Jul 13, 2012 2:40 pm
Posts: 109
Location: Ukraine
that's linking errors

_________________
Intel Core i3, Radeon HD 5770


Top
 Profile  
 
PostPosted: Sat Sep 08, 2012 2:59 pm 
Offline
Site Admin
User avatar

Joined: Sat Jul 07, 2012 5:58 pm
Posts: 540
Location: Germany
Have you tried to compile that tutorial from the SVN repository? The SVN sources are currently not compatible to Linux.
I'm working on this but by now you have to use the latest final release SPE 3.1 for Linux.

_________________
My latest project:
- The XièXiè Programming Language

My hardware:
- GIGABYTE GeForce GTX 670
- Intel Core i7 (Ivy-Bridge)
- 16 GB DDR3


Top
 Profile  
 
PostPosted: Sat Sep 08, 2012 3:03 pm 
Offline

Joined: Mon Jul 16, 2012 11:33 am
Posts: 59
[DELETED BY USER]

_________________
http://WWW.WAHAGN.CO.NF


Last edited by wahagn on Fri Aug 12, 2016 11:02 am, edited 1 time in total.

Top
 Profile  
 
PostPosted: Sat Sep 08, 2012 3:40 pm 
Offline

Joined: Sat Sep 08, 2012 2:21 pm
Posts: 4
Rigth now I accidentally linked /bin/Linux/SoftPixelEngine.so insted of /lib/Linux/libSoftPixelEngine.a and got no compiller errors, but the engine-window just copied the background, didn't react and after closing it, I got the following error:
Code:
SoftPixel Engine - v.3.1
Copyright (c) 2008 - Lukas Hermanns
Linux 3.2.0-23-lowlatency #31-Ubuntu SMP PREEMPT Wed Apr 11 02:24:03 UTC 2012 x86_64
Compiled with: GCC 4.5.2
Using renderer: OpenGL 4.2.0 NVIDIA 304.43
Shader version: 4.20 NVIDIA via Cg compiler
GeForce GTX 550 Ti/PCIe/SSE2: NVIDIA Corporation

XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
      after 70 requests (70 known processed) with 0 events remaining.


Top
 Profile  
 
PostPosted: Sat Sep 08, 2012 4:37 pm 
Offline
Site Admin
User avatar

Joined: Sat Jul 07, 2012 5:58 pm
Posts: 540
Location: Germany
Which tutorial are you testing?
Use the debugger or print some debug information to determine at which point the program crashes or hangs-up.

_________________
My latest project:
- The XièXiè Programming Language

My hardware:
- GIGABYTE GeForce GTX 670
- Intel Core i7 (Ivy-Bridge)
- 16 GB DDR3


Top
 Profile  
 
PostPosted: Sat Sep 08, 2012 5:16 pm 
Offline

Joined: Sat Sep 08, 2012 2:21 pm
Posts: 4
I first used the tutorial from http://softpixelengine.sourceforge.net/ ... locks.html and now http://softpixelengine.sourceforge.net/docu/index.html and it works!


Top
 Profile  
 
PostPosted: Sat Sep 08, 2012 5:20 pm 
Offline
Site Admin
User avatar

Joined: Sat Jul 07, 2012 5:58 pm
Posts: 540
Location: Germany
So you've solved the linking errors?

_________________
My latest project:
- The XièXiè Programming Language

My hardware:
- GIGABYTE GeForce GTX 670
- Intel Core i7 (Ivy-Bridge)
- 16 GB DDR3


Top
 Profile  
 
PostPosted: Sat Sep 08, 2012 5:48 pm 
Offline

Joined: Sat Sep 08, 2012 2:21 pm
Posts: 4
Yes, I just linked /lib/Linux/libSoftPixelEngine.a, but needed /bin/Linux/SoftPixelEngine.so


Top
 Profile  
 
PostPosted: Mon Nov 04, 2013 6:11 am 
Offline

Joined: Mon Nov 04, 2013 6:10 am
Posts: 1
Hey the best thing about linux is its step by step or the line by line compiling or whatever you may want to call it. do that and you will know which are the main files to be linked. I think that only some of the files need to be linked as all the other errors are just mirrors of those files.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group