[Developers] Re: compiling opendtect on windows
Nanne Hemstra
nanne at opendtect.org
Mon Feb 4 05:19:41 CET 2008
Dear Sami,
To let our make system know where to find the Qt and Coin header files
and libraries, two environment variables have to be set before you start
compiling, Those are OD_QTDIR and OD_COINDIR respectively.
It's indeed also possible to set it in 'make.od.Dirs', but note that the
variables mentioned above will overrule the path in 'make.od.Dirs'.
To check if you've set these paths correctly, type 'make -n' in uiBase
(Qt check) or in SoOD (Coin check) to see the full g++ command.
If you still get errors, please open the file 'lswin' for a more
detailed description of the error.
Regards,
Nanne
sami jan wrote:
> After putting in the path for QTDIR (and checking for correct paths in
> make.od.Dirs, running make gives me the following (fails to build
> uiBase.lib/dll)
>
> <snip>
>
> "make[1]: [/home/Administrator/ODWork/lib/win/G/uiBase.lib(i_q4listbox.moc.o)]
> Er
> ror 1 (ignored)
> make[1]: [/home/Administrator/ODWork/lib/win/G/uiBase.lib(i_q4listbox.moc.o)] Er
> ror 1 (ignored)
> Ranlib on uiBase.lib ...
> ranlib: '/home/Administrator/ODWork/lib/win/G/uiBase.lib': No such file
> make[1]: [/home/Administrator/ODWork/lib/win/G/uiBase.lib] Error 1 (ignored)
> Creating /home/Administrator/ODWork/lib/win/G/uiBase.dll ...
> make[1]: [/home/Administrator/ODWork/lib/win/G/uiBase.dll] Error 1 (ignored)
> Done !
> make[1]: Leaving directory `/home/Administrator/ODWork/src/uiBase'
> Making uiTools ....
> make[1]: Entering directory `/home/Administrator/ODWork/src/uiTools'
> Making uiTools / win (Feb 2 03:39:55) DEBUG=yes.
> make[1]: *** No rule to make target `/home/Administrator/ODWork/lib/win/G/uiBase
> .dll', needed by `/home/Administrator/ODWork/bin/win/G/HtmlViewer'. Stop.
> make[1]: Leaving directory `/home/Administrator/ODWork/src/uiTools'
> make: *** [uiTools.src] Error 2"
>
>
>
> On 2/2/08, sami jan <sami.jan at gmail.com> wrote:
>
>>> 1. Are the " .... (uisplashscreen.o)] Error 1 (ignored)" messages fatal?
>>> 2. Why does the attempt at "moc-ing" fail?
>>>
>> not sure about 1. but figured out 2. - you need to set OD_QTDIR to
>> point to your QT installation
>>
>> On 2/2/08, sami jan <sami.jan at gmail.com> wrote:
>>
>>> I am trying to compile OD on windows
>>>
>>> I am using cygwin installed via the OD cygwin installer
>>>
>>> I have QT 4.3.3 (commercial eval version) - the rest of the libraries
>>> are as recommended in the programmer's manual - I have the QTDIR var
>>> set correctly
>>>
>>> I used the "create dev env" menu item in OD to create
>>> "/home/Administrator/ODWork"
>>>
>>> When I run make over here I get the following:
>>>
>>> <snip>
>>>
>>> make[1]: Leaving directory `/home/Administrator/ODWork/src/MPEEngine'
>>> Making Well ....
>>> make[1]: Entering directory `/home/Administrator/ODWork/src/Well'
>>> Making Well / win (Feb 2 01:34:24) DEBUG=yes.
>>> Done !
>>> make[1]: Leaving directory `/home/Administrator/ODWork/src/Well'
>>> Making uiBase ....
>>> make[1]: Entering directory `/home/Administrator/ODWork/src/uiBase'
>>> Making uiBase / win (Feb 2 01:34:24) DEBUG=yes.
>>> Compiling i_layout.cc ...
>>> make[1]: [/home/Administrator/ODWork/lib/win/G/uiBase.lib(i_layout.o)] Error 1 (
>>> ignored)
>>> make[1]: [/home/Administrator/ODWork/lib/win/G/uiBase.lib(i_layout.o)] Error 1 (
>>> ignored)
>>>
>>> <snip>
>>>
>>> Compiling uisplashscreen.cc ...
>>> make[1]: [/home/Administrator/ODWork/lib/win/G/uiBase.lib(uisplashscreen.o)] Err
>>> or 1 (ignored)
>>> make[1]: [/home/Administrator/ODWork/lib/win/G/uiBase.lib(uisplashscreen.o)] Err
>>> or 1 (ignored)
>>>
>>> Moc-ing i_qbutton.h ...
>>> make[1]: *** [i_qbutton.moc.cc] Error 127
>>> make[1]: Leaving directory `/home/Administrator/ODWork/src/uiBase'
>>> make: *** [uiBase.src] Error 2
>>>
>>>
>>> I have 2 qs
>>>
>>> 1. Are the " .... (uisplashscreen.o)] Error 1 (ignored)" messages fatal?
>>> 2. Why does the attempt at "moc-ing" fail?
>>>
>>> Has anyone else run into this before?
>>>
>>> Thanks
>>>
>>> Sami
>>>
>>>
>
> _______________________________________________
> Developers mailing list
> Developers at opendtect.org
> http://lists.opendtect.org/mailman/listinfo/developers
>
--
- Nanne Hemstra
- OpendTect developer
-
- dGB India
- 304, Gateway Plaza
- Hiranandani Gardens, Powai
- Mumbai - 400 076, India
- Phone: +91 22 25704984 , Fax: +91 22 25704977
- Mobile: +91 9833452542
- http://www.dgb-group.com , http://www.opendtect.org
More information about the Developers
mailing list