I redid the build on a different machine and it worked. I'm not exactly sure why. I think it may have to do with a newer python installation (v2.4.X), but it could also have to do with the modules that are present.
I did find another problem and that is that zlib.dll must be available and in the path in order for linking to succeed.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have the latest code and have built it successfully on linux (and even irix), but Windows is not cooperating. When I build I get a dll but the build process is looking for a lib file. This is very frustrating and I'm not familiar with scons. Any help would be greatly appreciated:
Z:\herc\pp\m2\2007\jsoncpp.gcc41\jsoncpp\trunk\jsoncpp.win32>python scons.py pla
tform=msvc70
scons: Reading SConscript files ...
Building using PLATFORM = msvc70
scons: done reading SConscript files.
scons: Building targets ...
cl -GR -GX /nologo /MT /Iinclude /I. /c src\jsontestrunner\main.cpp /Fobuildscon
s\msvc70\src\jsontestrunner\main.obj
main.cpp
cl -GR -GX /nologo /MT /Iinclude /c src\lib_json\json_reader.cpp /Fobuildscons\m
svc70\src\lib_json\json_reader.obj
json_reader.cpp
cl -GR -GX /nologo /MT /Iinclude /c src\lib_json\json_value.cpp /Fobuildscons\ms
vc70\src\lib_json\json_value.obj
json_value.cpp
cl -GR -GX /nologo /MT /Iinclude /c src\lib_json\json_writer.cpp /Fobuildscons\m
svc70\src\lib_json\json_writer.obj
json_writer.cpp
link /nologo /dll /out:buildscons\msvc70\src\lib_json\json_vc70_libmt.dll /impli
b:buildscons\msvc70\src\lib_json\json_vc70_libmt.lib /LIBPATH:libs\msvc70 builds
cons\msvc70\src\lib_json\json_reader.obj buildscons\msvc70\src\lib_json\json_val
ue.obj buildscons\msvc70\src\lib_json\json_writer.obj
Install file: "buildscons\msvc70\src\lib_json\json_vc70_libmt.lib" as "libs\msvc
70\json_vc70_libmt.lib"
scons: *** [libs\msvc70\json_vc70_libmt.lib] buildscons\msvc70\src\lib_json\json
_vc70_libmt.lib: No such file or directory
scons: building terminated because of errors.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've tried building from within a cygwin shell and from within a DOS shell under Windows XP, but if fails. I get:
/home/herc/surf/jsoncpp> python scons.py platform=msvc70 check
scons: Reading SConscript files ...
Building using PLATFORM = msvc70
NameError: name 'targz' is not defined:
File "SConstruct", line 89:
env.Tool('targz')
File "scons-local-0.96.92/SCons/Environment.py", line 1107:
tool = apply(SCons.Tool.Tool, (tool, toolpath), kw)
File "scons-local-0.96.92/SCons/Tool/__init__.py", line 85:
module = self._tool_module()
File "scons-local-0.96.92/SCons/Tool/__init__.py", line 97:
return imp.load_module(self.name, file, path, desc)
File "scons-tools/targz.py", line 54:
targzAction = SCons.Action.Action(targz, varlist=['TARGZ_COMPRESSION_LEVEL',
'TARGZ_BASEDIR'])
Can anoyone tell me what I need to do to get this to work?
I also tried the vcproj file, but I only have msvc7 so that didn't work.
Herc
I redid the build on a different machine and it worked. I'm not exactly sure why. I think it may have to do with a newer python installation (v2.4.X), but it could also have to do with the modules that are present.
I did find another problem and that is that zlib.dll must be available and in the path in order for linking to succeed.
I have the latest code and have built it successfully on linux (and even irix), but Windows is not cooperating. When I build I get a dll but the build process is looking for a lib file. This is very frustrating and I'm not familiar with scons. Any help would be greatly appreciated:
Z:\herc\pp\m2\2007\jsoncpp.gcc41\jsoncpp\trunk\jsoncpp.win32>python scons.py pla
tform=msvc70
scons: Reading SConscript files ...
Building using PLATFORM = msvc70
scons: done reading SConscript files.
scons: Building targets ...
cl -GR -GX /nologo /MT /Iinclude /I. /c src\jsontestrunner\main.cpp /Fobuildscon
s\msvc70\src\jsontestrunner\main.obj
main.cpp
cl -GR -GX /nologo /MT /Iinclude /c src\lib_json\json_reader.cpp /Fobuildscons\m
svc70\src\lib_json\json_reader.obj
json_reader.cpp
cl -GR -GX /nologo /MT /Iinclude /c src\lib_json\json_value.cpp /Fobuildscons\ms
vc70\src\lib_json\json_value.obj
json_value.cpp
cl -GR -GX /nologo /MT /Iinclude /c src\lib_json\json_writer.cpp /Fobuildscons\m
svc70\src\lib_json\json_writer.obj
json_writer.cpp
link /nologo /dll /out:buildscons\msvc70\src\lib_json\json_vc70_libmt.dll /impli
b:buildscons\msvc70\src\lib_json\json_vc70_libmt.lib /LIBPATH:libs\msvc70 builds
cons\msvc70\src\lib_json\json_reader.obj buildscons\msvc70\src\lib_json\json_val
ue.obj buildscons\msvc70\src\lib_json\json_writer.obj
Install file: "buildscons\msvc70\src\lib_json\json_vc70_libmt.lib" as "libs\msvc
70\json_vc70_libmt.lib"
scons: *** [libs\msvc70\json_vc70_libmt.lib] buildscons\msvc70\src\lib_json\json
_vc70_libmt.lib: No such file or directory
scons: building terminated because of errors.