glib build failed
I tried building the glib library, but came up with linker errors. the log is as below:
1>------ Build started: Project: libgmodule, Configuration: Debug Win32 ------
1>Compiling...
1>gmodule.c
1>Linking...
1>"H:\Program Files\OAH Build\bin\link.exe" @"D:\personal\
1>LINK : fatal error LNK1104: cannot open file 'libglib-2.0.lib'
1>Build log was saved at "file:/
1>libgmodule - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 4 up-to-date, 0 skipped ==========
It looks to be that for gmodule sub project, its not finding libglib-2.0.lib. with searching for rule for linking i couldn't find it. Can you people share the build method and the sequence.
And also solution to this error.
Thanks in advance. :)
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- OAH Build Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- preetammn
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
Try to rebuild instead... or clean first, then build. Its hard to say what went wrong by reading this build log.
This is how gmodule is built:
- Generated files are generated.
- Dependencies (from gmodule-2.0.pc (Requires)) are extracted and written to $(IntDir)
- C code are compiled with cl.exe (gmodule.inc used as input).
- obj files are linked with link.exe (through linkwrapper) (gmodule.libs used as input)
Hope this helps. :)
Revision history for this message
|
#2 |
The detailed build log is as below:
directory from which build is launched is D:\personal\
OS directory path where libgli.lib is generated is H:\Documents and Settings\
Why is it that the libs are getting generated at my account path?
_______
1>------ Build started: Project: generated, Configuration: Debug Win32 ------
2>------ Build started: Project: libintl-proxy, Configuration: Debug Win32 ------
2>Installing libintl.h to H:\Documents and Settings\
1>Generating glibconfig.h
1>Generating config.h
2>Compiling...
1>Build log was saved at "file:/
1>generated - 0 error(s), 0 warning(s)
3>------ Build started: Project: libpcre, Configuration: Debug Win32 ------
3>Compiling...
2>libintl.c
3>pcre_compile.c
3>pcre_config.c
3>pcre_dfa_exec.c
2>Creating library...
3>pcre_exec.c
2>"H:\Program Files\OAH Build\bin\link.exe" /LIB @"D:\personal\
3>pcre_fullinfo.c
3>pcre_get.c
3>pcre_globals.c
2>Build log was saved at "file:/
2>libintl-proxy - 0 error(s), 0 warning(s)
4>------ Build started: Project: glib-mkenums, Configuration: Debug Win32 ------
3>pcre_info.c
4>Generating H:\Documents and Settings\
4>Build log was saved at "file:/
4>glib-mkenums - 0 error(s), 0 warning(s)
3>pcre_maketables.c
3>pcre_newline.c
3>pcre_ord2utf8.c
3>pcre_refcount.c
3>pcre_study.c
3>pcre_tables.c
3>pcre_
3>pcre_
3>d:\personal\
3>pcre_valid_utf8.c
3>pcre_version.c
3>pcre_xclass.c
3>pcre_chartables.c
3>Generating Code...
3>Creating library...
3>"H:\Program Files\OAH Build\bin\link.exe" /LIB @"D:\personal\
3>Build log was saved at "file:/
3>libpcre - 0 error(s), 1 warning(s)
5>------ Build started: Project: libglib, Configuration: Debug Win32 ------
5>Generating glib.def
5>glib.symbols
5>Generating glib.rc
5>Generating glib-2.0.pc
5>Generating pkg-config file and building internal dependencies ('Requires:') used by the compiler (cl.exe) and linker (link.exe)
5>Installing gwin32.h to H:\Documents and Settings\
5>Installing gutils.h to H:\Documents and Settings\
5>Installing gurifuncs.h to H:\Documents and Settings\
5>Installing gunicode.h to H:\Documents and Settings\
5>Installing gtypes.h to H:\Documents and Settings\
5>Installing gtree.h to H:\Documents and Settings\
5>Installing gtimer.h to H:\Documents and Settings\
5>Installing gthreadpool.h to H:\Documents and Settings\
5>Installing gthread.h to H:\Documents and Settings\
5>Installing gtestutils.h to H:\Documents and Settings\
5>Installing gstring.h to H:\Documents and Settings\
5>Installing gstrfuncs.h to H:\Documents and Settings\
5>Installing gstdio.h to H:\Documents and Settings\
5>Installing gspawn.h to H:\Documents and Settings\
5>Installing gslist.h to H:\Documents and Settings\
5>Installing gslice.h to H:\Documents and Settings\
5>Installing gshell.h to H:\Documents and Settings\
5>Installing gsequence.h to H:\Documents and Settings\
5>Installing gscanner.h to H:\Documents and Settings\
5>Installing grel.h to H:\Documents and Settings\
5>Installing gregex.h to H:\Documents and Settings\
5>Installing grand.h to H:\Documents and Settings\
5>Installing gqueue.h to H:\Documents and Settings\
5>Installing gquark.h to H:\Documents and Settings\
5>Installing gqsort.h to H:\Documents and Settings\
5>Installing gprintf.h to H:\Documents and Settings\
5>Installing gprimes.h to H:\Documents and Settings\
5>Installing gpoll.h to H:\Documents and Settings\
5>Installing gpattern.h to H:\Documents and Settings\
5>Installing goption.h to H:\Documents and Settings\
5>Installing gnode.h to H:\Documents and Settings\
5>Installing gmessages.h to H:\Documents and Settings\
5>Installing gmem.h to H:\Documents and Settings\
5>Installing gmarkup.h to H:\Documents and Settings\
5>Installing gmappedfile.h to H:\Documents and Settings\
5>Installing gmain.h to H:\Documents and Settings\
5>Installing gmacros.h to H:\Documents and Settings\
5>Installing glist.h to H:\Documents and Settings\
5>Installing glibconfig.h to H:\Documents and Settings\
5>Installing glib.h to H:\Documents and Settings\
5>Installing glib-object.h to H:\Documents and Settings\
5>Installing gkeyfile.h to H:\Documents and Settings\
5>Installing giochannel.h to H:\Documents and Settings\
5>Installing gi18n.h to H:\Documents and Settings\
5>Installing gi18n-lib.h to H:\Documents and Settings\
5>Installing ghook.h to H:\Documents and Settings\
5>Installing ghash.h to H:\Documents and Settings\
5>Installing gfileutils.h to H:\Documents and Settings\
5>Installing gerror.h to H:\Documents and Settings\
5>Installing gdir.h to H:\Documents and Settings\
5>Installing gdate.h to H:\Documents and Settings\
5>Installing gdataset.h to H:\Documents and Settings\
5>Installing gconvert.h to H:\Documents and Settings\
5>Installing gcompletion.h to H:\Documents and Settings\
5>Installing gchecksum.h to H:\Documents and Settings\
5>Installing gcache.h to H:\Documents and Settings\
5>Installing gbookmarkfile.h to H:\Documents and Settings\
5>Installing gbase64.h to H:\Documents and Settings\
5>Installing gbacktrace.h to H:\Documents and Settings\
5>Installing gatomic.h to H:\Documents and Settings\
5>Installing gasyncqueue.h to H:\Documents and Settings\
5>Installing garray.h to H:\Documents and Settings\
5>Installing galloca.h to H:\Documents and Settings\
5>Compiling...
5>garray.c
5>gasyncqueue.c
5>gatomic.c
5>gbacktrace.c
5>gbase64.c
5>gbookmarkfile.c
5>gcache.c
5>gchecksum.c
5>gcompletion.c
5>gconvert.c
5>gdataset.c
5>gdate.c
5>gdir.c
5>gerror.c
5>gfileutils.c
5>ghash.c
5>ghook.c
5>giochannel.c
5>giowin32.c
5>gkeyfile.c
5>Generating Code...
5>d:\personal\
5>d:\personal\
5>Compiling...
5>glist.c
5>gmain.c
5>gmappedfile.c
5>gmarkup.c
5>gmem.c
5>gmessages.c
5>gnode.c
5>goption.c
5>gpattern.c
5>gpoll.c
5>gprimes.c
5>gprintf.c
5>gqsort.c
5>d:\personal\
5> h:\program files\microsoft visual studio 9.0\vc\
5>gqueue.c
5>grand.c
5>gregex.c
5>grel.c
5>gscanner.c
5>gsequence.c
5>gshell.c
5>Generating Code...
5>Compiling...
5>gslice.c
5>gslist.c
5>gspawn-win32.c
5>gstdio.c
5>gstrfuncs.c
5>gstring.c
5>gtestutils.c
5>gthread.c
5>d:\personal\
5>d:\personal\
5>gthreadpool.c
5>gtimer.c
5>gtree.c
5>gunibreak.c
5>gunicollate.c
5>gunidecomp.c
5>guniprop.c
5>gurifuncs.c
5>gutf8.c
5>d:\personal\
5>d:\personal\
5>gutils.c
5>gwin32.c
5>dirent.c
5>Generating Code...
5>Compiling...
5>wdirent.c
5>asnprintf.c
5>printf-args.c
5>printf-parse.c
5>printf.c
5>vasnprintf.c
5>Generating Code...
5>Compiling...
5>localcharset.c
5>Compiling resources...
5>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
5>Copyright (C) Microsoft Corporation. All rights reserved.
5>Compiling manifest to resources...
5>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
5>Copyright (C) Microsoft Corporation. All rights reserved.
5>Linking...
5>"H:\Program Files\OAH Build\bin\link.exe" @"D:\personal\
5>LINK : H:\Documents and Settings\
5> Creating library H:\Documents and Settings\
5>Embedding manifest...
5>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
5>Copyright (C) Microsoft Corporation. All rights reserved.
5>"H:\Program Files\OAH Build\bin\link.exe" @"D:\personal\
5>Build log was saved at "file:/
5>libglib - 0 error(s), 7 warning(s)
6>------ Build started: Project: glib-genmarshal, Configuration: Debug Win32 ------
7>------ Build started: Project: libgmodule, Configuration: Debug Win32 ------
6>Generating D:\personal\
7>Generating gmodule.def
7>gmodule.symbols
6>Compiling...
7>Generating gmodule.rc
6>glib-genmarshal.c
7>Generating gmoduleconf.h
7>Generating gmodule-
7>Generating pkg-config file and building internal dependencies ('Requires:') used by the compiler (cl.exe) and linker (link.exe)
6>Compiling manifest to resources...
6>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
6>Copyright (C) Microsoft Corporation. All rights reserved.
6>Linking...
6>"H:\Program Files\OAH Build\bin\link.exe" @"D:\personal\
6>LINK : H:\Documents and Settings\
7>Generating gmodule-
7>Generating pkg-config file and building internal dependencies ('Requires:') used by the compiler (cl.exe) and linker (link.exe)
6>Embedding manifest...
7>Generating gmodule-2.0.pc
6>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
6>Copyright (C) Microsoft Corporation. All rights reserved.
6>"H:\Program Files\OAH Build\bin\link.exe" @"D:\personal\
7>Generating pkg-config file and building internal dependencies ('Requires:') used by the compiler (cl.exe) and linker (link.exe)
6>Build log was saved at "file:/
6>glib-genmarshal - 0 error(s), 0 warning(s)
8>------ Build started: Project: libgobject, Configuration: Debug Win32 ------
7>Installing gmodule.h to H:\Documents and Settings\
8>Generating gobject.def
7>Compiling...
8>gobject.symbols
7>gmodule.c
8>Generating gobject.rc
8>Generating gobject-2.0.pc
8>Generating pkg-config file and building internal dependencies ('Requires:') used by the compiler (cl.exe) and linker (link.exe)
8>Generating GObject marshaller code
7>Compiling resources...
7>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
7>Copyright (C) Microsoft Corporation. All rights reserved.
7>Compiling manifest to resources...
7>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
7>Copyright (C) Microsoft Corporation. All rights reserved.
7>Linking...
7>"H:\Program Files\OAH Build\bin\link.exe" @"D:\personal\
7>LINK : fatal error LNK1104: cannot open file 'libglib-2.0.lib'
7>Build log was saved at "file:/
7>libgmodule - 1 error(s), 0 warning(s)
8>Installing gmarshal.h to H:\Documents and Settings\
8>Installing gvaluetypes.h to H:\Documents and Settings\
9>------ Build started: Project: gspawn-
9>Compiling...
8>Installing gvaluecollector.h to H:\Documents and Settings\
9>gspawn-
8>Installing gvaluearray.h to H:\Documents and Settings\
8>Installing gvalue.h to H:\Documents and Settings\
8>Installing gtypeplugin.h to H:\Documents and Settings\
8>Installing gtypemodule.h to H:\Documents and Settings\
8>Installing gtype.h to H:\Documents and Settings\
8>Installing gsourceclosure.h to H:\Documents and Settings\
9>d:\personal\
8>Installing gsignal.h to H:\Documents and Settings\
9>Compiling manifest to resources...
9>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
9>Copyright (C) Microsoft Corporation. All rights reserved.
9>Linking...
8>Installing gparamspecs.h to H:\Documents and Settings\
9>"H:\Program Files\OAH Build\bin\link.exe" @"D:\personal\
9>LINK : H:\Documents and Settings\
8>Installing gparam.h to H:\Documents and Settings\
9>Embedding manifest...
8>Installing gobjectnotifyqu
8>Installing gobject.h to H:\Documents and Settings\
9>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
9>Copyright (C) Microsoft Corporation. All rights reserved.
9>"H:\Program Files\OAH Build\bin\link.exe" @"D:\personal\
8>Installing genums.h to H:\Documents and Settings\
8>Installing gclosure.h to H:\Documents and Settings\
9>Build log was saved at "file:/
9>gspawn-
8>Installing gboxed.h to H:\Documents and Settings\
8>Compiling...
8>gboxed.c
8>gclosure.c
10>------ Build started: Project: gspawn-
10>Compiling...
10>gspawn-
8>genums.c
8>gobject.c
10>d:\personal\
8>gparam.c
10>Compiling manifest to resources...
10>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
10>Copyright (C) Microsoft Corporation. All rights reserved.
10>Linking...
10>"H:\Program Files\OAH Build\bin\link.exe" @"D:\personal\
10>LINK : H:\Documents and Settings\
10>Embedding manifest...
8>gparamspecs.c
10>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
10>Copyright (C) Microsoft Corporation. All rights reserved.
10>"H:\Program Files\OAH Build\bin\link.exe" @"D:\personal\
10>Build log was saved at "file:/
10>gspawn-
8>gsignal.c
8>gsourceclosure.c
11>------ Build started: Project: libgthread, Configuration: Debug Win32 ------
11>Generating gthread.rc
11>Generating gthread-2.0.pc
8>gtype.c
11>Generating pkg-config file and building internal dependencies ('Requires:') used by the compiler (cl.exe) and linker (link.exe)
8>gtypemodule.c
11>Compiling...
11>gthread-impl.c
8>gtypeplugin.c
8>gvalue.c
11>d:\personal\
8>gvaluearray.c
11>Compiling resources...
11>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
11>Copyright (C) Microsoft Corporation. All rights reserved.
11>Compiling manifest to resources...
11>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
11>Copyright (C) Microsoft Corporation. All rights reserved.
11>Linking...
11>"H:\Program Files\OAH Build\bin\link.exe" @"D:\personal\
11>LINK : fatal error LNK1104: cannot open file 'libglib-2.0.lib'
8>gvaluetransform.c
11>Build log was saved at "file:/
11>libgthread - 1 error(s), 1 warning(s)
8>Check if cast from uint64 to double is supported with msvc 6.0
8>gvaluetypes.c
8>Generating Code...
8>Compiling resources...
8>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
8>Copyright (C) Microsoft Corporation. All rights reserved.
8>Compiling manifest to resources...
8>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
8>Copyright (C) Microsoft Corporation. All rights reserved.
8>Linking...
8>"H:\Program Files\OAH Build\bin\link.exe" @"D:\personal\
8>LINK : fatal error LNK1104: cannot open file 'libglib-2.0.lib'
8>Build log was saved at "file:/
8>libgobject - 1 error(s), 0 warning(s)
12>------ Build started: Project: libgio, Configuration: Debug Win32 ------
12>Generating gio.def
12>gio.symbols
12>Generating gio.rc
12>Generating GObject enum code from template gioenumtypes.
12>Generating GObject marshaller code
12>Generating gio-2.0.pc
12>Generating pkg-config file and building internal dependencies ('Requires:') used by the compiler (cl.exe) and linker (link.exe)
12>Generating GObject enum code from template gioenumtypes.
12>Installing gioenumtypes.h to H:\Documents and Settings\
12>Installing gvolumemonitor.h to H:\Documents and Settings\
12>Installing gvolume.h to H:\Documents and Settings\
12>Installing gvfs.h to H:\Documents and Settings\
12>Installing gthemedicon.h to H:\Documents and Settings\
12>Installing gsimpleasyncres
12>Installing gseekable.h to H:\Documents and Settings\
12>Installing goutputstream.h to H:\Documents and Settings\
12>Installing gnativevolumemo
12>Installing gmountoperation.h to H:\Documents and Settings\
12>Installing gmount.h to H:\Documents and Settings\
12>Installing gmemoryoutputst
12>Installing gmemoryinputstr
12>Installing gloadableicon.h to H:\Documents and Settings\
12>Installing giotypes.h to H:\Documents and Settings\
12>Installing gioscheduler.h to H:\Documents and Settings\
12>Installing giomodule.h to H:\Documents and Settings\
12>Installing gioerror.h to H:\Documents and Settings\
12>Installing gioenums.h to H:\Documents and Settings\
12>Installing gio.h to H:\Documents and Settings\
12>Installing ginputstream.h to H:\Documents and Settings\
12>Installing gicon.h to H:\Documents and Settings\
12>Installing gfilteroutputst
12>Installing gfilterinputstr
12>Installing gfileoutputstream.h to H:\Documents and Settings\
12>Installing gfilenamecomple
12>Installing gfilemonitor.h to H:\Documents and Settings\
12>Installing gfileinputstream.h to H:\Documents and Settings\
12>Installing gfileinfo.h to H:\Documents and Settings\
12>Installing gfileicon.h to H:\Documents and Settings\
12>Installing gfileenumerator.h to H:\Documents and Settings\
12>Installing gfileattribute.h to H:\Documents and Settings\
12>Installing gfile.h to H:\Documents and Settings\
12>Installing gemblemedicon.h to H:\Documents and Settings\
12>Installing gemblem.h to H:\Documents and Settings\
12>Installing gdrive.h to H:\Documents and Settings\
12>Installing gdataoutputstream.h to H:\Documents and Settings\
12>Installing gdatainputstream.h to H:\Documents and Settings\
12>Installing gcontenttype.h to H:\Documents and Settings\
12>Installing gcancellable.h to H:\Documents and Settings\
12>Installing gbufferedoutput
12>Installing gbufferedinputs
12>Installing gasyncresult.h to H:\Documents and Settings\
12>Installing gappinfo.h to H:\Documents and Settings\
12>Compiling...
12>gappinfo.c
12>gasynchelper.c
12>gasyncresult.c
12>gbufferedinp
12>gbufferedout
12>gcancellable.c
12>gcontenttype.c
12>gdatainputst
12>d:\personal\
12>d:\personal\
12>gdataoutputs
12>d:\personal\
12>gdrive.c
12>gdummyfile.c
12>gemblem.c
12>d:\personal\
12>gemblemedicon.c
12>gfile.c
12>gfileattribute.c
12>gfileenumera
12>gfileicon.c
12>gfileinfo.c
12>gfileinputst
12>gfilemonitor.c
12>d:\personal\
12>Generating Code...
12>Compiling...
12>gfilenamecom
12>gfileoutputs
12>gfilterinput
12>gfilteroutpu
12>gicon.c
12>ginputstream.c
12>gioerror.c
12>giomodule.c
12>gioscheduler.c
12>gloadableicon.c
12>gmemoryinput
12>gmemoryoutpu
12>gmount.c
12>gmountoperat
12>d:\personal\
12>d:\personal\
12>d:\personal\
12>gnativevolum
12>goutputstream.c
12>gpollfilemon
12>gseekable.c
12>gsimpleasync
12>gthemedicon.c
12>Generating Code...
12>d:\personal\
12>Compiling...
12>gunionvolume
12>gvfs.c
12>gvolume.c
12>gvolumemonitor.c
12>gwin32mount.c
12>gwin32volume
12>d:\personal\
12> command-line arguments : see previous definition of '_WIN32_WINNT'
12>d:\personal\
12>d:\personal\
12>d:\personal\
12>gwin32appinfo.c
12>glocaldirect
12>glocalfile.c
12>d:\personal\
12> command-line arguments : see previous definition of '_WIN32_WINNT'
12>glocalfileen
12>glocalfileinfo.c
12>glocalfilein
12>d:\personal\
12>d:\personal\
12>glocalfilemo
12>glocalfileou
12>d:\personal\
12>d:\personal\
12>glocalvfs.c
12>gwin32direct
12>d:\personal\
12> command-line arguments : see previous definition of '_WIN32_WINNT'
12>gio-marshal.c
12>gioaliasdef.c
12>gioenumtypes.c
12>gwinhttpfile.c
12>d:\personal\
12> command-line arguments : see previous definition of '_WIN32_WINNT'
12>Generating Code...
12>Compiling...
12>gwinhttpfile
12>d:\personal\
12> command-line arguments : see previous definition of '_WIN32_WINNT'
12>gwinhttpfile
12>d:\personal\
12> command-line arguments : see previous definition of '_WIN32_WINNT'
12>gwinhttpvfs.c
12>d:\personal\
12> command-line arguments : see previous definition of '_WIN32_WINNT'
12>Generating Code...
12>Build log was saved at "file:/
12>libgio - 8 error(s), 15 warning(s)
========== Build: 8 succeeded, 4 failed, 0 up-to-date, 0 skipped ==========
_______
because of this i started build module by module. while building "libgmodule" i came across the above message where its trying to link 'libglib-2.0.lib' which i was not able to find in my directories. meanwhile i saw 'libglib.lib' root directory. so thought of updating the linker option to pick this library but by checking the project options no linking option was available for this module.
as next step i searched all files which might have the library inclusion path, but was not able to find it.
What are next steps to be done?
Revision history for this message
|
#3 |
Hmm.. look at these lines:
5>LINK : H:\Documents and Settings\
5> Creating library H:\Documents and Settings\
Seems like you have changed some settings for libglib or that you have pulled down revision 16 from lp:oah/glib.
At the moment this revision:
revno: 16
committer: Haakon Sporsheim <email address hidden>
branch nick: trunk
timestamp: Fri 2009-04-10 16:47:03 +0200
message:
[build] Use new OahTarget* user macros for consistent binary naming.
this revision is NOT compatible with OAH build 0.3. I shouldn't have pushed this to LP maybe, because you'll also need some new build system files. We are changing binary names for all modules from OAH 0.3 to OAH 0.4.
So please either revert your local changes or do bzr revert -r 15 to get back to revision 15! :)
Sorry for the inconvenience.
And btw, this goes for all the other modules as well. If you see a similar commit to pango, cairo, gtk+, gstreamer or other module just revert it.
Revision history for this message
|
#4 |
> Why is it that the libs are getting generated at my account path?
This is decided by OAH output settings. When you install OAH it will add the following environment variables:
OAH_BUILD_
OAH_INSTALLED_
OAH_INSTALLED_
OAH_LOCAL_
As you can see the default build output is to local prefix path. So.. what you can do is either:
1. Just change OAH_LOCAL_
2. Change OAH_BUILD_OUTPUT:
- (Not set)
Output will be set to $(SolutionDir)
!!! Dependencies will not be resolved, since output is put in the modules intermediate dir !!!
- Local
Output will be put in the local prefix. Somewhat similar to /usr/local.
- Prefix
Output will be put in %OAH_PREFIX%. Somewhat similar like using --prefix=
!!! Remember to set OAH_PREFIX env.var. since this is not set by the installer !!!
- Deploy
Output will be set to oahbuild installed path. !!!Use with care!!!
This option is for testing deployment without 'installing' with MSI.
Revision history for this message
|
#5 |
i did "bzr revert -r 15" [but even after this "bzr revno" shows it to be 16], i was able to build all modules except 'libgio'. the log is as below:
-------
12>------ Rebuild All started: Project: libgio, Configuration: Debug Win32 ------
12>Deleting intermediate and output files for project 'libgio', configuration 'Debug|Win32'
12>Generating gio.def
12>gio.symbols
12>Generating gio.rc
12>Generating GObject enum code from template gioenumtypes.
12>Generating GObject marshaller code
12>Generating gio-2.0.pc
12>Generating pkg-config file and building internal dependencies ('Requires:') used by the compiler (cl.exe) and linker (link.exe)
12>Generating GObject enum code from template gioenumtypes.
12>Installing gioenumtypes.h to H:\Documents and Settings\
12>Installing gvolumemonitor.h to H:\Documents and Settings\
12>Installing gvolume.h to H:\Documents and Settings\
12>Installing gvfs.h to H:\Documents and Settings\
12>Installing gthemedicon.h to H:\Documents and Settings\
12>Installing gsimpleasyncres
12>Installing gseekable.h to H:\Documents and Settings\
12>Installing goutputstream.h to H:\Documents and Settings\
12>Installing gnativevolumemo
12>Installing gmountoperation.h to H:\Documents and Settings\
12>Installing gmount.h to H:\Documents and Settings\
12>Installing gmemoryoutputst
12>Installing gmemoryinputstr
12>Installing gloadableicon.h to H:\Documents and Settings\
12>Installing giotypes.h to H:\Documents and Settings\
12>Installing gioscheduler.h to H:\Documents and Settings\
12>Installing giomodule.h to H:\Documents and Settings\
12>Installing gioerror.h to H:\Documents and Settings\
12>Installing gioenums.h to H:\Documents and Settings\
12>Installing gio.h to H:\Documents and Settings\
12>Installing ginputstream.h to H:\Documents and Settings\
12>Installing gicon.h to H:\Documents and Settings\
12>Installing gfilteroutputst
12>Installing gfilterinputstr
12>Installing gfileoutputstream.h to H:\Documents and Settings\
12>Installing gfilenamecomple
12>Installing gfilemonitor.h to H:\Documents and Settings\
12>Installing gfileinputstream.h to H:\Documents and Settings\
12>Installing gfileinfo.h to H:\Documents and Settings\
12>Installing gfileicon.h to H:\Documents and Settings\
12>Installing gfileenumerator.h to H:\Documents and Settings\
12>Installing gfileattribute.h to H:\Documents and Settings\
12>Installing gfile.h to H:\Documents and Settings\
12>Installing gemblemedicon.h to H:\Documents and Settings\
12>Installing gemblem.h to H:\Documents and Settings\
12>Installing gdrive.h to H:\Documents and Settings\
12>Installing gdataoutputstream.h to H:\Documents and Settings\
12>Installing gdatainputstream.h to H:\Documents and Settings\
12>Installing gcontenttype.h to H:\Documents and Settings\
12>Installing gcancellable.h to H:\Documents and Settings\
12>Installing gbufferedoutput
12>Installing gbufferedinputs
12>Installing gasyncresult.h to H:\Documents and Settings\
12>Installing gappinfo.h to H:\Documents and Settings\
12>Compiling...
12>gappinfo.c
12>gasynchelper.c
12>gasyncresult.c
12>gbufferedinp
12>gbufferedout
12>gcancellable.c
12>gcontenttype.c
12>gdatainputst
12>d:\personal\
12>d:\personal\
12>gdataoutputs
12>d:\personal\
12>gdrive.c
12>gdummyfile.c
12>gemblem.c
12>d:\personal\
12>gemblemedicon.c
12>gfile.c
12>gfileattribute.c
12>gfileenumera
12>gfileicon.c
12>gfileinfo.c
12>gfileinputst
12>gfilemonitor.c
12>d:\personal\
12>Generating Code...
12>Compiling...
12>gfilenamecom
12>gfileoutputs
12>gfilterinput
12>gfilteroutpu
12>gicon.c
12>ginputstream.c
12>gioerror.c
12>giomodule.c
12>gioscheduler.c
12>gloadableicon.c
12>gmemoryinput
12>gmemoryoutpu
12>gmount.c
12>gmountoperat
12>d:\personal\
12>d:\personal\
12>d:\personal\
12>gnativevolum
12>goutputstream.c
12>gpollfilemon
12>gseekable.c
12>gsimpleasync
12>gthemedicon.c
12>Generating Code...
12>d:\personal\
12>Compiling...
12>gunionvolume
12>gvfs.c
12>gvolume.c
12>gvolumemonitor.c
12>gwin32mount.c
12>gwin32volume
12>d:\personal\
12> command-line arguments : see previous definition of '_WIN32_WINNT'
12>d:\personal\
12>d:\personal\
12>d:\personal\
12>gwin32appinfo.c
12>glocaldirect
12>glocalfile.c
12>d:\personal\
12> command-line arguments : see previous definition of '_WIN32_WINNT'
12>glocalfileen
12>glocalfileinfo.c
12>glocalfilein
12>d:\personal\
12>d:\personal\
12>glocalfilemo
12>glocalfileou
12>d:\personal\
12>d:\personal\
12>glocalvfs.c
12>gwin32direct
12>d:\personal\
12> command-line arguments : see previous definition of '_WIN32_WINNT'
12>gio-marshal.c
12>gioaliasdef.c
12>gioenumtypes.c
12>gwinhttpfile.c
12>d:\personal\
12> command-line arguments : see previous definition of '_WIN32_WINNT'
12>Generating Code...
12>Compiling...
12>gwinhttpfile
12>d:\personal\
12> command-line arguments : see previous definition of '_WIN32_WINNT'
12>gwinhttpfile
12>d:\personal\
12> command-line arguments : see previous definition of '_WIN32_WINNT'
12>gwinhttpvfs.c
12>d:\personal\
12> command-line arguments : see previous definition of '_WIN32_WINNT'
12>Generating Code...
12>Build log was saved at "file:/
12>libgio - 8 error(s), 15 warning(s)
========== Rebuild All: 11 succeeded, 1 failed, 0 skipped ==========
-------
While build i get a glib-mkenums.pl file generated and pops up , the build halts. so i am closing this file and the build continues. is this method correct?
What got to know from the logs is that, some enum types are not available. investigating these i found that
\glib\win32\
file is with no contents. What am i missing here?
Checking the glib-mkenums.pl file is giving me info that i have to run this manually. do i have to run this perl file manually?
Revision history for this message
|
#6 |
> While build i get a glib-mkenums.pl file generated and pops up , the build halts. so i am closing this file and the build continues. is this method correct?
NO! this means that the perl script was opened in notepad.exe, and not run with perl.exe as it should have bin.
Either you don't have perl installed or it is not in your PATH env.var.
So:
- Close visual studio.
- Install Perl (if you haven't)
- Check/Add C:\Perl\bin (or where ever you installed it) to the PATH environment variable.
- Reopen visual studio and rebuild
I'll commit a fix for the pop up issue, which will make the build fail instead.
Revision history for this message
|
#7 |
Hmmmm strange ..................
But I have perl in my path variable!.........
H:\Perl\
And i am able to write my perl script in command window, directly !..................
This is my perl version
H:\Documents and Settings\
This is perl, v5.8.8 built for MSWin32-
(with 50 registered patches, see perl -V for more detail)
Copyright 1987-2006, Larry Wall
Binary build 820 [274739] provided by ActiveState http://
Built Jan 23 2007 15:57:46
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://
Is there a way to check the actual build commands executed? so that i want to understand what exactly its executing.
Revision history for this message
|
#8 |
I think i found the reason for this behavior. usually .pl files are associated with notepad.exe. I think in our build script where we are invoking the .pl file we need to prefix it with perl to run it as a perl file on windows.
Ex: H:\Documents and Settings\
But i changed the default program for the .pl file to perl.exe but the build got screwed.
The generated \glib\win32\
says :
_______
Usage:
glib-mkenums [OPTION...] [FILES...]
Help Options:
-h, --help Show this help message
Utility Options:
--fhead <text> Output file header
--fprod <text> Per input file production
--ftail <text> Output file trailer
--eprod <text> Per enum text (produced prior to value itarations)
--vhead <text> Value header, produced before iterating over enum values
--vprod <text> Value text, produced for each enum value
--vtail <text> Value tail, produced after iterating over enum values
--comments <text> Comment structure
--template file Template file
--flist-env-var name File list as an environment variable name
-v, --version Print version informations
Production text substitutions:
@EnumName@ PrefixTheXEnum
@enum_name@ prefix_the_xenum
@ENUMNAME@ PREFIX_THE_XENUM
@ENUMSHORT@ THE_XENUM
@ENUMPREFIX@ PREFIX
@VALUENAME@ PREFIX_THE_XVALUE
@valuenick@ the-xvalue
@type@ either enum or flags
@Type@ either Enum or Flags
@TYPE@ either ENUM or FLAGS
@filename@ name of current input file
_______
the build log is as below:
-------
12>------ Build started: Project: libgio, Configuration: Debug Win32 ------
12>Generating gio.def
12>gio.symbols
12>Generating gio.rc
12>Generating GObject enum code from template gioenumtypes.
12>Generating GObject marshaller code
12>Generating gio-2.0.pc
12>Generating pkg-config file and building internal dependencies ('Requires:') used by the compiler (cl.exe) and linker (link.exe)
12>Generating GObject enum code from template gioenumtypes.
12>Installing gioenumtypes.h to H:\Documents and Settings\
12>Installing gvolumemonitor.h to H:\Documents and Settings\
12>Installing gvolume.h to H:\Documents and Settings\
12>Installing gvfs.h to H:\Documents and Settings\
12>Installing gthemedicon.h to H:\Documents and Settings\
12>Installing gsimpleasyncres
12>Installing gseekable.h to H:\Documents and Settings\
12>Installing goutputstream.h to H:\Documents and Settings\
12>Installing gnativevolumemo
12>Installing gmountoperation.h to H:\Documents and Settings\
12>Installing gmount.h to H:\Documents and Settings\
12>Installing gmemoryoutputst
12>Installing gmemoryinputstr
12>Installing gloadableicon.h to H:\Documents and Settings\
12>Installing giotypes.h to H:\Documents and Settings\
12>Installing gioscheduler.h to H:\Documents and Settings\
12>Installing giomodule.h to H:\Documents and Settings\
12>Installing gioerror.h to H:\Documents and Settings\
12>Installing gioenums.h to H:\Documents and Settings\
12>Installing gio.h to H:\Documents and Settings\
12>Installing ginputstream.h to H:\Documents and Settings\
12>Installing gicon.h to H:\Documents and Settings\
12>Installing gfilteroutputst
12>Installing gfilterinputstr
12>Installing gfileoutputstream.h to H:\Documents and Settings\
12>Installing gfilenamecomple
12>Installing gfilemonitor.h to H:\Documents and Settings\
12>Installing gfileinputstream.h to H:\Documents and Settings\
12>Installing gfileinfo.h to H:\Documents and Settings\
12>Installing gfileicon.h to H:\Documents and Settings\
12>Installing gfileenumerator.h to H:\Documents and Settings\
12>Installing gfileattribute.h to H:\Documents and Settings\
12>Installing gfile.h to H:\Documents and Settings\
12>Installing gemblemedicon.h to H:\Documents and Settings\
12>Installing gemblem.h to H:\Documents and Settings\
12>Installing gdrive.h to H:\Documents and Settings\
12>Installing gdataoutputstream.h to H:\Documents and Settings\
12>Installing gdatainputstream.h to H:\Documents and Settings\
12>Installing gcontenttype.h to H:\Documents and Settings\
12>Installing gcancellable.h to H:\Documents and Settings\
12>Installing gbufferedoutput
12>Installing gbufferedinputs
12>Installing gasyncresult.h to H:\Documents and Settings\
12>Installing gappinfo.h to H:\Documents and Settings\
12>Compiling...
12>gappinfo.c
12>gasynchelper.c
12>d:\personal\
12>d:\personal\
12>d:\personal\
12>d:\personal\
12>d:\personal\
12>d:\personal\
12>d:\personal\
12>d:\personal\
12>d:\personal\
12>d:\personal\
12>d:\personal\
12>d:\personal\
12>d:\personal\
12>d:\personal\
12>d:\personal\
12>d:\personal\
12>d:\personal\
12>d:\personal\
12>d:\personal\
12>d:\personal\
12>d:\personal\
12>d:\personal\
12>d:\personal\
12>d:\personal\
12>gasyncresult.c
12>gbufferedinp
12>gbufferedout
12>gcancellable.c
12>gcontenttype.c
12>gdatainputst
12>d:\personal\
12>d:\personal\
12>d:\personal\
12>d:\personal\
12>d:\personal\
12>d:\personal\
12>d:\personal\
12>d:\personal\
12>d:\personal\
12>d:\personal\
12>d:\personal\
12>d:\personal\
12>d:\personal\
12>d:\personal\
12>d:\personal\
12>d:\personal\
12>d:\personal\
12>d:\personal\
12>d:\personal\
12>d:\personal\
12>d:\personal\
12>d:\personal\
12>d:\personal\
12>d:\personal\
12>d:\personal\
12>d:\personal\
12>d:\personal\
12>gdataoutputs
So did i over do this ? :)
Revision history for this message
|
#9 |
Have a look at the BuildLog.htm (which you can ctrl-click in visual studio output window) search for "glib-mkenums.pl" and try to figure out how and why the script arguments are wrong.
It should be something like this:
[
@echo off
set G_WIN32_
"pkg-config" --print-errors --variable=prefix glib-2.0 > "<YOUR_
set G_WIN32_
set /P GMKE_PATH=
del /F /Q "<YOUR_
set GMKE_PREV_DIR=%CD%
cd ..\..\gio
mkdir "<YOUR_
set GMKE_INPUT_
perl.exe "%GMKE_
cd %GMKE_PREV_DIR%
if errorlevel 1 goto VCReportError
goto VCEnd
:VCReportError
echo Project : error PRJ0019: A tool returned an error code from "Generating GObject enum code from template gioenumtypes.
exit 1
:VCEnd
]
You should also look for local changes. Do a bzr status, bzr diff or bzr qdiff in <YOUR_ROOT>.
Revision history for this message
|
#10 |
hurray i found the issue:
in your output log above it says:
perl.exe "%GMKE_
but in my output log it looks :
"%GMKE_
the perl.exe is missing.
Revision history for this message
|
#11 |
Well - it is because i did a new commit to OAH trunk.. as I said previously
> I'll commit a fix for the pop up issue, which will make the build fail instead.
http://
You shouldn't get the glib-mkenums usage anyway... but, if this solves the problem, HURRAAAAY! :D
As a work around before we build OAH 0.4, you could replace %programfiles/
Revision history for this message
|
#12 |
Hurray , this solved the problem. Thank you :)
Revision history for this message
|
#13 |
[regarding lp:oah/glib r16]
> this revision is NOT compatible with OAH build 0.3. I shouldn't have pushed this
> to LP maybe, because you'll also need some new build system files. We are
> changing binary names for all modules from OAH 0.3 to OAH 0.4.
I also ran into this problem. Could you document on the front page that r15 is the latest version compatible with OAH-0.3?