companion9x install on win7 issue

A fork of eePe. It's aim is to provide one tool that works with ALL firmwares!
Post Reply
manu
Posts: 106
Joined: Thu Dec 29, 2011 7:02 am
Country: -
Location: St. Gallen, Switzerland

companion9x install on win7 issue

Post by manu »

After 2hrs installing I'm almost through:
While building companion9x,
having CodeSynthesis XSD installed,
got companion9x via SVN.

I get this:

Code: Select all

C:\Programs\companion9x\trunk\src>sh
sh-3.1$ mkdir ../build
sh-3.1$ cd ../build
sh-3.1$ cmake -G "MSYS Makefiles" ../src
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: C:/MinGW/bin/gcc.exe
-- Check for working C compiler: C:/MinGW/bin/gcc.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: C:/MinGW/bin/g++.exe
-- Check for working CXX compiler: C:/MinGW/bin/g++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for XercesC
--   found xerces-c: C:/MinGW/msys/1.0/local/lib/libxerces-c.dll.a
-- Looking for Xsd
-- XSDCXX_EXECUTABLE-NOTFOUND
CMake Error at CMakeLists.txt:24 (MESSAGE):
  XSD not found! Please set XSD path ...

-- Configuring incomplete, errors occurred!
sh-3.1$ cmake -G "MSYS Makefiles" ../src
-- Looking for XercesC
--   found xerces-c: C:/MinGW/msys/1.0/local/lib/libxerces-c.dll.a
-- Looking for Xsd
-- XSDCXX_EXECUTABLE-NOTFOUND
CMake Error at CMakeLists.txt:24 (MESSAGE):
  XSD not found! Please set XSD path ...


-- Configuring incomplete, errors occurred!
sh-3.1$
After the 1st try I copied the xsd code (out of the seperate directory) into the MinGW Directory but still (this was probabely wrong but I didn't overwrite anything) .. as you see..
Do I have to add a path information? Or what have I done wrong?
regards
manu

manu
Posts: 106
Joined: Thu Dec 29, 2011 7:02 am
Country: -
Location: St. Gallen, Switzerland

Re: companion9x install on win7 issue

Post by manu »

Good morning!
Still trying to install companion9x on win7 via MinGW:

Installed MinGW and CodeSynthesis XSD from scratch.
But still the same effect:

Code: Select all

C:\Programs\companion9x\trunk\src>sh
sh-3.1$ mkdir ../build
mkdir: cannot create directory `../build': File exists
sh-3.1$ cd ../build
sh-3.1$ cmake -G "MSYS Makefiles" ../src
-- Looking for XercesC
--   found xerces-c: C:/MinGW/msys/1.0/local/lib/libxerces-c.dll.a
-- Looking for Xsd
-- XSDCXX_EXECUTABLE-NOTFOUND
CMake Error at CMakeLists.txt:24 (MESSAGE):
  XSD not found! Please set XSD path ...


-- Configuring incomplete, errors occurred!
sh-3.1$
Any ideas?
manu
bertrand35
9x Developer
Posts: 2764
Joined: Fri Dec 30, 2011 11:11 pm
Country: -

Re: companion9x install on win7 issue

Post by bertrand35 »

Ok. The message is clear. You need XSD :)

I suppose you did install it, but in a location I didn't add in the "src/FindXsd.cmake" file.

Side note: About XercesC you need the VC++ version to avoid further problems. Did you choose the right one?

Here is my output:

Code: Select all

1>  --   found xerces-c: C:/Programs/xerces-vc/lib/xerces-c_3.lib
1>  -- Looking for Xsd 
1>  XSD Include Path: C:/Programs/xsd-3.3.0/libxsd
1>  -- C:/Programs/xsd-3.3.0/bin/xsd-cxx.exe
1>  -- Looking for SDL 
1>  SDL Include Path: C:/Programs/SDL-1.2.14/include
Also I wrote some notes here:
http://code.google.com/p/companion9x/wi ... tudioBuild

Please tell me if you feel able / wanting to do something better than what I did (that's easy) ...

Bertrand.
manu
Posts: 106
Joined: Thu Dec 29, 2011 7:02 am
Country: -
Location: St. Gallen, Switzerland

Re: companion9x install on win7 issue

Post by manu »

Hi Betrand
I exactly followed your guide for WindowsMingwBuild and installed XSD in MinGW directory.
So my path is named C:\MinGW\xsd-3.3.0-i686-windows\bin and there is only one file called xsd.exe.
Should I move/rename the xsd directory and/or what else should I try?
best regards
manu

PS: just to be accurate: your guide for MingwBuild suggests to dowload the Xerces source library and recompile it from scratch. That's what I did.
bertrand35
9x Developer
Posts: 2764
Joined: Fri Dec 30, 2011 11:11 pm
Country: -

Re: companion9x install on win7 issue

Post by bertrand35 »

Ok I understand the problem: you are mixing two very different methods: using the MinGW compiler or using M$ VC++.
- The MinGW method is better documented, but it's deprecated
- VC++ produces a best result (it's able to catch exceptions within firmware simulation)
But these 2 methods are incompatible! In the second you don't need to recompile neither the XercesC libraries, nor the XSD binary. So yes in your place I would use a C:\Programs (because spaces introduce a lot of problems...) directory and put there the MinGw libraries and XSD binary.
Bertrand.

manu
Posts: 106
Joined: Thu Dec 29, 2011 7:02 am
Country: -
Location: St. Gallen, Switzerland

Re: companion9x install on win7 issue

Post by manu »

So what would you advice me, Bertrand, for a installation on a win7b32 Machine?
Am I on a good way with WindowsMingwBuild or have I to startover from scratch, install a visual studio 2005 (does this run on win7?).
regards
manu
Romolo
9x Developer
Posts: 1109
Joined: Sat Dec 31, 2011 12:11 am
Country: -
Location: Massa (MS), Tuscany, Italy

Re: companion9x install on win7 issue

Post by Romolo »

I will suggest you to go on Visual C++ 2010 Express (which is free) and runs on Windows 7...
And follow the instructions here:
http://code.google.com/p/companion9x/wi ... tudioBuild
bertrand35
9x Developer
Posts: 2764
Joined: Fri Dec 30, 2011 11:11 pm
Country: -

Re: companion9x install on win7 issue

Post by bertrand35 »

Thanks to Cam, the Wiki page is up to date now. A lot of infos there!
Bertrand.
manu
Posts: 106
Joined: Thu Dec 29, 2011 7:02 am
Country: -
Location: St. Gallen, Switzerland

Re: companion9x install on win7 issue

Post by manu »

Thank looks much better Bertrand!
Following your guide:
- path C:\Programs\TortoiseSVN.. a typo?
- building.. I get this:

Code: Select all

C:\Programs\companion9x\trunk\build>cmake -G "Visual Studio 10" ../src
-- Check for working C compiler using: Visual Studio 10
-- Check for working C compiler using: Visual Studio 10 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler using: Visual Studio 10
-- Check for working CXX compiler using: Visual Studio 10 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for XercesC
--   found xerces-c: C:/Programs/xerces-vc/lib/xerces-c_3.lib
-- Looking for Xsd
-- XSDCXX_EXECUTABLE-NOTFOUND
CMake Error at CMakeLists.txt:24 (MESSAGE):
  XSD not found! Please set XSD path ...


-- Configuring incomplete, errors occurred!

C:\Programs\companion9x\trunk\build>
In C:\Programs\xsd-3.3.0\bin\ there is only 1 file: xsd.exe

regards manu
manu
Posts: 106
Joined: Thu Dec 29, 2011 7:02 am
Country: -
Location: St. Gallen, Switzerland

Re: companion9x install on win7 issue

Post by manu »

Hi Bertrand
Could you just give me a hint.
I'm not into C++ but I suppose FindXsd.cmake is looking for a file named xsd-cxx.exe in path C:/Programs/xsd-3.3.0/bin (working on win7-32). But there is not such file. Either the path/filename is wrong or I loaded the wrong library/wrong XSD library link.
Since I don't exactly know where or whatfor you use xsd, it's not the best idea for me to modify your code.
Any ideas?
regards
manu
User avatar
dvogonen
Posts: 453
Joined: Tue Jan 31, 2012 9:38 pm
Country: Sweden
Location: Stockholm

Re: companion9x install on win7 issue

Post by dvogonen »

I ran into the same issue. See my comment on the bottom of the google project home page of the project to solve it and a few other problems:
http://code.google.com/p/companion9x/wi ... tudioBuild
I have succeeded to create the build system and start Visual Studio Express 2010 without complaint during code scanning (which is a success).
I have also gotten through the complete build.
I have not tested the result.
manu
Posts: 106
Joined: Thu Dec 29, 2011 7:02 am
Country: -
Location: St. Gallen, Switzerland

Re: companion9x install on win7 issue

Post by manu »

OK, I did all mods according the remarks up to th9xher's comments. I got to visual C++ ALL_BUILD and ended with:

Code: Select all

1>------ Build started: Project: ZERO_CHECK, Configuration: Release Win32 ------
1>  Checking Build System
1>  CMake does not need to re-run because C:/Programs/companion9x/trunk/build/CMakeFiles/generate.stamp is up-to-date.
2>------ Build started: Project: companion9x, Configuration: Release Win32 ------
2>  Generating radio.hxx, radio.cxx
2>  Generating er9x/stamp-er9x.h
2>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6006: "cmd.exe" exited with code 2.
3>------ Build started: Project: ALL_BUILD, Configuration: Release Win32 ------
3>  Build all projects
3>  Building Custom Rule C:/Programs/companion9x/trunk/src/CMakeLists.txt
3>  CMake does not need to re-run because C:\Programs\companion9x\trunk\build\CMakeFiles\generate.stamp is up-to-date.
========== Build: 2 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
No companion9x.exe in C:\Programs\companion9x\trunk\build\Release\
What do I have to look after?
regards 99% away from finish (or is it the start?)
manu

PS: is this a windows issue? Win7-32 Home Premium SP1
manu
Posts: 106
Joined: Thu Dec 29, 2011 7:02 am
Country: -
Location: St. Gallen, Switzerland

Re: companion9x install on win7 issue

Post by manu »

..or could it be this in CMakeList.txt:

Code: Select all

...
MACRO (TODAY RESULT)
    IF (WIN32)
        EXECUTE_PROCESS(COMMAND "cmd" " /C date /T" OUTPUT_VARIABLE ${RESULT})
...
I dunno C++ but for a Windows line command this "/C" argument looks a bit odd to me.regards
manu
EDIT: no, it's all ok to generate the timestamp..
TrueBuild
Posts: 47
Joined: Wed Nov 27, 2013 10:05 am
Country: -

Re: companion9x install on win7 issue

Post by TrueBuild »

manu wrote:Good morning!
Still trying to install companion9x on win7 via MinGW:

Installed MinGW and CodeSynthesis XSD from scratch.
But still the same effect:

Code: Select all

C:\Programs\companion9x\trunk\src>sh
sh-3.1$ mkdir ../build
mkdir: cannot create directory `../build': File exists
sh-3.1$ cd ../build
sh-3.1$ cmake -G "MSYS Makefiles" ../src
-- Looking for XercesC
--   found xerces-c: C:/MinGW/msys/1.0/local/lib/libxerces-c.dll.a
-- Looking for Xsd
-- XSDCXX_EXECUTABLE-NOTFOUND
CMake Error at CMakeLists.txt:24 (MESSAGE):
  XSD not found! Please set XSD path ...


-- Configuring incomplete, errors occurred!
sh-3.1$
Any ideas?
manu
May I ask how you set the path parameters to XercesC as I have not set this correctly since my build fails at that point.

You have yours working :)

Post Reply

Return to “companion9x”