Skip to content

Commit

Permalink
qwt compile error under OSX - note for Larry
Browse files Browse the repository at this point in the history
  • Loading branch information
timlinux committed Jan 27, 2013
1 parent d860c71 commit 247c2db
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions doc/osx.t2t
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down

3 comments on commit 247c2db

@dakcarto
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Copy link
Member Author

@timlinux timlinux commented on 247c2db Jan 28, 2013 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kyngchaos
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.