It is currently Sat Aug 22, 2020 12:25 pm


All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: compiling polyvox
PostPosted: Wed Nov 10, 2010 9:02 pm 

Joined: Wed Nov 10, 2010 7:15 pm
Posts: 43
So, I'm trying to use cmake to compile polyvox (which seems to be the way I should do it?) on my win7 system (i have vs2010) I got an error when configuring in cmake, all this qt stuff. So I went and installed the qtSDK, but now that i'm looking at what the sdk put in there, it has a 4 at the end of each dll filename, which isn't what polyvox seems to want... I'm pretty confused now so figured i'd just ask.

basically i need qtopengl.dll (i assume) but i have qtopengl4.dll, same with everything else, I have qtgui4.dll, not the qtgui.dll -- same problem for all the librarys that aren't found in CMake, what do I do to fix this?

Also, I just pulled polyvox off the SVN today, without modifying anything will I have your new cubesurfaceextractor? Anyways, thanks for any help!


Top
Offline Profile  
Reply with quote  
 Post subject: Re: compiling polyvox
PostPosted: Wed Nov 10, 2010 9:17 pm 
Developer
User avatar

Joined: Sun May 11, 2008 4:29 pm
Posts: 198
Location: UK
Yes you're doing the right thing. I assume you've found the INSTALL.txt or the HTML version which should help with the steps.

There shouldn't be any clash of filenames for the DLLs, CMake should find whatever's there and then report that to PolyVox so that it can correctly link against it. It's possible that you'll have to manually point CMake to where the Qt SDK has been installed. The first thing I would try is deleting everything the build directory you've chosen to make sure any residual cached CMake stuff is cleared. Then try running CMake again.

I haven't compiled PolyVox on Windows myself but David should be able to help you. I assume you've got CMake 2.8 and Qt 4.7? Worst case scenario, you can simply compile PolyVox without Qt since it's only needed to build the unit tests, the example app and to generate some of the documentation.

As for the CubicSurfaceExtractor, yes that is present in the version of the code in SVN.

_________________
Matt Williams
Linux/CMake guy


Top
Offline Profile  
Reply with quote  
 Post subject: Re: compiling polyvox
PostPosted: Wed Nov 10, 2010 9:23 pm 

Joined: Wed Nov 10, 2010 7:15 pm
Posts: 43
Yea just can't figure out how to point CMake to my qt crap... is there an environment variable I need to manually set? or is the problem in the fact that all my dlls are in the format name4.dll? I really would like to get this working asap... I'm in the programming mood lately :P

Thanks!

BTW yes, I'm using CMake 2.8.3 and QT 4.7. I got the SDK from http://qt.nokia.com/downloads selecting the top left option the Qt SDK for Windows* (322 MB). I assume that was the right pick...

EDIT: I built it without any of the extras and it worked, but that means my QT isn't being used at all, and someday it might be nice to look at the samples : ( if someone figures this out please let me know. Thanks.


Top
Offline Profile  
Reply with quote  
 Post subject: Re: compiling polyvox
PostPosted: Wed Nov 10, 2010 9:43 pm 
Developer
User avatar

Joined: Sun May 04, 2008 6:35 pm
Posts: 1827
I didn't install the SDK (instead I built Qt from source) but I have 'C:\qt\4.7.0\bin' added to my path. Within 'C:\qt\4.7.0\lib' I have all the .dlls which are named 'xxx4.dll' as you say.

When cd into my 'build' folder and run 'cmake ..' I get the following output:

Code:
-- Building for: Visual Studio 10
-- Check for working C compiler using: Visual Studio 10
-- Check for working C compiler using: Visual Studio 10 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler using: Visual Studio 10
-- Check for working CXX compiler using: Visual Studio 10 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found Doxygen: C:/Program Files (x86)/doxygen/bin/doxygen.exe
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - not found.
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Found Qt-Version 4.7.0 (using C:/qt/4.7.0/bin/qmake.exe)
-- Found `sphinx-build` at C:/Python27/Scripts/sphinx-build.exe
--
-- Summary
-- -------
-- Build examples:      ON
-- Build tests:         ON
-- API Docs available:  YES
--  - Qt Help bundling: YES
-- Build manual:        YES
--
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/David/Documents/Visual Studio 2010
/Projects/thermite/PolyVox/trunk/build


As you can see, it identifies the correct path to Qt. Are you getting this far? Be sure to delete the contents of you build folder first as CMake caches some stuff. If not can you post your CMake output? Note that I haven't even tried building yet.

If I now open the newly generated 'PolyVox' and then go 'BasicExample'->Right Click->'properties'->'configuration properties'->'linker'->'input'->'additional dependancies', then I can see the lib files listed with the '4' extension.

Please elaborate on where exactly you results are differing from mine, and we can take it from there.


Top
Offline Profile  
Reply with quote  
 Post subject: Re: compiling polyvox
PostPosted: Wed Nov 10, 2010 9:46 pm 
Developer
User avatar

Joined: Sun May 11, 2008 4:29 pm
Posts: 198
Location: UK
I assume you're using the CMake GUI (looks something like this). If so, all you should need to do is set the QT_QMAKE_EXECUTABLE variable in the GUI to point qmake.exe. This is probably installed to C:\Qt\4.7\bin\qmake.exe (depending on where you installed Qt SDK to). Once that is set, click Configure and then Generate. Hopefully this will find Qt correctly. If it doesn't then paste the output that CMake prints to the screen in a reply here and I'll see if I can work out the problem.

_________________
Matt Williams
Linux/CMake guy


Top
Offline Profile  
Reply with quote  
 Post subject: Re: compiling polyvox
PostPosted: Wed Nov 10, 2010 10:27 pm 

Joined: Wed Nov 10, 2010 7:15 pm
Posts: 43
I just switched to my home computer, I'll check it out here (pretty much same setup) I can't believe how active you guys are, and I really appreciate the feedback.


Top
Offline Profile  
Reply with quote  
 Post subject: Re: compiling polyvox
PostPosted: Wed Nov 10, 2010 11:05 pm 
Developer
User avatar

Joined: Sun May 04, 2008 6:35 pm
Posts: 1827
paycheck wrote:
... I can't believe how active you guys are, and I really appreciate the feedback.


Mostly good timing and luck - I'm usually around in the evenings GMT time. If you'd posted a few hours later you'd probably have waited a day ;)


Top
Offline Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 6 guests


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
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Theme created StylerBB.net