[srslte-users] Compilation problem - resolved

Paul Sutton paul at softwareradiosystems.com
Thu Nov 19 11:41:03 UTC 2015


Just an update on this for anyone else on the list with the same problem.
The problem was caused by an incomplete detection of Matlab by CMake.
Matlab is notoriously difficult to correctly detect and build against
with CMake due to changing library names and include paths between
different versions.
Matlab is only used by srsLTE to optionally build MEX files. It is not
required to build and use the library so we've disabled this feature by
default.
When pulling from the repo and rebuilding, make sure to clean out your
build directory so cached CMake variables (CMakeCache.txt) aren't used.

Regards,
Paul

On 19/11/15 11:12, Nicola Bui wrote:
> Hi again,
>
> I don't know if this help, but below you can find the cmake output:
> ---------------------
> -- Could NOT find Octave (missing:  OCTAVE_INCLUDE_DIR
> OCTAVE_OCTAVE_LIBRARY) 
> -- Build type not specified: defaulting to Release.
> -- SSE4.1 is enabled - target CPU must support it
> -- AVX is enabled - target CPU must support it
> -- Using install prefix: /usr/local
> -- Building for version: 0.1.0
> -- SRSGUI LIBRARIES /usr/local/lib/libsrsgui.so
> -- SRSGUI INCLUDE DIRS /usr/local/include
> --    Compiling with VOLK SIMD library.
> -- SRSGUI LIBRARIES /usr/local/lib/libsrsgui.so
> -- SRSGUI INCLUDE DIRS /usr/local/include
> --    UHD examples will be installed.
> -- Could NOT find Octave (missing:  OCTAVE_INCLUDE_DIR
> OCTAVE_OCTAVE_LIBRARY) 
> -- Found MATLAB in /usr/local/MATLAB/R2015b
> -- Configuring done
> -- Generating done
> -- Build files have been written to:
> /home/bui/Documents/Software/srsLTE/srsLTE/build
> --------------------
>
> Thanks again for the help,
>
> Nicola Bui
>
> Research Engineer
> IMDEA Networks Institute
> Av. Mar del Mediterraneo, 22
> 28918 - Leganés (Madrid) - Spain
> mobile: +34 657 633 987
> phone: +34 91 481 6986
> fax: +34 481 6965
>
> On Thu, Nov 19, 2015 at 12:07 PM, Paul Sutton
> <paul at softwareradiosystems.com <mailto:paul at softwareradiosystems.com>>
> wrote:
>
>     Hi Nicola,
>
>     This error happens when CMake doesn't detect Matlab or Octave on
>     your system correctly.
>     I've just pushed a change which disables MEX generation by
>     default. If you pull the repo, clean your build directory and try
>     again, it should succeed.
>
>     Regards,
>     Paul
>
>
>     On 19/11/15 10:54, Nicola Bui wrote:
>>     Dear members,
>>
>>     I just subscribed to the mailing list, because when I tried to
>>     compile srsLTE the process fails due to the file "mex.h" missing
>>     from the folder ".../mex/include/srslte/mex/"
>>
>>     I just pulled the sources and I am into the "make" compilation
>>     after "cmake ../" in the build folder.
>>     Any help is appreciated.
>>
>>     Thanks a lot,
>>     Nicola Bui
>>
>>     Research Engineer
>>     IMDEA Networks Institute
>>     Av. Mar del Mediterraneo, 22
>>     28918 - Leganés (Madrid) - Spain
>>     mobile: +34 657 633 987 <tel:%2B34%20657%20633%20987>
>>     phone: +34 91 481 6986 <tel:%2B34%2091%20481%206986>
>>     fax: +34 481 6965
>>
>>
>>     _______________________________________________
>>     srslte-users mailing list
>>     srslte-users at lists.softwareradiosystems.com <mailto:srslte-users at lists.softwareradiosystems.com>
>>     http://www.softwareradiosystems.com/mailman/listinfo/srslte-users
>
>     -- 
>     ________________________________________________________________
>     Paul Sutton Ph.D.
>
>     Software Radio Systems (SRS)
>     http://www.softwareradiosystems.com
>
>     +353-87-9813473 <tel:%2B353-87-9813473> | paul at softwareradiosystems.com <mailto:paul at softwareradiosystems.com>
>
>     PGP Key ID: 3B4A5292
>     Fingerprint: B0AC 19C9 B228 A6EB 86E1 82B2 90C7 EC95 3B4A 5292
>     ________________________________________________________________ 
>
>

-- 
________________________________________________________________
Paul Sutton Ph.D.

Software Radio Systems (SRS)
http://www.softwareradiosystems.com

+353-87-9813473 | paul at softwareradiosystems.com

PGP Key ID: 3B4A5292
Fingerprint: B0AC 19C9 B228 A6EB 86E1 82B2 90C7 EC95 3B4A 5292
________________________________________________________________ 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.srsran.com/pipermail/srsran-users/attachments/20151119/3834a854/attachment.htm>


More information about the srsran-users mailing list