You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@celix.apache.org by GitBox <gi...@apache.org> on 2020/02/25 12:53:59 UTC

[GitHub] [celix] andre2007 opened a new issue #157: Unable to compile etcdlib

andre2007 opened a new issue #157: Unable to compile etcdlib
URL: https://github.com/apache/celix/issues/157
 
 
   I tried different released versions of celix. Every version returns another error message.
   
   This is my dockerfile for recent version 2.2.0
   
   ``` dockerfile
   FROM debian:stretch
   
   RUN apt-get update && apt-get install -y libcurl4-openssl-dev curl unzip build-essential libidn11 zip libjansson-dev uuid-dev
   
   RUN curl -OL https://cmake.org/files/v3.2/cmake-3.2.3-Linux-x86_64.sh \
       && mkdir /opt/cmake \
       && sh /cmake-3.2.3-Linux-x86_64.sh --prefix=/opt/cmake --skip-license \
       && ln -s /opt/cmake/bin/cmake /usr/local/bin/cmake
   
   RUN curl -OL https://github.com/apache/celix/archive/rel/celix-2.2.0.zip \
       && unzip celix-2.2.0.zip \
       && cd celix-rel-celix-2.2.0/libs/etcdlib \
       && mkdir build \
       && cd build \
       && cmake .. \
       && make
   ```
   
   It fails with
   > CMake Error at CMakeLists.txt:44 (add_library):
     Target "etcdlib" links to target "CURL::libcurl" but the target was not
     found.  Perhaps a find_package() call is missing for an IMPORTED target, or
     an ALIAS target is missing?
   
   What do I miss?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [celix] andre2007 commented on issue #157: Unable to compile etcdlib

Posted by GitBox <gi...@apache.org>.
andre2007 commented on issue #157: Unable to compile etcdlib
URL: https://github.com/apache/celix/issues/157#issuecomment-593066307
 
 
   @pnoltes yes, this works fine. Thanks a lot.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [celix] pnoltes edited a comment on issue #157: Unable to compile etcdlib

Posted by GitBox <gi...@apache.org>.
pnoltes edited a comment on issue #157: Unable to compile etcdlib
URL: https://github.com/apache/celix/issues/157#issuecomment-592950852
 
 
   The handling of building/linking against CURL and Jansson has been updated in Celix. 
   These changes where not applied for the etcdlib project.
   
   @andre2007 Could you check if the hotfix branch works for you?
   
   Below the Dockerfile adjusted for the celix hotfix branch:
   ```Dockerfile
   FROM debian:stretch
   
   RUN apt-get update && apt-get install -y libcurl4-openssl-dev curl unzip build-essential libidn11 zip libjansson-dev uuid-dev
   
   RUN curl -OL https://cmake.org/files/v3.2/cmake-3.2.3-Linux-x86_64.sh \
       && mkdir /opt/cmake \
       && sh /cmake-3.2.3-Linux-x86_64.sh --prefix=/opt/cmake --skip-license \
       && ln -s /opt/cmake/bin/cmake /usr/local/bin/cmake
   
   RUN curl -OL https://github.com/apache/celix/archive/hotfix/%23157-build-etcdlib-issues.zip \
       && unzip %23157-build-etcdlib-issues.zip \
       && cd celix-*/libs/etcdlib \
       && mkdir build \
       && cd build \
       && cmake .. \
       && make -j
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [celix] pnoltes edited a comment on issue #157: Unable to compile etcdlib

Posted by GitBox <gi...@apache.org>.
pnoltes edited a comment on issue #157: Unable to compile etcdlib
URL: https://github.com/apache/celix/issues/157#issuecomment-592951074
 
 
   - [ ] @pnoltes  When the hotfix is merged back to develop, also update the travis config to build etcdlib separately from Celix.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [celix] pnoltes commented on issue #157: Unable to compile etcdlib

Posted by GitBox <gi...@apache.org>.
pnoltes commented on issue #157: Unable to compile etcdlib
URL: https://github.com/apache/celix/issues/157#issuecomment-592951074
 
 
   - [ ] When the hotfix is merged back to develop, also update the travis config to build etcdlib separately from Celix.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [celix] pnoltes commented on issue #157: Unable to compile etcdlib

Posted by GitBox <gi...@apache.org>.
pnoltes commented on issue #157: Unable to compile etcdlib
URL: https://github.com/apache/celix/issues/157#issuecomment-592950852
 
 
   The handling of building/linking against CURL and Jansson has been updated in Celix. 
   These changes for not applied for the etcdlib project.
   
   @andre2007 Could you check if the hotfix branch works for you?
   
   Below the Dockerfile adjusted for the celix hotfix branch:
   `FROM debian:stretch
   
   RUN apt-get update && apt-get install -y libcurl4-openssl-dev curl unzip build-essential libidn11 zip libjansson-dev uuid-dev
   
   RUN curl -OL https://cmake.org/files/v3.2/cmake-3.2.3-Linux-x86_64.sh \
       && mkdir /opt/cmake \
       && sh /cmake-3.2.3-Linux-x86_64.sh --prefix=/opt/cmake --skip-license \
       && ln -s /opt/cmake/bin/cmake /usr/local/bin/cmake
   
   RUN curl -OL https://github.com/apache/celix/archive/hotfix/%23157-build-etcdlib-issues.zip \
       && unzip %23157-build-etcdlib-issues.zip \
       && cd celix-*/libs/etcdlib \
       && mkdir build \
       && cd build \
       && cmake ..`

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [celix] pnoltes edited a comment on issue #157: Unable to compile etcdlib

Posted by GitBox <gi...@apache.org>.
pnoltes edited a comment on issue #157: Unable to compile etcdlib
URL: https://github.com/apache/celix/issues/157#issuecomment-592950852
 
 
   The handling of building/linking against CURL and Jansson has been updated in Celix. 
   These changes where not applied for the etcdlib project.
   
   @andre2007 Could you check if the hotfix branch works for you?
   
   Below the Dockerfile adjusted for the celix hotfix branch:
   ```Dockerfile
   FROM debian:stretch
   
   RUN apt-get update && apt-get install -y libcurl4-openssl-dev curl unzip build-essential libidn11 zip libjansson-dev uuid-dev
   
   RUN curl -OL https://cmake.org/files/v3.2/cmake-3.2.3-Linux-x86_64.sh \
       && mkdir /opt/cmake \
       && sh /cmake-3.2.3-Linux-x86_64.sh --prefix=/opt/cmake --skip-license \
       && ln -s /opt/cmake/bin/cmake /usr/local/bin/cmake
   
   RUN curl -OL https://github.com/apache/celix/archive/hotfix/%23157-build-etcdlib-issues.zip \
       && unzip %23157-build-etcdlib-issues.zip \
       && cd celix-*/libs/etcdlib \
       && mkdir build \
       && cd build \
       && cmake ..
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [celix] pnoltes edited a comment on issue #157: Unable to compile etcdlib

Posted by GitBox <gi...@apache.org>.
pnoltes edited a comment on issue #157: Unable to compile etcdlib
URL: https://github.com/apache/celix/issues/157#issuecomment-592950852
 
 
   The handling of building/linking against CURL and Jansson has been updated in Celix. 
   These changes for not applied for the etcdlib project.
   
   @andre2007 Could you check if the hotfix branch works for you?
   
   Below the Dockerfile adjusted for the celix hotfix branch:
   ```Dockerfile
   FROM debian:stretch
   
   RUN apt-get update && apt-get install -y libcurl4-openssl-dev curl unzip build-essential libidn11 zip libjansson-dev uuid-dev
   
   RUN curl -OL https://cmake.org/files/v3.2/cmake-3.2.3-Linux-x86_64.sh \
       && mkdir /opt/cmake \
       && sh /cmake-3.2.3-Linux-x86_64.sh --prefix=/opt/cmake --skip-license \
       && ln -s /opt/cmake/bin/cmake /usr/local/bin/cmake
   
   RUN curl -OL https://github.com/apache/celix/archive/hotfix/%23157-build-etcdlib-issues.zip \
       && unzip %23157-build-etcdlib-issues.zip \
       && cd celix-*/libs/etcdlib \
       && mkdir build \
       && cd build \
       && cmake ..
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services