DCPUTeam / DCPUToolchain

[ARCHIVED] The code repository for the DCPU-16 Toolchain.
http://dcputoolcha.in/
MIT License
96 stars 14 forks source link

Not buildable if having qt4 and qt5 #235

Open afrowerks opened 11 years ago

afrowerks commented 11 years ago

I had installed qt-sdk first since I wanted to be able to try the toolchain out, which is for 5.0.1, but even after installing qt4, I get this error below. I would think that if you have a requirement towards a specific version of a tool you shouldn't have to uninstall or tweak something just to satisfy installation of the dcputoolchain. (Following are the make error and installed qt packages respectively.)

(FYI, Trying to use qmake -set didn't work due to a bug leading to multiple internal variables of the same name.)

$ cmake . && make -C libdcpu && make
-- Showing configuration
  >> version is: 'beta; #ff4bd3c84'
  >> m4 is at: /usr/bin/m4
  >> flex is at: /usr/bin/flex
  >> flex unistd is at: 
  >> bison is at: /usr/bin/bison
   (must be Cygwin versions on Windows)
  >> cmake version is >= 2.8.6 -> using cotire
-- Found unsuitable Qt version "5.0.1" from /usr/bin/qmake
-- Found GNU Readline: 6.2
-- Building GLFW for X11 and GLX on a Unix-like system
CMake Error at CMakeLists.txt:231 (add_subdirectory):
  The source directory

    /home/afro/Downloads/dcputoolchain-linux/DCPUToolchain/libdcpu-cc

  does not contain a CMakeLists.txt file.

cc include dir 
-- Found unsuitable Qt version "5.0.1" from /usr/bin/qmake
Not building IDE due to lack of Qt 4 libraries.
-- Could NOT find Sphinx (missing:  SPHINX_EXECUTABLE) 
-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE) 
-- Configuring incomplete, errors occurred!

$ dpkg -l qt*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                            Version              Architecture         Description
+++-===============================-====================-====================-====================================================================
un  qt-assistant-compat             <none>                                    (no description available)
ii  qt-at-spi:amd64                 0.3.1-0ubuntu1       amd64                accessibility plugin for Qt
un  qt-default                      <none>                                    (no description available)
ii  qt-sdk                          2ubuntu3             all                  Complete Qt Software Development Kit
un  qt-x11-free-dbg                 <none>                                    (no description available)
un  qt3-dev-tools-embedded          <none>                                    (no description available)
ii  qt4-bin-dbg                     4:4.8.4+dfsg-0ubuntu amd64                Qt 4 binaries debugging symbols
un  qt4-default                     <none>                                    (no description available)
ii  qt4-designer                    4:4.8.4+dfsg-0ubuntu amd64                graphical designer for Qt 4 applications
ii  qt4-dev-tools                   4:4.8.4+dfsg-0ubuntu amd64                Qt 4 development tools
ii  qt4-doc                         4:4.8.4+dfsg-0ubuntu all                  Qt 4 API documentation
ii  qt4-doc-html                    4:4.8.4+dfsg-0ubuntu all                  Qt 4 API documentation (HTML format)
ii  qt4-linguist-tools              4:4.8.4+dfsg-0ubuntu amd64                Qt 4 Linguist tools
ii  qt4-qmake                       4:4.8.4+dfsg-0ubuntu amd64                Qt 4 qmake Makefile generator tool
un  qt4-qmlviewer                   <none>                                    (no description available)
un  qt4-qtconfig                    <none>                                    (no description available)
un  qt4-x11                         <none>                                    (no description available)
ii  qt5-default                     5.0.1+dfsg-0ubuntu4  all                  Qt 5 development defaults package
ii  qt5-qmake                       5.0.1+dfsg-0ubuntu4  amd64                Qt 5 qmake Makefile generator tool
ii  qtbase5-dev                     5.0.1+dfsg-0ubuntu4  amd64                Qt 5 base development files
ii  qtbase5-dev-tools               5.0.1+dfsg-0ubuntu4  amd64                Qt 5 base development programs
ii  qtchooser                       0.0.1~git20121229.g8 amd64                Wrapper to select between Qt development binary versions
ii  qtcreator                       2.7.0-0ubuntu3       amd64                lightweight integrated development environment (IDE) for Qt
ii  qtcreator-doc                   2.7.0-0ubuntu3       all                  documentation for Qt Creator IDE
ii  qtdeclarative5-dev              5.0.1-0ubuntu3       amd64                Qt 5 declarative development files
un  qtnx                            <none>                                    (no description available)
un  qtquick1-5-dev                  <none>                                    (no description available)
un  qtquick1-5-dev-tools            <none>                                    (no description available)
Mause commented 11 years ago

For the first of those errors, you need to make sure you clone submodules.

But for Qt, it seems as though Qt5 is the default on your system... not knowing anything about compatibility between Qt versions, maybe try telling the toolchain to use Qt5?

Or temporarily setting Qt4 as the default?

patflick commented 11 years ago

if i remember correctly, qt is only needed for the pre-alpha gui. there should be an option to cmake without the gui ( and thus without the qt dependencies) On Aug 6, 2013 1:23 AM, "Dominic R. May" notifications@github.com wrote:

For the first of those errors, you need to make sure you clone submodules.

But for Qt, it seems as though Qt5 is the default on your system... not knowing anything about compatibility between Qt versions, maybe try telling the toolchain to use Qt5?

— Reply to this email directly or view it on GitHubhttps://github.com/DCPUTeam/DCPUToolchain/issues/235#issuecomment-22148097 .

afrowerks commented 11 years ago

Thanks for the quick responses,

I think I will manage the qt stuff, haven't really had time today to pursue further. I ran into a bug/feature in qmake in the process...

My point was that as a developer, time is precious, and you'd not want to spend it on initial troubleshooting. The guide I followed was this one -- https://github.com/DCPUTeam/DCPUToolchain/blob/master/README.md -- and maybe I should have followed some other description. I didn't see anything about any submodules. Typically you'd just add some option --recursive to the git command if everything is ok in the repo.

I first stumbled upon this page -- http://dcputoolcha.in/docs/tutorial/10cco/gettingtools.html -- which promises also to get you started, so there's some effort needed in getting more juice into the pages that meet newcomers like me. Maybe that this particular tutorial/guide focus on Windows users where things maybe are pre-packaged?!

BR, Andreas

2013/8/5 Patrick Flick notifications@github.com

if i remember correctly, qt is only needed for the pre-alpha gui. there should be an option to cmake without the gui ( and thus without the qt dependencies) On Aug 6, 2013 1:23 AM, "Dominic R. May" notifications@github.com wrote:

For the first of those errors, you need to make sure you clone submodules.

But for Qt, it seems as though Qt5 is the default on your system... not knowing anything about compatibility between Qt versions, maybe try telling the toolchain to use Qt5?

— Reply to this email directly or view it on GitHub< https://github.com/DCPUTeam/DCPUToolchain/issues/235#issuecomment-22148097>

.

— Reply to this email directly or view it on GitHubhttps://github.com/DCPUTeam/DCPUToolchain/issues/235#issuecomment-22148195 .

patflick commented 11 years ago

try commenting this line of the main CMakeLists.txt:244 http://github.com/DCPUTeam/DCPUToolchain/blob/master/CMakeLists.txt#L244

this should remove all qt dependencies. dtide isn't done anyway, and i'm surprised it is enabled in the main branch

this project has been dying out, with almost no activity for > half a year. but any feedback is still appreciated.

cheers