Giter Site home page Giter Site logo

Comments (8)

diemmarkus avatar diemmarkus commented on May 19, 2024

hi,
thanks for the hint. could you check if webp is really turned off in your cmake? - we don't need webp anymore and stefan turned it off in 1a5a0c5.

from nomacs.

sfiel avatar sfiel commented on May 19, 2024

yes, webp is turned off ... the REMOVE_ITEM error was also removed last week when updating the cmake to our new structure. Please check out the newest version, I have updated the build system on linux last friday

from nomacs.

pmattern avatar pmattern commented on May 19, 2024

The failure of cmake due to REMOVE_ITEM ceased in aeadc94. Btw. it could already be seen in 1949405 and 20e6f3a as well, didn't test the commits before. The failure to build due to WebP ceased in 1a5a0c5.
Both problems were mentioned only as I thought they may eventually have masked when the actual problem of this issue started.

This issue's actual problem is the failure to launch after compiling successfully as depicted in the first comment's first paragraph.
It started in 1a5a0c5. As of 4799891 (and still e. g. in 93bcf2a) the failure persists, the error message got replaced by nomacs: error while loading shared libraries: libnomacsCore.so: cannot open shared object file: No such file or directory.

from nomacs.

sfiel avatar sfiel commented on May 19, 2024

I have just installed a archlinux on a virtual machine and i have no problem at all compiling and running the actual master branch on it ... have you already tried to delete the cmake cache?

from nomacs.

pmattern avatar pmattern commented on May 19, 2024

Apparently make target install didn't get adjusted to some code changes:

Running nomacs in-tree works here, too. Also, all needed libraries are in place

$ find . -iname '*libnomacs*' 
./libnomacsGui.so
./libnomacsLoader.so
./libnomacsCore.so

But after installing (make install) binary nomacs doesn't find the libraries any longer

$ ldd /usr/local/bin/nomacs | grep libnomacs 
        libnomacsGui.so => not found
        libnomacsLoader.so => not found
        libnomacsCore.so => not found

which indeed cannot be found where they are expected

# updatedb && locate libnomacs 
/usr/local/lib/libnomacsGui.so

(in-tree results omitted).

from nomacs.

sfiel avatar sfiel commented on May 19, 2024

Thanks ... I forgot to change the install targets.

it is fixed now, altough you have to run ldconfig manually ... Haven't found a possibility to make cmake do this

from nomacs.

pmattern avatar pmattern commented on May 19, 2024

Problem is fixed as of 9e98278.

The need to run ldconfig depends, among other, on the selection of directories which are searched for shared libraries by default, AFAIK.
E. g. on Arch Linux it does not have to be run if switch -DCMAKE_INSTALL_PREFIX=/usr had been added to the cmake invocation of nomacs as /usr/lib is considered anyway. If on the other hand cmake was run without any optional switch running ldconfig won't do as /usr/local/lib still isn't considered. Rather, the latter needs to be added to the ld.so configuration files before running ldconfig.
But I do not think this has any real relevance as nomacs will be installed by distribution packages most of the time and packagers should make sure that shared libraries are taken into account during installation of binary packages if needed.

Issue can be closed, IMO.

from nomacs.

sfiel avatar sfiel commented on May 19, 2024

thanks a lot

from nomacs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.