LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 01-29-2008, 07:44 AM   #1
Virtuality
Member
 
Registered: Jan 2007
Distribution: Debian Etch
Posts: 193

Rep: Reputation: 30
Trying to build a kde environment with emerge on W-Vista


Hi

I'm having a rough time following this guide:

http://techbase.kde.org/Getting_Star...Windows/emerge

My goal is to compile Amarok on windows vista.

At one stage I had emerge downloading kdebase and hours later it managed to install nothing (this was on Windows XP).

I have started over since because the next day it kept saying it couldn't find emerge.py even though it kept pointing right to it.

Now, in Vista, starting over I have new issues.

I followed the guide 100%.

I setup my files and everything.

But this is all I get from emerge qt:

c:\kderoot\emerge\bin>emerge qt

c:\kderoot\emerge\bin>echo emerge.bat executed
emerge.bat executed

c:\kderoot\emerge\bin>python \emerge\bin\emerge.py qt
Traceback (most recent call last):
File "\emerge\bin\emerge.py", line 22, in <module>
import utils
File "C:\emerge\bin\utils.py", line 32, in <module>
WGetExecutable = os.path.join( os.getenv( "KDEROOT" ), "gnuwin32", "bin", "w
get.exe" )
File "c:\python25\lib\ntpath.py", line 90, in join
assert len(path) > 0
TypeError: object of type 'NoneType' has no len()



This Screenshot shows my directories/setup and the settings batch file, maybe I got something wrong someone can pinpoint for me? thanks.

http://i26.tinypic.com/rl9on8.jpg

---------------

The image didn't have enough room to include the entire batch file, here is the whole thing::

Code:
@echo off
rem here you set the base directory under which the whole kde
rem system will live
set KDEROOT=c:\kderoot

rem here you set the compiler to be used:
rem mingw : use the mingw gcc compiler (recommended)
rem msvc2005: use the microsoft visual studio 2005 c-compiler
rem
set KDECOMPILER=mingw

rem here you should set the path to your python installation
rem this is needed, so that python will be found, when
rem python scripts will be executed. by setting this here,
rem you donīt have to change the environment settings of
rem windows at all
set PYTHONPATH=c:\python25

rem here you set set the path to msys if you want to compile
rem automake-based projects (only needed for some internal packages)
set MSYSDIR=c:\kderoot\msys

rem here you can set the download directory to another dir
rem if you want, so you can share the same download dir between
rem mingw and msvc
set DOWNLOADDIR=c:\kdedownload

rem here you can tell emerge in which dir you want to save the
rem svn checkout of kde sources, and you can optionally
rem set the svn.kde.org server instead of the anonsvn.kde.org
rem one, so that you can directly commit your changes from the
rem svn checkout from emerge, if you want.
set KDESVNDIR=c:\kdesvn
set KDESVNSERVER=svn://anonsvn.kde.org
set KDESVNUSERNAME=username
rem for security reasons you better log in to the kde server by hand
rem and set the username and password at first login. then svn will
rem remember the password and it does not have to be written down here
rem set KDESVNPASSWORD=password

rem if you use svn+ssh, you'll need a ssh-agent equaivalent for managing the authorization 
rem Pageant is provided by putty, get it at 
rem http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
rem and make sure plink is in your path and Pageant is configured (you need to import your key)
set SVN_SSH=plink 

rem it is not recommended anymore to use the traditional layout.
rem if you want to use emerge.py together with the kdewin-installer, you should set
rem the value of directory_layout to 'installer', if you leave it unset or set it to
rem 'traditional' you get the category sublayout
set directory_layout=installer

rem You can set type of emerge build.
rem There are standard two build types: Debug and Release
rem - both are used if no EMERGE_BUILDTYPE is set.
rem There is a third buildtype called RelWithDebInfo
rem - which is release (optimized) build but containing debugging information.
rem You can override the build type at the commandline using the '--buildtype=[BuildType]' option.
rem The build type which is set here will not override the buildtype in .py package files.
set EMERGE_BUILDTYPE=RelWithDebInfo

rem If you want to have verbose output uncomment the following option and set it to any positive integer
rem for verbose output and to 0 or disable it for normal output
set EMERGE_VERBOSE=1

rem If you want to have shorter build times, and less disk usage, enable the next option
rem for all kde svn based stuff it will not copy the svn sources again
rem problem is that you cannot make packages when this option is set
set EMERGE_NOCOPY=True

rem If you want to build all packages with buildTests, enable the next option
rem this applies only to the cmake based packages
rem set EMERGE_BUILDTESTS=True

rem The next option only applies if you want to make packages
rem it sets the output directory where your generated packages should be stored
rem set EMERGE_PKGDSTDIR=%KDEROOT%\tmp

rem No editing should be necessary below this line (in an ideal world)
rem ##################################################################

set PATH=%PYTHONPATH%;%PATH%

echo kdesettings.bat executed
echo KDEROOT     : %KDEROOT%
echo KDECOMPILER : %KDECOMPILER%
echo KDESVNDIR   : %KDESVNDIR%
echo PYTHONPATH  : %PYTHONPATH%
echo DOWNLOADDIR : %DOWNLOADDIR%
I'd REALLY appreciate help.

Last edited by Virtuality; 01-29-2008 at 07:47 AM.
 
Old 01-29-2008, 07:50 AM   #2
Virtuality
Member
 
Registered: Jan 2007
Distribution: Debian Etch
Posts: 193

Original Poster
Rep: Reputation: 30
OH GOD I ....


fixed:

set PYTHONPATH=c:\python25\bin

not

set PYTHONPATH=c:\python25

how did I not see that...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Looking for build environment setup recommendations hq4ever Programming 1 11-09-2006 10:19 AM
LXer: Here is why anti-piracy technology being in-build in Microsoft Vista could help GNU/Linux LXer Syndicated Linux News 0 10-06-2006 11:54 PM
build environment arkss Linux - Software 0 06-25-2005 04:54 PM
cannot emerge kde irfanhab Linux - Distributions 3 05-28-2005 11:41 PM
I've installed gcc, how do i build a complier environment? Derek-kun Linux - Newbie 4 09-23-2003 10:50 PM


All times are GMT -5. The time now is 10:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration