[MacPorts] #51737: New port libpointing

MacPorts noreply at macports.org
Fri Aug 12 13:16:22 PDT 2016


#51737: New port libpointing
--------------------------+--------------------------------
  Reporter:  izzatbek@…   |      Owner:  macports-tickets@…
      Type:  submission   |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:
      Port:  libpointing  |
--------------------------+--------------------------------

Comment (by kenneth.f.cunningham@…):

 I just took a look at this, on MacOSX Snow Leopard with libc++ installed.
 After putting the Portfile into my local repository, the initial build
 went like this:
 {{{

 $ sudo port -v build libpointing
 --->  Computing dependencies for libpointing.
 --->  Building libpointing
 make: Entering directory
 `/opt/local/var/macports/build/_opt_myports_devel_libpointing/libpointing/work/libpointing-0.9.7'
 make: *** No rule to make target `all'.  Stop.
 make: Leaving directory
 `/opt/local/var/macports/build/_opt_myports_devel_libpointing/libpointing/work/libpointing-0.9.7'
 Command failed:  cd
 "/opt/local/var/macports/build/_opt_myports_devel_libpointing/libpointing/work/libpointing-0.9.7"
 && /usr/bin/make -j2 -w all
 }}}

 Going into the directory directly, I could start the build with "make".
 But this failed with
 {{{
 $ make
 g++ -stdlib=libc++ -mmacosx-version-min=10.6 -std=c++11 -Iinclude
 -DPOINTING_XORG  -c -o src/pointing/utils/Base64.o
 src/pointing/utils/Base64.cpp
 cc1plus: error: unrecognized command line option "-stdlib=libc++"
 cc1plus: error: unrecognized command line option "-std=c++11"
 make: *** [src/pointing/utils/Base64.o] Error 1
 }}}

 Editing the Makefile directly, I changed the compiler to clang++ and the
 -mmacosx-version-min to 10.6. The build then went better, until:
 {{{
 In file included from
 src/pointing/input/osx/osxPrivateMultitouchDevice.cpp:16:
 In file included from
 include/pointing/input/osx/osxPrivateMultitouchDevice.h:20:
 include/pointing/input/osx/osxPrivateMultitouchSupport.h:93:40: error:
 unknown type name 'uuid_t'
     MTDeviceRef MTDeviceCreateFromGUID(uuid_t *guid) ; // FIXME: doesn't
 work with MTDeviceGetGUID...
 }}}

 and this was fixed with adding the following to
 pointing/input/osx/osxPrivateMultitouchSupport.h
 {{{
 #include <unistd.h>
 }}}

 After that, the build proceeded successfully (using "make"), and the
 product, was produced.
 {{{
 -rwxr-xr-x  1 root      admin  664904 12 Aug 13:00 libpointing.dylib
 }}}


 The test produced the following, which I presume to be the correct output?
 {{{
 KensMacBookPro:libpointing-0.9.7 cunningh$ sudo make test
 clang++ -stdlib=libc++ -Iinclude -DPOINTING_XORG -mmacosx-version-min=10.6
 -std=c++11 -o src/simpletest src/simpletest.cpp -Llib
 -F/System/Library/PrivateFrameworks -mmacosx-version-min=10.6 -framework
 MultitouchSupport -framework IOKit -framework CoreFoundation -framework
 ApplicationServices -framework AppKit -lpointing
 src/simpletest
 0.9.7 | system xorg subpixel constant interpolation naive sigmoid
 composition
 }}}

 SO - it seems there is no rule for "make all", the compiler should be
 clang++, the macos-min-version can be 10.6 if 10.6 has libc++ is
 installed, and there needs to be a reference to the missing #include in
 the noted file, at least on this system.

 I hope this helps!

 Ken

-- 
Ticket URL: <https://trac.macports.org/ticket/51737#comment:11>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list