mosync windows build failed due to missing header files

7 posts / 0 new
Last post
Vince Nguyen
ThanhDatVn's picture
Offline
Joined: 24 Jun 2011
Posts:
mosync windows build failed due to missing header files

MoSyncSrc-110817-1236.tar.bz2 and
MoSyncSrc-110812-1809.tar.bz2

both missing the following header files:
maapi.h
maapi_defs.h

I have copied from released SDK but ran into further compilation errors.

Just curious. Has anybody sucessfully build MoSync on windows?

Is there another place where I can get the source code for nightly build. I've tried
git clone https://github.com/MoSync/MoSync.git c:\mb\MoSync-trunk
but it also failed with
fatal: https://github.com/MoSync.git/info/refs not found: did you run git update-server-info on the server?

Thank you in advance for any pointers.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
David Freitas
jddcef's picture
Offline
Mobile Conjurer
Joined: 28 Jul 2011
Posts:

I managed to checkout the code from github successfully, but haven't tried to compile it for windows.
I would have to follow the instructions here: http://www.mosync.com/documentation/manualpages/building-mosync-source-windows to do it, as they require you to include certain paths and files manually.

Vince Nguyen
ThanhDatVn's picture
Offline
Joined: 24 Jun 2011
Posts:

I have followed the instructions for building mosync source on windows as stated URL above. But build fails on building idl-common due to missing maap.h .

A throughout search on \mb directory returns no such file. Searching through git source code in https://github.com/MoSync/MoSync would show same result, both maapi.h and maapi_defs.h are not there.

If I copied both files from executatable Mosync directory, Mosync/include to \mb\MoSync-trunk\libs\MAStd, Visual Studio C++ 2005 would produce a huge list of errors. The first error was :

Error 1 error C2146: syntax error : missing ';' before identifier '_Mbstatet' C:\Program Files\Microsoft Visual Studio 8\VC\include\cwchar line 23

David Freitas
jddcef's picture
Offline
Mobile Conjurer
Joined: 28 Jul 2011
Posts:

I can only provide some information that I see:

The .gitignore file has it listed :
/libs/MAStd/GLES/magl_functions.h
/libs/MAStd/maapi.h
/libs/MAStd/maapi_defs.h
/libs/MAUI-revamp/DefaultSkin.h
/libs/MTXml/entities.c
/libs/newlib/libc/sys/mosync/maapi.h
/libs/newlib/libc/sys/mosync/maapi_defs.h

And the docs/genidl.sh file in the repository says that it generates the maapi.h file.
The tools\idl2\idl2.cpp generates and copies the maapi.h file around.

Vince Nguyen
ThanhDatVn's picture
Offline
Joined: 24 Jun 2011
Posts:

Thank you David,

I got lots further now but still could not fully build this package. The build stops when trying to:
Copies the doxygen html files to Eclipse
This was due to missing Doxfile so I copied from libs/ and the build ran much further until build runtime for symbian failed with below error. Not sure if the Doxyfile from libs was intended for this eclipse. If it is then it is a bug in batch file.

platform dir : \mb\MoSyncReleasePackage\profiles/runtimes/s60v3/1/
ruby RuntimeBuilder.rb ./Settings.rb s60v3 \mb\MoSyncReleasePackage\profiles/runtimes/s60v3/1/
devices -setdefault @S60_3rd_FP1:com.nokia.s60
Building release runtime for s60v3
Using config file: \mb\MoSyncReleasePackage\profiles/runtimes/s60v3/1/config.h
Cannot set device 'S60_3rd_FP1:com.nokia.s60' as default; device not known.
../../rules/error.rb:19:in `error': Command failed: '65280' (RuntimeError)
from RuntimeBuilder.rb:31:in `sh'
from ./BuildS60.rb:62:in `build_symbian'
from ./BuildS60.rb:150:in `s60v3'
from RuntimeBuilder.rb:82:in `send'
from RuntimeBuilder.rb:82:in `build'
from RuntimeBuilder.rb:79:in `each'
from RuntimeBuilder.rb:79:in `build'
from RuntimeBuilder.rb:109
Error: Command failed: '65280'
Building one of the runtimes failed.
a tool related error occured.

Any pointer would be greatly appreciated.

Fredrik Eldh
Fredrik's picture
Offline
Mobile Sorcerer
Joined: 16 Feb 2009
Posts:

Quote:

Cannot set device 'S60_3rd_FP1:com.nokia.s60' as default; device not known.

It appears that the Symbian S60, 3rd edition SDK is not properly installed.

Vince Nguyen
ThanhDatVn's picture
Offline
Joined: 24 Jun 2011
Posts:

Thank you David, I removed it and also cleaned up windows registry then it works fine. Somehow, Nokia SDK keeps counter of number of installation.

Now I am stuck while trying to build S60v5 runtime. Please see below

process_begin: CreateProcess((null), arm-none-symbianelf-g++ -print-file-name=libsupc++.a, ...) failed.
"-------------- abld build DONE gcce for S60v5 -----------"
FATAL ERROR! - S60 5th build failed.
Building one of the runtimes failed.
a tool related error occured.

I suspected my S60v5 SDK was not installed properly but still got same error after a clean installed (meaning uninstall, restart, delete entry in windows registry and install again with all required patches for MoSync)