-
Notifications
You must be signed in to change notification settings - Fork 7.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cmake linux mac fixes #9218
Cmake linux mac fixes #9218
Conversation
…ONTCONFIG_INCLUDE_DIRS was empty (on CentOS 6.5 for example)
…tions we should declare feature-check-marco... Define _DARWIN_C_SOURCE should enable all mac os non standard extensions.
…hat linux distros not supported this option mostly
…en build luasocket, so all types and func properly defined
how can I help you with the Flatbuffer thing? |
[ci rebuild] |
2 similar comments
[ci rebuild] |
[ci rebuild] |
It seems that linux is still broken. |
@AndyQue |
…h>', but we use '#include "glfw3.h"', fix include dir.
Now this should work (still wait CI cluster to complete the buidl). @AndyQue, thanks! Of course in static linking order is important. And now FindGLWF.cmake returns libraries in right order, because pkg-config returns information in right order. @ricardoquesada, @minggo After the CI complete, this PR can be merged. |
Seems, that CI cluster is very slow, or something bad with windows node ( |
[ci rebuild] |
1 similar comment
[ci rebuild] |
@vovkasm Thoughts? |
@AndyQue
It will be very helpful if I can see output of this commands executed on build box: cmake --version
pkg-config --version
ls /usr/local/lib/pkgconfig
pkg-config --static --libs glfw3
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig pkg-config --static --libs glfw3 Also, if last command returns list of libraries, than may be simpler to set PKG_CONFIG_PATH in CI build script before run For example output of these commands on my VM with centos-6.5:
|
@vovkasm The output is as follow:
Is anything wrong here? |
@AndyQue no, seems okay (But I wonder that pkg-config by default search in |
@AndyQue |
…o NEW for predictable include behaviour
@vovkasm |
Yea! CI show that can't find pkg-config... Bad ( |
@vovkasm |
@vovkasm |
@AndyQue |
[ci rebuild] |
In any case, then we can run cmake as |
@vovkasm |
@AndyQue, you can fist try this by hand. (On you custom checkout on build machine, only cmake, not need to run full build) |
@vovkasm |
@vovkasm |
@vovkasm |
It works on CI... (build not finished yet, but config seems more good: Seems, that someone make bad things with file I will need to remove all debug info after (if) build success. And than this request can be merged. |
@AndyQue , thank you VERY MACH for help! Without you help, we wouldn't resolve this problem! |
@vovkasm |
@vovkasm |
@vovkasm |
@AndyQue
I don't know jenkins in deep. My first install with slaves was, when I need self build-cluster for building cocos on various systems, because tests all environments by hand after change one line in |
@vovkasm |
@AndyQue |
@minggo |
Cmake linux mac fixes
I'm trying to compile it in my Ubuntu machine and it can't find GLFW. I'm on Ubuntu 14.10. any idea? what debug information should I post? |
Hi @ricardoquesada |
@vovkasm ok. thanks! |
@ricardoquesada |
This should fix 3 issue with my previous path for cmake build system.
pkg-config --static --libs
not works on almost any Linux distros. So do not try to do it ever. (Someone who needs fully static build on linux, can improve prebuilt libs in external).pkg-config
returns empty include dirs, because package in standard search location for compiler.All this fixed now. And tested, but not against current state. Because after commit: Merge pull request #9193 from pipu/v3_flatbuffers build fully broken as folder external not contains source code for flatbuffers (