Single quote character in path name breaks compilation · Issue #10 · sqlitebrowser/sqlitebrowser · GitHub
Skip to content

Single quote character in path name breaks compilation #10

Closed

Description

@justinclift

Tim Streater reported on the sqlite-users mailing list:

Warn folks not to have a single-quote (') in their path, it causes
the make of sqlitebrowser to fail. I moved the folder elsewhere and
redid the qmake, make, steps and it completed.

In testing here:

$ mkdir foo\'
$ cd foo\'
$ pwd
/Users/jc/tmp/foo'
$ git clone https://github.com/sqlitebrowser/sqlitebrowser.git
Cloning into 'sqlitebrowser'...
remote: Reusing existing pack: 4556, done.
remote: Counting objects: 19, done.
remote: Compressing objects: 100% (18/18), done.
remote: Total 4575 (delta 7), reused 0 (delta 0)
Receiving objects: 100% (4575/4575), 6.23 MiB | 572 KiB/s, done.
Resolving deltas: 100% (2757/2757), done.
$ cd sqlitebrowser/
$ qmake
$ make
cd libs/antlr-2.7.7/ && /usr/local/bin/qmake /Users/jc/tmp/foo'/sqlitebrowser/libs/antlr-2.7.7/antlr.pro -o Makefile.antlr
/bin/sh: -c: line 0: unexpected EOF while looking for matching `''
/bin/sh: -c: line 1: syntax error: unexpected end of file
make: *** [libs/antlr-2.7.7/Makefile.antlr] Error 2

Activity

  1. changed the title [-]Single quota character in path name breaks compilation[/-] [+]Single quote character in path name breaks compilation[/+] on May 21, 2014
  2. MKleusberg commented on May 22, 2014

    @MKleusberg
    Member

    Hmm, there doesn't seem to be an easy way of solving this problem. In my opionion this should be fixed in qmake - but that's just what I think :)
    I was able to fix this issue half way but in the end it doesn't seem to be feasible without complex changes to the project files. Or maybe it's not possible at all with our project structure of 3 libraries and the application.
    For MacOS users I'd suggest falling back to another path name, for users of all other Unixes using cmake (assuming cmake handles this better).

  3. MKleusberg commented on Jul 31, 2014

    @MKleusberg
    Member

    I'm closing this issue as there is no way we'll be able to fix this in the qmake build process. cmake on the other hand works just fine with single quotes in the path name. So if somebody really wants to have them in their path name, that's fine - just make sure you use cmake.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugConfirmed bugs or reports that are very likely to be bugs.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions