How to compile openmsx for windows mobile devices

Pagina 4/5
1 | 2 | 3 | | 5

Van nikodr

Paladin (742)

afbeelding van nikodr

13-11-2010, 00:40

While i have succesfully managed to create a new project insert the openmsx and start to fix source dependencies and libraries needed i am halting at the main.mk what can i do to make it specific for windows mobile?While it does have support for linux,ppc32 and ppc64 and x86 it is not easy for me to know what shall i do in order for it to compile for windows mobile.

Anyone can help?It seems there are needed some changes in the main.mk file to have support for devices like mobile,while it has support for x32,ppc32,ppc64 i dont know what values to use for windows mobile and etc.Also is python 2.7 ok to use?I currently have 2.7 while it says at least 2.6.x should be ok.
Come on people lets port openmsx to our phones Smile

Van AuroraMSX

Paragon (1901)

afbeelding van AuroraMSX

13-11-2010, 10:33

I think you have better chances of getting this off the ground if you contact the developers on IRC

Van Manuel

Ascended (16436)

afbeelding van Manuel

13-11-2010, 12:47

For Visual Studio you don't need main.mk at all.

Van nikodr

Paladin (742)

afbeelding van nikodr

13-11-2010, 14:43

for windows x86 or x64 windows version indeed,but here is windows mobile version though and i see no other way to do it.I have managed to make it use the sdl on windows mobile 6.5 but some files are missing in the source tree and are created after the configuration file of main.mk.Manuel do you have any experiance regarding visual studio 2008 ?could you help me if i ask you?If i dont use the main.mk then file components.hh is not found and i have this error "fatal error C1083: Cannot open include file: 'components.hh': No such file or directory"

am i ok if iuse this?

00001 // Automatically generated by build process.
00002 
00003 #ifndef COMPONENTS_HH
00004 #define COMPONENTS_HH
00005 
00006 #include <string>
00007 
00008 #define COMPONENT_CORE 1
00009 #define COMPONENT_GL 1
00010 #define COMPONENT_JACK 1
00011 
00012 namespace openmsx {
00013 
00014 static const std::string BUILD_COMPONENTS = "CORE GL JACK";
00015 
00016 } // namespace openmsx
00017 
00018 #endif // COMPONENTS_HH

Van nikodr

Paladin (742)

afbeelding van nikodr

13-11-2010, 15:39

Slowly the compiling errors go away now i need tcl.h so i need to install manualy the tcl developent package,i cant understand how to compile stuff with visual studio and make it download any needed files automaticaly,i have to do it slowly myself but no problem....

Now i managed to fix the source tree and have all the needed files but i have this error

\src\main.cc(121) : error C4716: 'SDL_main' : must return a value

what can i do?

Van nikodr

Paladin (742)

afbeelding van nikodr

14-11-2010, 04:02

I have all the required files to install but those 2 files process.h and direct.h seem to be the ones that have problems,i am using the one that visual studio 2008 has as include files but i am geting the following errors

1>C:\apps\111\src\process.h(69) : error C2381: 'exit' : redefinition; __declspec(noreturn) differs
1>        c:\program files (x86)\windows mobile 6 sdk\pocketpc\include\armv4i\stdlib.h(134) : see declaration of 'exit'
1>C:\apps\111\src\process.h(69) : warning C4985: 'exit': attributes not present on previous declaration.
1>        c:\program files (x86)\windows mobile 6 sdk\pocketpc\include\armv4i\stdlib.h(134) : see declaration of 'exit'
1>C:\apps\111\src\process.h(70) : error C2381: '_exit' : redefinition; __declspec(noreturn) differs
1>        c:\program files (x86)\windows mobile 6 sdk\pocketpc\include\armv4i\stdlib.h(135) : see declaration of '_exit'
1>C:\apps\111\src\process.h(70) : warning C4985: '_exit': attributes not present on previous declaration.
1>        c:\program files (x86)\windows mobile 6 sdk\pocketpc\include\armv4i\stdlib.h(135) : see declaration of '_exit'
1>C:\apps\111\src\process.h(155) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\apps\111\src\process.h(155) : error C2440: 'initializing' : cannot convert from 'HINSTANCE (__cdecl *)(LPCWSTR)' to 'int'
1>        There is no context in which this conversion is possible
1>C:\apps\111\src\process.h(155) : error C2146: syntax error : missing ';' before identifier 'intptr_t'
1>C:\apps\111\src\process.h(155) : error C2143: syntax error : missing ';' before '__cdecl'
1>C:\apps\111\src\process.h(155) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\apps\111\src\process.h(155) : error C2377: 'intptr_t' : redefinition; typedef cannot be overloaded with any other symbol
1>        c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\ce\include\crtdefs.h(667) : see declaration of 'intptr_t'
1>C:\apps\111\src\process.h(155) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\apps\111\src\process.h(156) : error C2448: '_CRT_OBSOLETE' : function-style initializer appears to be a function definition
1>C:\apps\111\src\process.h(156) : error C2061: syntax error : identifier 'intptr_t'
1>C:\apps\111\src\process.h(157) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\apps\111\src\process.h(157) : error C2374: '_CRT_OBSOLETE' : redefinition; multiple initialization
1>        C:\apps\111\src\process.h(155) : see declaration of '_CRT_OBSOLETE'
1>C:\apps\111\src\process.h(157) : error C2440: 'initializing' : cannot convert from 'FARPROC (__cdecl *)(HMODULE,LPCWSTR)' to 'int'
1>        There is no context in which this conversion is possible
1>C:\apps\111\src\process.h(157) : error C2199: syntax error : found 'int (' at global scope (was a declaration intended?)
1>C:\apps\111\src\process.h(157) : error C2061: syntax error : identifier 'intptr_t'
1>C:\apps\111\src\process.h(157) : error C2059: syntax error : ')'
1>C:\apps\111\src\process.h(157) : error C2059: syntax error : ')'
1>C:\apps\111\src\process.h(157) : error C2143: syntax error : missing ')' before '('
1>C:\apps\111\src\process.h(157) : error C2059: syntax error : ')'
1>C:\apps\111\src\process.h(157) : error C2143: syntax error : missing ')' before ';'
1>C:\apps\111\src\process.h(157) : error C2091: function returns function
1>C:\apps\111\src\process.h(157) : error C2143: syntax error : missing ')' before ';'
1>C:\apps\111\src\process.h(157) : error C2165: 'left-side modifier' : cannot modify pointers to data
1>C:\apps\111\src\process.h(207) : error C2143: syntax error : missing ';' before '__cdecl'
1>C:\apps\111\src\process.h(207) : error C2061: syntax error : identifier 'intptr_t'
1>C:\apps\111\src\process.h(207) : error C2059: syntax error : ')'
1>C:\apps\111\src\process.h(207) : error C2143: syntax error : missing ')' before ';'
1>C:\apps\111\src\process.h(208) : error C2143: syntax error : missing ';' before '__cdecl'
1>C:\apps\111\src\process.h(209) : error C2143: syntax error : missing ';' before '__cdecl'
1>C:\apps\111\src\process.h(210) : error C2143: syntax error : missing ';' before '__cdecl'
1>C:\apps\111\src\process.h(211) : error C2143: syntax error : missing ';' before '__cdecl'
1>C:\apps\111\src\process.h(212) : error C2143: syntax error : missing ';' before '__cdecl'
1>C:\apps\111\src\process.h(213) : error C2143: syntax error : missing ';' before '__cdecl'
1>C:\apps\111\src\process.h(214) : error C2143: syntax error : missing ';' before '__cdecl'
1>C:\apps\111\src\process.h(215) : error C2143: syntax error : missing ';' before '__cdecl'
1>C:\apps\111\src\process.h(216) : error C2143: syntax error : missing ';' before '__cdecl'
1>C:\apps\111\src\process.h(217) : error C2143: syntax error : missing ';' before '__cdecl'
1>C:\apps\111\src\process.h(218) : error C2143: syntax error : missing ';' before '__cdecl'
1>C:\apps\111\src\process.h(219) : error C2143: syntax error : missing ';' before '__cdecl'
1>C:\apps\111\src\process.h(220) : error C2143: syntax error : missing ';' before '__cdecl'
1>C:\apps\111\src\process.h(221) : error C2143: syntax error : missing ';' before '__cdecl'
1>C:\apps\111\src\process.h(223) : error C2143: syntax error : missing ';' before '__cdecl'

and this one

1>C:\apps\111\src\direct.h(59) : error C3094: 'vc_attributes::Post': anonymous usage not allowed
1>        c:\program files (x86)\microsoft visual studio 9.0\vc\ce\include\codeanalysis\sourceannotations.h(102) : see declaration of 'vc_attributes::Post'
1>        attribute can only be applied to: 'formal parameter', 'return value'
1>C:\apps\111\src\direct.h(59) : error C3094: 'vc_attributes::Post': anonymous usage not allowed
1>        c:\program files (x86)\microsoft visual studio 9.0\vc\ce\include\codeanalysis\sourceannotations.h(102) : see declaration of 'vc_attributes::Post'
1>        attribute can only be applied to: 'formal parameter', 'return value'
1>C:\apps\111\src\direct.h(59) : error C3094: 'vc_attributes::Post': anonymous usage not allowed
1>        c:\program files (x86)\microsoft visual studio 9.0\vc\ce\include\codeanalysis\sourceannotations.h(102) : see declaration of 'vc_attributes::Post'
1>        attribute can only be applied to: 'formal parameter', 'return value'
1>C:\apps\111\src\direct.h(60) : error C3094: 'vc_attributes::Post': anonymous usage not allowed
1>        c:\program files (x86)\microsoft visual studio 9.0\vc\ce\include\codeanalysis\sourceannotations.h(102) : see declaration of 'vc_attributes::Post'
1>        attribute can only be applied to: 'formal parameter', 'return value'
1>C:\apps\111\src\direct.h(60) : error C3094: 'vc_attributes::Post': anonymous usage not allowed
1>        c:\program files (x86)\microsoft visual studio 9.0\vc\ce\include\codeanalysis\sourceannotations.h(102) : see declaration of 'vc_attributes::Post'
1>        attribute can only be applied to: 'formal parameter', 'return value'
1>C:\apps\111\src\direct.h(60) : error C3094: 'vc_attributes::Post': anonymous usage not allowed
1>        c:\program files (x86)\microsoft visual studio 9.0\vc\ce\include\codeanalysis\sourceannotations.h(102) : see declaration of 'vc_attributes::Post'
1>        attribute can only be applied to: 'formal parameter', 'return value'
1>C:\apps\111\src\direct.h(61) : error C3094: 'vc_attributes::Post': anonymous usage not allowed
1>        c:\program files (x86)\microsoft visual studio 9.0\vc\ce\include\codeanalysis\sourceannotations.h(102) : see declaration of 'vc_attributes::Post'
1>        attribute can only be applied to: 'formal parameter', 'return value'
1>C:\apps\111\src\direct.h(61) : error C3094: 'vc_attributes::Post': anonymous usage not allowed
1>        c:\program files (x86)\microsoft visual studio 9.0\vc\ce\include\codeanalysis\sourceannotations.h(102) : see declaration of 'vc_attributes::Post'
1>        attribute can only be applied to: 'formal parameter', 'return value'
1>C:\apps\111\src\direct.h(61) : error C3094: 'vc_attributes::Post': anonymous usage not allowed
1>        c:\program files (x86)\microsoft visual studio 9.0\vc\ce\include\codeanalysis\sourceannotations.h(102) : see declaration of 'vc_attributes::Post'
1>        attribute can only be applied to: 'formal parameter', 'return value'
1>C:\apps\111\src\direct.h(69) : error C3094: 'vc_attributes::Post': anonymous usage not allowed
1>        c:\program files (x86)\microsoft visual studio 9.0\vc\ce\include\codeanalysis\sourceannotations.h(102) : see declaration of 'vc_attributes::Post'
1>        attribute can only be applied to: 'formal parameter', 'return value'
1>C:\apps\111\src\direct.h(70) : error C3094: 'vc_attributes::Post': anonymous usage not allowed
1>        c:\program files (x86)\microsoft visual studio 9.0\vc\ce\include\codeanalysis\sourceannotations.h(102) : see declaration of 'vc_attributes::Post'
1>        attribute can only be applied to: 'formal parameter', 'return value'
1>C:\apps\111\src\direct.h(71) : error C3094: 'vc_attributes::Post': anonymous usage not allowed
1>        c:\program files (x86)\microsoft visual studio 9.0\vc\ce\include\codeanalysis\sourceannotations.h(102) : see declaration of 'vc_attributes::Post'
1>        attribute can only be applied to: 'formal parameter', 'return value'
1>C:\apps\111\src\direct.h(73) : error C3094: 'vc_attributes::Post': anonymous usage not allowed
1>        c:\program files (x86)\microsoft visual studio 9.0\vc\ce\include\codeanalysis\sourceannotations.h(102) : see declaration of 'vc_attributes::Post'
1>        attribute can only be applied to: 'formal parameter', 'return value'
1>C:\apps\111\src\direct.h(74) : error C3094: 'vc_attributes::Post': anonymous usage not allowed
1>        c:\program files (x86)\microsoft visual studio 9.0\vc\ce\include\codeanalysis\sourceannotations.h(102) : see declaration of 'vc_attributes::Post'
1>        attribute can only be applied to: 'formal parameter', 'return value'
1>C:\apps\111\src\direct.h(75) : error C3094: 'vc_attributes::Post': anonymous usage not allowed
1>        c:\program files (x86)\microsoft visual studio 9.0\vc\ce\include\codeanalysis\sourceannotations.h(102) : see declaration of 'vc_attributes::Post'
1>        attribute can only be applied to: 'formal parameter', 'return value'
1>C:\apps\111\src\direct.h(78) : error C3094: 'vc_attributes::Post': anonymous usage not allowed
1>        c:\program files (x86)\microsoft visual studio 9.0\vc\ce\include\codeanalysis\sourceannotations.h(102) : see declaration of 'vc_attributes::Post'
1>        attribute can only be applied to: 'formal parameter', 'return value'
1>C:\apps\111\src\direct.h(96) : error C3094: 'vc_attributes::Post': anonymous usage not allowed
1>        c:\program files (x86)\microsoft visual studio 9.0\vc\ce\include\codeanalysis\sourceannotations.h(102) : see declaration of 'vc_attributes::Post'
1>        attribute can only be applied to: 'formal parameter', 'return value'
1>C:\apps\111\src\direct.h(96) : error C3094: 'vc_attributes::Post': anonymous usage not allowed
1>        c:\program files (x86)\microsoft visual studio 9.0\vc\ce\include\codeanalysis\sourceannotations.h(102) : see declaration of 'vc_attributes::Post'
1>        attribute can only be applied to: 'formal parameter', 'return value'
1>C:\apps\111\src\direct.h(96) : error C3094: 'vc_attributes::Post': anonymous usage not allowed
1>        c:\program files (x86)\microsoft visual studio 9.0\vc\ce\include\codeanalysis\sourceannotations.h(102) : see declaration of 'vc_attributes::Post'
1>        attribute can only be applied to: 'formal parameter', 'return value'
1>C:\apps\111\src\direct.h(97) : error C3094: 'vc_attributes::Post': anonymous usage not allowed
1>        c:\program files (x86)\microsoft visual studio 9.0\vc\ce\include\codeanalysis\sourceannotations.h(102) : see declaration of 'vc_attributes::Post'
1>        attribute can only be applied to: 'formal parameter', 'return value'
1>C:\apps\111\src\direct.h(97) : error C3094: 'vc_attributes::Post': anonymous usage not allowed
1>        c:\program files (x86)\microsoft visual studio 9.0\vc\ce\include\codeanalysis\sourceannotations.h(102) : see declaration of 'vc_attributes::Post'
1>        attribute can only be applied to: 'formal parameter', 'return value'
1>C:\apps\111\src\direct.h(97) : error C3094: 'vc_attributes::Post': anonymous usage not allowed
1>        c:\program files (x86)\microsoft visual studio 9.0\vc\ce\include\codeanalysis\sourceannotations.h(102) : see declaration of 'vc_attributes::Post'
1>        attribute can only be applied to: 'formal parameter', 'return value'
1>C:\apps\111\src\direct.h(98) : error C3094: 'vc_attributes::Post': anonymous usage not allowed
1>        c:\program files (x86)\microsoft visual studio 9.0\vc\ce\include\codeanalysis\sourceannotations.h(102) : see declaration of 'vc_attributes::Post'
1>        attribute can only be applied to: 'formal parameter', 'return value'
1>C:\apps\111\src\direct.h(98) : error C3094: 'vc_attributes::Post': anonymous usage not allowed
1>        c:\program files (x86)\microsoft visual studio 9.0\vc\ce\include\codeanalysis\sourceannotations.h(102) : see declaration of 'vc_attributes::Post'
1>        attribute can only be applied to: 'formal parameter', 'return value'
1>C:\apps\111\src\direct.h(98) : error C3094: 'vc_attributes::Post': anonymous usage not allowed
1>        c:\program files (x86)\microsoft visual studio 9.0\vc\ce\include\codeanalysis\sourceannotations.h(102) : see declaration of 'vc_attributes::Post'
1>        attribute can only be applied to: 'formal parameter', 'return value'
1>C:\apps\111\src\direct.h(106) : error C3094: 'vc_attributes::Post': anonymous usage not allowed
1>        c:\program files (x86)\microsoft visual studio 9.0\vc\ce\include\codeanalysis\sourceannotations.h(102) : see declaration of 'vc_attributes::Post'
1>        attribute can only be applied to: 'formal parameter', 'return value'
1>C:\apps\111\src\direct.h(107) : error C3094: 'vc_attributes::Post': anonymous usage not allowed
1>        c:\program files (x86)\microsoft visual studio 9.0\vc\ce\include\codeanalysis\sourceannotations.h(102) : see declaration of 'vc_attributes::Post'
1>        attribute can only be applied to: 'formal parameter', 'return value'
1>C:\apps\111\src\direct.h(108) : error C3094: 'vc_attributes::Post': anonymous usage not allowed
1>        c:\program files (x86)\microsoft visual studio 9.0\vc\ce\include\codeanalysis\sourceannotations.h(102) : see declaration of 'vc_attributes::Post'
1>        attribute can only be applied to: 'formal parameter', 'return value'
1>C:\apps\111\src\direct.h(121) : error C3094: 'vc_attributes::Post': anonymous usage not allowed
1>        c:\program files (x86)\microsoft visual studio 9.0\vc\ce\include\codeanalysis\sourceannotations.h(102) : see declaration of 'vc_attributes::Post'
1>        attribute can only be applied to: 'formal parameter', 'return value'
1>C:\apps\111\src\direct.h(121) : error C3094: 'vc_attributes::Post': anonymous usage not allowed
1>        c:\program files (x86)\microsoft visual studio 9.0\vc\ce\include\codeanalysis\sourceannotations.h(102) : see declaration of 'vc_attributes::Post'
1>        attribute can only be applied to: 'formal parameter', 'return value'
1>C:\apps\111\src\direct.h(121) : error C3094: 'vc_attributes::Post': anonymous usage not allowed
1>        c:\program files (x86)\microsoft visual studio 9.0\vc\ce\include\codeanalysis\sourceannotations.h(102) : see declaration of 'vc_attributes::Post'
1>        attribute can only be applied to: 'formal parameter', 'return value'
1>C:\apps\111\src\direct.h(127) : error C3094: 'vc_attributes::Post': anonymous usage not allowed
1>        c:\program files (x86)\microsoft visual studio 9.0\vc\ce\include\codeanalysis\sourceannotations.h(102) : see declaration of 'vc_attributes::Post'
1>        attribute can only be applied to: 'formal parameter', 'return value'
1>C:\apps\111\src\direct.h(128) : error C3094: 'vc_attributes::Post': anonymous usage not allowed
1>        c:\program files (x86)\microsoft visual studio 9.0\vc\ce\include\codeanalysis\sourceannotations.h(102) : see declaration of 'vc_attributes::Post'
1>        attribute can only be applied to: 'formal parameter', 'return value'
1>C:\apps\111\src\direct.h(129) : error C3094: 'vc_attributes::Post': anonymous usage not allowed
1>        c:\program files (x86)\microsoft visual studio 9.0\vc\ce\include\codeanalysis\sourceannotations.h(102) : see declaration of 'vc_attributes::Post'
1>        attribute can only be applied to: 'formal parameter', 'return value'

Now i suspect i am very near the source files are all ok but these 2 if i fix that i think i can compile it.Please can you give me those 2 files that are working right?

Van nikodr

Paladin (742)

afbeelding van nikodr

14-11-2010, 04:46

It seems that direct.h and process.h are not available under windows mobile 6.x or 5.x sdk and is tied to windows only,if that is the case how is it handled under linux?What is really the use of the process.h ?Vampier can you assist?

Van nikodr

Paladin (742)

afbeelding van nikodr

14-11-2010, 05:27

i used this code for process.h from http://www.koders.com/c/fid3C73302EB9A1DF6A9E4BF5970D6BBDC303D942C3.aspx?s=ruby do you think it is ok?The errors dissapeared i think about the process.h.

I think it is essential for the port of the emulator to create new options for a windows CE name under the options,linux macos and win32 win64 as well as ppc32 and ppc64 are available options to build,i am looking in other applications in order to find a way to do so.

Van nikodr

Paladin (742)

afbeelding van nikodr

16-11-2010, 06:19

some good progress i used the "python build\3rdparty_download.py windows" and i have all the needed files,visual studio seems to compile correctly the 3dparty needed libraries,(i need to fix some missing header files such as dinput.h iconv.h etc though).I am at about 80% ready.Now once the 3rdparty libraries and files are fixed and ready for windows ce mobile,then i can move to the openmsx source code fix for that platform....

I am looking for iphone ports too,there is some sort of sdl libraries on the google code sites,although not officialy one.

Anyone cares to help here too?
Kind regards

Van nikodr

Paladin (742)

afbeelding van nikodr

07-12-2010, 19:53

Just got myself an android powered phone zte blade,do you think it will be easier to port openmsx to it?Is there someone that could help because the opemmsx is not easy to port on windows mobile,many source code changes are required for an arm build since the source configure files opt for x64,x64,ppc32,ppc64 and not arm.Too many errors pop up out of nowhere,i reached a stage where it should compile but i am still getting errors.
So how about a new android port?

Pagina 4/5
1 | 2 | 3 | | 5