No 'make install' ?

Everything about development and the OpenMW source code.
Post Reply
User avatar
artorius
Posts: 46
Joined: 08 Mar 2012, 13:59
Location: VA, USA

No 'make install' ?

Post by artorius »

This question is posted for Zini, or whoever can answer this.

I'm trying to create a Fedora rpm file for openmw. However, it needs a command for 'make install', and when I attempt to build it, I get the...

make: *** No rule to make target 'install'. Stop.

... message.

lgro on IRC said that it should be there, but when I try to compile the source I get the same message.

Could I get a modified makefile so that I can have the 'make install' target?

Thanks!
User avatar
Zini
Posts: 5538
Joined: 06 Aug 2011, 15:16

Re: No 'make install' ?

Post by Zini »

Makefiles are created automatically by cmake. We don't write them by hand. And make install should work and indeed it does for me. Not sure what your problem is. Did you get any strange messages while running cmake?
User avatar
artorius
Posts: 46
Joined: 08 Mar 2012, 13:59
Location: VA, USA

Re: No 'make install' ?

Post by artorius »

Not that I noticed. I'll give it another go and see what cmake says.

Well, this is what I get when I run cmake, I don't see anything odd:

Code: Select all

[artorius@laptop build-cmake-test]$ cmake ../openmw-0.12.0-source
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- OpenMW pre-built binaries not found.  Using standard locations.
-- checking for one of the modules 'OGRE'
--   libraries : OgreMain;pthread from /usr/lib64
--   includes  : /usr/include/OGRE
--   plugins   : /usr/lib64/OGRE
-- Boost version: 1.47.0
-- Found the following Boost libraries:
--   system
--   filesystem
--   program_options
--   thread
-- Looking for OIS...
-- OIS_PREFIX_PATH changed.
-- checking for module 'OIS'
--   found OIS, version 1.2.0
-- Found OIS: optimized;/usr/lib64/libOIS.so;debug;/usr/lib64/libOIS.so
-- Found OpenAL: /usr/lib64/libopenal.so 
-- Found Bullet: /usr/lib64/libBulletDynamics.so 
-- Found Freetype: /usr/lib64/libfreetype.so 
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Found Qt4: /usr/bin/qmake-qt4 (found version "4.8.0")
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.5")
-- Found PNG: /usr/lib64/libpng.so 
-- Configuring done
-- Generating done
-- Build files have been written to: /home/artorius/Games/openmw/build-cmake-test
I should also add that I can run cmake, then make just fine and run the game. I just can't seem to get a 'make install' out of it, which I need for building an rpm.
User avatar
artorius
Posts: 46
Joined: 08 Mar 2012, 13:59
Location: VA, USA

Re: No 'make install' ?

Post by artorius »

No need to worry about this one. For some reason, a make file will not build on Fedora for this. With the help of some guys over at the Fedora forums, I finally got a fully working proper Fedora RPM built for 0.12.0.

Currently, the rpm installs the openmw.cfg file into /etc/openmw/, so obviously the user would need root privileges to modify the file to point to the Morrowind data location. Is there support yet for openmw to create a .openmw.cfg somewhere in the user's home directory, so that they could modify that?

Once I get that bit squared up, I'd like to discuss doing Fedora builds in the future for this project, if you guys need someone to do that for you.

Thanks!
User avatar
Zini
Posts: 5538
Joined: 06 Aug 2011, 15:16

Re: No 'make install' ?

Post by Zini »

Currently, the rpm installs the openmw.cfg file into /etc/openmw/, so obviously the user would need root privileges to modify the file to point to the Morrowind data location. Is there support yet for openmw to create a .openmw.cfg somewhere in the user's home directory, so that they could modify that?
OpenMW looks for openmw.cfg files in multiple locations. One of them is usually ~/.config/openmw. The settings in these files are merged, with the more user-specific files having a higher priority.
Once I get that bit squared up, I'd like to discuss doing Fedora builds in the future for this project, if you guys need someone to do that for you.
Sure!
User avatar
psi29a
Posts: 5361
Joined: 29 Sep 2011, 10:13
Location: Belgium
Gitlab profile: https://gitlab.com/psi29a/
Contact:

Re: No 'make install' ?

Post by psi29a »

The main problem was discussed in PM and not in this thread, that the RPMs built by cmake/cpack on Ubuntu do not work on Fedora (and possibly other RPM distributions) because the libraries/dependencies used are different. In theory, if he runs cpack on Fedora, it should "just work" by using Fedora's libraries.

@artorius: You said that the RPMs I created did not work, can you validate that cpack works(or not) in building a usuable RPM on your machine?
User avatar
artorius
Posts: 46
Joined: 08 Mar 2012, 13:59
Location: VA, USA

Re: No 'make install' ?

Post by artorius »

Sure thing, I'll give it a go this evening.

The main thing is that Fedora is pretty strict on using specific build policies on creating RPMs, so I was working over the weekend on getting the build to work within those guidelines.

I see that I do in fact have a ~/.config/openmw/openmw.cfg file, is that created after running omwlauncher?
User avatar
pvdk
Posts: 528
Joined: 12 Aug 2011, 16:34

Re: No 'make install' ?

Post by pvdk »

artorius wrote:I see that I do in fact have a ~/.config/openmw/openmw.cfg file, is that created after running omwlauncher?
Yes, for now it only writes the masters/plugins selected in the launcher but 0.13 will also ask the user for the data directory if there's no valid entry present in the config files, and write that to the user config.
User avatar
artorius
Posts: 46
Joined: 08 Mar 2012, 13:59
Location: VA, USA

Re: No 'make install' ?

Post by artorius »

Ah, got it.

Do you guys want my Fedora 16 rpm's for 0.12.0 or wait for 0.13.0?
Post Reply