Bakefile sample does not work in MSW/2.8.9

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Hitnrun
Knows some wx things
Knows some wx things
Posts: 27
Joined: Thu Sep 06, 2007 10:34 pm

Bakefile sample does not work in MSW/2.8.9

Post by Hitnrun »

I'm trying to learn bakefile, so I tried generating the sample as stated on the readme (using 0.2.5 on windows):
C:\prog\src\wxMSW-2.8.9\build\bakefiles\wxpreset\sample>bakefile -f msvc -I .. minimal.bkl
Traceback (most recent call last):
File "C:\programas\Bakefile\src\bakefile.py", line 237, in <module>
run(sys.argv[1:])
File "C:\programas\Bakefile\src\bakefile.py", line 204, in run
read_ok = reader.read(args[0])
File "C:\programas\Bakefile\src\reader.py", line 1150, in read
processFile(filename)
File "C:\programas\Bakefile\src\reader.py", line 1108, in processFile
__doProcess(file=filename)
File "C:\programas\Bakefile\src\reader.py", line 1080, in __doProcess
processNodes(m.children)
File "C:\programas\Bakefile\src\reader.py", line 1077, in processNodes
h(e)
File "C:\programas\Bakefile\src\reader.py", line 943, in handleInclude
if processFileIfExists(os.path.join(dir, file), justOnce):
File "C:\programas\Bakefile\src\reader.py", line 1112, in processFileIfExists
processFile(filename, onlyOnce)
File "C:\programas\Bakefile\src\reader.py", line 1108, in processFile
__doProcess(file=filename)
File "C:\programas\Bakefile\src\reader.py", line 1080, in __doProcess
processNodes(m.children)
File "C:\programas\Bakefile\src\reader.py", line 1071, in processNodes
processNodes(e.children)
File "C:\programas\Bakefile\src\reader.py", line 1077, in processNodes
h(e)
File "C:\programas\Bakefile\src\reader.py", line 943, in handleInclude
if processFileIfExists(os.path.join(dir, file), justOnce):
File "C:\programas\Bakefile\src\reader.py", line 1112, in processFileIfExists
processFile(filename, onlyOnce)
File "C:\programas\Bakefile\src\reader.py", line 1108, in processFile
__doProcess(file=filename)
File "C:\programas\Bakefile\src\reader.py", line 1080, in __doProcess
processNodes(m.children)
File "C:\programas\Bakefile\src\reader.py", line 1077, in processNodes
h(e)
File "C:\programas\Bakefile\src\reader.py", line 171, in handleSet
cond = mk.makeCondition(condstr)
File "C:\programas\Bakefile\src\mk.py", line 447, in makeCondition
assert conditions[cname].exprs == condexpr_list
AssertionError
Error executing the script!
I tried with 0.2.4 too, same error, is there any problema with wx presets?
tan
wxWorld Domination!
wxWorld Domination!
Posts: 1471
Joined: Tue Nov 14, 2006 7:58 am
Location: Saint-Petersburg, Russia

Post by tan »

Hi,
it works for me (for wxMSW-2.8.8 and bakefile 0.2.5):

Code: Select all

bkl -fmsvc -D WXTOPDIR=../../ minimal.bkl
EDIT: actually bkl is cmd file:
python C:\Tools\bakefile-0.2.5\src\bakefile.py %*
OS: Windows XP Pro
Compiler: MSVC++ 7.1
wxWidgets: 2.8.10
Hitnrun
Knows some wx things
Knows some wx things
Posts: 27
Joined: Thu Sep 06, 2007 10:34 pm

Post by Hitnrun »

tan wrote:Hi,
it works for me (for wxMSW-2.8.8 and bakefile 0.2.5):

Code: Select all

bkl -fmsvc -D WXTOPDIR=../../ minimal.bkl
EDIT: actually bkl is cmd file:
python C:\Tools\bakefile-0.2.5\src\bakefile.py %*
Hmm I don't seem to have this bkl command, I got the windows package from bakefile.org, is this the one to use?

I tried to run the second command too, but got the same error:
C:\prog\src\wxMSW-2.8.9\build\bakefiles\wxpresets\sample>python c:\Programas\Bak
efile\src\bakefile.py -fmsvc -I .. minimal.bkl
Traceback (most recent call last):
File "c:\Programas\Bakefile\src\bakefile.py", line 237, in <module>
run(sys.argv[1:])
File "c:\Programas\Bakefile\src\bakefile.py", line 204, in run
read_ok = reader.read(args[0])
File "C:\programas\Bakefile\src\reader.py", line 1150, in read
processFile(filename)
File "C:\programas\Bakefile\src\reader.py", line 1108, in processFile
__doProcess(file=filename)
File "C:\programas\Bakefile\src\reader.py", line 1080, in __doProcess
processNodes(m.children)
File "C:\programas\Bakefile\src\reader.py", line 1077, in processNodes
h(e)
File "C:\programas\Bakefile\src\reader.py", line 943, in handleInclude
if processFileIfExists(os.path.join(dir, file), justOnce):
File "C:\programas\Bakefile\src\reader.py", line 1112, in processFileIfExists
processFile(filename, onlyOnce)
File "C:\programas\Bakefile\src\reader.py", line 1108, in processFile
__doProcess(file=filename)
File "C:\programas\Bakefile\src\reader.py", line 1080, in __doProcess
processNodes(m.children)
File "C:\programas\Bakefile\src\reader.py", line 1071, in processNodes
processNodes(e.children)
File "C:\programas\Bakefile\src\reader.py", line 1077, in processNodes
h(e)
File "C:\programas\Bakefile\src\reader.py", line 943, in handleInclude
if processFileIfExists(os.path.join(dir, file), justOnce):
File "C:\programas\Bakefile\src\reader.py", line 1112, in processFileIfExists
processFile(filename, onlyOnce)
File "C:\programas\Bakefile\src\reader.py", line 1108, in processFile
__doProcess(file=filename)
File "C:\programas\Bakefile\src\reader.py", line 1080, in __doProcess
processNodes(m.children)
File "C:\programas\Bakefile\src\reader.py", line 1077, in processNodes
h(e)
File "C:\programas\Bakefile\src\reader.py", line 171, in handleSet
cond = mk.makeCondition(condstr)
File "C:\programas\Bakefile\src\mk.py", line 447, in makeCondition
assert conditions[cname].exprs == condexpr_list
AssertionError
User avatar
xaviou
Super wx Problem Solver
Super wx Problem Solver
Posts: 437
Joined: Mon Aug 21, 2006 3:18 pm
Location: Annecy - France

Post by xaviou »

Hi

@Hitnrun: I've tested, and I had the same errors.

@Tan: How did you install Bakefile ? With the downloadable setup file, or did you install python and bakefile separately ? Have you other environment variables or WXWIN is enough ?

Thanks in advance for you response.

Regards

Xav'
My wxWidgets stuff web page : X@v's wxStuff