I've now tried to compile the trunk in windows XP,  Visual Studio 2005.

*1) I tried the Make first (I thought I needed to generate a config.h):
C:\src\leocad>make config
process_begin: CreateProcess((null), uname, ...) failed.
process_begin: CreateProcess((null), uname, ...) failed.
process_begin: CreateProcess((null), uname, ...) failed.
process_begin: CreateProcess((null), uname, ...) failed.
"Automatic configuration"
then was unexpected at this time.
make: *** [config] Error 255

Ok, no need to use make on windows, there is a config.h already.


*2) Converted Leocad.dsp to VS 2005, and built:
1>Figdlg.cpp
1>c:\src\leocad\win\figdlg.cpp(133) : error C2664:
'MinifigWizard::GetSelections' : cannot convert parameter 1 from 'char
*[15]' to 'const char **'
1>        Conversion loses qualifiers
1>message.cpp
1>c1xx : fatal error C1083: Cannot open source file:
'..\common\message.cpp': No such file or directory

The project file referred to the missing message.cpp, I removed the
file from the project and removed the const attribute in
GetSelections:

C:\src\leocad>svn diff .
Index: common/minifig.cpp
===================================================================
--- common/minifig.cpp  (revision 729)
+++ common/minifig.cpp  (working copy)
@@ -880,7 +880,7 @@
        }
 }

-void MinifigWizard::GetSelections(const char** names)
+void MinifigWizard::GetSelections(char** names)
 {
        for (int i = 0; i < LC_MFW_NUMITEMS; i++)
        {
Index: common/minifig.h
===================================================================
--- common/minifig.h    (revision 729)
+++ common/minifig.h    (working copy)
@@ -44,7 +44,7 @@

        void Calculate();
        void GetItems(int type, LC_MFW_PIECEINFO*** items, int *count);
-       void GetSelections(const char** names);
+       void GetSelections(char** names);
        void ChangePiece(int type, LC_MFW_PIECEINFO* info);
        void ChangeColor(int type, int color);
        void ChangeAngle(int type, float angle);

*3) After this I failed to link:
1>Linking...
1>Cadview.obj : error LNK2019: unresolved external symbol "void
__cdecl lcPostMessage(enum lcMessageType,void *)"
(?lcPostMessage@@YAXW4lcMessageType@@[EMAIL PROTECTED]) referenced in function
"protected: void __thiscall CCADView::OnCaptureChanged(class CWnd *)"
([EMAIL PROTECTED]@@IAEXPAVCWnd@@@Z)
1>Colorlst.obj : error LNK2001: unresolved external symbol "void
__cdecl lcPostMessage(enum lcMessageType,void *)"
(?lcPostMessage@@YAXW4lcMessageType@@[EMAIL PROTECTED])
1>project.obj : error LNK2001: unresolved external symbol "void
__cdecl lcPostMessage(enum lcMessageType,void *)"
(?lcPostMessage@@YAXW4lcMessageType@@[EMAIL PROTECTED])
1>Leocad.obj : error LNK2019: unresolved external symbol
[EMAIL PROTECTED] referenced in function "void __cdecl
CheckForUpdates(void *)" (?CheckForUpdates@@[EMAIL PROTECTED])
1>Leocad.obj : error LNK2019: unresolved external symbol
[EMAIL PROTECTED] referenced in function "void __cdecl
CheckForUpdates(void *)" (?CheckForUpdates@@[EMAIL PROTECTED])
1>Leocad.obj : error LNK2019: unresolved external symbol
[EMAIL PROTECTED] referenced in function "void __cdecl
CheckForUpdates(void *)" (?CheckForUpdates@@[EMAIL PROTECTED])
1>Leocad.obj : error LNK2019: unresolved external symbol
[EMAIL PROTECTED] referenced in function "void __cdecl
CheckForUpdates(void *)" (?CheckForUpdates@@[EMAIL PROTECTED])
1>Leocad.obj : error LNK2019: unresolved external symbol
[EMAIL PROTECTED] referenced in function "void __cdecl
CheckForUpdates(void *)" (?CheckForUpdates@@[EMAIL PROTECTED])
1>Mainfrm.obj : error LNK2019: unresolved external symbol "public:
__thiscall lcListener::~lcListener(void)" (??1lcListener@@[EMAIL PROTECTED])
referenced in function __unwindfunclet$??0CMainFrame@@[EMAIL PROTECTED]
1>preview.obj : error LNK2001: unresolved external symbol "public:
__thiscall lcListener::~lcListener(void)" (??1lcListener@@[EMAIL PROTECTED])
1>project.obj : error LNK2001: unresolved external symbol "public:
__thiscall lcListener::~lcListener(void)" (??1lcListener@@[EMAIL PROTECTED])
1>Mainfrm.obj : error LNK2019: unresolved external symbol "public:
__thiscall lcListener::lcListener(void)" (??0lcListener@@[EMAIL PROTECTED])
referenced in function "protected: __thiscall
CMainFrame::CMainFrame(void)" (??0CMainFrame@@[EMAIL PROTECTED])
1>preview.obj : error LNK2001: unresolved external symbol "public:
__thiscall lcListener::lcListener(void)" (??0lcListener@@[EMAIL PROTECTED])
1>project.obj : error LNK2001: unresolved external symbol "public:
__thiscall lcListener::lcListener(void)" (??0lcListener@@[EMAIL PROTECTED])
1>.\Debug/LeoCAD.exe : fatal error LNK1120: 8 unresolved externals
1>Build log was saved at "file://c:\src\leocad\win\Debug\BuildLog.htm"
1>LeoCAD - 15 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Is it really possible to compile the trunk in windows?
I tried this just to see if I could follow an MFC to Qt guide (Windows only).
( I don't have a Windows machine of my own, Linux will be my only possibility.)

/$
_______________________________________________
Leocad mailing list
[email protected]
https://list.gerf.org/listinfo/leocad

Reply via email to