Title: [Solved] BUILD Fragmentarium on Windows Post by: vinz on July 03, 2013, 07:10:37 PM i thought it was easy as loading a file into a software, and push the build button, but i was wrong.
1. i've installed "VS express 2012" on my system. 2. installed the lastest QT I found ---> "qt-windows-opensource-5.1.0-msvc2012-x86_64-offline" - i've loaded the project in VS by opening the file "Fragmentarium.vcproj", and i cannot compile because of errors - see picture below. - tried to open with Qt creator, but it's seems it cannot handle vs project. - tried to use "Qmake" and "make" command on console, but it don't recognize it at valid command. i've checked Qt folder and there isn't any Qmake or make executable. Any help? for the newbie :D, i really want to learn how to compile it, and also why not someday do some modifications. Title: Re: BUILD Fragmentarium on Windows Post by: 3dickulus on July 03, 2013, 07:41:16 PM google "building qt project on windows" lots of infos out there
I'm not a windows guy so I can't say I've tried any of the methods that show up but there are people compiling Qt apps on Win Title: Re: BUILD Fragmentarium on Windows Post by: vinz on July 03, 2013, 07:47:22 PM Thanks for your input 3dickulus :)
i'll continue to check on my side .... for what i see the current problem com from some paths, and also i've checked these path are void don't contain any of the files that vs is looking for :evil1: here some warning that i've when i open the project ! but i don't really understand what it said ! i've found the projecy configuration and i thinks all relative path seems good. Title: Re: BUILD Fragmentarium on Windows Post by: 3dickulus on July 03, 2013, 07:57:42 PM try...
http://qt-project.org/doc/qt-4.8/install-win.html (http://qt-project.org/doc/qt-4.8/install-win.html) and http://godhc.wordpress.com/2012/06/10/build-your-qt-project-on-windows-and-mac-osx/ (http://godhc.wordpress.com/2012/06/10/build-your-qt-project-on-windows-and-mac-osx/) seems like a good place to start, suggest getting your environment setup to compile windows programs first and then add Qt stuff to it Title: Re: BUILD Fragmentarium on Windows Post by: vinz on July 03, 2013, 07:59:54 PM thanks 3dickulus ... i'll check these links :)
Title: Re: BUILD Fragmentarium on Windows Post by: vinz on July 03, 2013, 08:11:01 PM I didn't found any specific manipulation to do for installing Qt 5.1 do you think i need to go back to Qt 4 ?
but for now i thinks, the problem i've is not comming from a qt problem i think more a project configuration problem ... but as dunno what to modify ! hahaha ! fluffin noob i'm , i hate me .... :embarrass: Title: Re: BUILD Fragmentarium on Windows Post by: 3dickulus on July 03, 2013, 08:33:01 PM not sure what version of Qt works for your setup and Windows remains a mystery to me :fiery:
Title: Re: BUILD Fragmentarium on Windows Post by: vinz on July 03, 2013, 08:35:22 PM I think the Qt4 can work here! i'll try to install this one and do the manipulations you sent to me :)
ARF: the only i've found is that one : Qt libraries 4.8.5 for Windows (VS 2010, 235 MB) if i'm right it mean it will work with vs 2010 does it will work with vs 2012 ? Title: Re: BUILD Fragmentarium on Windows Post by: 3dickulus on July 03, 2013, 10:13:28 PM I have no idea :sad1: I'm hardcore *nix forever.
Title: Re: BUILD Fragmentarium on Windows Post by: vinz on July 03, 2013, 10:18:25 PM Thanks you very Much 3dickulus for helping me, you're more than welcome ! :D :beer: :beer: :beer: :beer: :beer: :beer:
i just hope you'll not be the only one to gimme some input. ;D i imagine i will take one month to do something that can be done in few minutes... hahahhaa as usually ;D Title: Re: BUILD Fragmentarium on Windows Post by: elphinstone on July 03, 2013, 11:59:18 PM if i'm right it mean it will work with vs 2010 does it will work with vs 2012 ? No :( Usually these packages are compatible only with a specific version of VS. In your case I think it's because Qt for VS2010 is configured to work with the v100 toolset (compiler, libraries, ...), but VS2012 uses v110. One solution would be to install VS2010 and use it to build Fragmentarium. I'm currently developing a software with Qt in VS2012 so I got it working somehow ;D But now I don't remember exactly how... Tomorrow I'll have access to my development PC and I'll have a look and write you some more details :) Title: Re: BUILD Fragmentarium on Windows Post by: vinz on July 04, 2013, 12:06:17 AM HAhahaha thanks your verrrrrrrrrryyyyyy much elphinstone ...
here my current progress : 1. i've added an environnement variable called QT4DIR with the path of Qt 5.1 "c:\qt\5.1\etc../" when i launched vs2012 , it started to BUILD for the first time !! :D after few seconds i had some new errors ... a step forward ... hahaha ! so i decided to install qt 4.8.5 and see what it give i've added new variable QT4DIR with the path "c:\Qt\4.8.5\" launched project and started to BUILD far further.... now i've these errors, again it stop with these paths that are empty !!... vs2012 seems really want to have the files in these folders. EDIT:I will wait for tomorrow but if i don't have others solution i'll try to keep a free licence for vs 2010 express.... Title: Re: BUILD Fragmentarium on Windows Post by: elphinstone on July 04, 2013, 08:34:28 AM So: I have VS2012 Ultimate with Qt 5.0.2 and the Qt Visual Studio plugin. I can create new Qt project, work on my own application BUT I cannot compile fragmentarium. Fragmentarium VS solution looks to be created for VS2008, so the VC++ project is not configured as Qt project like in the newer versions...
As a first step I would suggest to install VS2010 (or even 2008 as Syntopia suggests https://github.com/Syntopia/Fragmentarium/blob/master/Fragmentarium-Source/Build%20-%20Windows/BuildProcedure.txt (https://github.com/Syntopia/Fragmentarium/blob/master/Fragmentarium-Source/Build%20-%20Windows/BuildProcedure.txt)) with Qt4 and try again :) Title: Re: BUILD Fragmentarium on Windows Post by: vinz on July 04, 2013, 08:38:26 AM Thanks you for your Help elphinstone, i'll do that ;D
Title: Re: BUILD Fragmentarium on Windows Post by: vinz on July 04, 2013, 03:11:32 PM HI, i've just installed vs2008 express edition,
loaded the project, and build the solution, it seems i've the exactly same errors as vs2012 and also the warnings about macro redefining : :hurt: Any clue about what i can do ? i've added the generated rapport! Edit: i've also tried to clean solution and project, but it don't help. How can i create the missing files ? Title: Re: BUILD Fragmentarium on Windows Post by: Syntopia on July 04, 2013, 06:03:29 PM Hi Vinz.
It seems you are mising the 'moc' files. These "Meta object files" files should be generated by Qt. - What happens if you right-click "MainWindow.h" and click 'compile'? - Have you set the 'QT4DIR' environment variable? - Are there any files in the 'tmp/moc/release_shared' library? I'm using Qt 4.6.3 myself, but I can try installing a newer version to see if there are any issues. Wrt the old VS2008 version - I installed the VS2013 beta last week, but I really couldn't stand the upper casing of the menus and the new flat layout, so I had to switch back. Title: Re: BUILD Fragmentarium on Windows Post by: vinz on July 04, 2013, 06:14:34 PM HAAAAAAAAAAA !! Great to see you there Syntopia :D :beer: :beer: :beer: :beer:
1.- Compiling MainWindow done successfully. 2.- Yes i've set the QT4DIR -> "c:\QT\4.8.5" 3.- No there isn't any file in "tmp/moc/release_shared " also i manualy created the folder "release_shared " that was not present. Title: Re: BUILD Fragmentarium on Windows Post by: Syntopia on July 04, 2013, 06:31:09 PM I just tried installing Qt4.8.5 and it worked fine - I got tons of the macro redefinition stuff though.
I had to copy the new QtCore4.dll, QtGui4.dll, QtOpenGL4.dll files to the "Build - Windows\release" to run it. 1.- Compiling MainWindow done successfully. And it was the ".h" file you compiled? Did it write something like 'Moc'ing MainWindow' in the console? Title: Re: BUILD Fragmentarium on Windows Post by: vinz on July 04, 2013, 06:35:44 PM Thanks you so mucchhh Syntopia ! ;D
- Yest it was MainWindow.h ( as there was no option to compile in right click menu i used (F7 compile from generating menu ) - in the picture attached to previews post there is a line that said : " 1>Moc' ing MainWindow " Title: Re: BUILD Fragmentarium on Windows Post by: Syntopia on July 04, 2013, 06:42:25 PM Oh - I see there is an error in the project file.
Can you try switching from "Debug" to "Release" mode, and building the project? It seems some moc files are only generated in Release mode. After having run once in Release mode, it should be possible to switch to debug mode though. Title: Re: BUILD Fragmentarium on Windows Post by: vinz on July 04, 2013, 06:46:20 PM HAHAHHHAAAAAAAA ! It seems to have been worked .... it told me qt4 dll is missing but i suppose that i've to put them at the good place ^^
Title: Re: BUILD Fragmentarium on Windows Post by: vinz on July 04, 2013, 06:49:00 PM YESSSSSSSSSSSSSSSSS it seems to work !!! no errors in compiling .. i need to try the result !! THANNNNNNNNNNNNNNNNNNNNNNKSSSSSSSSS YOUUUUUUUUUUUUUUUUUUUU
:beer: :beer: :beer: :beer: :beer: :beer: :beer: :beer: :beer: :beer: Title: Re: BUILD Fragmentarium on Windows Post by: vinz on July 04, 2013, 06:55:28 PM THAT WORK !!!!!!!!!!!!! i've replaced qt dll ..... I'm Sooooooooo HAPPY i was loosing hope ! THAnks you Thanks you Syntopia .... you made my day :D
edit: also thanks you very much 3dickulus and Elphinstone :D i'm pretty sure this topic will help more people, it can't be more noob than me hahahaha ;D Title: Re: [Solved] BUILD Fragmentarium on Windows Post by: vinz on July 04, 2013, 08:27:13 PM Syntopia don't kill me, i've increased subframe maximum value to 9000 for tiles render and preview sliders :D, hahahah my first tweak ;D
Title: Re: [Solved] BUILD Fragmentarium on Windows Post by: 3dickulus on July 04, 2013, 09:53:40 PM Excellent !!! I'm impressed. My solution would be to install linux :evil1:
don't forget to grab the latest version of my hack, I've allowed the webserver to display the fragmentarium (http://www.digilanti.org/fragmentarium/) folder so you can see the date stamp and file size I can't wait to see some animations, I suppose I should put together a How-To or something. G'donya! :beer: Title: Re: [Solved] BUILD Fragmentarium on Windows Post by: cKleinhuis on July 04, 2013, 09:58:15 PM nice, can you provide an executable?
Title: Re: [Solved] BUILD Fragmentarium on Windows Post by: vinz on July 04, 2013, 10:06:42 PM Thanks 3dickulus ! :beer: :beer: :beer: :beer: :beer: :beer:
i would like to provide an executable with your hack , but i got some errors ( see bellow) when i try to compile fragmentarium with the code you provided. on my side i'm not able to define where is the problem :hurt: edit: i added the rapport if it can help ! Title: Re: [Solved] BUILD Fragmentarium on Windows Post by: 3dickulus on July 04, 2013, 10:11:44 PM looks like you need to add the QtSpline.cpp and .h files to the projects sources list
there should be a menu item somewhere that say something like "Add file to project" Title: Re: [Solved] BUILD Fragmentarium on Windows Post by: vinz on July 04, 2013, 10:12:40 PM ok i going to check that :)
Title: Re: [Solved] BUILD Fragmentarium on Windows Post by: vinz on July 04, 2013, 10:22:04 PM Ok, it stay only one error ! a step forward :embarrass:
but it not clearly explained on the outpout windows. so i added the rapport here. Title: Re: [Solved] BUILD Fragmentarium on Windows Post by: vinz on July 04, 2013, 10:27:10 PM it's strange i only see warning dunno where is is the error ::)
Title: Re: [Solved] BUILD Fragmentarium on Windows Post by: 3dickulus on July 04, 2013, 10:33:15 PM Matrix4.cpp, Logging.cpp and ListWidgetLogger.cpp are not in the GUI folder (the only files my hack applies to)
best guess: something is including a file that defines QT_LARGEFILE_SUPPORT after it has already been defined, I don't get this error under linux so I'm not sure what to do about it, might be a compiler flag that allows multiple includes of the same .h file keep hacking, you'll get there :dink: Title: Re: [Solved] BUILD Fragmentarium on Windows Post by: vinz on July 04, 2013, 10:36:39 PM I've added the file you stated above in gui folder and also inside the project !!! it gave me the same error, iwas pretty sure that was not you said, but i given a try :D
Title: Re: [Solved] BUILD Fragmentarium on Windows Post by: Syntopia on July 04, 2013, 10:53:59 PM The macro warnings shouldn't matter. Try disabling those:
Properties: C/C++ | Advanced | Disable Specific Warnings = 4005 and try cleaning and recompiling the project. It should be possible to get the compiler to tell the error. Title: Re: [Solved] BUILD Fragmentarium on Windows Post by: vinz on July 04, 2013, 11:31:25 PM hey Syntopia i've found the window and disabled the warning 4005. :D
3dickulus, i've updated with your lastest file, now i see a new error : error C3861: 'gluLookAt' : identificateur introuvable ( unkown identifier ) at QtSpline.cpp(260) Title: Re: [Solved] BUILD Fragmentarium on Windows Post by: 3dickulus on July 05, 2013, 12:04:59 AM thats in the drawControlPoints routine and is not being used yet so you can comment out the offending line or install glu the GL Utility library
you could also comment out the drawSplinePoints routine at line 272 if you do comment them out then also comment out the matching entries in the QtSpline.h file Title: Re: [Solved] BUILD Fragmentarium on Windows Post by: vinz on July 05, 2013, 12:21:07 AM Here an almost complete screenshot, as it you'll see the modifications i made and the output console O0
Dit: it seems i've forget to add displaywidget to project ! :D i just recompiling Title: Re: [Solved] BUILD Fragmentarium on Windows Post by: vinz on July 05, 2013, 12:29:29 AM HAHAHAHAHAHAHAH YES COMPILED SUccesfully :D :beer: :beer: :beer: :beer: :beer: :beer: :beer:
Succcccccccccccccesssssssssssssss .... !!! Now i need to figure out how to share it :alien: Title: Re: [Solved] BUILD Fragmentarium on Windows Post by: 3dickulus on July 05, 2013, 12:31:23 AM GREAT!
I've also posted a starter frag that should get you going Mandelbulb-anim.frag (http://www.digilanti.org/fragmentarium/Mandelbulb-anim.frag) cheers! :beer: Title: Re: [Solved] BUILD Fragmentarium on Windows Post by: vinz on July 05, 2013, 12:33:48 AM Hahahahaha ! Excellent i'll give a try asap ... :D
Thanks you 3dickulus that was a funny adventure inside the coder world hahahahaha ^^ EDIT: At first glance, the animated mandelbulb script is working pretty well :D :D :D :D :D Nice job 3dickulus !!! Title: Re: [Solved] BUILD Fragmentarium on Windows Post by: 3dickulus on July 05, 2013, 12:41:33 AM can't wait to see your first fly-by :D
Title: Re: [Solved] BUILD Fragmentarium on Windows Post by: vinz on July 05, 2013, 12:55:48 AM Everytime i've made an animation i was disapointed ... but i'll do some effort :D |