0

router link error - can you help?

asked 2014-07-29 17:31:29 -0700

nicholai gravatar image

updated 2014-07-31 13:03:14 -0700

I am trying to compile alljoyn using the latest code in git, and it dies with the following error. Since I'm not very familiar with scons, I am not sure why this is happening. Can you help?

scons: * [alljoyn_core\build\win7\x86_64\debug\obj\router\windows\daemonlib.dll] Source file: alljoyn_core\build\win7\x86_64\debug\obj\router\AllJoynDebugObj.obj is static and is not compatible with shared target: alljoyn_core\build\win7\x86_64\debug\obj\router\windows\daemonlib.dll scons: building terminated because of errors.

Build flags were CPU=x86_64, OS=win7. Debug/release doesn't seem to matter, or 32 vs 64 bit.

edit retag flag offensive close merge delete

Comments

Can you update to include the scons command used to build? Also can you try release instead of debug which is default: VARIANT=release to see if that works?

bspencer ( 2014-07-30 22:33:47 -0700 )edit

Updated; please let me know if you need more info. Release/debug makes no diff. 32-bit vs 64-bit makes no diff. I also tried win8 which was broken in different way (I'll work on that next).

nicholai ( 2014-07-31 13:02:56 -0700 )edit

SOURCE: alljoyn-suite-14.06.00_beta-src.tar.gz c:\....\alljoyn-suite-14.06.00_beta-src\core\alljoyn>scons OS=win7 CPU=x86 MSVC_VERSION=10.0 BINDINGS=cpp On VirtualBox Windows 7 get the same error as above, but on a Native Win 7 machine do not get this error.(Get WS error in later stage)

Karepon ( 2014-08-04 01:49:46 -0700 )edit

use WS=off when you compile to avoid White Space checking. You need to have crustify installed on the platform to have White Space checking enabled. Regardless if you reach the the White Space check the binaries and SDK is built and you have the contents in the build folder.

bspencer ( 2014-08-04 11:55:08 -0700 )edit

@nicholai please provide the entire scons command you use to build. This is still missing. What version of Visual Studio's are you compiling against?

bspencer ( 2014-08-04 11:56:17 -0700 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-08-05 19:42:35 -0700

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Forums are new to me, so I hope this goes well. As I had posted I had a similar problem, but it only happened on one machine and not another. I simple check after looking at a similar post here http://stackoverflow.com/questions/2246399/scons-to-make-a-shared-library-so-with-a-static-libarary-a revealed that I had SCons-2.3.1 on one machine and SCons-2.3.2 on the other (failing) machine. Reverting from SCons-2.3.2 to SCons-2.3.1 make everything OK. NOTE: Manual does specify other version

Aside: I also had downloaded uncrustify-0.60-win32, thinking newest would be best, but reverting to uncrustify-0.57-win32 got rid of the scons: * [ws] Error 1

Basic rule: RTFM ->configuring_the_build_envir_windows_xp_and_windows_7.pdf contains a list of the tools and versions used. I did read that but, skipped over things I already had installed. It may also be a good idea to start your initial development on a Virtual Machine until you can get your head around all the quirks.

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2014-07-29 17:31:29 -0700

Seen: 266 times

Last updated: Aug 05 '14