Skip to content
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 en casa #23

Open
antoniSepu opened this issue Nov 15, 2018 · 12 comments
Open

Cmake en casa #23

antoniSepu opened this issue Nov 15, 2018 · 12 comments

Comments

@antoniSepu
Copy link
Contributor

A muchos nos está dando problemas el hecho de utilizar el comando cmake desde nuestros ordenadores personales, bien con un sistema operativo ubuntu, o bien utilizando servidores remotos tipo BitviseSSH. Como fmrico me ha comentado esta mañana en clase, sería bueno que como primer issue, nos ayudasemos a recopilar el conjunto de paquetes de linux o windows necesarios para poder utilizar el comando cmake desde casa.
Os invito a que comenteis en este issue los paquetes de programas que habeis utilizado para poder solventar este problema.
Buenas tardes!

@antoniSepu
Copy link
Contributor Author

Aquí va uno que puede que necesiteis:
sudo apt-get install freeglut3-dev

@fmrico
Copy link
Owner

fmrico commented Nov 15, 2018

Hola @antoniSepu

Hay que instalar unas bibliotecas de comunicaciones llamadas Ice y IceUtils. Prueba a instalar alguna de estas para terminar de resolver las dependencias de compilación:

zeroc-ice35
libzeroc-ice35-dev
libiceutil35v5
libice-dev

Dime qué tal te va.

@PabloAsensio
Copy link

Hola @fmrico @antoniSepu

Una vez instaladas las bibliotecas me aparecen los siguientes warnings y errores:

  • `CMake Warning (dev) at /usr/share/cmake-3.12/Modules/FindOpenGL.cmake:270 (message):
    Policy CMP0072 is not set: FindOpenGL prefers GLVND by default when
    available. Run "cmake --help-policy CMP0072" for policy details. Use the
    cmake_policy command to set the policy and suppress this warning.

    FindOpenGL found both a legacy GL library:

    OPENGL_gl_LIBRARY: /usr/lib/x86_64-linux-gnu/libGL.so

    and GLVND libraries for OpenGL and GLX:

    OPENGL_opengl_LIBRARY: /usr/lib/x86_64-linux-gnu/libOpenGL.so
    OPENGL_glx_LIBRARY: /usr/lib/x86_64-linux-gnu/libGLX.so

    OpenGL_GL_PREFERENCE has not been set to "GLVND" or "LEGACY", so for
    compatibility with CMake 3.10 and below the legacy GL library will be used.`

  • Call Stack (most recent call first): CMakeLists.txt:8 (find_package) This warning is for project developers. Use -Wno-dev to suppress it.

  • `CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
    Please set them or make sure they are set and tested correctly in the CMake files:
    iceutil_lib
    linked by target "ATCSim" in directory /xxx/xxx/git/ATCSim
    linked by target "cppgui" in directory /xxx/xxx/git/ATCSim

-- Configuring incomplete, errors occurred!
See also "/xxx/xxxgit/ATCSim/build_linux/CMakeFiles/CMakeOutput.log".
See also "/xxx/xxx/git/ATCSim/build_linux/CMakeFiles/CMakeError.log".`

¿Sabéis cómo solventarlos?

@fmrico
Copy link
Owner

fmrico commented Nov 18, 2018

Ahora mismo solo te debería preocupar el error de que no encuentre iceutil_lib ¿Instalaste libiceutil35v5?

@PabloAsensio
Copy link

Sí, sigue sin localizarla tanto en MacOS como en Ubuntu.

@antoniSepu
Copy link
Contributor Author

Estos comandos pueden ser de utilidad ya sirven para buscar el paquete de instalación de la librería o para ver si ya la tenemos instalada.
apt-cache search libiceutil35v5
apt-cache search libiceutil
dpkg -l
dpkg -l| iceutil
dpkg -l| grep iceutil

@fmrico
Copy link
Owner

fmrico commented Nov 19, 2018

Esto es un error

dpkg -l| iceutil

;)

@elazarorod
Copy link

A la hora de realizar cmake desde el ordenador me sale el siguiente error:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
iceutil_lib
linked by target "Position_test" in directory /home/evasturi/Escritorio/git/ATCSim
linked by target "ATCSim" in directory /home/evasturi/Escritorio/git/ATCSim
linked by target "Flight_test" in directory /home/evasturi/Escritorio/git/ATCSim
linked by target "ATCSimLib" in directory /home/evasturi/Escritorio/git/ATCSim
linked by target "cppgui" in directory /home/evasturi/Escritorio/git/ATCSim

-- Configuring incomplete, errors occurred!
See also "/home/evasturi/Escritorio/git/ATCSim/build/CMakeFiles/CMakeOutput.log".
See also "/home/evasturi/Escritorio/git/ATCSim/build/CMakeFiles/CMakeError.log".

¿Alguien sabe como solucionarlo?

@PabloAsensio
Copy link

Hola a todos.
El problema esta solucionado:
Para los que usamos la versión 3.7 de ice, la biblioteca IceUtil pasa a estar incluida de la ultima versión de ice.
Debeis comentar la linea que dice FIND_LIBRARY(iceutil_lib IceUtil) en el CMakeLists.txt.

https://doc.zeroc.com/ice/3.7/release-notes/upgrading-your-application-from-ice-3-6#id-.UpgradingyourApplicationfromIce3.6v3.7-IceUtilLibraryRemoved

@pvazquezvg
Copy link

Buenas tardes a todos, me sale este fallo al intentar compilar el programa en casa:
-- Ice version:
CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Failed to find all Ice components (missing: Ice_SLICE2CPP_EXECUTABLE
Ice_INCLUDE_DIR Ice_SLICE_DIR)
Call Stack (most recent call first):
/usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.10/Modules/FindIce.cmake:531 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:22 (find_package)

-- Configuring incomplete, errors occurred!
See also "/home/pvazquez/practicaf/ATCSim/build/CMakeFiles/CMakeOutput.log".

He intentado descargarme los paquetes que escribio Paco en un correo pero me ponen que no los encuentra, entonces no se como puede hacer para obtenerlos tambien.
Si alguien sabe resolverlo, seria de gran ayuda su respuesta.

Muchas gracias de antemano chicos!!

@antoniSepu
Copy link
Contributor Author

Buenas compañeros, dado que ultimamente me están llegando dudas de distintas personas que están instalando Ubuntu 18.04.1 LTS y quieren solventar este problema, voy a intentar aclarar y simplificar algunos de los paquetes necesarios para esta versión, desde cero:

  • En primer lugar se necesitan descargar los compiladores de C/C++ ya que he observado que en algunas instalaciones no se encuentran. El paquete necesario es: sudo apt-get install build-essential

  • Para descargar las librerías (Ubuntu 18.04.1 LTS):
    sudo apt-get install freeglut3-dev
    sudo apt-get install libzeroc-ice-dev
    sudo apt-get install libzeroc-ice-dev:i38

Espero ayudaros.

@Davidln21
Copy link
Contributor

Hola a todos, puntualizar solamente que el último comando para las librerías se trata del siguiente:

  • sudo apt-get install libzeroc-ice-dev:i386

Además, para los que os habéis instalado Ubuntu, previamente debéis instalar el paquete correspondiente al comando cmake, así como el correspondiente a los comandos de git:

  • sudo apt install cmake
  • sudo apt install git

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants