Skip to content
Permalink
Browse files
qwt compile error under OSX - note for Larry
  • Loading branch information
timlinux committed Jan 27, 2013
1 parent d860c71 commit 247c2dbe190f86bf55ea22572d13df58bd17077d
Showing with 24 additions and 0 deletions.
  1. +24 −0 doc/osx.t2t
@@ -527,7 +527,31 @@ cd <Qwt 6.x.x source directory>
qmake -spec macx-g++
make -j [#cpus]
sudo make install
```

**TODO:** Remedy for :

```
shrub:qwt-6.1-rc3 timlinux$ sudo make install
Password:
cd src/ && make -f Makefile install
rm -f -r "/usr/local/qwt-6.1.0-rc3/lib/qwt.framework"
cp -f -R "../lib/qwt.framework" "/usr/local/qwt-6.1.0-rc3/lib/qwt.framework"
cp -f -R /Users/timlinux/dev/cpp/qwt-6.1-rc3/doc/html /usr/local/qwt-6.1.0-rc3/doc/
cp -f -R /Users/timlinux/dev/cpp/qwt-6.1-rc3/doc/man /usr/local/qwt-6.1.0-rc3/doc/
cd textengines/ && make -f Makefile install
make[1]: Nothing to be done for `install'.
cd designer/ && make -f Makefile install
rm -f libqwt_designer_plugin.dylib
linking plugins/designer/libqwt_designer_plugin.dylib
ld: library not found for -lqwt
collect2: ld returned 1 exit status
make[1]: *** [plugins/designer/libqwt_designer_plugin.dylib] Error 1
make: *** [sub-designer-install_subtargets-ordered] Error 2
```


```
sudo install_name_tool -id /usr/local/qwt-6.0.1/lib/qwt.framework/Versions/6/qwt \
/usr/local/qwt-6.0.1/lib/qwt.framework/Versions/6/qwt
```

3 comments on commit 247c2db

@dakcarto

This comment has been minimized.

Copy link
Member

@dakcarto dakcarto replied Jan 27, 2013

Hi Tim,

That's a known problem with 6.0.2 and latest 6.1 branch:
http://sourceforge.net/mailarchive/forum.php?thread_name=5102569A.3030509%40tigertal.de&forum_name=qwt-interest

I looked into it, but don't know enough about building frameworks using Qt .pro files to offer a fix. Maybe William can help out?

I have had no problems compiling 6.0.1, and John Tull reports 5.2.3 also works well and is the most compatible with existing plugins (I've not tested). This is why the INSTALL notes are in their current state concerning Qwt.

@timlinux

This comment has been minimized.

Copy link
Member Author

@timlinux timlinux replied Jan 28, 2013

@kyngchaos

This comment has been minimized.

Copy link
Contributor

@kyngchaos kyngchaos replied Jan 28, 2013

I think I see what happened (assuming 6.0.1 does compile, I didn't go that far) - in 6.0.2 they added a functions include, which redefines 2 qmake functions. 1 is an exact duplicate of what I have for Qt 4.8.4, but the other, qtAddLibrary(), removes most of the platform-specific stuff, like how to link a framework. Thus linking the newly compiled QWt framework to qwt designer fails because it doesn't know how to link a framework.

Either remove the qwtfunctions.pri references from .pr* files (maybe they are trying to fix some supposed qmake bug?), or remove the QwtFramework setting from the end of qwtconfig.pri (my instructions assume dylib configuration, not framework).

Please sign in to comment.