Building KDE Frameworks on MsWindows

In this two past weeks, I’m struggling to build KDE Frameworks in a Windows Machine… Why you could ask…  My Google Summer of Code project has this requirement. But that’s is not the purpose here.

If you will install KF5 on Windows you need to follow this tutorial.

I will list you the problems that I had, and the solutions that I found.

Python Issues

PyYaml

If you are building (emerge frameworks)… And you face this error:


  1. r:\>emerge frameworks
  2. *** Handling package: pyyaml, action: all ***
  3. *** Action: fetch for python/pyyaml ***
  4. *** Action: unpack for python/pyyaml ***
  5. *** Action: compile for python/pyyaml ***
  6. *** Action: cleanimage for python/pyyaml ***
  7. *** Action: install for python/pyyaml ***
  8. Fatal error in launcher: Unable to create process using ‘”‘
  9. emerge warning: Action: install for python/pyyaml FAILED
  10. *** Emerge all failed: all of python/pyyaml failed after 0:00:0 ***
  11. emerge error: fatal error: package python/pyyaml all failed

Well, Emerge couldn’t install PyYaml. At the PyYaml website the last version of PyYaml is for Python 3.4 and you can’t install if you installed Python 3.5(Latest Version) on your machine.

Since I don’t know a thing about Python, I reached out my friends at GSoC group and find this solution:

At the prompt do: python -m pip install pyaml (1)

In my case, the python returned that I needed it upgrade pip version and then install PyYaml. So I did this: python -m pip install –upgrade pip (2)

After pip upgrade, I tried the (1) command again, and it worked.

The next issue that I had was:


  1. *** Action: install for python/doxyqml ***
  2. ‘PYTHON27’
  3.   File “r:\\emerge\bin\emerge.py”, line 475, in <module>
  4.     success = main()
  5.   File “r:\\emerge\bin\emerge.py”, line 454, in main
  6.     if not handleSinglePackage( packageName, action, tempArgs ):
  7.   File “r:\\emerge\bin\emerge.py”, line 253, in handleSinglePackage
  8.     if not handlePackage( info.category, info.package, action, args.doContinue, args.update_fast ):
  9.   File “r:\\emerge\bin\emerge.py”, line 75, in handlePackage
  10.     success = success and doExec( package, “install” )
  11.   File “r:\emerge\bin\utils.py”, line 562, in inner
  12.     return fn(*args, **argv)
  13.   File “r:\\emerge\bin\emerge.py”, line 46, in doExec
  14.     ret = package.execute( action )
  15.   File “r:\emerge\bin\Package\PackageBase.py”, line 214, in execute
  16.     return self.runAction(command)
  17.   File “r:\emerge\bin\Package\PackageBase.py”, line 241, in runAction
  18.     ok = getattr(self, functions[command])()
  19.   File “r:\emerge\portage\python\doxyqml\doxyqml.py”, line 23, in install
  20.     pythonPath = emergeSettings.get(“Paths”,”PYTHON27″)
  21.   File “r:\emerge\bin\EmergeConfig.py”, line 231, in get
  22.     self._config[ group ][ key ]
  23.   File “C:\ProgramFiles\Python\lib\configparser.py”, line 1230, in __getitem__
  24.     raise KeyError(key)

I run at the prompt: python -m pip install doxyqml

But I have this return:


r:\>python -m pip install doxyqml
Collecting doxyqml
Downloading doxyqml-0.2.0.tar.bz2
Complete output from command python setup.py egg_info:
Traceback (most recent call last): File “<string>”, line 1, in <module>

File “C:\Users\ADMINI~1\AppData\Local\Temp\2\pip-build-yyazw6q7\doxyqml\setup.py”, line 6, in <module>
from doxyqml import doxyqml File “C:\Users\ADMINI~1\AppData\Local\Temp\2\pip-build-yyazw6q7\doxyqml\doxyqml\doxyqml.py”, line 63
except LexerError, exc:^
SyntaxError: invalid syntax
—————————————-
Command “python setup.py egg_info” failed with error code 1 in C:\Users\ADMINI~1\AppData\Local\Temp\2\pip-build-yyazw6q7\doxyqml\


And that was one of the catches.

If you see at kdesetttings.ini file there’s this:

##Some applications may need python 2.7 

#Python27 = C:\python27

And those lines are commented. And at the tutorial at KDE website, they say to you that you need to install Python and the Path inside kdesettings.ini. However they don’t say to you to install Python2.7, and when you edit the file to set Python path you look at those comment lines and think: “Well… I guess that I don’t need that…” Like me, you are wrong. So I downloaded Python 2.7 from Python website and installed, after that I set the path to the source in the kdesettins.ini. A tip that I give to you: Install everything: Python 3.5 and 2.7 in a folder with a name without spaces. Because if you install in “Program Files” with space, emerge will give you an error.

After everything set up, I run the (1) command and everything started to compile fine.

If you have any other issues you can reach to KDE Windows channel at IRC Freenode: #kde-windows

I hope that this article helps you. =)

And if in the future I have more issues on this task, I will update this tutorial =)

That’s all folks!

 

 

Advertisements

4 thoughts on “Building KDE Frameworks on MsWindows

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s