Error with 'make install' on ODROID-C1 & Ubuntu 14.04

By cerrejon

Supporter (6)

cerrejon's picture

06-03-2015, 17:12

Ubuntu 14.04 runs Python 2.7.6 and compile, but when I try to run the command 'make install', the terminal show me:

odroid@odroid:~/Documents/openMSX$ make install
Using Python: python
Build configuration:
  Platform: arm-linux
  Flavour:  opt
  Compiler: g++
  Subset:   full build
Up to date: derived/arm-linux-opt/config/Version.ii
Installing openMSX:
  Executable...
Traceback (most recent call last):
  File "build/install.py", line 138, in 
    main(*sys.argv[1 : ])
  File "build/install.py", line 117, in main
    binaryBuildPath, targetPlatform, cbios, symlinkForBinary
  File "build/install.py", line 31, in installAll
    installDirs(installPrefix + binaryDestDir)
  File "/home/odroid/Documents/openMSX/build/fileutils.py", line 91, in installDirs
    _installDirsRec(path)
  File "/home/odroid/Documents/openMSX/build/fileutils.py", line 78, in _installDirsRec
    _installDirsRec(path[ : index])
  File "/home/odroid/Documents/openMSX/build/fileutils.py", line 78, in _installDirsRec
    _installDirsRec(path[ : index])
  File "/home/odroid/Documents/openMSX/build/fileutils.py", line 78, in _installDirsRec
    _installDirsRec(path[ : index])
  File "/home/odroid/Documents/openMSX/build/fileutils.py", line 79, in _installDirsRec
    mkdir(path)
OSError: [Errno 2] No such file or directory: ''
make: *** [install] Error 1

Any idea?

Login or register to post comments

By mth

Champion (496)

mth's picture

06-03-2015, 22:39

It looks like the _installDirsRec() function cannot deal with a path that starts with more than one slash. I'll fix that. Are you using openMSX from Git or a released version?

Another question is why there are two or more slashes at the start of the path, as this normally does not happen. You could add "print path" as the first statement in the installDirs() function (build/fileutils.py, line 89, indent with one tab) to see what the path is.

By cerrejon

Supporter (6)

cerrejon's picture

07-03-2015, 07:46

I’ve used released version.

print path show:
/opt/openMSX/bin

By mth

Champion (496)

mth's picture

07-03-2015, 11:07

Ah, I was wrong about the double slashes: this problem will also occur when the top-level install directory (/opt) does not exist. So you can work around it by manually creating /opt, or by replacing "if not isdir(path)" by "if path and not isdir(path)". I have fixed the install script for the next openMSX release.

By cerrejon

Supporter (6)

cerrejon's picture

07-03-2015, 18:02

I figured that it was the problem.

I upload the binary to: this link.

With normal user, openMSX can’t find the C-BIOS. You must run as root.

Another problem is that on my TV with 1280x720, the emulator runs on a square (maybe 320x240) in the upper left corner.