Welcome to Fractal Forums

Fractal Software => Fragmentarium => Topic started by: TruthSerum on June 03, 2015, 03:02:04 PM




Title: problems compiling on linux
Post by: TruthSerum on June 03, 2015, 03:02:04 PM
I think perhaps I lack some special OpenGL package? I installed all packages in the documentation though.

Quote
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_SCRIPT_LIB -DQT_XML_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtScript -I/usr/include/qt4 -I. -IFragmentarium/GUI -ISyntopiaCore/Logging -ISyntopiaCore/Math -IFragmentarium/Parser -ISyntopiaCore/Exceptions -ISyntopiaCore/Misc -IThirdPartyCode -IThirdPartyCode/MersenneTwister -I/usr/X11R6/include -I. -o DisplayWidget.o Fragmentarium/GUI/DisplayWidget.cpp
Fragmentarium/GUI/DisplayWidget.cpp: In function ‘QStringList Fragmentarium::GUI::{anonymous}::GetOpenGLFlags()’:
Fragmentarium/GUI/DisplayWidget.cpp:38:25: error: ‘OpenGL_Version_4_1’ is not a member of ‘QGLFormat’
                 if (f & QGLFormat::OpenGL_Version_4_1) s.append("OpenGL4.1");
                         ^
Fragmentarium/GUI/DisplayWidget.cpp:39:25: error: ‘OpenGL_Version_4_2’ is not a member of ‘QGLFormat’
                 if (f & QGLFormat::OpenGL_Version_4_2) s.append("OpenGL4.2");
                         ^
Fragmentarium/GUI/DisplayWidget.cpp:40:25: error: ‘OpenGL_Version_4_3’ is not a member of ‘QGLFormat’
                 if (f & QGLFormat::OpenGL_Version_4_3) s.append("OpenGL4.3");
                         ^
Fragmentarium/GUI/DisplayWidget.cpp: In member function ‘int Fragmentarium::GUI::DisplayWidget::pixelWidth()’:
Fragmentarium/GUI/DisplayWidget.cpp:908:47: error: ‘devicePixelRatio’ was not declared in this scope
             return width() * devicePixelRatio();
                                               ^
Fragmentarium/GUI/DisplayWidget.cpp: In member function ‘int Fragmentarium::GUI::DisplayWidget::pixelHeight()’:
Fragmentarium/GUI/DisplayWidget.cpp:912:48: error: ‘devicePixelRatio’ was not declared in this scope
             return height() * devicePixelRatio();
                                                ^
Fragmentarium/GUI/DisplayWidget.cpp: In member function ‘int Fragmentarium::GUI::DisplayWidget::pixelWidth()’:
Fragmentarium/GUI/DisplayWidget.cpp:909:9: warning: control reaches end of non-void function [-Wreturn-type]
         }
         ^
Fragmentarium/GUI/DisplayWidget.cpp: In member function ‘int Fragmentarium::GUI::DisplayWidget::pixelHeight()’:
Fragmentarium/GUI/DisplayWidget.cpp:913:9: warning: control reaches end of non-void function [-Wreturn-type]
         }
         ^
Makefile:399: recipe for target 'DisplayWidget.o' failed
make: *** [DisplayWidget.o] Error 1
cp: cannot stat ‘../Fragmentarium-Source’: No such file or directory


Title: Re: problems compiling on linux
Post by: 3dickulus on June 03, 2015, 03:22:28 PM
the first 3 errs

Fragmentarium/GUI/DisplayWidget.cpp: Line 38 39 & 40

are RE: Qt5 you are compiling against Qt4

                                install Qt5 + dev pkgs

which linix dist do you use?

edit: the other errs are related to Qt5 too ;)


Title: Re: problems compiling on linux
Post by: claude on June 03, 2015, 06:03:16 PM
I ran into this issue on Debian Wheezy (where installing Qt5 would be a nightmare), I have a pending pull request on github which fixes it https://github.com/Syntopia/Fragmentarium/pull/23


Title: Re: problems compiling on linux
Post by: Syntopia on June 03, 2015, 08:32:53 PM
Sorry about that, Claude. It had escaped my attention, but should be merged now. However, 3dickulus's branch is where the new development is taking place now.


Title: Re: problems compiling on linux
Post by: TruthSerum on June 03, 2015, 09:34:17 PM
Thanks, claudes patch fixes the problem.

However, I had to change the version minimum version number to 4.8.6 first.

@Syntopia Do you plan to merge much of the changes from the 3dickulus branch that you speak of?


Title: Re: problems compiling on linux
Post by: 3dickulus on June 04, 2015, 04:13:45 AM
3dickulus's branch is where the new development is taking place now.

?!?!? uh oh, is that official? maybe I'd better fork it again, I had one but lost it while mucking around with the github features in my IDE... just checked, my name isn't in the list of forks, having my own dedicated web server and network also makes hosting anywhere else seem redundant and I don't really "get" github, total nube on that. I asked for some headsup on here with github but got 0 response.

@Syntopia It is not my intention or desire to take over, just presenting some ideas that I hoped might catch on and make it to the official release coded by someone with better skills and technical aptitude, my version has bugs and flakes (bad coding practices) and I'm not so good at higher math. I have implemented some things requested by FF users but I'm not sure if I did the coding right, if it seems to work I move on to something else (attention span of a gnatt) I'm not sure how "compatible" some of my changes might be with github fork, like no more OS specific build folders, just two files, one CMakeLists.txt for my prefered IDE and one qtcreator.pro file, these two files should be able to handle building for any OS, I also don't want to support Qt4 as the #ifndefs would be cluttering up my view (I feel the same about Win + OSX)

I will continue to hack at and impliment user feature requests like [spacebar] for animation start/stop and infinite looping, just because I find it enjoyable.

on Debian Wheezy (where installing Qt5 would be a nightmare)
you should be able to just install the dev pkgs and libs as they are designed to coexist, Qt4 should still be used by the desktop while Qt5 apps will find what they need, I thought the same thing about SuSE but it's not an issue to have both installed, this should hold true for any *nix based OS