Hi,

I am trying to build mixxx with test=1 on OSX and got a weird failiure when
compiling gmock-all.cc:

"
WE ARE IN: /Users/Tyler/dev/Audio/mixxx/osx64_build
Building  petrbarborka_fixes  - rev. 5908
Building tests.
scons: done reading SConscript files.
scons: Building targets ...
[CXX] lib/gmock-1.7.0/src/gmock-all.cc
In file included from lib/gmock-1.7.0/src/gmock-all.cc:40:
In file included from lib/gmock-1.7.0/include/gmock/gmock.h:58:
In file included from lib/gmock-1.7.0/include/gmock/gmock-actions.h:46:


lib/gmock-1.7.0/include/gmock/internal/gmock-internal-utils.h:439:27:
error: use of undeclared identifier 'kReference'
    return type(array, N, kReference);
                          ^
lib/gmock-1.7.0/include/gmock/internal/gmock-internal-utils.h:446:27:
error: use of undeclared identifier 'kCopy'; did you mean 'Copy'?
    return type(array, N, kCopy);
                          ^~~~~
                          Copy
lib/gmock-1.7.0/include/gmock/internal/gmock-internal-utils.h:442:15: note:
'Copy' declared here
  static type Copy(const Element (&array)[N]) {
              ^
lib/gmock-1.7.0/include/gmock/internal/gmock-internal-utils.h:464:47:
error: use of undeclared identifier 'kReference'
    return type(get<0>(array), get<1>(array), kReference);
                                              ^
lib/gmock-1.7.0/include/gmock/internal/gmock-internal-utils.h:468:47:
error: use of undeclared identifier 'kCopy'; did you mean 'Copy'?
    return type(get<0>(array), get<1>(array), kCopy);
                                              ^~~~~
                                              Copy
lib/gmock-1.7.0/include/gmock/internal/gmock-internal-utils.h:466:15: note:
'Copy' declared here
  static type Copy(const ::std::tr1::tuple<ElementPointer, Size>& array) {
              ^
4 errors generated.
scons: *** [lib/gmock-1.7.0/src/gmock-all.o] Error 1
"

1) The "undeclared identifiers" are both declared in gtest/gtest.h that is
included in the file gmock-all.cc (which is the one that gives the error).
2) The provided gtest and gmock both build fine separately on my machine.
3) The problem is identical for my Xcode build and my command line
enviroment.
4) I have tried clearing all the cache files and rebuilding several times -
no luck.
5) I have tried searching what I could - no luck.

For the record I also used to have these warnings right before, which I
solved by manually building gtest and gmock in their respective /lib/
folders:
"
ld: warning: directory not found for option '-Llib/gtest-1.7.0/lib'
ld: warning: directory not found for option '-Llib/gmock-1.7.0/lib'
ld: warning: object file (/usr/local/lib/libgmock.a(gmock-all.cc.o)) was
built for newer OSX version (10.11) than being linked (10.7)
ld: warning: object file (/usr/local/lib/libgtest.a(gtest-all.cc.o)) was
built for newer OSX version (10.11) than being linked (10.7)
"

If anyone has any idea what could I do to make it work, please share. Sorry
to bother with another build-related troubleshooting again, but I have
honestly tried everything I could think about and still can't move on.
Thank you for your time.

Best regards,
PB
------------------------------------------------------------------------------
_______________________________________________
Get Mixxx, the #1 Free MP3 DJ Mixing software Today
http://mixxx.org


Mixxx-devel mailing list
Mixxx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mixxx-devel

Reply via email to