I had similar problems the other day when I built caQtDM on Linux.
Anton helped me a lot.
I have appended a message that includes the complete trail of
communications with Anton. I have also attached a shell script I
created to define all of the necessary environment variables.
I think my most important 2 mistakes were:
- Not defining QTBASE, which I then defined as:
QTBASE=/usr/local/caQtDM/3-8-5/caQtDM_Binaries
- Not using the top-level build script, caQtDM_BuildAll. I was just
using qmake and make, which did not work.
Mark
*From:*[email protected]
[mailto:[email protected]] *On Behalf Of *Emmanuel Mayssat
*Sent:* Friday, November 14, 2014 12:35 PM
*To:* Tong Zhang
*Cc:* Mezger Anton Christian; EPICS mailing list
*Subject:* RE: compile qtdm
Tong Zhang,
I can certainly help you.
Difficult to say what exactly is the problem without the error message.
To start, I would just guess that you environment is not set correctly.
Are you on Linux?
Note that QtDM requires a few environment variables to be set to start
and run correctly.
What are your settings for QTDM_LIBINSTALL, QTDM_RPATH, and LD_LIBRARY_PATH?
In the tutorial you are following, my installation paths were
/home/local/epics # Home directory of the epics user
+-- base
+-- <base.version> # Base version is 3.14.12.4
+-- bin/linux-x86_64
+-- lib/linux-x86_64
+-- extensions
+-- <base.version> # Extensions compiled against this base version
+-- src # Where the source for EPICS extensions is installed
+-- bin/linux-x86_64 # Where the extension binary files are installed
+-- lib/linux-x86_64
+-- extras # Non-EPICS base and non-EPICS extensions
+-- <base.version> # Version the source was compiled against
+-- bin/linux-x86_64 # Where the binary files are installed
+-- lib/linux-x86_64
In the tutorial, I installed caQtDM in the extras/... directories as it is not
an EPICS extension (i.e. doesn't use the configure directory which is part of
the EPICS build system)
I hope this help.
If it doesn't, send the error message and the first few lines of
./caQtDM_BuildAll
Regards,
--
Emmanuel Mayssat
http://www.epicsqt.org
Date: Fri, 14 Nov 2014 14:44:18 +0800
From:[email protected] <mailto:[email protected]>
To:[email protected] <mailto:[email protected]>
Subject: compile qtdm
Hi Emayssat,
I came cross your caQtDM wiki page, it is really a great job. I'm
working on the development for FEL facility control applications, and I
have experience about C++/QT, so your qtdm is a nice tool for me to
choose. However, I failed to compile the source, is complains the
qtcontrols lib when linking, my qt version is 4.8.6, could you please
help me out?
Thanks!