Re: [Rtk-users] SimpleRTK + Matlab

2016-11-04 Thread Julien Jomier

Hi Arvid,

Sorry for the late reply.

We successfully build the latest RTK with ITK 4.11.0 on Visual Studio 
2013 with static libraries (BUILD_SHARED_LIBS set to OFF).


I have just pushed a fix to SimpleRTK to build as shared libraries. Note 
that you would need to have ITK built as shared libraries as well.


Let us know if you still have any issues,
Julien

On 23/09/2016 10:29, Arvid Piehl Lauritsen Böttiger wrote:


Hi again.

I've been spending some more time with this, and feel I learned a little
bit more. I have now tested this on several machines with several
compiler versions (more or less all of them) and serveral cmake versions
- all with Windows 7.

I can actually reproduce the successful build you linked to, but this
can only be done if you do not include any of the language wrappings,
like in the build you linked to. Enable any of them, and the build will
break. (see attachment)

I suspect it must have been working in the past, but since none of them
are included in your test there have been a breaking change, and none of
them work anymore.

I am still trying to tweak then projects manually to build SimpleRTK
with some sort of language support, but still without any luck.

best

Arvid

On Tue, Sep 20, 2016 at 4:19 PM, Simon Rit
>
wrote:

Hi,
Sorry, I won't be able to help but I'd advise to tick on WRAP_PYTHON
only at first in cmake, not the other languages (i.e., tick off
WRAP_LUA).
I can't solve your problem but Kitware is going to look into an
upgrade of SimpleRTK in the coming days, I'll ask them if they know
what is the issue. If you look here:
http://my.cdash.org/viewNotes.php?buildid=1052065

this is a nightly build of SimpleRTK on Windows and it seems to
work. I don't see why it wouldn't work for you.
Simon

On Tue, Sep 20, 2016 at 2:17 PM, Arvid Piehl Lauritsen Böttiger
> wrote:

Hi again.

I understand, but could you please help me get in contact with
the person who knows something about the windows build (if any),
I think there is something wrong.

I have been investigating the build problems I had and found
that in the sub folder "SimpleRTK-build" there is a solutions
file with SimpleRTK. I opened it up and found the projects which
I had problems building: "SimpleRTKCommon",
"SimpleRTKBasicFilters0", "SimpleRTKBasicFilters1" etc.

When I then tried to build SimpleRTKCommon manually it just
compiled without any problems. However, when I followed up by
building "SimpleRTKBasicFilters0" it gave me an error which
stated that it couldn't find "SimpleRTKCommon-0.9.lib" - which I
just build.

After some more investigation I realized that the
SimpleRTKCommon is set to build a dynamic linked library (DLL),
and SimpleRTKBasicFilters0 expects it to be a static linked
library (LIB). After changing SimpleRTKCommon to be build as a
static library - and changing the output location - I could
build SimpleRTKBasicFilters0.

However, SimpleRTKBasicFilters0 is also build as an DLL, but
changing that to a LIB as well I could build
SimpleRTKBasicFilters1, then SimpleRTKBasicFilters2 and then
SimpleRTKBasicFilters3. You get the point.

I'm unsure if the intention is to build them as static or
dynamic libraries, but in any case the current build
configuration doesn't work - on my setup at least.

However, I should note than for some reason the "lua5" project
did build successfully out of the box. Whatever it does
differently works.

best

Arvid



On Tue, Sep 20, 2016 at 7:33 AM, Simon Rit
> wrote:

I'm not an msvc specialist but your first line suggests that
you have pasted only part of the log:

20>  Done Building Project

"C:\Users\aplb\Work\RTK\RTK1.2-bin-vs13\SimpleRTK-build\ALL_BUILD.vcxproj"
(default targets) -- FAILED.

What you need to find out is why this build failed. If the
build fails, the linking cannot work.
Cheers,
Simon


On 19/09/2016 19:44, Arvid Piehl Lauritsen Böttiger wrote:

I did a complete rebuild, and here is the end of the
output: http://pastebin.com/hvQ33WWg

I have to admit I'm not sure what to make of it. I should
note that I'm trying to compile the version I just pulled
from git earlier today, since the other version I normally
work with is really old.

best

Arvid

On Mon, Sep 19, 

Re: [Rtk-users] SimpleRTK + Matlab

2016-09-20 Thread Arvid Piehl Lauritsen Böttiger
Hi again.

I understand, but could you please help me get in contact with the person
who knows something about the windows build (if any), I think there is
something wrong.

I have been investigating the build problems I had and found that in the
sub folder "SimpleRTK-build" there is a solutions file with SimpleRTK. I
opened it up and found the projects which I had problems building:
"SimpleRTKCommon", "SimpleRTKBasicFilters0", "SimpleRTKBasicFilters1" etc.

When I then tried to build SimpleRTKCommon manually it just compiled
without any problems. However, when I followed up by building
"SimpleRTKBasicFilters0" it gave me an error which stated that it couldn't
find "SimpleRTKCommon-0.9.lib" - which I just build.

After some more investigation I realized that the SimpleRTKCommon is set to
build a dynamic linked library (DLL), and SimpleRTKBasicFilters0 expects it
to be a static linked library (LIB). After changing SimpleRTKCommon to be
build as a static library - and changing the output location - I could
build SimpleRTKBasicFilters0.

However, SimpleRTKBasicFilters0 is also build as an DLL, but changing that
to a LIB as well I could build SimpleRTKBasicFilters1, then
SimpleRTKBasicFilters2 and then SimpleRTKBasicFilters3. You get the point.

I'm unsure if the intention is to build them as static or dynamic
libraries, but in any case the current build configuration doesn't work -
on my setup at least.

However, I should note than for some reason the "lua5" project did build
successfully out of the box. Whatever it does differently works.

best

Arvid



On Tue, Sep 20, 2016 at 7:33 AM, Simon Rit 
wrote:

> I'm not an msvc specialist but your first line suggests that you have
> pasted only part of the log:
>
> 20>  Done Building Project "C:\Users\aplb\Work\RTK\RTK1.
> 2-bin-vs13\SimpleRTK-build\ALL_BUILD.vcxproj" (default targets) -- FAILED.
> What you need to find out is why this build failed. If the build fails,
> the linking cannot work.
> Cheers,
> Simon
>
>
> On 19/09/2016 19:44, Arvid Piehl Lauritsen Böttiger wrote:
>
> I did a complete rebuild, and here is the end of the output:
> http://pastebin.com/hvQ33WWg
>
> I have to admit I'm not sure what to make of it. I should note that I'm
> trying to compile the version I just pulled from git earlier today, since
> the other version I normally work with is really old.
>
> best
>
> Arvid
>
> On Mon, Sep 19, 2016 at 6:50 PM, Simon Rit  > wrote:
>
>> SimpleRTKCommon is a library generated when compiling. Don't you have
>> another error before that which explains why it did not compile?
>> Simon
>>
>> On Mon, Sep 19, 2016 at 2:30 PM, Arvid Piehl Lauritsen Böttiger <
>> botti...@gmail.com> wrote:
>>
>>> Hi again.
>>>
>>> I've been trying to get it working. However, I did run into some
>>> problems compiling SimpleRTK. The main issue seems to be that it depends on
>>> SimpleRTKCommon - which I do not have.
>>>
>>> Here is the last few lines from VS2013
>>>
>>> > 5>LINK : fatal error LNK1181: cannot open input file
>>> '..\..\..\lib\Debug\SimpleRTKCommon-0.9.lib'
>>> [C:\Users\aplb\Work\RTK\RTK1.2-
>>> > bin-vs13\SimpleRTK-build\Code\IO\src\SimpleRTKIO.vcxproj]
>>> > 5>
>>> > 5>  0 Warning(s)
>>> > 5>  2 Error(s)
>>> > 5>
>>> > 5>  Time Elapsed 00:00:25.26
>>> > == Build: 4 succeeded, 1 failed, 0 up-to-date, 0 skipped
>>> ==
>>>
>>> I'm not quite sure what is going on, because the only reference I can
>>> find to SimpleRTKCommon is the CMakeLists.txt on github:
>>> https://github.com/SimonRit/RTK/blob/master/utilities/Simple
>>> RTK/CMakeLists.txt
>>>
>>> best
>>>
>>> Arvid
>>>
>>> On Mon, Sep 19, 2016 at 11:19 AM, Simon Rit <
>>> simon@creatis.insa-lyon.fr> wrote:
>>>
 The latest MacOS. It's nice if you can test it on other platforms, I'll
 try to run it on Linux but I have to upgrade matlab first (I think python
 calls are available starting with Matlab 2014).
 Simon

 On Mon, Sep 19, 2016 at 11:14 AM, Arvid Piehl Lauritsen Böttiger <
 botti...@gmail.com> wrote:

> Dear Simon
>
> This look very interesting! Which platform did you successfully
> execute this on?
> I will give it a try at once (on windows) and let you know if I run
> into any problems.
>
> best
>
> Arvid
>
> On Mon, Sep 19, 2016 at 11:05 AM, Simon Rit <
> simon@creatis.insa-lyon.fr> wrote:
>
>> Dear RTK users,
>> I have quickly tested calling the SimpleRTK python lib from Matlab
>> and it seems to work well:
>> http://wiki.openrtk.org/index.php/SimpleRTK#Matlab
>> Therefore, I don't think we have to work on Matlab wrappings but let
>> us know if you think otherwise.
>> Future works include a simple installation mechanism for pre-compiled
>> SimpleRTK libraries. We'll keep you posted!
>> Simon
>>
>> ___
>> Rtk-users mailing