Re: [CMake] need two compilation to achieve success

2009-06-03 Thread Michael Jackson
On Jun 3, 2009, at 3:56 PM, Bill Hoffman wrote: Michael Jackson wrote: Sorry, that should be: link_directories(${CMAKE_LIBRARY_OUTPUT_DIRECTORY}) No, this is not needed. This is all taken care of by CMake for internal targets. add_library(foobar ...) add_executable(car ...) target_link_

Re: [CMake] need two compilation to achieve success

2009-06-03 Thread e...@cs.bgu.ac.il
On Wed 03 Jun 22:46 2009 Bill Hoffman wrote: > e...@cs.bgu.ac.il wrote: > > > > > thanks for the tip though but my current problem is in regards to the > > linking of external libs, I've used to add them to the > > TARGET_LINK_LIBRARIES but it was suggested here not to use it in that > > way. >

Re: [CMake] need two compilation to achieve success

2009-06-03 Thread Bill Hoffman
Michael Jackson wrote: Sorry, that should be: link_directories(${CMAKE_LIBRARY_OUTPUT_DIRECTORY}) No, this is not needed. This is all taken care of by CMake for internal targets. add_library(foobar ...) add_executable(car ...) target_link_libraries(car foobar) # link_directories should n

Re: [CMake] need two compilation to achieve success

2009-06-03 Thread Michael Jackson
Sorry, that should be: link_directories(${CMAKE_LIBRARY_OUTPUT_DIRECTORY}) Also, are you having CMake build all these dependent libraries? If so then you can use the the invocation of target_link_libraries with just the names of the targets(AgathaHUD). IF those dependent libraries are al

Re: [CMake] need two compilation to achieve success

2009-06-03 Thread Bill Hoffman
e...@cs.bgu.ac.il wrote: thanks for the tip though but my current problem is in regards to the linking of external libs, I've used to add them to the TARGET_LINK_LIBRARIES but it was suggested here not to use it in that way. OK, I think I see the problem. For external libraries, you should us

Re: [CMake] need two compilation to achieve success

2009-06-03 Thread e...@cs.bgu.ac.il
On Wed 03 Jun 22:34 2009 Bill Hoffman wrote: > e...@cs.bgu.ac.il wrote: > > >> > >> Where are the symbols defined that you are not finding? > >> > >> Also, please try make VERBOSE=1 to see the link line being used. Also, > >> you will want to use nm and grep to find out where the symbols should

Re: [CMake] need two compilation to achieve success

2009-06-03 Thread e...@cs.bgu.ac.il
On Wed 03 Jun 22:25 2009 Michael Jackson wrote: > > > On Jun 3, 2009, at 2:53 PM, e...@cs.bgu.ac.il wrote: > > > > > TARGET_LINK_LIBRARIES(AgathaHud libAgathaUtils libAgathaEngine > > libAgathaThreads) > > the error output is: /usr/lib/gcc/x86_64-pc-linux-gnu/ > > 4.3.3/../../../../x86_64-pc

Re: [CMake] need two compilation to achieve success

2009-06-03 Thread Bill Hoffman
e...@cs.bgu.ac.il wrote: Where are the symbols defined that you are not finding? Also, please try make VERBOSE=1 to see the link line being used. Also, you will want to use nm and grep to find out where the symbols should be found. -Bill Still lost You don't need this: add_depen

Re: [CMake] need two compilation to achieve success

2009-06-03 Thread Michael Jackson
On Jun 3, 2009, at 2:53 PM, e...@cs.bgu.ac.il wrote: TARGET_LINK_LIBRARIES(AgathaHud libAgathaUtils libAgathaEngine libAgathaThreads) the error output is: /usr/lib/gcc/x86_64-pc-linux-gnu/ 4.3.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -llibAgathaUtils like I've said before, t

Re: [CMake] need two compilation to achieve success

2009-06-03 Thread e...@cs.bgu.ac.il
On Wed 03 Jun 22:14 2009 Bill Hoffman wrote: > e...@cs.bgu.ac.il wrote: > > > I've just noticed the suggestion to remove the lib from the > > TARGET_LINK_LIBRARIES entry which I did, that solved the previous > > linking problem but now I get unknown reference to each function or > > var that I us

Re: [CMake] need two compilation to achieve success

2009-06-03 Thread Bill Hoffman
e...@cs.bgu.ac.il wrote: I've just noticed the suggestion to remove the lib from the TARGET_LINK_LIBRARIES entry which I did, that solved the previous linking problem but now I get unknown reference to each function or var that I use from the external libs. how can I add them without adding them

Re: [CMake] need two compilation to achieve success

2009-06-03 Thread e...@cs.bgu.ac.il
On Wed 03 Jun 21:53 2009 e...@cs.bgu.ac.il wrote: > > On Wed 03 Jun 18:37 2009 Michael Wild wrote: > > > > On 3. Jun, 2009, at 15:15, e...@cs.bgu.ac.il wrote: > > > > > > > > On Tue 02 Jun 7:33 2009 e...@cs.bgu.ac.il wrote: > > >> > > >> On Mon 01 Jun 20:56 2009 Bill Hoffman wrote: > > >>> e...

Re: [CMake] need two compilation to achieve success

2009-06-03 Thread e...@cs.bgu.ac.il
On Wed 03 Jun 18:37 2009 Michael Wild wrote: > > On 3. Jun, 2009, at 15:15, e...@cs.bgu.ac.il wrote: > > > > > On Tue 02 Jun 7:33 2009 e...@cs.bgu.ac.il wrote: > >> > >> On Mon 01 Jun 20:56 2009 Bill Hoffman wrote: > >>> e...@cs.bgu.ac.il wrote: > On Mon 01 Jun 15:28 2009 Bill Hoffman wrote

Re: [CMake] need two compilation to achieve success

2009-06-03 Thread Michael Wild
On 3. Jun, 2009, at 15:15, e...@cs.bgu.ac.il wrote: On Tue 02 Jun 7:33 2009 e...@cs.bgu.ac.il wrote: On Mon 01 Jun 20:56 2009 Bill Hoffman wrote: e...@cs.bgu.ac.il wrote: On Mon 01 Jun 15:28 2009 Bill Hoffman wrote: e...@cs.bgu.ac.il wrote: On Mon 01 Jun 8:18 2009 Tyler Roscoe wrote: tha

Re: [CMake] need two compilation to achieve success

2009-06-03 Thread e...@cs.bgu.ac.il
On Tue 02 Jun 7:33 2009 e...@cs.bgu.ac.il wrote: > > On Mon 01 Jun 20:56 2009 Bill Hoffman wrote: > > e...@cs.bgu.ac.il wrote: > > > On Mon 01 Jun 15:28 2009 Bill Hoffman wrote: > > >> e...@cs.bgu.ac.il wrote: > > >>> On Mon 01 Jun 8:18 2009 Tyler Roscoe wrote: > > >>> thanks for the tip, it solv

Re: [CMake] need two compilation to achieve success

2009-06-01 Thread e...@cs.bgu.ac.il
On Mon 01 Jun 20:56 2009 Bill Hoffman wrote: > e...@cs.bgu.ac.il wrote: > > On Mon 01 Jun 15:28 2009 Bill Hoffman wrote: > >> e...@cs.bgu.ac.il wrote: > >>> On Mon 01 Jun 8:18 2009 Tyler Roscoe wrote: > >>> thanks for the tip, it solved the issue. > >>> > >>> > >> I am glad that worked for you but

Re: [CMake] need two compilation to achieve success

2009-06-01 Thread Bill Hoffman
e...@cs.bgu.ac.il wrote: On Mon 01 Jun 15:28 2009 Bill Hoffman wrote: e...@cs.bgu.ac.il wrote: On Mon 01 Jun 8:18 2009 Tyler Roscoe wrote: thanks for the tip, it solved the issue. I am glad that worked for you but something else is wrong... How are you linking bin/libs/libAgathaUtils.so' to

Re: [CMake] need two compilation to achieve success

2009-06-01 Thread e...@cs.bgu.ac.il
On Mon 01 Jun 15:28 2009 Bill Hoffman wrote: > e...@cs.bgu.ac.il wrote: > > On Mon 01 Jun 8:18 2009 Tyler Roscoe wrote: > > > > > thanks for the tip, it solved the issue. > > > > > > I am glad that worked for you but something else is wrong... How are > you linking bin/libs/libAgathaUtils.s

Re: [CMake] need two compilation to achieve success

2009-06-01 Thread Bill Hoffman
e...@cs.bgu.ac.il wrote: On Mon 01 Jun 8:18 2009 Tyler Roscoe wrote: thanks for the tip, it solved the issue. I am glad that worked for you but something else is wrong... How are you linking bin/libs/libAgathaUtils.so' to `bin/AgathaHud' ? You should have something like: target_link

Re: [CMake] need two compilation to achieve success

2009-06-01 Thread e...@cs.bgu.ac.il
On Mon 01 Jun 8:18 2009 Tyler Roscoe wrote: > > gmake[2]: *** No rule to make target in/libs/libAgathaUtils.so', needed > > by in/AgathaHud'. Stop. > > Looks like your dependencies aren't set up correctly. You probably need > something like: > > add_dependencies (AgathaHud AgathaUtils) > > The

Re: [CMake] need two compilation to achieve success

2009-05-31 Thread Tyler Roscoe
> gmake[2]: *** No rule to make target in/libs/libAgathaUtils.so', needed > by in/AgathaHud'. Stop. Looks like your dependencies aren't set up correctly. You probably need something like: add_dependencies (AgathaHud AgathaUtils) The first run does eventually get around to creating libAgahtaUtils

Re: [CMake] need two compilation to achieve success

2009-05-31 Thread e...@cs.bgu.ac.il
On Mon 01 Jun 0:01 2009 Tyler Roscoe wrote: > On Sun, May 31, 2009 at 11:56:18PM +0300, e...@cs.bgu.ac.il wrote: > > I've got a strange problem, when I try to compile a clean version of > > my program it fails without any explanation but if I try to compile > > again without running clean I compil

Re: [CMake] need two compilation to achieve success

2009-05-31 Thread John Drescher
On Sun, May 31, 2009 at 5:01 PM, Tyler Roscoe wrote: > On Sun, May 31, 2009 at 11:56:18PM +0300, e...@cs.bgu.ac.il wrote: >> I've got a strange problem, when I try to compile a clean version of >> my program it fails without any explanation but if I try to compile >> again without running clean I

Re: [CMake] need two compilation to achieve success

2009-05-31 Thread Tyler Roscoe
On Sun, May 31, 2009 at 11:56:18PM +0300, e...@cs.bgu.ac.il wrote: > I've got a strange problem, when I try to compile a clean version of > my program it fails without any explanation but if I try to compile > again without running clean I compiles fine... We need way more information to help you.

[CMake] need two compilation to achieve success

2009-05-31 Thread e...@cs.bgu.ac.il
hello. I've got a strange problem, when I try to compile a clean version of my program it fails without any explanation but if I try to compile again without running clean I compiles fine... can anyone think why it is happening? ___ Powered by www.ki