Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: c++ linking problem on ubuntu 12.04

  1. #11
    Join Date
    Sep 2008
    Beans
    551
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: c++ linking problem on ubuntu 12.04

    You only have 68 libs in that list, I get 71 on my end:

    Code:
    ls /usr/lib/scilab/ | sed 's/^lib/-l/g' | sed "s/\.so.*$//g" | sort | uniq | grep -v disable
    -lmat
    -lmex
    -lmx
    -lsciaction_binding
    -lsciapi_scilab
    -lsciarnoldi
    -lsciboolean
    -lscicacsd
    -lscicall_scilab
    -lscicommons
    -lscicompletion
    -lsciconsole
    -lscicore
    -lscidata_structures
    -lscidifferential_equations
    -lscidouble
    -lscidoublylinkedlist
    -lscidynamiclibrary
    -lscidynamic_link
    -lscielementary_functions
    -lscifftw
    -lscifileio
    -lscifunctions
    -lscigraphic_export
    -lscigraphics
    -lscigui
    -lscihashtable
    -lscihdf5
    -lscihdf5-forceload
    -lscihelptools
    -lscihistory_browser
    -lscihistory_manager
    -lsciinteger
    -lsciinterpolation
    -lsciintersci
    -lsciio
    -lscijvm
    -lscilab
    -lscilab-cli
    -lscilibst
    -lscilinear_algebra
    -lscilocalization
    -lscimalloc
    -lscimatio
    -lscioptimization
    -lscioutput_stream
    -lsciparallel
    -lsciparameters
    -lscipolynomials
    -lscipvm
    -lscirandlib
    -lscirenderer
    -lsciscicos
    -lsciscicos_blocks
    -lsciscinotes
    -lscishell
    -lscisignal_processing
    -lscisound
    -lscisparse
    -lscispecial_functions
    -lscispreadsheet
    -lscistatistics
    -lscistring
    -lscisundials
    -lscisymbolic
    -lscitclsci
    -lscitime
    -lsciui_data
    -lsciumfpack
    -lsciwindows_tools
    -lscixcos
    What shell are you using, can you show me what you get for a list if you dont exclude lib?

    Also just some observations:

    1. I wouldnt mix /usr/ and /usr/local paths when compiling/linking unless you are 100% certain you are using the same exact version in the system and manually compiled one. So if you want to compile against /usr/local I wouldnt use pkg-config but takes its output and update the paths accordingly to point to /usr/local (not sure if it will do that by itself based on environment variables).

    2. The documentation said that the paths for the manually compiled version will probably be different than the binary version when linking so you may be missing an additional link directory. Can you past a directory listing for /usr/local/lib/scilab or compare its directory structure to what is recommended for source tree LD_LIBRARY_PATH in the link I pasted above.

    3. Have you modified your shell environment variables at all (in particular those that deal with compiling/linking)?

  2. #12
    Join Date
    Nov 2013
    Beans
    9

    Re: c++ linking problem on ubuntu 12.04

    Ok I found why I don't have the same result than you with the command
    "ls /usr/lib/scilab/ | sed 's/^lib/-l/g' | sed "s/\.so.*$//g" | sort | uniq | grep -v disable" it was because of option in my .bashrc ... now that I rename it's changing correctly the lib*
    I also removed the compiled version to only keep the one proposed by ubuntu package.

    And then I managed to compile!! Thank a lot, your wonderful!!!

    I need to look what's wrong in my bashrc and add all the libraries automaticaly with CMake but I know now that it's only a problem in my project and in my configuration. It's far better

  3. #13
    Join Date
    Nov 2013
    Beans
    9

    Re: c++ linking problem on ubuntu 12.04

    For the problem with the ls, it seems to come from a problem with the option --color (in my .bashrc I created the alias ls="ls --color") without this alias it's working perfectly

  4. #14
    Join Date
    Sep 2008
    Beans
    551
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: c++ linking problem on ubuntu 12.04

    Use absolute path /bin/ls I think should avoid triggering the alias so you can leave it in. Oddly though I have the same alias on my box although color is set to auto, see if that helps:

    alias ls='ls --color=auto'

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •