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?
Which operating system are you using?
Mac OS X 10.9.3
Interesting. Homebrew is installed, and both qt and sqlite installed from it fine?
Also, can you show the output of ls -la in your sqlitebrowser directory? That'll probably help. 😄
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
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
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? (firstname.lastname@example.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?
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.
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):
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?
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  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++
If you use LLVM/Clang try this:
qmake -spec macx-llvm
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.
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++
Thanks @metalrecker, that's really good info. 😄
I found another way to accomplish my duty. When i have free time i'm gonna try your recommendations. Thanks for now :)
@kytekoz Do you have a few minutes to try out @metalrecker's suggestions?
I was also experiencing this problem on my Mac OS X 10.9.4:
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
Thanks @MKleusberg !
Just added this workaround info in dea0a65. Guessing we can close this issue now?
Closing this now, as the new instructions seem to be working for everyone. 😄