Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Can't run Examples..qmake & make failures as USER
Forum Updated to NodeBB v4.3 + New Features

Can't run Examples..qmake & make failures as USER

Scheduled Pinned Locked Moved Installation and Deployment
11 Posts 2 Posters 6.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sqlpython
    wrote on last edited by
    #1

    The Question: Is my QtCreator installed Correctly, Read On?
    Anyone else having this issue. Open to suggestoins on the install.

    I have installed QtCreator from Synaptic package Manager to both Kubuntu 10.04 and Debian 6 which drags in dependancies in both cases. I also, using Slackware linux, installed Qtcreator directly from the Qt site by downloading and and installing the Bin file. Previous in Slackware I had installed QtDesigner via the Gslap package manager with dependancies.

    I am not understanding why Qtcreator IDE installs as a USER owned program. Yet system access to Cmake qmake and sources are always set to root only. I can understand the linux package Installers making this error but no the Directly downloaded BIN install file from the QT site. I must example projects as root to get successful Builds. My C IDE or Python / Java IDEs have no such issues. Codelite, & qtCreator both launch with %F option.

    I am a beginner using the Qtcreator. Normally I would program a Desktop app with Python using Eric IDE or Java using Netbeans IDE.
    When attempting to Run/Build an example project, the qmake or make always fails due to permissions as I launch QtCreator as my user. I do launch all my IDEs as my user without issue or needing a root launched idenity. The qt3 qt4 atcreator & C and other needed directories are in the /usr/lib sub directories which are all open to my users EXCEPT I seem to have issues accessing qtCreator directories during qtcreator processing. My /usr/lib is of course set as root owner/group...All other IDEs have no issues compiling here.

    Note:
    I am a C programmer for years but on an Unpracticed level having learned the Language but never applied it to a larger project.If I do I use the CodeLite IDE.

    1 Reply Last reply
    0
    • V Offline
      V Offline
      vsorokin
      wrote on last edited by
      #2

      When did you install QtCreator from Directly downloaded BIN you did this as root or as User?
      If as root, try install QtCreator under user account.

      --
      Vasiliy

      1 Reply Last reply
      0
      • S Offline
        S Offline
        sqlpython
        wrote on last edited by
        #3

        Yes, installed as USER to the Home dir

        BTW.. When using the Debian, Ubuntu or Slackware package installers the user is forced to start the package installer as Root.
        However, as the package qtcreator is not available from the package installer, I downloaded and installed my Slackware's Qtcreator via the downloaded BIN file..

        Also when I attempt to open an Example Project with Slackware's BIN file install I receive an Error stating that a copy to the Example cannot be written to the Directory choosen in the Home dir. Therefore the Example Project in many cases will not Open.
        The directories in the Home dir are open to My USER and Group (Read/Write) and not restricted... So, what is happening?
        If I was only having problems with One type of Linux then I would consider possibly the Linux. However in this case the Fault is the Install. Either the way I am installing or the way it is installing despite Me.

        1 Reply Last reply
        0
        • V Offline
          V Offline
          vsorokin
          wrote on last edited by
          #4

          It's very strange, I'm using Debian and it's all for me.
          can you show your ls -la for path with example?

          --
          Vasiliy

          1 Reply Last reply
          0
          • S Offline
            S Offline
            sqlpython
            wrote on last edited by
            #5

            Sure... this my /home dir of course much of this is in /usr/lib
            @
            sqlpython@bobssl410:~$ ls -la
            total 147000
            drwxr-xr-x 106 sqlpython sqlpython 4096 Sep 9 12:51 .
            drwxr-xr-x 3 root root 4096 Jan 5 2011 ..
            -rw-r--r-- 1 sqlpython sqlpython 1471 Dec 11 2010 05_debian_theme-1
            drwx------ 5 sqlpython sqlpython 4096 Oct 6 2010 .adobe
            drwx------ 4 sqlpython sqlpython 4096 Dec 17 2010 .appdata
            drwxr-xr-x 3 sqlpython sqlpython 4096 Oct 5 2010 .assaultcube_v1.04
            -rw------- 1 sqlpython sqlpython 6067 Sep 8 15:27 .bash_history
            -rw-r--r-- 1 sqlpython sqlpython 220 Sep 30 2010 .bash_logout
            -rw-r--r-- 1 sqlpython sqlpython 3184 Sep 30 2010 .bashrc
            drwxr-xr-x 4 sqlpython sqlpython 4096 Oct 13 2010 .boa-constructor
            drwxr-xr-x 11 sqlpython sqlpython 4096 Jan 21 2011 .cache
            drwxr-xr-x 3 sqlpython sqlpython 4096 Oct 12 2010 .cddb
            drwxr-xr-x 3 sqlpython sqlpython 4096 Nov 18 2010 .chrome
            drwxr-xr-x 11 sqlpython sqlpython 4096 Sep 8 23:32 .codelite
            drwxr-xr-x 28 sqlpython sqlpython 4096 Aug 9 12:51 .config
            drwxr-xr-x 6 sqlpython sqlpython 4096 Nov 10 2010 .cpan
            drwx------ 2 sqlpython sqlpython 4096 Oct 1 2010 .cups
            drwxr-xr-x 5 sqlpython sqlpython 4096 Jan 9 2011 .cxoffice
            drwx------ 3 sqlpython sqlpython 4096 Sep 30 2010 .dbus
            -rw-r--r-- 1 sqlpython sqlpython 56 Sep 9 12:14 .DCOPserver_bobssl410__0
            lrwxrwxrwx 1 sqlpython sqlpython 40 Aug 28 12:31 .DCOPserver_bobssl410_:0 -> /home/sqlpython/.DCOPserver_bobssl410__0
            drwxr-xr-x 5 sqlpython sqlpython 4096 Oct 19 2010 .designer
            drwxr-xr-x 2 sqlpython sqlpython 4096 Aug 9 15:33 Desktop
            drwxr-xr-x 2 sqlpython sqlpython 4096 Sep 8 23:20 .DesktopApplication1
            -rw-r--r-- 1 sqlpython sqlpython 119814912 Oct 14 2010 desktop_video-1.ogv
            -rw-r--r-- 1 sqlpython sqlpython 2396089 Oct 14 2010 desktop_video.ogv
            -rw------- 1 root root 38 Jan 24 2011 .directory
            -rw------- 1 sqlpython sqlpython 22 Aug 19 15:12 .dmrc
            drwxr-xr-x 45 sqlpython sqlpython 20480 Sep 9 14:04 Documents
            drwxr-xr-x 53 sqlpython sqlpython 20480 Aug 24 23:25 Downloads
            drwxr-xr-x 2 sqlpython sqlpython 4096 Apr 4 19:23 .dreamchess
            drwxr-xr-x 7 sqlpython sqlpython 4096 Oct 13 2010 .drpython
            drwxr-xr-x 6 sqlpython sqlpython 4096 Aug 30 01:54 .dvdcss
            drwxr-xr-x 2 sqlpython sqlpython 4096 Apr 5 14:32 dwhelper
            drwxr-xr-x 5 sqlpython sqlpython 4096 Oct 14 2010 .eric4
            -rw------- 1 sqlpython sqlpython 16 Sep 30 2010 .esd_auth
            -rw-r--r-- 1 sqlpython sqlpython 30369 Jun 11 14:06 faithbased.asp.html
            drwx------ 2 sqlpython sqlpython 4096 Feb 16 2011 .filezilla
            drwxr-xr-x 14 sqlpython sqlpython 4096 Aug 27 02:21 firefox
            drwxr-xr-x 2 sqlpython sqlpython 4096 Feb 18 2011 .fontconfig
            -rw-r--r-- 1 sqlpython sqlpython 508 Oct 22 2010 .fonts.conf
            drwxr-xr-x 5 sqlpython sqlpython 4096 Nov 11 2010 .freevo
            drwxr-xr-x 3 sqlpython sqlpython 4096 Mar 14 11:04 .fretsonfire
            drwx------ 5 sqlpython sqlpython 4096 Sep 9 12:14 .gconf
            drwx------ 2 sqlpython sqlpython 4096 Sep 9 12:14 .gconfd
            -rw-r--r-- 1 sqlpython sqlpython 0 Aug 27 03:19 .gdbinit
            -rw-r--r-- 1 sqlpython sqlpython 0 Aug 27 03:11 .gdbinit.backup
            drwx------ 4 sqlpython sqlpython 4096 Nov 23 2010 .gegl-0.0
            drwxr-xr-x 22 sqlpython sqlpython 4096 Aug 11 17:18 .gimp-2.6
            -rw-r----- 1 sqlpython sqlpython 0 Aug 18 23:13 .gksu.lock
            drwx------ 3 sqlpython sqlpython 4096 Sep 30 2010 .gnash
            drwxr-xr-x 4 sqlpython sqlpython 4096 Sep 30 2010 .gnome
            drwx------ 4 sqlpython sqlpython 4096 Aug 18 23:16 .gnome2
            drwx------ 2 sqlpython sqlpython 4096 Sep 30 2010 .gnome2_private
            drwxr-xr-x 2 sqlpython sqlpython 4096 Sep 30 2010 .gnome-desktop
            drwx------ 2 sqlpython sqlpython 4096 Apr 10 11:34 .gnupg
            drwx------ 2 sqlpython sqlpython 4096 Nov 24 2010 .gpe
            drwxr-xr-x 2 sqlpython sqlpython 4096 Mar 8 2011 .gstreamer-0.10
            @

            1 Reply Last reply
            0
            • S Offline
              S Offline
              sqlpython
              wrote on last edited by
              #6

              I had to divided into several posts due to size
              @
              -rw------- 1 sqlpython sqlpython 0 Nov 17 2010 .gtk-bookmarks
              -rw-r--r-- 1 sqlpython sqlpython 944 Oct 13 2010 .gtk-recordmydesktop
              drwx------ 2 sqlpython sqlpython 4096 Sep 30 2010 .gvfs
              drwxr----- 2 sqlpython sqlpython 4096 Jan 23 2011 .hplip
              -rw------- 1 sqlpython sqlpython 25935 Sep 9 12:14 .ICEauthority
              drwx------ 4 sqlpython sqlpython 4096 Oct 28 2010 .icedove
              drwxr-xr-x 2 sqlpython sqlpython 4096 Feb 3 2011 .icons
              drwxr-xr-x 2 sqlpython sqlpython 4096 Oct 19 2010 .idlerc
              drwxr-xr-x 10 sqlpython sqlpython 4096 Aug 9 15:32 jdk1.6.0_26
              -rw-r--r-- 1 sqlpython sqlpython 381 Sep 30 2010 .kaboom.log
              drwxr-xr-x 2 sqlpython sqlpython 4096 Aug 9 12:54 .kchmviewer
              drwx------ 6 sqlpython sqlpython 4096 Apr 14 09:08 .kde
              drwxr-xr-x 5 sqlpython sqlpython 4096 Oct 11 2010 kdenlive
              -rw------- 1 sqlpython sqlpython 367 Mar 21 13:06 .kderc
              drwxr-xr-x 2 sqlpython sqlpython 4096 Nov 8 2010 .kiki
              drwx------ 2 sqlpython sqlpython 4096 Jul 21 16:53 .kino-history
              -rw-r--r-- 1 sqlpython sqlpython 3106 Jul 21 16:53 .kinorc
              drwxr-xr-x 3 sqlpython sqlpython 4096 Oct 13 2010 .komodoedit
              drwxr-xr-x 5 sqlpython sqlpython 4096 Oct 13 2010 Komodo-IDE
              drwxr-xr-x 2 sqlpython sqlpython 4096 Oct 14 2010 Live - Throwing Copper
              drwx------ 3 sqlpython sqlpython 4096 Sep 30 2010 .local
              drwx------ 3 sqlpython sqlpython 4096 Sep 30 2010 .macromedia
              -rw-r--r-- 1 sqlpython sqlpython 1399 Sep 30 2010 .mailcap
              drwxr-xr-x 3 sqlpython sqlpython 4096 Jun 28 13:13 .marble
              drwxr-xr-x 2 sqlpython sqlpython 4096 Aug 9 16:04 .MarsRoverViewer
              drwxr-xr-x 3 sqlpython sqlpython 4096 Nov 16 2010 .mcop
              -rw------- 1 sqlpython sqlpython 31 Nov 16 2010 .mcoprc
              drwxr-xr-x 2 sqlpython sqlpython 4096 Apr 1 2009 memo_file
              -rw-r--r-- 1 sqlpython sqlpython 5869 Sep 30 2010 .mime.types
              drwx------ 5 sqlpython sqlpython 4096 Feb 15 2011 .mozilla
              drwx------ 7 sqlpython sqlpython 4096 Jan 9 2011 .mozillaBAK
              drwxr-xr-x 2 sqlpython sqlpython 4096 Mar 8 2011 .mplayer
              drwxr-xr-x 2 sqlpython sqlpython 4096 Jan 31 2011 Music
              drwxr-xr-x 5 sqlpython sqlpython 4096 Jun 11 2010 MyMemos
              drwx------ 4 sqlpython sqlpython 4096 Feb 7 2011 .mysqlgui
              -rw------- 1 sqlpython sqlpython 0 Jan 31 2011 .mysql_history
              drwxr-xr-x 7 sqlpython sqlpython 4096 Aug 9 15:36 .nbi
              drwxr-xr-x 3 sqlpython sqlpython 4096 Aug 9 15:36 .netbeans
              @

              1 Reply Last reply
              0
              • S Offline
                S Offline
                sqlpython
                wrote on last edited by
                #7

                @
                s
                drwxr-xr-x 16 sqlpython sqlpython 4096 Aug 24 23:47 netbeans-7.0
                drwxr-xr-x 4 sqlpython sqlpython 4096 Aug 12 01:19 NetBeansProjects
                drwxr-xr-x 3 sqlpython sqlpython 4096 Jan 9 2011 .netscape
                drwxr-xr-x 3 sqlpython sqlpython 4096 Oct 6 2010 .nexuiz
                drwxr-x--- 3 sqlpython sqlpython 4096 Oct 4 2010 .openarena
                drwxr-xr-x 3 sqlpython sqlpython 4096 Sep 30 2010 .openoffice.org
                drwxr-xr-x 15 sqlpython sqlpython 4096 Feb 16 2011 .opera
                drwxr-xr-x 3 sqlpython sqlpython 4096 Mar 28 15:52 .padre
                drwxr-xr-x 2 sqlpython sqlpython 4096 Aug 9 18:23 .pdfedit
                -rw-r--r-- 1 sqlpython sqlpython 1301 Feb 9 2011 .pgadmin3
                drwxr-xr-x 12 sqlpython sqlpython 4096 Jul 27 15:27 Pictures
                drwx------ 3 sqlpython sqlpython 4096 Nov 8 2010 .pki
                -rw-r--r-- 1 sqlpython sqlpython 37 Oct 1 2010 .printer-groups.xml
                -rw-r--r-- 1 sqlpython sqlpython 675 Sep 30 2010 .profile
                drwxr-xr-x 5 sqlpython sqlpython 4096 Apr 18 11:08 Public
                drwxr-xr-x 3 sqlpython sqlpython 4096 Nov 17 2010 pyNeighborhood
                drwxr-xr-x 2 sqlpython sqlpython 4096 Nov 22 2010 .pyNeighborhood
                drwxr-xr-x 2 sqlpython sqlpython 4096 Apr 14 15:06 .qt
                -rw------- 1 sqlpython sqlpython 20953 Aug 19 20:38 .recently-used
                -rw------- 1 sqlpython sqlpython 2044 Sep 8 15:27 .recently-used.xbel
                drwxr-xr-x 3 sqlpython sqlpython 4096 Nov 8 2010 regexbuddy
                -rw-r--r-- 1 sqlpython sqlpython 4836 Nov 8 2010 .regexbuddy.conf
                drwx------ 4 sqlpython sqlpython 4096 Feb 7 2011 .rpdb2_settings
                drwxr-xr-x 2 sqlpython sqlpython 4096 Oct 5 2010 .sauerbraten
                drwxr-xr-x 11 sqlpython sqlpython 4096 Jun 3 02:18 SharedDocs
                drwxr-xr-x 6 sqlpython sqlpython 4096 Jan 18 2010 skype
                drwx------ 3 sqlpython sqlpython 4096 Aug 25 00:46 .Skype
                -rwxr-xr-x 1 sqlpython sqlpython 27555345 Jun 6 2010 skype_static-2.1.0.81.tar.bz2
                drwxr-xr-x 2 sqlpython sqlpython 4096 Nov 23 2010 smb4k
                -rw-r--r-- 1 sqlpython sqlpython 11420 Jan 31 2011 smb.conf
                -rw-r--r-- 1 root root 825 Jan 16 2011 sources.list
                drwxr-xr-x 2 sqlpython sqlpython 4096 Oct 18 2010 .spyder2
                drwxr-xr-x 6 sqlpython sqlpython 4096 Oct 11 2010 .spyder-2.0.0beta5
                drwxr-xr-x 14 sqlpython sqlpython 4096 Dec 9 2010 sunbird
                drwxr-xr-x 2 sqlpython sqlpython 4096 Nov 17 2010 Templates
                drwx------ 5 sqlpython sqlpython 4096 Feb 3 2011 .thumbnails
                drwxr-xr-x 3 sqlpython sqlpython 4096 Nov 11 2010 .tuxguitar-1.2
                drwx------ 2 sqlpython sqlpython 4096 Feb 28 2011 .update-notifier
                drwxr-xr-x 2 root root 4096 Oct 11 2010 .ure
                drwxr-xr-x 9 sqlpython sqlpython 4096 Jul 20 17:05 Videos
                drwx------ 2 sqlpython sqlpython 4096 Dec 13 2010 .w3m
                -rw-r--r-- 1 sqlpython sqlpython 175 Aug 26 17:24 .winpdb_settings.cfg
                drwxr-xr-x 2 sqlpython sqlpython 4096 Nov 9 2010 .wxglade
                -rw------- 1 sqlpython sqlpython 164 Sep 9 12:13 .Xauthority
                drwxr-xr-x 2 sqlpython sqlpython 4096 Sep 9 12:14 .xine
                -rw------- 1 sqlpython sqlpython 68650 Sep 9 14:05 .xsession-errors
                drwxr-xr-x 3 sqlpython sqlpython 4096 Nov 16 2010 .xsmbrowser
                @

                Edit: Wrapped in @ tags for readability; mlong

                1 Reply Last reply
                0
                • V Offline
                  V Offline
                  vsorokin
                  wrote on last edited by
                  #8

                  More and more strange...
                  Ok, just for test try do it:

                  cd ~/

                  mkdir testdir

                  chmod 777 ./testdir

                  Open Qt Creator

                  Create new project

                  Choose testdir as root dir for project

                  Uncheck "shadow building" checkbox

                  Try build and run app.

                  Also, just in case, run df -h, check space on your disk

                  --
                  Vasiliy

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    sqlpython
                    wrote on last edited by
                    #9

                    sqlpython@bobssl410:~$ cd ~/
                    sqlpython@bobssl410:~$ mkdir testdir
                    sqlpython@bobssl410:~$ chmod 777 ./testdir
                    sqlpython@bobssl410:~$ qtcreator
                    QtCreator(3586)/ KSycocaPrivate::openDatabase: Trying to open ksycoca from "/var/tmp/kdecache-sqlpython/ksycoca4"

                    This worked in so far as the project.............
                    But the RUN Compile went like so..........

                    Running build steps for project helloscript...
                    Starting: /usr/bin/qmake-qt4 /usr/lib/qt4/examples/script/helloscript/helloscript.pro -spec linux-g++ -r CONFIG+=debug
                    Failure to open file: /usr/lib/qt4/examples/script/helloscript/Makefile
                    Unable to generate makefile for: /usr/lib/qt4/examples/script/helloscript/helloscript.pro
                    Exited with code 5.
                    Error while building project helloscript
                    When executing build step 'QMake'

                    1 Reply Last reply
                    0
                    • V Offline
                      V Offline
                      vsorokin
                      wrote on last edited by
                      #10

                      Ahhh, now I see your problem, you tried build Examples from Qt direct from /usr/lib/ directory
                      if you want do it, you should bring examples to your home and change permissions or owner for files and folder, Or you can try just open project settings set "shadow build" and set folder for it in your home folder

                      --
                      Vasiliy

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        sqlpython
                        wrote on last edited by
                        #11

                        Ahh! Yes /usr/lib is of course set to root permissions..
                        I will follow your instructions regarding

                        bq. if you want do it, you should bring examples to your home and change permissions or owner for files and folder, Or you can try just open project settings set “shadow build” and set folder for it in your home folder/bq

                        And will post again after I experiment with settings more in a Day or So..
                        My confusion was that my other IDEs did not give me this problem as none have a component in /usr/lib..

                        Thank You

                        1 Reply Last reply
                        0

                        • Login

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups
                        • Search
                        • Get Qt Extensions
                        • Unsolved