|
From: Antonio T. <ant...@gm...> - 2014-05-30 14:12:57
|
On 05/30/2014 10:49 AM, Aiche, Stephan wrote:
> He Antonio,
>
> first of all great that it works now but it shouldn't be necessary to
> extend the linker flags via LDFLAGS. Could you therefore provide some
> more details regarding your setup so we can try to reproduce the error
> and, if possible, fix it. Following things would be very helpful
>
> Fedora version
> OpenMS version (I assume 1.11.1)
> CMake version
> Qt version
> How did you setup OpenMS? (self compiled contrib or system libs) ?
> What was the cmake command you used to configure OpenMS?
>
> Could you also please attach the CMakeCache.txt
>
> Thanks a lot
> Stephan
>
Fedora 20 64-bit.
OpenMS 1.11.1
cmake version 2.8.12.2
Qt 4.8.6
Used system libraries from Fedora repos.
%cmake -DCMAKE_CXX_FLAGS="%{optflags}" -DCMAKE_C_FLAGS="%{optflags}" \
-DCMAKE_VERBOSE_MAKEFILE=1 -DCMAKE_FIND_ROOT_PATH=%{_prefix} \
-DCMAKE_INSTALL_PREFIX=%{_prefix} -DCMAKE_ENABLE_SVN=OFF \
-DCMAKE_BUILD_TYPE=Release \
-DBOOST_USE_STATIC=OFF -DBUILD_TYPE=SEQAN -DPYOPENMS=OFF .
expanding %cmake macro:
CFLAGS="${CFLAGS:--O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector-strong --param=ssp-buffer-size=4
-grecord-gcc-switches -m64 -mtune=generic}" ; export CFLAGS ;
CXXFLAGS="${CXXFLAGS:--O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector-strong --param=ssp-buffer-size=4
-grecord-gcc-switches -m64 -mtune=generic}" ; export CXXFLAGS ;
FFLAGS="${FFLAGS:--O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector-strong --param=ssp-buffer-size=4
-grecord-gcc-switches -m64 -mtune=generic
-I/usr/lib64/gfortran/modules}" ; export FFLAGS ;
FCFLAGS="${FCFLAGS:--O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector-strong --param=ssp-buffer-size=4
-grecord-gcc-switches -m64 -mtune=generic
-I/usr/lib64/gfortran/modules}" ; export FCFLAGS ;
LDFLAGS="${LDFLAGS:--Wl,-z,relro }" ; export LDFLAGS ;
/usr/bin/cmake \
-DCMAKE_C_FLAGS_RELEASE:STRING="-DNDEBUG" \
-DCMAKE_CXX_FLAGS_RELEASE:STRING="-DNDEBUG" \
-DCMAKE_Fortran_FLAGS_RELEASE:STRING="-DNDEBUG" \
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
-DINCLUDE_INSTALL_DIR:PATH=/usr/include \
-DLIB_INSTALL_DIR:PATH=/usr/lib64 \
-DSYSCONF_INSTALL_DIR:PATH=/etc \
-DSHARE_INSTALL_PREFIX:PATH=/usr/share \
%if "lib64" == "lib64"
-DLIB_SUFFIX=64 \
%endif
-DBUILD_SHARED_LIBS:BOOL=ON
CMakeCache.txt is attached.
I need to use 'export LDFLAGS="$LDFLAGS -lQtCore -lQtGui"' to complete
the compilation properly.
Is 'make install' file created?
--
Antonio Trande
mailto: sagitterATfedoraproject.org
http://www.fedoraos.worpress.com
https://fedoraproject.org/wiki/User:Sagitter
GPG Key: D400D6C4
|