Hi,
I just compiled Tulip 6.0.0 on WSL2 Ubuntu 24.04.2 LTS. I got the following two errors and put my solutions to them.
======= Error 1
CMake Error at library/tulip-ogl/src/CMakeLists.txt:86 (TARGET_LINK_LIBRARIES): The keyword signature for target_link_libraries has already been used with the target "tulip-ogl-6.0". All uses of target_link_libraries with a target must be either all-keyword or all-plain. The uses of the keyword signature are here: * library/tulip-ogl/src/CMakeLists.txt:80 (TARGET_LINK_LIBRARIES)
======= Solution for 1
Add “PRIVATE” so that Line 86 is
TARGET_LINK_LIBRARIES(${LibTulipOGLName} PRIVATE ${JPEG_LIBRARIES} ${PNG_LIBRARIES})
======= Error 2
CMake Error at /usr/share/cmake-3.28/Modules/FindPython/Support.cmake:4073 (add_library):
Cannot find source file:
/home/luod/tulip_src/tulip-6.0.0/build/thirdparty/sip/tulip_native_sip-6.0.0/sip_array.c
Call Stack (most recent call first):
/usr/share/cmake-3.28/Modules/FindPython.cmake:635 (__Python_add_library)
cmake/TulipPython.cmake:162 (Python_add_library)
CMakeLists.txt:234 (INCLUDE)
CMake Error at /usr/share/cmake-3.28/Modules/FindPython/Support.cmake:4073 (add_library):
No SOURCES given to target: sip
Call Stack (most recent call first):
/usr/share/cmake-3.28/Modules/FindPython.cmake:635 (__Python_add_library)
cmake/TulipPython.cmake:162 (Python_add_library)
CMakeLists.txt:234 (INCLUDE)
======= Solution for 2
It took me a short while to realize that this is caused by I have "tulip-6.0.0" in my path. This folder name is auto-generated. The script picks up this one for sip too. I just renamed the folder.
Best,
Roden
Thanks a lot for your report.
Error 1 has been fixed in the current code line.