On 07/27/2011 01:14 PM, Sanatan Rai wrote:
Hi,
This is a newbie question. So apologies in advance if this is covered
somewhere in the docs (I haven't been able to find a satisfactory
explanation).
The issue is this:
* I have a library called (lib)atmath as per:
Hi,
This is a newbie question. So apologies in advance if this is covered
somewhere in the docs (I haven't been able to find a satisfactory explanation).
The issue is this:
* I have a library called (lib)atmath as per:
include_directories(${at_SOURCE_DIR})
add_library(atfwmath RngStream.cpp
On Wed, 2011-07-27 at 12:14 +0100, Sanatan Rai wrote:
Hi,
This is a newbie question. So apologies in advance if this is
covered
somewhere in the docs (I haven't been able to find a satisfactory
explanation).
The issue is this:
* I have a library called (lib)atmath as per:
Hi Sanatan,
If you didn't make any copy/paste errors, then I think you made a typo.
add_library(atfwmath RngStream.cpp RngStream.h coin.cpp coin.hpp)
:
:
target_link_libraries(bt atidt atmath boost_date_time
boost_program_options)
See: atfwmath versus atmath. You should fix your
include_directories(${at_SOURCE_DIR})
add_library(atfwmath RngStream.cpp RngStream.h coin.cpp coin.hpp)
target_link_libraries(atfwmath)
You are telling CMake here that atfwmath should be linked against
something. But you don't tell it against what.
Eike
On 27 July 2011 12:33, Marcel Loose lo...@astron.nl wrote:
Hi Sanatan,
If you didn't make any copy/paste errors, then I think you made a typo.
add_library(atfwmath RngStream.cpp RngStream.h coin.cpp coin.hpp)
:
:
target_link_libraries(bt atidt atmath boost_date_time
boost_program_options)
On 27 July 2011 12:37, Rolf Eike Beer e...@sf-mail.de wrote:
include_directories(${at_SOURCE_DIR})
add_library(atfwmath RngStream.cpp RngStream.h coin.cpp coin.hpp)
target_link_libraries(atfwmath)
You are telling CMake here that atfwmath should be linked against
something. But you don't tell
Hi,
is that a valid CMake instruction ?
target_link_libraries(bt -Wl,-whole-archive -L../idt/ -latidt
-Wl,-no-whole-archive)
I thought you were supposed to use
set_target_properties(bt PROPERTIES LINK_FLAGS -Wl,-whole-archive -L../idt/
-latidt -Wl,-no-whole-archive)
Maxime
2011/7/27 Sanatan
On 27 July 2011 13:20, Maxime Lecourt maxime.leco...@gmail.com wrote:
Hi,
is that a valid CMake instruction ?
target_link_libraries(bt -Wl,-whole-archive -L../idt/ -latidt
-Wl,-no-whole-archive)
Yes, it certainly works.
I thought you were supposed to use
set_target_properties(bt
On Nov 7, 2007 2:12 AM, Salvatore Iovene
[EMAIL PROTECTED] wrote:
Hi,
I'm not 100% sure this is really a CMake related question, but I'll
fire it up anyway:
I'm building a series of static libraries, name them liba.a, libb.a
and libc.a, and linking them into a shared library libfoo.so.
On 11/7/07, Brandon Van Every [EMAIL PROTECTED] wrote:
On Nov 7, 2007 2:12 AM, Salvatore Iovene
[EMAIL PROTECTED] wrote:
Hi,
I'm not 100% sure this is really a CMake related question, but I'll
fire it up anyway:
I'm building a series of static libraries, name them liba.a, libb.a
and
On 07 Nov 2007, at 09:59, Salvatore Iovene wrote:
On 11/7/07, Brandon Van Every [EMAIL PROTECTED] wrote:
On Nov 7, 2007 2:12 AM, Salvatore Iovene
[EMAIL PROTECTED] wrote:
Hi,
I'm not 100% sure this is really a CMake related question, but I'll
fire it up anyway:
I'm building a series of
On 11/7/07, Renaud Detry [EMAIL PROTECTED] wrote:
On 07 Nov 2007, at 09:59, Salvatore Iovene wrote:
On 11/7/07, Brandon Van Every [EMAIL PROTECTED] wrote:
On Nov 7, 2007 2:12 AM, Salvatore Iovene
[EMAIL PROTECTED] wrote:
Hi,
I'm not 100% sure this is really a CMake related question,
On 11/7/07, Renaud Detry [EMAIL PROTECTED] wrote:
On 07 Nov 2007, at 11:04, Salvatore Iovene wrote:
On 11/7/07, Renaud Detry [EMAIL PROTECTED] wrote:
On 07 Nov 2007, at 09:59, Salvatore Iovene wrote:
On 11/7/07, Brandon Van Every [EMAIL PROTECTED] wrote:
On Nov 7, 2007 2:12 AM,
On 07 Nov 2007, at 11:35, Salvatore Iovene wrote:
On 11/7/07, Renaud Detry [EMAIL PROTECTED] wrote:
On 07 Nov 2007, at 11:04, Salvatore Iovene wrote:
On 11/7/07, Renaud Detry [EMAIL PROTECTED] wrote:
On 07 Nov 2007, at 09:59, Salvatore Iovene wrote:
On 11/7/07, Brandon Van Every [EMAIL
On 07 Nov 2007, at 11:04, Salvatore Iovene wrote:
On 11/7/07, Renaud Detry [EMAIL PROTECTED] wrote:
On 07 Nov 2007, at 09:59, Salvatore Iovene wrote:
On 11/7/07, Brandon Van Every [EMAIL PROTECTED] wrote:
On Nov 7, 2007 2:12 AM, Salvatore Iovene
[EMAIL PROTECTED] wrote:
Hi,
I'm not 100%
On 11/7/07, Renaud Detry [EMAIL PROTECTED] wrote:
On 07 Nov 2007, at 11:35, Salvatore Iovene wrote:
On 11/7/07, Renaud Detry [EMAIL PROTECTED] wrote:
On 07 Nov 2007, at 11:04, Salvatore Iovene wrote:
On 11/7/07, Renaud Detry [EMAIL PROTECTED] wrote:
On 07 Nov 2007, at 09:59,
On 11/7/07, Hendrik Sattler [EMAIL PROTECTED] wrote:
Quoting Salvatore Iovene [EMAIL PROTECTED]:
On 11/7/07, Salvatore Iovene [EMAIL PROTECTED] wrote:
What do you mean by PIC?
Thanks!
Oh, -fPIC. I figured it out. Seems to work fine on Linux. I still have
to try it on Windows tho. I
On 11/7/07, Salvatore Iovene [EMAIL PROTECTED] wrote:
What do you mean by PIC?
Thanks!
Oh, -fPIC. I figured it out. Seems to work fine on Linux. I still have
to try it on Windows tho. I hope it's good as a solution and not just
a hack! :)
--
Salvatore Iovene
http://www.iovene.com/
Key
Quoting Salvatore Iovene [EMAIL PROTECTED]:
On 11/7/07, Salvatore Iovene [EMAIL PROTECTED] wrote:
What do you mean by PIC?
Thanks!
Oh, -fPIC. I figured it out. Seems to work fine on Linux. I still have
to try it on Windows tho. I hope it's good as a solution and not just
a hack! :)
Windows
On Nov 7, 2007 11:08 AM, KSpam [EMAIL PROTECTED] wrote:
Static linking is a strange beast. When you link in a static library, it will
only resolve symbols that are currently being used. All other symbols from
the static library are pruned out. The nice thing is that this reduces the
binary
Hello,
There a much nicer platform independent writeup on this at:
http://www.cmake.org/Wiki/CMake_FAQ#Does_that_mean_I_have_to_build_all_my_library_objects_twice.2C_once_for_shared_and_once_for_static.3F.21__I_don.27t_like_that.21
There may be a couple of syntactical issues with the writeup.
Two things with convenience libraries. Part of this may be in the FAQ:
On linux, compile the code fPIC or fpic (slightly different meanings).
So for library hello:
SET_TARGET_PROPERTIES(
hello PROPERTIES
OUTPUT_NAME hello
CLEAN_DIRECT_OUTPUT 1
COMPILE_FLAGS -fPIC
)
where hello is the name of
Salvatore,
It sounds like your static libraries were meant strictly as convenience
libraries (i.e. libraries that are only used internal to the build system to
make building other libraries easier). In CMake, it is much easier to not
use convenience libraries. Instead, just add all of the
I believe this to be the more accurate than the FAQ and my previous
example. In addition, the static and shared libraries can have the same
name.
Note that cat.cc is an empty file, since the linker will not work
without at least one object file on the dynamic target.
IF(CMAKE_SYSTEM_NAME
On 2007-11-07 11:55-0500 Brandon Van Every wrote:
On Nov 7, 2007 11:08 AM, KSpam [EMAIL PROTECTED] wrote:
Static linking is a strange beast. When you link in a static library, it will
only resolve symbols that are currently being used. All other symbols from
the static library are pruned
Hi,
I'm not 100% sure this is really a CMake related question, but I'll
fire it up anyway:
I'm building a series of static libraries, name them liba.a, libb.a
and libc.a, and linking them into a shared library libfoo.so.
Then I'm building libx.a liby.a and libz.a and linking them into the
shared
On Friday 13 July 2007 07:26, Anders Sandholm wrote:
Hi
...
Now when I build in vs2005 it says:
---
-
1-- Build started: Project: qtproject, Configuration: Release Win32
-- 1Linking...
Hi
Thank you all, problem solved, off course it was a case of RTFM... I
have just left out the generating of the moc files
Thanks
best regards
Anders
On 7/13/07, Anders Sandholm [EMAIL PROTECTED] wrote:
Hi
Using Cmake (vtk) with QT and trying to build using visual studio
2005. Now I have
Hi
Using Cmake (vtk) with QT and trying to build using visual studio
2005. Now I have compiled both vtk and QT with visual studio 2005, and
simple QT applications (like hello world workes perfekt) but now I try
to do some a little more advanced and I get a linking problem.
The source code that I
30 matches
Mail list logo