I can't build from source anymore, I attach the log. Looks like there is some sort of issue with
header files of OSG, they seem to lack something OpenMW expects. I tried with your custom
fork and with vanilla OSG -- result is the same.
Any idea what's going on and how to fix it?
Building from source fails
Building from source fails
- Attachments
-
- build_log.txt
- The build log
- (174.82 KiB) Downloaded 179 times
Re: Building from source fails
Why you have headers in /usr/local/include? Package managers usually place files in /usr/include.
Can you post an output of command:
Also can you build an older code or no? If yes, can you do bisect?
Can you post an output of command:
Code: Select all
find /usr -name "Quat*"
Re: Building from source fails
That command finds some relevant files. I think when you build manually everything is installed in
/usr/local/, at least OpenMW certainly installs itself there with sudo make install. On the other hand,
when I install OpenMW via package manager, it goes into /usr/.
Previously I installed OpenMW with package manager and then built it myself, so perhaps that how
it was able to find header files it needed. I'll try the same now.
I build according to the instructions for developers:
<pre>
$ mkdir build
$ cd build
$ cmake ../
$ make
$ sudo make install
</pre>
/usr/local/, at least OpenMW certainly installs itself there with sudo make install. On the other hand,
when I install OpenMW via package manager, it goes into /usr/.
Previously I installed OpenMW with package manager and then built it myself, so perhaps that how
it was able to find header files it needed. I'll try the same now.
I build according to the instructions for developers:
<pre>
$ mkdir build
$ cd build
$ cmake ../
$ make
$ sudo make install
</pre>
Re: Building from source fails
OK, I think OpenMW build script got confused because I built and installed scawl's custom forked OSG, and it went into
/usr/local, just like OpenMW itself. I think it's not possible to use that fork for me. To fix things, I uninstalled that fork:
Then I installed the proper OSG from my package manager and did make clean. It succeeded. I think it should be noted
that OpenMW does not build properly with that custom fork as it misses the necessary headers.
/usr/local, just like OpenMW itself. I think it's not possible to use that fork for me. To fix things, I uninstalled that fork:
Code: Select all
osg $ sudo make uninstall
that OpenMW does not build properly with that custom fork as it misses the necessary headers.
- psi29a
- Posts: 5356
- Joined: 29 Sep 2011, 10:13
- Location: Belgium
- Gitlab profile: https://gitlab.com/psi29a/
- Contact:
Re: Building from source fails
It builds just fine with the custom OSG. Have you tried configuring with the proper prefix instead of using the default that goes to /usr/local ?
http://trac.openscenegraph.org/projects ... uides/Make
The OSG from your package manager are more than likely the ones made by me and yes I had to set the proper prefix location.
Regardless, Scrawl's OSG fork is on the PPA anyway. I built it so you don't have to.
http://trac.openscenegraph.org/projects ... uides/Make
The OSG from your package manager are more than likely the ones made by me and yes I had to set the proper prefix location.
Regardless, Scrawl's OSG fork is on the PPA anyway. I built it so you don't have to.
Re: Building from source fails
Thanks for the clarification! I'll try to get it working once again.
Re: Building from source fails
Just a note - you should avoid to use "make install" (it is a very bad practice - it lead to problems when you want to remove/update package). You should make a package for your package manager instead (checkinstall for Debian/Ubuntu, rpmbuild for SUSE, write a ebuild for Gentoo etc.), or launch from build folder at least.
Re: Building from source fails
make install for OSG installs headers into /usr/local/include, and libraries in /usr/local/lib64 on 64 bit systems. However, it installs pkg_config files marked to look in /usr/local/lib, my usual workaround is to symlink /usr/local/lib64 to /usr/local/lib. That'll make certain that the libraries go into the expected location.