@danshumway (Daniel Shumway) posted a new topic, subject "Compiling MyPaint: documentation errors?". It read:

   When compiling MyPaint from source, I ran into two problems with the documentation.
    
    The first is easy enough to fix:
    [code] 
        echo PKG_CONFIG_PATH=/usr/local/lib/pkgconfig >>/etc/environment
        
    [/code]
    
    should read
    [code] 
        echo PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ >> /etc/environment
        
    [/code]
    
    since the trailing slash seems to be a requirement for actually finding libmypaint. Might also be a good idea to direct it into `~/.bashrc` instead since that won't require a restart and is more user-specific?
    
    The only reason I didn't just submit a pull request to fix that was because I'm not sure if a pull request should include the second problem I ran into: running `sudo ldconfig` wasn't enough for me to get MyPaint to recognize that the library was installed.
    
    The `so` files for me ended up being located under `/usr/local/lib/mypaint`, but the demo build wouldn't launch until I symlinked them to `/usr/local/mypaint`, even though `pkg-config --list-all | grep -i mypaint` could find them no problem.
    
    I'm on Manjaro Linux, and I'm installing the source alongside a packaged installation from the pacman repos. It's possible I just messed something else up or that my distro setup is atypical and this isn't a normally needed extra step?

So @toniw replied

    Not 100% sure about Manjaro, but for Arch I had to manually enable the usr/local/lib directory:
    [code] 
        echo '/usr/local/lib' > /etc/ld.so.conf.d/usrlocal.conf
        ldconfig
        
    [/code]
    
    See: https://gist.github.com/daryltucker/1c17354fa39ce8cb2285

To which @briend (Brien Dieterle) replied

    @danshumway can you see if toniw's solution alone can fix your build issues? I can't find anything on the Internet that would suggest PKG_CONFIG_PATH is sensitive to trailing /. I'm thinking maybe that was a red-herring?

So @danshumway (Daniel Shumway) replied

    Will do. Manjaro is based off of Arch, so there's a good chance.

So @danshumway (Daniel Shumway) replied

    Sorry to take so long to respond to this.
    
    I rebuilt with @toniw's suggestion and looks like that solves the problem - surprisingly, not only does it also get rid of the extra slash requirement for `PKG_CONFIG_PATH`, leaving the ending slash off seem to be actually required once `usr/local/lib` is required.
    
    It would still be kind of nice to have the extra command documented; if it effects Arch/Manjaro I suspect it _might_ trickle down to Fedora as well. Unfortunately I don't run Fedora anywhere that I could check quickly.

To which @briend (Brien Dieterle) replied

    Thanks for testing. I did add a note for Arch and derivatives


{'source': 'discourse', 'url': 'https://community.mypaint.org/t/compiling-mypaint-documentation-errors/1211', 'title': 'Compiling MyPaint: documentation errors?', 'views': 969, 'has_accepted_answer': False, 'word_count': 416, 'like_count': 0, 'reply_count': 2, 'participant_count': 3, 'posts': 6, 'tags': 'linux', 'author': '@danshumway (Daniel Shumway)', 'participants': '@danshumway (Daniel Shumway), @toniw, @briend (Brien Dieterle)', 'image_url': [None], 'created_at': '2018-05-09T05:48:09.513Z', 'last_posted_at': '2018-06-09T21:59:58.316Z'}