-
Notifications
You must be signed in to change notification settings - Fork 24
[COMPILATION ERROR] Tulip 3.5.1 doesn't compile on Fedora 31 #167
Comments
There was an error when cmake checked for pthread_create function. |
Yes I had doubt about that... But where I change this ? |
May be https://stackoverflow.com/questions/31948521/building-error-using-cmake-cannot-find-lpthreads could give an answer. |
@lynerlok , what is exactly your compilation error ? The content of the
|
Yes I put errors here ! I could try with docker to... Maybe it an error due to virtualization... -- Found OpenMP_C: -fopenmp FindOpenGL found both a legacy GL library:
and GLVND libraries for OpenGL and GLX:
OpenGL_GL_PREFERENCE has not been set to "GLVND" or "LEGACY", so for -- Could NOT find QUAZIP (missing: QUAZIP_LIBRARIES) -- Configuring incomplete, errors occurred! |
I test with change PATH in CMAKE-gui to but no more results |
@lynerlok , you need to install the following dependencies in Fedora 31 to be able to compile Tulip:
|
@anlambert , Ho yes I forgot these deps... Installation is ok now and configure is ok too. I'm building then I report result ! |
@anlambert , Ok I have some errors on cmake linking with GLEW. I have glew and glew devel installed [100%] Linking CXX executable tulip |
Indeed something is wrong with glew linkage on latest Fedora. It seems you are not the only one that encountered that issue as it has already been reported I give a look and I get back to you. |
Turns out that issue has been fixed in the master branch but indeed appears in the Tulip 5.3.1 release if you are using CMake >= 3.15 (Fedora 31 offers CMake 3.16.2 QED). You can fix it by applying that diff to the root |
Thank you, I try to compil with fedora in docker. I make this dockerfile is it correct ? FROM fedora:31 WORKDIR /media/Datas RUN dnf install -y ADD ./tulip-5.3.1 ./tulip-5.3.1 RUN cd ./tulip-5.3.1 && mkdir -p build && cd build && cmake .. && cmake --build . |
@lynerlok , please find below a dockerfile that will suit your need: FROM fedora:31
# install Tulip deps
RUN dnf install -y \
git \
cmake \
g++ \
make \
binutils-devel \
zlib-devel \
qhull-devel \
yajl-devel \
libjpeg-devel \
libpng-devel \
glew-devel \
freetype-devel \
qt5-qtbase-devel \
qt5-qtwebkit-devel \
quazip-qt5-devel \
python3-devel \
python3-sip-devel \
python3-sphinx \
doxygen
# clone Tulip repo
RUN git clone https://github.com/Tulip-dev/tulip
# checkout commit fixing the glew link issue on Fedora 31 (pushed just after the tulip_5_3_1 tag)
RUN cd tulip && git checkout ed8f1a059ebcf88cd14f072895c57a53a68ec97f
# build Tulip
RUN cd tulip && mkdir build && cd build && cmake .. && cmake --build .
|
@anlambert Thanks ! it's ok I compiled and install. But when I run docker I have an error ( I have this error not only with tulip ). I think I need to create some links or somthing like that no ? docker run -it --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix fedora-tulip tulip_perspective Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb. TLP_PLATEFORM linux |
Sorry for the previous useless comment... QT run with non-root user and I run tulip as root ! FROM fedora:31 WORKDIR /media/Datas RUN dnf install -y ADD ./tulip-5.3.1 ./tulip-5.3.1 RUN cd ./tulip-5.3.1 && mkdir -p build && cd build && cmake .. && make -j4 RUN cd ./tulip-5.3.1/build && make install RUN useradd -m user USER user |
Hello,
I have some trouble when I want compile Tulip 5.3.1 on virtualized Fedora 31. The host is Fedora 31 also. I attach Cmake log files. All libs are installed.
CMakeError.log
CMakeOutput.log
Tell me if you want other information.
The text was updated successfully, but these errors were encountered: