yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #09662
[Bug 1195802] Re: 56cdcb breaks LINSOLV compilation on lucid
Reopening. The problem is in fact not linked to flow engine. I think I
spotted the problem in CMakeLists.txt, where yade library is never
defined unless chunkSize=0 (code below). I really wonder why it works on
different platforms, since nobody is typing -DCHUNKSIZE=0, I guess.
cmake ../trunk -DCHUNKSIZE=1
CMake Error at CMakeLists.txt:359 (TARGET_LINK_LIBRARIES):
Cannot specify link libraries for target "yade" which is not built by this
project.
cmake ../trunk -DCHUNKSIZE=0
--> ok
I 'm about to fix that Anton, but since you made this combination of
core/lib/plugins, you maybe have suggestions?
Bruno
==============
IF (CHUNKSIZE)
INCLUDE(CombineSources)
COMBINE_SOURCES(${CMAKE_BINARY_DIR}/core "${SRC_CORE}" ${CHUNKSIZE})
FILE(GLOB SRC_CORE_COMBINED "${CMAKE_BINARY_DIR}/core.*.cpp")
ADD_LIBRARY(core SHARED ${SRC_CORE_COMBINED})
COMBINE_SOURCES(${CMAKE_BINARY_DIR}/pkg "${SRC_PKG}" ${CHUNKSIZE})
FILE(GLOB SRC_PKG_COMBINED "${CMAKE_BINARY_DIR}/pkg.*.cpp")
ADD_LIBRARY(plugins SHARED ${SRC_PKG_COMBINED})
COMBINE_SOURCES(${CMAKE_BINARY_DIR}/lib "${SRC_LIB}" ${CHUNKSIZE})
FILE(GLOB SRC_LIB_COMBINED "${CMAKE_BINARY_DIR}/lib.*.cpp")
ADD_LIBRARY(support SHARED ${SRC_LIB_COMBINED})
ELSE (CHUNKSIZE)
ADD_LIBRARY(yade SHARED ${SRC_CORE} ${SRC_PKG} ${SRC_LIB})
ENDIF (CHUNKSIZE)
--
You received this bug notification because you are a member of Yade
developers, which is subscribed to Yade.
https://bugs.launchpad.net/bugs/1195802
Title:
56cdcb breaks LINSOLV compilation on lucid
Status in Yet Another Dynamic Engine:
In Progress
Bug description:
Now I'm the one who can't compile with linsolv... :-/
First attempt:
-- Could NOT find Metis (missing: METIS_INCLUDE_DIR)
This one was easy to solve, but it doesn't make much sense to force the definition of such a trivial path...
-DMETIS_INCLUDE_DIR="/usr/lib"
Second attempt:
[ 34%] make[2]: *** No rule to make target `/lib/libopenblas.so', needed by `lib/libsupport.so'. Stop.
/lib/libopenblas.so is on my disk though.
Does it work with other linux versions?
To manage notifications about this bug go to:
https://bugs.launchpad.net/yade/+bug/1195802/+subscriptions
References