Problem running Cmake on Yosemite for Mac

CodeLite installation/troubleshooting forum
pdenlinger
CodeLite Curious
Posts: 7
Joined: Wed Oct 22, 2014 12:33 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Problem running Cmake on Yosemite for Mac

Post by pdenlinger »

I deleted all my files for wxWidget and decided to do a new installation following the instructions on how to install CodeLite on Mac.

Had a problem when I got to the

../configure --enable-shared --enable-monolithic --with-osx_cocoa CXX='clang++ -std=c++11 -stdlib=libc++' CC=clang --with-macosx-version-min=10.8 --disable-debug

command. Here is the output from that command, and the commands preceding it:

Code: Select all

Pauls-MacBook-Air:wxWidgets-3.0.2 pdenlinger$ mkdir build-release
Pauls-MacBook-Air:wxWidgets-3.0.2 pdenlinger$ cd build-release
Pauls-MacBook-Air:build-release pdenlinger$ ../configure ../configure --enable-shared --enable-monolithic --with-osx_cocoa CXX='clang++ -std=c++11 -stdlib=libc++' CC=clang --with-macosx-version-min=10.8 --disable-debug
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type: ../configure
checking build system type... Invalid configuration `../configure': machine `../configure' not recognized
configure: error: /bin/sh ../config.sub ../configure failed
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Problem running Cmake on Yosemite for Mac

Post by eranif »

../configure ../configure --enable-shared --enable-monolithic --with-osx_cocoa CXX='clang++ -std=c++11 -stdlib=libc++' CC=clang --with-macosx-version-min=10.8 --disable-debug
You typed one "../configure" too much...

It should be:

Code: Select all

../configure --enable-shared --enable-monolithic --with-osx_cocoa CXX='clang++ -std=c++11 -stdlib=libc++' CC=clang --with-macosx-version-min=10.8 --disable-debug
Eran
Make sure you have read the HOW TO POST thread
pdenlinger
CodeLite Curious
Posts: 7
Joined: Wed Oct 22, 2014 12:33 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Problem running Cmake on Yosemite for Mac

Post by pdenlinger »

While building wxWidgets, I entered the make -j4 command, and it gave me the following warnings:

Code: Select all

../src/osx/webview_webkit.mm:392:30: warning: incompatible pointer types sending 'WebViewUIDelegate *' to parameter of type
      'id<WKUIDelegate>' [-Wincompatible-pointer-types]
    [m_webView setUIDelegate:uiDelegate];
                             ^~~~~~~~~~
../src/osx/webview_webkit.mm:464:34: warning: 'WKPreferences' may not respond to 'setUsesPageCache:'
        [[m_webView preferences] setUsesPageCache:NO];
         ~~~~~~~~~~~~~~~~~~~~~~~ ^
../src/osx/webview_webkit.mm:466:34: warning: 'WKPreferences' may not respond to 'setUsesPageCache:'
        [[m_webView preferences] setUsesPageCache:YES];
         ~~~~~~~~~~~~~~~~~~~~~~~ ^
../src/osx/webview_webkit.mm:936:25: error: cannot initialize a variable of type 'WebBackForwardList *' with an rvalue of type
      'WKBackForwardList *'
    WebBackForwardList* history = [m_webView backForwardList];
                        ^         ~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/osx/webview_webkit.mm:954:25: error: cannot initialize a variable of type 'WebBackForwardList *' with an rvalue of type
      'WKBackForwardList *'
    WebBackForwardList* history = [m_webView backForwardList];
                        ^         ~~~~~~~~~~~~~~~~~~~~~~~~~~~
3 warnings and 2 errors generated.
make: *** [monodll_osx_webview_webkit.o] Error 1
make: *** Waiting for unfinished jobs....
Pauls-MacBook-Air:build-release pdenlinger$ sudo make install
I tried to enter the following sudo make install to complete the build, but I only got the same warnings (3 times).
Post Reply