http://redmine.emweb.be/http://redmine.emweb.be/favicon.ico?16934085252014-02-25T21:35:01ZRedmineWt - Support #2713: Probably a linking errorhttp://redmine.emweb.be/issues/2713?journal_id=82712014-02-25T21:35:01ZKoen Deforchekoen@emweb.be
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Feedback</i></li><li><strong>Assignee</strong> set to <i>Koen Deforche</i></li></ul><p>Hey,</p>
<p>I can pinpoint it like that. It will help to see the actual link command:</p>
<pre><code>VERBOSE=1 make
</code></pre>
<p>A mac usually has an empty DYLD_LIBRARY_PATH by default, in my experience. You can check with</p>
<pre><code>echo $DYLD_LIBRARY_PATH
</code></pre>
<p>But it's important to understand that this path is not involved in the linking problem. Linking ignores the DYLD_LIBRARY_PATH; only running an application may consult this path.</p>
<p>Regards,<br><br>
koen</p>
Wt - Support #2713: Probably a linking errorhttp://redmine.emweb.be/issues/2713?journal_id=82732014-02-25T22:25:42ZTor Arne Fallingenfallingen@gmail.com
<ul></ul><p>Hey koen.</p>
<p>Im not sure I follow, but I think you want to see more of the make commands? Well, I copied the whole thing from the compile output. It was not like a million miles long. Im using Qt Creator.</p>
<p>22:08:19: Starting: "/usr/bin/make"<br><br>
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -headerpad_max_install_names -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -mmacosx-version-min=10.6 -o ControlSkeleton main.o -F/Users/taf/Qt5.2.1/5.2.1/clang_64/lib -L/Users/taf/Wt/lib -lwt -lwthttp -L/Users/taf/Boost/lib -lboost_signals -lboost_system -lboost_thread -lboost_filesystem -lboost_regex -framework QtCore<br><br>
Undefined symbols for architecture x86_64:<br><br>
"Wt::WLink::WLink(Wt::WLink::Type, std::string const&)", referenced from:<br><br>
ControlSkeleton::page1() in main.o<br><br>
"Wt::WObject::setObjectName(std::string const&)", referenced from:<br><br>
vtable for ControlSkeleton in main.o<br><br>
"Wt::WString::WString(std::string const&, Wt::CharEncoding)", referenced from:<br><br>
ControlSkeleton::ControlSkeleton(Wt::WEnvironment const&) in main.o<br><br>
ControlSkeleton::header() in main.o<br><br>
"Wt::WApplication::makeAbsoluteUrl(std::string const&) const", referenced from:<br><br>
vtable for ControlSkeleton in main.o<br><br>
ld: symbol(s) not found for architecture x86_64<br><br>
clang: error: linker command failed with exit code 1 (use -v to see invocation)<br><br>
make: * [ControlSkeleton] Error 1<br><br>
22:08:20: The process "/usr/bin/make" exited with code 2.<br><br>
Error while building/deploying project ControlSkeleton (kit: Desktop Qt 5.2.1 clang 64bit)<br><br>
When executing step 'Make'<br><br>
22:08:20: Elapsed time: 00:01.</p>
<p>Then if I understand you correctly, $DYLD_LIBRARY_PATH is one single entry (one path) and its temporary? Because yes I tried the "echo $DYLD_LIBRARY_PATH", and that gives me nada. And since I installed both Boost and Wt in custom locations, I need to link both the lib and the include directories manually when I use something dependent on them. Is there a way to do this more permanent? Like entering a path in a system file to include in the systems default directories to look for libraries and such? I feel green when I ask these things, but Im learning, and setting up RPi 50-100 times surely helps in starting to understand a little more how things are working.</p>
Wt - Support #2713: Probably a linking errorhttp://redmine.emweb.be/issues/2713?journal_id=83762014-03-04T09:19:16ZKoen Deforchekoen@emweb.be
<ul></ul><p>Hey,</p>
<p>The reason may be that you haven't built Wt the library with the same toolchain as your application:</p>
<ul>
<li> gcc versus clang</li>
<li> libc versus stdlibc</li>
<li> C+11 versus C+98</li>
</ul>
<p>On MacOSX, the toolchains are a bit in a state of flux (moving away from gcc, towards CLang) but that requires some attention when trying to build applications and libraries.</p>
<p>Regards,<br><br>
koen</p>