Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Segmentation fault: 11 when testing a Qt project in a MacOS virtual machine
Forum Updated to NodeBB v4.3 + New Features

Segmentation fault: 11 when testing a Qt project in a MacOS virtual machine

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 1.7k 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.
  • D Offline
    D Offline
    Diracsbracket
    wrote on 21 Oct 2017, 09:12 last edited by
    #1

    Hi,
    This is not really a question but a post for reference.
    If you develop your Qt project on a Windows machine, as I am, and then try it out on a Mac OS X virtual machine (I use VMWare Player), then you will get an error like this one if you start the project from a shared folder that you mount via VMWare:

    clang: error: unable to execute command: Segmentation fault: 11
    clang: error: clang frontend command failed due to signal (use -v to see invocation)
    Apple LLVM version 8.0.0 (clang-800.0.42.1)
    Target: x86_64-apple-darwin15.6.0
    Thread model: posix
    InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
    clang: note: diagnostic msg: PLEASE submit a bug report to http://developer.apple.com/bugreporter/ and include the crash backtrace, preprocessed source, and associated run script.
    clang: error: unable to execute command: Segmentation fault: 11
    clang: note: diagnostic msg: Error generating preprocessed source(s).
    make: *** [audioengine.o] Error 254
    15:18:18: The process "/usr/bin/make" exited with code 2.
    Error while building/deploying project mytest (kit: Desktop Qt 5.9.1 clang 64bit)
    When executing step "Make"
    15:18:18: Elapsed time: 00:02.
    

    To avoid this error, I just copied the project to a local folder on my virtual Mac drive.

    1 Reply Last reply
    1
    • D Offline
      D Offline
      Diracsbracket
      wrote on 21 Oct 2017, 16:31 last edited by Diracsbracket
      #2

      Probably the project should also work from the VM Mounted drive if you set your shadow build directory to a Mac local drive instead. I did not think of that at first...

      This then raises the question if you can set the shadow build directory in the .pro file or so and use selectors to switch between build environments. If that is possible, than I could use the same shared source directory for both my Windows and my MacOS Qt projects and avoid the copying to the local Mac drive.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 21 Oct 2017, 21:21 last edited by
        #3

        Hi,

        Usually you would use a VCS repository to share between the tow machines. You don't need a remote git server, you can use a local git repository and checkout your project from there. Simple stuff like file ending conversion is managed for you by git itself so you don't have to worry about that kind of difference between OSes.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        D 1 Reply Last reply 23 Oct 2017, 09:14
        2
        • S SGaist
          21 Oct 2017, 21:21

          Hi,

          Usually you would use a VCS repository to share between the tow machines. You don't need a remote git server, you can use a local git repository and checkout your project from there. Simple stuff like file ending conversion is managed for you by git itself so you don't have to worry about that kind of difference between OSes.

          D Offline
          D Offline
          Diracsbracket
          wrote on 23 Oct 2017, 09:14 last edited by
          #4

          @SGaist
          Great suggestion, thanks!

          1 Reply Last reply
          0

          1/4

          21 Oct 2017, 09:12

          • Login

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