[Freerdp-devel] Compile error 1.0.2

2013-09-17 Thread Gerard
Hi,

 

Cmake: 2.8.11.2

Openssl: 0.9.8

Freerdp: 1.0.2

 

cmake -DOPENSSL_SSL_LIBRARY=/usr/local/ssl/lib
-DOPENSSL_INCLUDE_DIR=/usr/local/ssl/include \

-DCMAKE_BUILD_TYPE=Debug -DWITH_SSE2=ON -DWITH_CUPS=OFF -DWITH_FFMPEG=OFF
-DWITH_ALSA=OFF .

 

During compilation I get the following error(s)

 

./snap

--   Enable this using -DWITH_DIRECTFB=ON.

-- Configuring done

WARNING: Target freerdp-gdi requests linking to directory
/usr/local/ssl/lib.  Targets may link only to libraries.  CMake is
dropping the item.

WARNING: Target freerdp-core requests linking to directory
/usr/local/ssl/lib.  Targets may link only to libraries.  CMake is
dropping the item.

WARNING: Target freerdp-cache requests linking to directory
/usr/local/ssl/lib.  Targets may link only to libraries.  CMake is
dropping the item.

WARNING: Target freerdp-test requests linking to directory
/usr/local/ssl/lib.  Targets may link only to libraries.  CMake is
dropping the item.

WARNING: Target xfreerdp requests linking to directory
/usr/local/ssl/lib.  Targets may link only to libraries.  CMake is
dropping the item.

-- Generating done

-- Build files have been written to: /source/freerdp-1.0.2

./snap

 

If I continue with 'make'

 

./snap

Linking C executable freerdp-test

../../libfreerdp-core/libfreerdp-core.so.1.0.2: undefined reference to
`SSL_use_certificate_file'

../../libfreerdp-core/libfreerdp-core.so.1.0.2: undefined reference to
`SSL_set_fd'

../../libfreerdp-core/libfreerdp-core.so.1.0.2: undefined reference to
`SSL_CTX_free'

../../libfreerdp-core/libfreerdp-core.so.1.0.2: undefined reference to
`SSL_shutdown'

../../libfreerdp-core/libfreerdp-core.so.1.0.2: undefined reference to
`SSL_get_error'

../../libfreerdp-core/libfreerdp-core.so.1.0.2: undefined reference to
`SSL_read'

../../libfreerdp-core/libfreerdp-core.so.1.0.2: undefined reference to
`SSL_new'

../../libfreerdp-core/libfreerdp-core.so.1.0.2: undefined reference to
`SSL_CTX_new'

../../libfreerdp-core/libfreerdp-core.so.1.0.2: undefined reference to
`SSL_library_init'

../../libfreerdp-core/libfreerdp-core.so.1.0.2: undefined reference to
`SSL_CTX_use_RSAPrivateKey_file'

../../libfreerdp-core/libfreerdp-core.so.1.0.2: undefined reference to
`TLSv1_client_method'

../../libfreerdp-core/libfreerdp-core.so.1.0.2: undefined reference to
`SSL_load_error_strings'

../../libfreerdp-core/libfreerdp-core.so.1.0.2: undefined reference to
`SSLv23_server_method'

../../libfreerdp-core/libfreerdp-core.so.1.0.2: undefined reference to
`SSL_accept'

../../libfreerdp-core/libfreerdp-core.so.1.0.2: undefined reference to
`SSL_CTX_ctrl'

../../libfreerdp-core/libfreerdp-core.so.1.0.2: undefined reference to
`SSL_connect'

../../libfreerdp-core/libfreerdp-core.so.1.0.2: undefined reference to
`SSL_free'

../../libfreerdp-core/libfreerdp-core.so.1.0.2: undefined reference to
`SSL_get_peer_certificate'

../../libfreerdp-core/libfreerdp-core.so.1.0.2: undefined reference to
`SSL_write'

collect2: ld returned 1 exit status

make[2]: *** [client/test/freerdp-test] Error 1

./snap

 

Your help would be really appreciated.

 

Gerard

 

--
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151iu=/4140/ostg.clktrk
___
Freerdp-devel mailing list
Freerdp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freerdp-devel


Re: [Freerdp-devel] Compile error 1.0.2

2013-09-17 Thread Bernhard Miklautz
Hi Gerard,

On Tue, Sep 17, 2013 at 04:36:27PM +0200, Gerard wrote:
 Cmake: 2.8.11.2
 Openssl: 0.9.8
 Freerdp: 1.0.2
 
 cmake -DOPENSSL_SSL_LIBRARY=/usr/local/ssl/lib
 -DOPENSSL_INCLUDE_DIR=/usr/local/ssl/include \
 
 -DCMAKE_BUILD_TYPE=Debug -DWITH_SSE2=ON -DWITH_CUPS=OFF -DWITH_FFMPEG=OFF
 -DWITH_ALSA=OFF .
 
 WARNING: Target freerdp-gdi requests linking to directory
 /usr/local/ssl/lib.  Targets may link only to libraries.  CMake is
 dropping the item.
OPENSSL_SSL_LIBRARY is the path to the library that is set by cmakes 
openssl detection. If you set it manually you need to set the library 
itself (and not the path) e.g.
-DOPENSSL_SSL_LIBRARY=/usr/local/ssl/lib/libss.so (thats what causes the 
linking to directory error). If you set OPENSSL_SSL_LIBRARY you will 
also need to set OPENSSL_CRYPTO_LIBRARY to libcrypto.so.

Instead of setting the library manually you might want to try setting
CMAKE_PREFIX_PATH (: seperated list of paths) pointing to /usr/local/ssl
(and other paths if required) like -DCMAKE_PREFIX_PATH=/usr/local/ssl. 
Cmake looks for libraries and includes first in these paths then.

Best regards,
Bernhard


--
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151iu=/4140/ostg.clktrk
___
Freerdp-devel mailing list
Freerdp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freerdp-devel