Tnx Patrick,

It was indeed snap! It took me a while that the Netbeans binary zip also
contains a script to run NB in Linux. But after figuring it out, I had my
application built and launched right away. Tnx!

Op za 30 sep 2023 om 12:49 schreef Fedor van Eldijk <fveld...@gmail.com>:

> What exactly is an ordinary NetBeans? On the downloadpage I can only see a
> .deb for Ubuntu. There is also a binary ZIP but that only provides .exe
> files, so that won't work.
>
> The .deb does not work with the C/C++ plugin, it complains about unpack200
> which is nowhere to be found.
>
> Is there another way to install NetBeans on Ubuntu?
>
> Kind regards
> Fedor
>
>
> Op za 30 sep 2023 om 11:44 schreef Patrik Karlström <pat...@trixon.se>:
>
>> Perhaps something with snap is behind this.
>> Does it work when you run it from an ordinary NetBeans, not a snap one?
>>
>> /Patrik
>>
>> Den lör 30 sep. 2023 kl 09:48 skrev Fedor van Eldijk <fveld...@gmail.com
>> >:
>>
>>> When I run a simple application that uses a library, Ogre3D in my case,
>>> from NetBeans, it breaks with the following message:
>>>
>>> Error occurred during execution: InternalErrorException:
>>> Could not load dynamic library 
>>> /snap/netbeans/84/usr/local/lib/OGRE/RenderSystem_GL.
>>> System Error: /snap/netbeans/84/usr/local/lib/OGRE/RenderSystem_GL.so.14.1:
>>> cannot open shared object file:
>>> No such file or directory in DynLib::load at
>>> /home/fedor/projecten/c++/ogre-14.1.0/OgreMain/src/OgreDynLib.cpp (line 136)
>>>
>>>
>>> The app can not find a library it needs and it looks like it is
>>> appending the search path I gave it (usr/local/lib/OGRE) to the
>>> installation path of NetBeans (/snap/netbeans/84).
>>>
>>> When I launch the same app without NetBeans, just by clicking on it, it
>>> runs fine.
>>>
>>> How can I get the app when launched from NetBeans to use the right
>>> working directory and search in the propper locations for libs?
>>>
>>> *(Using Ubuntu 22.04LTS, NetBeans 19 with g++ version 11.4.0)*
>>>
>>>
>>>

Reply via email to