Logo by Maya - Contribute your own Logo!

END OF AN ERA, FRACTALFORUMS.COM IS CONTINUED ON FRACTALFORUMS.ORG

it was a great time but no longer maintainable by c.Kleinhuis contact him for any data retrieval,
thanks and see you perhaps in 10 years again

this forum will stay online for reference
News: Did you know ? you can use LaTex inside Postings on fractalforums.com!
 
*
Welcome, Guest. Please login or register. April 26, 2024, 06:50:14 PM


Login with username, password and session length


The All New FractalForums is now in Public Beta Testing! Visit FractalForums.org and check it out!


Pages: [1]   Go Down
  Print  
Share this topic on DiggShare this topic on FacebookShare this topic on GoogleShare this topic on RedditShare this topic on StumbleUponShare this topic on Twitter
Author Topic: Slackware 14.1 build issues  (Read 859 times)
0 Members and 1 Guest are viewing this topic.
Feline
Alien
***
Posts: 29


« on: June 24, 2015, 07:38:40 PM »

Building Fragmentarium (current) on a Slackware Linux 14.1 machine.

14.1 is Slack's last stable release. It is now ~20 months old - not exactly spring fresh, but not exactly pre-historic either.

Code:
[9:13] Sven [s171b58:~] > qmake --version
QMake version 2.01a
Using Qt version 4.8.7 in /usr/lib64/qt/lib

Issues:

1)
Code:
[9:13] Sven [s171b58:~] > qmake-qt4

CORRECT>qmake (y|n|e|a)? no
qmake-qt4: Command not found.

I've encountered this before - did really old systems distinguish the "new" qt4 version like this(?) For the benefit of future readers, it's easily faked by

Code:
[9:16] Sven [s171b58:~] > sudo ln -sf /usr/bin/qmake /usr/bin/qmake-qt4

Maybe the build script shouldn't just rely on this link? Ideally it should probably test what version qmake is and just use that if it's good?

2)
Code:
Fragmentarium/GUI/DisplayWidget.cpp:38:25: error: ‘OpenGL_Version_4_1’ is not a member of ‘QGLFormat’
Fragmentarium/GUI/DisplayWidget.cpp:39:25: error: ‘OpenGL_Version_4_2’ is not a member of ‘QGLFormat’
Fragmentarium/GUI/DisplayWidget.cpp:40:25: error: ‘OpenGL_Version_4_3’ is not a member of ‘QGLFormat’
...

Googling that finds claudeha's changes for Debian Wheezy that were just recently pulled into the main branch. Turns out his fixes work just fine if you simply extend them a little farther than 4.8.2 (to include 4.8.7).

In other words: go here https://github.com/Syntopia/Fragmentarium/commit/c80923787970663efb070fc0ad7fb940a512d51d open your local source of Fragmentarium/GUI/DisplayWidget and in the three locations where it tests QT_VERSION_CHECK(4,8,2) change that to QT_VERSION_CHECK(4,8,7) (two occurences in the .cpp, one in the .h)

I'm not comfortable syncing the whole shebang with github just to create a pull request to change those three digits -- could someone flow this into the main trunk? Thanks.

3)
This now compiles fine and creates a folder Fragmentarium right inside Fragmentarium-master/Fragmentarium-Source/Build - Linux/. cd'ing into that folder and executing ./Fragmentarium fires it up and it shows a Mandelbulb and it all appears to work fine.

However there is no such thing as a "make install". Or, more precisely, that part of the Makefile doesn't actually do anything. If I simply copy/move the freshly created folder somewhere else like
cp ./Fragmentarium/ ~/
cd
./Fragmentarium/Fragmentarium


the binary fires up just fine, but it fails to load any fragment:
Code:
Parse: /home/sven/[not found]/Historical 3D Fractals/Mandelbulb.frag
No vertex shader found!
Could not create vertex shader:
Could not find Center interface widget
Could not find Zoom interface widget
Failed to compile script (25 ms).
This video card supports: OpenGL1.1, OpenGL1.2, OpenGL1.3, OpenGL1.4, OpenGL1.5, OpenGL2.0, OpenGL2.1, OpenGL3.0, OpenGL3.1, OpenGL3.2, OpenGL3.3, OpenGL4.0

Only if I
cd ~/Fragmentarium
./Fragmentarium

does it find the requisite paths (this is using the default include path that is set to Examples/Include;

This is a bit awkward, since this precludes putting a link into /usr/bin and calling it from there. Or moving the whole folder to something like /usr/share or such. Is there a way to make Fragmentarium consider paths relative to the location of the binary, rather than relative to the location of the caller?

I worked around this like this:

Code:
[10:06] Sven [s171b58:~] > cat /usr/bin/Fragmentarium
#!/bin/sh
cd /k/Shared/Fragmentarium
./Fragmentarium &> /dev/null

but that seems like a kludge.
 
Logged
3dickulus
Global Moderator
Fractal Senior
******
Posts: 1558



WWW
« Reply #1 on: June 25, 2015, 08:05:21 AM »

try...
Install Qt5 dev package and libs
recompile use qmake-qt5

should not be a problem when run from desktop when executable is in Fragmentarium folder

also Fragmentarium will look in the same folder as the .frag file first for support files otherwise found in the ./Examples/Include/ folder
eg: when you render a hires image and select the "Auto Save" checkbox it will create a folder with files like...

Reckoning.png Files/
    3DKn-1.0.1.frag
    BufferShader-1.0.1.frag
    DE-Kn2.frag
    MathUtils.frag
    Reckoning.frag

...so when you load Reckoning.frag from this location it will get the right support frags, there may also be an issue on some un*x based systems because of the space in the folder name, I have only encountered this wrt loading the program preferences settings from the last session at startup.
« Last Edit: June 25, 2015, 03:19:07 PM by 3dickulus, Reason: preferences » Logged

Resistance is fertile...
You will be illuminated!

                            #B^] https://en.wikibooks.org/wiki/Fractals/fragmentarium
Syntopia
Fractal Molossus
**
Posts: 681



syntopiadk
WWW
« Reply #2 on: June 25, 2015, 10:32:07 PM »

I just tried building Fragmentarium on Kubuntu 14.04 (in VirtualBox).

You are right about the QT_VERSION_CHECK thing, which I have updated now, but otherwise the install instructions at http://syntopia.github.io/Fragmentarium/get.html should work - at least in Ubuntu: "qmake-qt4" is still recognized. Qt5 is however the preferred version now.

Amazingly, Fragmentarium was actually able to run using the 'gallium 0.4 on llvmpipe' software rasterizer in VirtualBox - at ~1FPS for the Mandelbulb.




Logged
Pages: [1]   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Installation issues mac os Mandelbulber scheven_architect 10 6081 Last post April 28, 2011, 09:53:13 PM
by scheven_architect
Am I missing something? or Does anyone still have a build of 2.5.3? Kalles Fraktaler plynch27 13 3296 Last post August 29, 2014, 10:11:39 PM
by Kalles Fraktaler
Having issues with parameters Mandelbulb 3d webTech 4 1507 Last post February 01, 2015, 05:06:36 PM
by lenord
HowTo: build a dalek Animations Showcase (Rate My short Animation) 3dickulus 2 1881 Last post March 23, 2015, 04:37:10 AM
by mclarekin
PC Build - what is recommend/required Help & Support SekkNova 2 427 Last post November 06, 2015, 03:37:45 AM
by 3dickulus

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.19 seconds with 25 queries. (Pretty URLs adds 0.008s, 2q)