No targets specified and no makefile found #38

Closed
kytekoz opened this Issue Jun 19, 2014 · 17 comments

Projects

None yet

5 participants

@kytekoz
kytekoz commented Jun 19, 2014

maciyepson:~ kutay$ cd foo
maciyepson:foo kutay$ cd sqlitebrowser
maciyepson:sqlitebrowser kutay$ qmake
maciyepson:sqlitebrowser kutay$ make
make: *** No targets specified and no makefile found. Stop.

How can i solve this error?

@justinclift
Member

Which operating system are you using?

@kytekoz
kytekoz commented Jun 19, 2014

Mac OS X 10.9.3

@justinclift
Member

Interesting. Homebrew is installed, and both qt and sqlite installed from it fine?

@justinclift
Member

Also, can you show the output of ls -la in your sqlitebrowser directory? That'll probably help. 😄

@kytekoz
kytekoz commented Jun 19, 2014

Qt and Sqlite is installed but homebrew was not. I tried again after installing Homebrew, but still there is same error. Here is output of ls - la in sqlitebrowser directory:

maciyepson:sqlitebrowser kutay$ ls -la
total 184
drwxr-xr-x 17 kutay staff 578 19 Haz 17:42 .
drwxr-xr-x 4 kutay staff 136 19 Haz 17:21 ..
-rw-r--r--@ 1 kutay staff 6148 19 Haz 17:42 .DS_Store
drwxr-xr-x 13 kutay staff 442 19 Haz 16:39 .git
-rw-r--r-- 1 kutay staff 371 19 Haz 16:35 .gitignore
-rw-r--r-- 1 kutay staff 1788 19 Haz 16:35 BUILDING
-rw-r--r-- 1 kutay staff 6695 19 Haz 16:35 CMakeLists.txt
-rw-r--r-- 1 kutay staff 52240 19 Haz 16:35 LICENSE
-rw-r--r-- 1 kutay staff 6172 19 Haz 16:35 README.md
-rw-r--r-- 1 kutay staff 63 19 Haz 16:35 currentrelease
drwxr-xr-x 3 kutay staff 102 19 Haz 16:35 distri
drwxr-xr-x 4 kutay staff 136 19 Haz 16:35 images
drwxr-xr-x 6 kutay staff 204 19 Haz 17:24 libs
-rw-r--r-- 1 kutay staff 178 19 Haz 16:35 sqlitebrowser.pro
drwxr-xr-x 3 kutay staff 102 19 Haz 16:44 sqlitebrowser.xcodeproj
drwxr-xr-x 64 kutay staff 2176 19 Haz 16:44 src
drwxr-xr-x 4 kutay staff 136 19 Haz 16:35 tests

@justinclift
Member

k. Looking at that, your "qmake" isn't generating the Makefile (which it should be).

Try running "qmake -d". That '''should''' spit out a bunch of information to say what it's doing. Are you able to cut-n-paste that here (in monospace for readability), or email it to me? (justin@postgresql.org)

Or maybe put it in a GitHub gist if you're more comfortable with that. eg whatever works 😄

Lastly, what did you use to install Qt and SQLite3?

@kytekoz
kytekoz commented Jun 19, 2014

qmake -d result: https://gist.github.com/0e5a3b7085d16dd634b6

Note: At the beginning 'antlr.xcodeproj' in Users/kutay/foo/sqlitebrowser/libs/antlr-2.7.7 has not current extension.(3 or 4 more file had same stiuation) When i was running qmake, terminal says ¨can't find 'antlr.xcodeproj' ¨ or something like that. Then i change *.pro to *.xcodeproj .. It may be important to know.

@justinclift
Member

Yeah, I'm not sure. I'm not a C++ coder, so I'm mostly just guessing here. 😉

Here's the output of qmake -d for me (with a fresh git clone of the sqlitebrowser repo):

https://gist.github.com/justinclift/8b71f6dde186150b616f

It looks like your system is using gcc to compile with, and mine is using clang.

Ummm... would it be feasible for you to install Qt and sqlite3 using Homebrew, as that's known to work?

@MKleusberg
Member

I can only grope about in the dark as well here as I don't have a MacOS system available. However, the interesting information seems to be in line 8 where it says 'MAKEFILE_GENERATOR: :=: (XCODE)'. According to [1] this is a qmake internal variable which defines the tool used for generating the makefiles, in your case XCode which also explains the missing xcodeproj extension.

On my system it's set to 'UNIX' and you seem to be able to override the qmake configuration file which defines this variable. Provided you have the g++ compiler installed you could try this:

qmake -spec macx-g++
make

If you use LLVM/Clang try this:

qmake -spec macx-llvm
make

If you have neither of them installed (and don't want to) manipulating line 7 of your /usr/local/Qt4.8/mkspecs/default/qmake.conf file, changing it from XCODE to UNIX, might work but will probably cause problems later on.

[1] https://stackoverflow.com/questions/11569495/using-os-scope-before-setting-makefile-generator-in-qt

@metalrecker

I had the same issue installing. I definitely had both Qt and SQLite3 installed with brew with no problems.

This worked for me:
qmake -spec macx-g++
make

@justinclift
Member

Thanks @metalrecker, that's really good info. 😄

@kytekoz
kytekoz commented Jun 22, 2014

I found another way to accomplish my duty. When i have free time i'm gonna try your recommendations. Thanks for now :)

@justinclift
Member

😄

@justinclift
Member

@kytekoz Do you have a few minutes to try out @metalrecker's suggestions?

@ynechaev

I was also experiencing this problem on my Mac OS X 10.9.4:

$ qmake
WARNING: Ignored (not found) '/Users/username/Documents/sqlitebrowser/libs/antlr-2.7.7/antlr.xcodeproj'
WARNING: Ignored (not found) '/Users/username/Documents/sqlitebrowser/libs/qhexedit/qhexedit.xcodeproj'
WARNING: Ignored (not found) '/Users/username/Documents/sqlitebrowser/libs/qcustomplot-source/qcustomplot.xcodeproj'
WARNING: Ignored (not found) '/Users/username/Documents/sqlitebrowser/src/sqlitebrowser.xcodeproj'

but this suggestion helped:

qmake -spec macx-llvm
make

Thanks @MKleusberg !

@justinclift
Member

Just added this workaround info in dea0a65. Guessing we can close this issue now?

@justinclift
Member

Closing this now, as the new instructions seem to be working for everyone. 😄

@justinclift justinclift closed this Nov 2, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment