[hugin-ptx] Re: issue with libpano13 CMake build (SVN1082)

2009-09-27 Thread Yuval Levy

Jim Watters wrote:
> 
>>> 2>..\pano13.src\adjust.c(44) : fatal error C1083: Cannot open include
>>> file: 'PTcommon.h': No such file or directory
>>> 
> Should be fixed in SVN1090.

confirm, thanks.

the MSVC project files build well. The CMake build is broken on Windows. 
  It's dependency from Hugin is bad; and it is incompatible with Hugin / 
its SDK. Hugin expects the pano13 folder to be one levels lower than 
Hugin itself, i.e.:

Hugin_SDK\
-> hugin\
-> libpano\pano13\

but the CMake build expects pano13 to be at the same level in 
relationship to hugin's source:

Hugin_SDK\
-> hugin\
-> pano13\

Building the GSoC 2008 layout codeline at the moment.

Yuv

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~--~~~~--~~--~--~---



[hugin-ptx] Re: issue with libpano13 CMake build (SVN1082)

2009-09-27 Thread Jim Watters


>> 2>..\pano13.src\adjust.c(44) : fatal error C1083: Cannot open include
>> file: 'PTcommon.h': No such file or directory
>> 
Should be fixed in SVN1090.

-- 
Jim Watters
http://photocreations.ca


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~--~~~~--~~--~--~---



[hugin-ptx] Re: issue with libpano13 CMake build (SVN1082)

2009-09-27 Thread Yuval Levy

Kornel Benko wrote:
> Done. But now I have to go to bed.

THANK YOU and good night!

Yuv

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~--~~~~--~~--~--~---



[hugin-ptx] Re: issue with libpano13 CMake build (SVN1082)

2009-09-27 Thread Kornel Benko
Am Sonntag 27 September 2009 schrieb Yuval Levy:
> Kornel Benko wrote:
> > The build I have here creates static lib on windows, and static + shared
> > on all other platforms. But there is still the problem with tools.
>
> it's definitely better than the previous status.
>
> > Should I nonetheless commit?
>
> please do.
>
> Yuv
>
Done. But now I have to go to bed.

Regards
Kornel
-- 
Kornel Benko
kornel.be...@berlin.de


signature.asc
Description: This is a digitally signed message part.


[hugin-ptx] Re: issue with libpano13 CMake build (SVN1082)

2009-09-27 Thread Yuval Levy

Kornel Benko wrote:
> The build I have here creates static lib on windows, and static + shared on 
> all other platforms.
> But there is still the problem with tools.

it's definitely better than the previous status.


> Should I nonetheless commit? 

please do.

Yuv

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~--~~~~--~~--~--~---



[hugin-ptx] Re: issue with libpano13 CMake build (SVN1082)

2009-09-27 Thread Yuval Levy

Kornel Benko wrote:
> Am Sonntag 27 September 2009 schrieb Yuval Levy:
>> When commented out the result is equal or better than before. Time to
>> remove the HuginMacros?
>>
> 
> Yes, if it does not break anything on windows, then of course.

I don't have the impression that it breaks anything worse than what has 
been broken with this dynamic linking madness


> For now, you could comment the line 205 + 206
> #add_library(pano13 SHARED ${pano13_hdr} ${pano13_res} ${pano13_src})
> #target_link_libraries(pano13 ${_common_libs})

done


> and change the install statement on line 211 to
> install(TARGETS  pano13a
>   ARCHIVE DESTINATION lib)

done


> Then at least you have static library.

not yet

CMake Error, line 209 (set_target_properties) 224 (add_dependencies)

once 209 and 224 are commented out as well, things seems to be running fine

still says unreferenced target pano13 a few times (which is bad - the 
tools should be build statically for Windows distribution, and not 
against a DLL that might suddenly disappear).


running the MSVC project.

Summary:

== Build: 3 succeeded, 11 failed, 4 up-to-date, 3 skipped ==

something seems to be wrong with the order in which targets are built. 
shouldn't pano13a be built first?

I still get the "fatal error C1083: Cannot open include file: 
'dirent.h': No such file or directory" on many tools.

Then I also get "LINK : fatal error LNK1181: cannot open input file 
'pano13.lib'" - obviously because of the wrong build order.

All the Java errors have disappeared (without needing to set HAVE_JAVA).

toward the end of the process, good news:
12>pano13a - 0 error(s), 19 warning(s)

the magic is done and I have a Release\pano13.lib file that I can use to 
continue build Hugin.

Thank you very much, Kornel.

Yuv

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~--~~~~--~~--~--~---



[hugin-ptx] Re: issue with libpano13 CMake build (SVN1082)

2009-09-27 Thread Kornel Benko
Am Sonntag 27 September 2009 schrieb Yuval Levy:
> I understand you need different target names. And I also understand some
> users want/need a DLL for dynamic linking in Windows. But please give
> priority to the static Windows library. It's much less headache, and it
> is how libpano has been working for the past couple of years on Windows.
> Not a good idea to change that now.

OK.

The build I have here creates static lib on windows, and static + shared on all 
other platforms.
But there is still the problem with tools.

Should I nonetheless commit? 

Kornel
-- 
Kornel Benko
kornel.be...@berlin.de


signature.asc
Description: This is a digitally signed message part.


[hugin-ptx] Re: issue with libpano13 CMake build (SVN1082)

2009-09-27 Thread Yuval Levy

Kornel Benko wrote:
> Am Sonntag 27 September 2009 schrieb Yuval Levy:
>> In the top level Release folder I find an empty pano13.dll. Based on the
>> above error message, isn't it here where I should find pano13.lib ?
> 
> No.
> 
>> There is no pano13.lib anywhere in the build folder, although pano13a
>> seems to have built well?
> 
> But there is pano13a.lib? Thats intended. I needed different target names.
> The _installed_ lib will be named pano13.lib. (Line 294 specifies it)
>   set_target_properties(pano13a PROPERTIES OUTPUT_NAME pano13)

no pano13a.lib. nowhere.

I understand you need different target names. And I also understand some 
users want/need a DLL for dynamic linking in Windows. But please give 
priority to the static Windows library. It's much less headache, and it 
is how libpano has been working for the past couple of years on Windows. 
Not a good idea to change that now.

Yuv

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~--~~~~--~~--~--~---



[hugin-ptx] Re: issue with libpano13 CMake build (SVN1082)

2009-09-27 Thread Kornel Benko
Am Sonntag 27 September 2009 schrieb Harry van der Wolf:
> > I also don't know, where it comes from.
> >
> >Kornel
>
> Did you try with  "-DHAVE_JAVA=OFF" or "-DHAVE_JAVA=0" ?

Oh, I knew too and already forgotten. Thanks Harry.

Kornel
-- 
Kornel Benko
kornel.be...@berlin.de


signature.asc
Description: This is a digitally signed message part.


[hugin-ptx] Re: issue with libpano13 CMake build (SVN1082)

2009-09-27 Thread Kornel Benko
Am Sonntag 27 September 2009 schrieb Yuval Levy:
> 4>..\..\pano13.src\tools\PTinfo.c(35) : fatal error C1083: Cannot open
> include file: 'dirent.h': No such file or directory
> 5>LINK : fatal error LNK1181: cannot open input file
> '..\Release\pano13.lib'
>
> and all the other tools have the same problem finding dirent.h and/or
> linking against Release\pano13.lib

This is Daniel's doing. Working on unix, but, as it seems, there is no such 
file on windows.
The file belongs here to libc6-dev package.

Kornel
-- 
Kornel Benko
kornel.be...@berlin.de


signature.asc
Description: This is a digitally signed message part.


[hugin-ptx] Re: issue with libpano13 CMake build (SVN1082)

2009-09-27 Thread Kornel Benko
Am Sonntag 27 September 2009 schrieb Yuval Levy:
> something may be wrong with this. I look into the build folder and I
> find the pano13.dir and pano13a.dir folders. Each of them has a Release
> subfolder; and there is also a Releae folder at the same lave as
> pano13.dir / pano13a.dir.
>
> In the top level Release folder I find an empty pano13.dll. Based on the
> above error message, isn't it here where I should find pano13.lib ?

No.

> There is no pano13.lib anywhere in the build folder, although pano13a
> seems to have built well?

But there is pano13a.lib? Thats intended. I needed different target names.
The _installed_ lib will be named pano13.lib. (Line 294 specifies it)
set_target_properties(pano13a PROPERTIES OUTPUT_NAME pano13)

Kornel

-- 
Kornel Benko
kornel.be...@berlin.de


signature.asc
Description: This is a digitally signed message part.


[hugin-ptx] Re: issue with libpano13 CMake build (SVN1082)

2009-09-27 Thread Harry van der Wolf
2009/9/27 Kornel Benko 

>
> > 2>Build log was saved at
> >
> "file://z:\store\s1tb\hugin_gsoc2009\Hugin-SDK-20090509-win32\pano13\pano13
> >.dir\Release\BuildLog.htm" 2>pano13 - 49 error(s), 18 warning(s)
> >
> > I thought it should be possible to build libpano independent on Java?
> >
> > Yuv
> >
>
> I also don't know, where it comes from.
>
>Kornel
>

Did you try with  "-DHAVE_JAVA=OFF" or "-DHAVE_JAVA=0" ?


Harry

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~--~~~~--~~--~--~---



[hugin-ptx] Re: issue with libpano13 CMake build (SVN1082)

2009-09-27 Thread Kornel Benko
Am Sonntag 27 September 2009 schrieb Yuval Levy:
> Kornel Benko wrote:
> > By the way, I did not need to resolve this dependency, because on
> > non-windows system HuginMacros is not used.
> >
> > Could you see, which macros were neded? (Comment the
> > include(HuginMacros))
>
> When commented out the result is equal or better than before. Time to
> remove the HuginMacros?
>

Yes, if it does not break anything on windows, then of course.

> 1>-- Build started: Project: pano13a, Configuration: Release Win32
> --
> 2>-- Build started: Project: pano13, Configuration: Release Win32
> --
>
> 1>pano13a - 0 error(s), 19 warning(s)

Expected, because it is the static library.

> 2>pano13 - 49 error(s), 18 warning(s)
>
> 4>-- Build started: Project: PTinfo, Configuration: Release Win32
> -- 5>-- Build started: Project: panoinfo, Configuration: Release
> Win32 --
>
> 4>..\..\pano13.src\tools\PTinfo.c(35) : fatal error C1083: Cannot open
> include file: 'dirent.h': No such file or directory
> 5>LINK : fatal error LNK1181: cannot open input file
> '..\Release\pano13.lib'
>
> and all the other tools have the same problem finding dirent.h and/or
> linking against Release\pano13.lib
>
> >> also there is a pano13a next
> >> to pano13 (what is 13a?)
> >
> > This is a target needed to create a static library. Unfortunatelly it
> > _has_ to have different name as the target for the shared library.
> > On install, however, we give it the name pano13 back.
>
> something may be wrong with this. I look into the build folder and I
> find the pano13.dir and pano13a.dir folders. Each of them has a Release
> subfolder; and there is also a Releae folder at the same lave as
> pano13.dir / pano13a.dir.
>
> In the top level Release folder I find an empty pano13.dll. Based on the
> above error message, isn't it here where I should find pano13.lib ?
>
> There is no pano13.lib anywhere in the build folder, although pano13a
> seems to have built well?

There are linking errors. We have to look for (system-) libraries which would 
resolve this case.

> No pano13.lib / pano13a.lib in sight...

For now, you could comment the line 205 + 206
#add_library(pano13 SHARED ${pano13_hdr} ${pano13_res} ${pano13_src})
#target_link_libraries(pano13 ${_common_libs})

and change the install statement on line 211 to
install(TARGETS  pano13a
  ARCHIVE DESTINATION lib)

Then at least you have static library.

> Yuv

Kornel
-- 
Kornel Benko
kornel.be...@berlin.de


signature.asc
Description: This is a digitally signed message part.


[hugin-ptx] Re: issue with libpano13 CMake build (SVN1082)

2009-09-27 Thread Yuval Levy

Kornel Benko wrote:
> By the way, I did not need to resolve this dependency, because on non-windows
> system HuginMacros is not used.
> 
> Could you see, which macros were neded? (Comment the include(HuginMacros))

When commented out the result is equal or better than before. Time to 
remove the HuginMacros?


1>-- Build started: Project: pano13a, Configuration: Release Win32 
--
2>-- Build started: Project: pano13, Configuration: Release Win32 --

1>pano13a - 0 error(s), 19 warning(s)
2>pano13 - 49 error(s), 18 warning(s)

4>-- Build started: Project: PTinfo, Configuration: Release Win32 --
5>-- Build started: Project: panoinfo, Configuration: Release Win32 
--

4>..\..\pano13.src\tools\PTinfo.c(35) : fatal error C1083: Cannot open 
include file: 'dirent.h': No such file or directory
5>LINK : fatal error LNK1181: cannot open input file '..\Release\pano13.lib'

and all the other tools have the same problem finding dirent.h and/or 
linking against Release\pano13.lib


>> also there is a pano13a next
>> to pano13 (what is 13a?)
> 
> This is a target needed to create a static library. Unfortunatelly it _has_ 
> to have different name
> as the target for the shared library.
> On install, however, we give it the name pano13 back.

something may be wrong with this. I look into the build folder and I 
find the pano13.dir and pano13a.dir folders. Each of them has a Release 
subfolder; and there is also a Releae folder at the same lave as 
pano13.dir / pano13a.dir.

In the top level Release folder I find an empty pano13.dll. Based on the 
above error message, isn't it here where I should find pano13.lib ?

There is no pano13.lib anywhere in the build folder, although pano13a 
seems to have built well?

No pano13.lib / pano13a.lib in sight...

Yuv

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~--~~~~--~~--~--~---



[hugin-ptx] Re: issue with libpano13 CMake build (SVN1082)

2009-09-27 Thread Kornel Benko
Am Sonntag 27 September 2009 schrieb Yuval Levy:
> Yuval Levy wrote:
> > THANK YOU, Kornel and Harry, for fixing this. SVN 1088 works well here
> > (Ubuntu 9.04 32bit). Will test Windows soon.
>
> ok, here are the results of my tests.
>
> can you please fix the unnecessary dependency on Hugin's CMakeModules
> folder? lines 28-35 top level CMakeLists.txt. It's the same as what we
> discussed for Enblend. Building libpano should not depend on Hugin.
>
> Once the location relative to Hugin's source code is fixed I get one error:

By the way, I did not need to resolve this dependency, because on non-windows
system HuginMacros is not used.

Could you see, which macros were neded? (Comment the include(HuginMacros))

> 2>..\pano13.src\adjust.c(44) : fatal error C1083: Cannot open include
> file: 'PTcommon.h': No such file or directory

?? I think, I have resolved that. The file is there, directly from repository.
The only issue was, that the top directory was not in include path for adjust.c.

> and it says the project has been changed outside MSVC.
>
> When I reload the project, all the PTtools (that were missing in the
> first run through the project) are there; 

Most probably the the new CMakeLists.txt worked.

> also there is a pano13a next
> to pano13 (what is 13a?)

This is a target needed to create a static library. Unfortunatelly it _has_ to 
have different name
as the target for the shared library.
On install, however, we give it the name pano13 back.

> The reloading is quite confusing. Is there a way to make it less
> confusing, i.e. have the MSVC project set up right away from CMake?
>
> when I then build the solution:
>
> 1>pano13a - 0 error(s), 19 warning(s)
>
> so far so good, but then:
>
> 2>pano13vc.def : error LNK2001: unresolved external symbol DLLInit
> 2>pano13vc.def : error LNK2001: unresolved external symbol DispPrg
> 2>pano13vc.def : error LNK2001: unresolved external symbol InfoPrg
> 2>pano13vc.def : error LNK2001: unresolved external symbol

Here I am lost. Don't know what theese windows-symbols mean. Someone has to 
find out, which library
we need to link to. Then add this library to ${_common_libs} and you should be 
done.

> Java_pteditor_CExtract
> 2>pano13vc.def : error LNK2001: unresolved external symbol
> Java_pteditor_CGetImageHeight
> 2>pano13vc.def : error LNK2001: unresolved external symbol
> Java_pteditor_CGetImageRow
> 2>pano13vc.def : error LNK2001: unresolved external symbol
> 2>pano13vc.def : error LNK2001: unresolved external symbol SetWindowOwner
> 2>Z:\store\s1tb\hugin_gsoc2009\Hugin-SDK-20090509-win32\pano13\Release\pano

...
>
> : fatal error LNK1120: 48 unresolved externals

Same as above. Looks like the shared (dll-) library need _all_ libraries at 
link time.
On unix they are needed only when linking to an executable. But, of course, in 
windows
a dll-library _is_ an executable. Sigh.

> 2>Build log was saved at
> "file://z:\store\s1tb\hugin_gsoc2009\Hugin-SDK-20090509-win32\pano13\pano13
>.dir\Release\BuildLog.htm" 2>pano13 - 49 error(s), 18 warning(s)
>
> I thought it should be possible to build libpano independent on Java?
>
> Yuv
>
I also don't know, where it comes from.

Kornel
-- 
Kornel Benko
kornel.be...@berlin.de


signature.asc
Description: This is a digitally signed message part.


[hugin-ptx] Re: issue with libpano13 CMake build (SVN1082)

2009-09-27 Thread Yuval Levy

Yuval Levy wrote:
> THANK YOU, Kornel and Harry, for fixing this. SVN 1088 works well here 
> (Ubuntu 9.04 32bit). Will test Windows soon.

ok, here are the results of my tests.

can you please fix the unnecessary dependency on Hugin's CMakeModules 
folder? lines 28-35 top level CMakeLists.txt. It's the same as what we 
discussed for Enblend. Building libpano should not depend on Hugin.

Once the location relative to Hugin's source code is fixed I get one error:

2>..\pano13.src\adjust.c(44) : fatal error C1083: Cannot open include 
file: 'PTcommon.h': No such file or directory

and it says the project has been changed outside MSVC.

When I reload the project, all the PTtools (that were missing in the 
first run through the project) are there; also there is a pano13a next 
to pano13 (what is 13a?)

The reloading is quite confusing. Is there a way to make it less 
confusing, i.e. have the MSVC project set up right away from CMake?

when I then build the solution:

1>pano13a - 0 error(s), 19 warning(s)

so far so good, but then:

2>pano13vc.def : error LNK2001: unresolved external symbol DLLInit
2>pano13vc.def : error LNK2001: unresolved external symbol DispPrg
2>pano13vc.def : error LNK2001: unresolved external symbol InfoPrg
2>pano13vc.def : error LNK2001: unresolved external symbol 
Java_pteditor_CExtract
2>pano13vc.def : error LNK2001: unresolved external symbol 
Java_pteditor_CGetImageHeight
2>pano13vc.def : error LNK2001: unresolved external symbol 
Java_pteditor_CGetImageRow
2>pano13vc.def : error LNK2001: unresolved external symbol 
Java_pteditor_CGetImageWidth
2>pano13vc.def : error LNK2001: unresolved external symbol 
Java_pteditor_CInsert
2>pano13vc.def : error LNK2001: unresolved external symbol 
Java_pteditor_CLoadImage
2>pano13vc.def : error LNK2001: unresolved external symbol 
Java_pteditor_CSaveImage
2>pano13vc.def : error LNK2001: unresolved external symbol 
Java_pteditor_CSetImageHeight
2>pano13vc.def : error LNK2001: unresolved external symbol 
Java_pteditor_CSetImageRow
2>pano13vc.def : error LNK2001: unresolved external symbol 
Java_pteditor_CSetImageWidth
2>pano13vc.def : error LNK2001: unresolved external symbol 
Java_ptutils_CAlignPoint
2>pano13vc.def : error LNK2001: unresolved external symbol 
Java_ptutils_CCallOptimizer
2>pano13vc.def : error LNK2001: unresolved external symbol 
Java_ptutils_CCreateProject
2>pano13vc.def : error LNK2001: unresolved external symbol 
Java_ptutils_CGetCP_1n
2>pano13vc.def : error LNK2001: unresolved external symbol 
Java_ptutils_CGetCP_1t
2>pano13vc.def : error LNK2001: unresolved external symbol 
Java_ptutils_CGetCP_1x
2>pano13vc.def : error LNK2001: unresolved external symbol 
Java_ptutils_CGetCP_1y
2>pano13vc.def : error LNK2001: unresolved external symbol 
Java_ptutils_CGetControlPointCount
2>pano13vc.def : error LNK2001: unresolved external symbol 
Java_ptutils_CGetHfov
2>pano13vc.def : error LNK2001: unresolved external symbol 
Java_ptutils_CGetImageCount
2>pano13vc.def : error LNK2001: unresolved external symbol 
Java_ptutils_CGetImageFormat
2>pano13vc.def : error LNK2001: unresolved external symbol 
Java_ptutils_CGetImageHeight
2>pano13vc.def : error LNK2001: unresolved external symbol 
Java_ptutils_CGetImageName
2>pano13vc.def : error LNK2001: unresolved external symbol 
Java_ptutils_CGetImageRow
2>pano13vc.def : error LNK2001: unresolved external symbol 
Java_ptutils_CGetImageWidth
2>pano13vc.def : error LNK2001: unresolved external symbol 
Java_ptutils_CGetIndex
2>pano13vc.def : error LNK2001: unresolved external symbol 
Java_ptutils_CGetPitch
2>pano13vc.def : error LNK2001: unresolved external symbol 
Java_ptutils_CGetRoll
2>pano13vc.def : error LNK2001: unresolved external symbol 
Java_ptutils_CGetTR_1i
2>pano13vc.def : error LNK2001: unresolved external symbol 
Java_ptutils_CGetTR_1v
2>pano13vc.def : error LNK2001: unresolved external symbol 
Java_ptutils_CGetTriangleCount
2>pano13vc.def : error LNK2001: unresolved external symbol 
Java_ptutils_CGetYaw
2>pano13vc.def : error LNK2001: unresolved external symbol 
Java_ptutils_CLaunchAndSendScript
2>pano13vc.def : error LNK2001: unresolved external symbol 
Java_ptutils_CLoadImage
2>pano13vc.def : error LNK2001: unresolved external symbol 
Java_ptutils_CLoadProject
2>pano13vc.def : error LNK2001: unresolved external symbol 
Java_ptutils_CReduce
2>pano13vc.def : error LNK2001: unresolved external symbol 
Java_ptutils_CSaveProject
2>pano13vc.def : error LNK2001: unresolved external symbol 
Java_ptutils_CSetCP
2>pano13vc.def : error LNK2001: unresolved external symbol 
Java_ptutils_CSetControlPointCount
2>pano13vc.def : error LNK2001: unresolved external symbol 
Java_ptutils_CSetImageName
2>pano13vc.def : error LNK2001: unresolved external symbol 
Java_ptutils_CSetTR
2>pano13vc.def : error LNK2001: unresolved external symbol 
Java_ptutils_CSetTriangleCount
2>pano13vc.def : error LNK2001: unresolved external symbol 
Java_ptutils_CShowScript
2>pano13vc.def : error LNK2001: unresolved external sy

[hugin-ptx] Re: issue with libpano13 CMake build (SVN1082)

2009-09-27 Thread Yuval Levy

THANK YOU, Kornel and Harry, for fixing this. SVN 1088 works well here 
(Ubuntu 9.04 32bit). Will test Windows soon.

Yuv


Kornel Benko wrote:
> Am Sonntag 27 September 2009 schrieb Harry van der Wolf:
>> Still: Can you commit the "target_link_libraries(pano13 ${_common_libs})"
>> to the repository?
> 
> Ok, I will.
> 
>   Kornel
> 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~--~~~~--~~--~--~---



[hugin-ptx] Re: issue with libpano13 CMake build (SVN1082)

2009-09-27 Thread Harry van der Wolf
2009/9/27 Kornel Benko 

> Am Sonntag 27 September 2009 schrieb Harry van der Wolf:
> > I found it. I regularly do  a make clean (don't know why actually).
> That's
> > when it can't find the libpano13.dylib . When I do a "normal"  make it
> will
> > create the softlink and therefore find the libpano13.dylib .
> > Problems solved.
>
> One question though
> Why are you installing with "make install"?
> You could try "make package". Then there should be at least a tar-file
> created,
> which you could examine. I fear, there is not yet CPack module for your
> packaging though.
>
>Kornel
> --
> Kornel Benko
> kornel.be...@berlin.de
>

Yes, there is a CPack for OSX. But, when making bundles you actually don't
want to do that. When making libs and binaries for later use in a bundle you
don't want to do that either. A simple "(sudo) make install" will do it.

The make package will create a:
--Darwin.dmg
--Darwin.tar.gz
--Darwin.sh
install_manifest.txt

When unpacking the tar.gz it will nicely install it in the 
directory.
When opening the dmg (Apple's "ISO" (compressed) disk images) you will find
a --Darwin.pkg, which is an installer installing the
"things"  to the  directory.
As such this all works fine.

Harry

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~--~~~~--~~--~--~---



[hugin-ptx] Re: issue with libpano13 CMake build (SVN1082)

2009-09-27 Thread Kornel Benko
Am Sonntag 27 September 2009 schrieb Harry van der Wolf:
> I found it. I regularly do  a make clean (don't know why actually). That's
> when it can't find the libpano13.dylib . When I do a "normal"  make it will
> create the softlink and therefore find the libpano13.dylib .
> Problems solved.

One question though
Why are you installing with "make install"?
You could try "make package". Then there should be at least a tar-file created,
which you could examine. I fear, there is not yet CPack module for your 
packaging though.

Kornel
-- 
Kornel Benko
kornel.be...@berlin.de


signature.asc
Description: This is a digitally signed message part.


[hugin-ptx] Re: issue with libpano13 CMake build (SVN1082)

2009-09-27 Thread Kornel Benko
Am Sonntag 27 September 2009 schrieb Harry van der Wolf:
> Still: Can you commit the "target_link_libraries(pano13 ${_common_libs})"
> to the repository?

Ok, I will.

Kornel

-- 
Kornel Benko
kornel.be...@berlin.de


signature.asc
Description: This is a digitally signed message part.


[hugin-ptx] Re: issue with libpano13 CMake build (SVN1082)

2009-09-27 Thread Kornel Benko
Am Sonntag 27 September 2009 schrieb Harry van der Wolf:
> 2009/9/27 Kornel Benko 
>
> > Am Sonntag 27 September 2009 schrieb Harry van der Wolf:
> > > I might, but I have another problem when running the make install
> > >
> > > -- Installing:
> >
> > /Users/Shared/development/hugin_related/ExternalPrograms/repository/arch/
> >i3
> >
> > >86/lib/libpano13.2.0.0.dylib -- Installing:
> >
> > /Users/Shared/development/hugin_related/ExternalPrograms/repository/arch/
> >i3
> >
> > >86/lib/libpano13.2.dylib CMake Error at cmake_install.cmake:31 (FILE):
> > >   file INSTALL cannot find file
> >
> > This is a file in the build-directory. It is not the same as here, so you
> > have to deduce
> > from your file, what is going wrong.
>
> I know it's in my build directory, but what does make the links to the
> libraries?
> I have:
> libpano13.2.dylib -> libpano13.2.0.0.dylib
> libpano13.2.0.0.dylib

It is the line CMakeLists.txt:208
set_target_properties(pano13 PROPERTIES VERSION "2.0.0" SOVERSION "2")

> Some tool/macro/"something" should do "ln -s ...".
>
> > Or you could post it to me.
>
>  What file do you want me to send to you?

"cmake_install.cmake", from the build tree.

>
> Besides: I can't commit to the panotools repository. I have no access
> rights. Could you commit?
>
> Harry
>

I can, but better commiting something working on more than 1 platform. So let us
try to find out, what is going on here.

Kornel
-- 
Kornel Benko
kornel.be...@berlin.de


signature.asc
Description: This is a digitally signed message part.


[hugin-ptx] Re: issue with libpano13 CMake build (SVN1082)

2009-09-27 Thread Harry van der Wolf
2009/9/27 Harry van der Wolf 

>
> 2009/9/27 Kornel Benko 
>
>> Am Sonntag 27 September 2009 schrieb Harry van der Wolf:
>> > I might, but I have another problem when running the make install
>> >
>> > -- Installing:
>> >
>> /Users/Shared/development/hugin_related/ExternalPrograms/repository/arch/i3
>> >86/lib/libpano13.2.0.0.dylib -- Installing:
>> >
>> /Users/Shared/development/hugin_related/ExternalPrograms/repository/arch/i3
>> >86/lib/libpano13.2.dylib CMake Error at cmake_install.cmake:31 (FILE):
>> >   file INSTALL cannot find file
>>
>> This is a file in the build-directory. It is not the same as here, so you
>> have to deduce
>> from your file, what is going wrong.
>>
>
> I know it's in my build directory, but what does make the links to the
> libraries?
> I have:
> libpano13.2.dylib -> libpano13.2.0.0.dylib
> libpano13.2.0.0.dylib
>
> Some tool/macro/"something" should do "ln -s ...".
>
>
I found it. I regularly do  a make clean (don't know why actually). That's
when it can't find the libpano13.dylib . When I do a "normal"  make it will
create the softlink and therefore find the libpano13.dylib .
Problems solved.

Still: Can you commit the "target_link_libraries(pano13 ${_common_libs})" to
the repository?

Harry

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~--~~~~--~~--~--~---



[hugin-ptx] Re: issue with libpano13 CMake build (SVN1082)

2009-09-27 Thread Harry van der Wolf
2009/9/27 Kornel Benko 

> Am Sonntag 27 September 2009 schrieb Harry van der Wolf:
> > I might, but I have another problem when running the make install
> >
> > -- Installing:
> >
> /Users/Shared/development/hugin_related/ExternalPrograms/repository/arch/i3
> >86/lib/libpano13.2.0.0.dylib -- Installing:
> >
> /Users/Shared/development/hugin_related/ExternalPrograms/repository/arch/i3
> >86/lib/libpano13.2.dylib CMake Error at cmake_install.cmake:31 (FILE):
> >   file INSTALL cannot find file
>
> This is a file in the build-directory. It is not the same as here, so you
> have to deduce
> from your file, what is going wrong.
>

I know it's in my build directory, but what does make the links to the
libraries?
I have:
libpano13.2.dylib -> libpano13.2.0.0.dylib
libpano13.2.0.0.dylib

Some tool/macro/"something" should do "ln -s ...".


> Or you could post it to me.
>

 What file do you want me to send to you?


Besides: I can't commit to the panotools repository. I have no access
rights. Could you commit?

Harry

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~--~~~~--~~--~--~---



[hugin-ptx] Re: issue with libpano13 CMake build (SVN1082)

2009-09-27 Thread Kornel Benko
Am Sonntag 27 September 2009 schrieb Harry van der Wolf:
> I might, but I have another problem when running the make install
>
> -- Installing:
> /Users/Shared/development/hugin_related/ExternalPrograms/repository/arch/i3
>86/lib/libpano13.2.0.0.dylib -- Installing:
> /Users/Shared/development/hugin_related/ExternalPrograms/repository/arch/i3
>86/lib/libpano13.2.dylib CMake Error at cmake_install.cmake:31 (FILE):
>   file INSTALL cannot find file

This is a file in the build-directory. It is not the same as here, so you have 
to deduce
from your file, what is going wrong.

Or you could post it to me.

> "/Users/Shared/development/hugin_related/ExternalPrograms/libpano13/i386/li
>bpano13.dylib" to install.
>
> I can't find where that is done.

Kornel
-- 
Kornel Benko
kornel.be...@berlin.de


signature.asc
Description: This is a digitally signed message part.


[hugin-ptx] Re: issue with libpano13 CMake build (SVN1082)

2009-09-27 Thread Harry van der Wolf
2009/9/27 Kornel Benko 

> Am Sonntag 27 September 2009 schrieb Harry van der Wolf:
> > 2009/9/27 Kornel Benko 
> >
> > > Looks more like the _found_ JPEG-lib is not linked to your
> > > libpano13.2.0.0.dylib
> > >
> > > I would try the following
> > > CMakeLists.txt:207
> > > set_target_properties(pano13 PROPERTIES LINK_FLAGS ${JPEG_LIBRARIES})
> > > ...
> > > Looks like you need it.
> > >
> > >Kornel
> >
> > Actually it should be:
> > set_target_properties(pano13 PROPERTIES VERSION "2.0.0" SOVERSION "2"
> > LINK_FLAGS ${_common_libs})
> > ...
>
> Unfortunatelly this does not work here. Only the first library is added.
>
> >
> > target_link_libraries(pano13 ${_common_libs})
>
> That is better :)
>
> As this (target_link_libraries ...) is here doing it correct, you may as
> well commit it Harry.
>
>
I might, but I have another problem when running the make install

-- Installing:
/Users/Shared/development/hugin_related/ExternalPrograms/repository/arch/i386/lib/libpano13.2.0.0.dylib
-- Installing:
/Users/Shared/development/hugin_related/ExternalPrograms/repository/arch/i386/lib/libpano13.2.dylib
CMake Error at cmake_install.cmake:31 (FILE):
  file INSTALL cannot find file

"/Users/Shared/development/hugin_related/ExternalPrograms/libpano13/i386/libpano13.dylib"
  to install.

I can't find where that is done.

Harry

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~--~~~~--~~--~--~---



[hugin-ptx] Re: issue with libpano13 CMake build (SVN1082)

2009-09-27 Thread Kornel Benko
Am Sonntag 27 September 2009 schrieb Harry van der Wolf:
> 2009/9/27 Kornel Benko 
>
> > Looks more like the _found_ JPEG-lib is not linked to your
> > libpano13.2.0.0.dylib
> >
> > I would try the following
> > CMakeLists.txt:207
> > set_target_properties(pano13 PROPERTIES LINK_FLAGS ${JPEG_LIBRARIES})
> > ...
> > Looks like you need it.
> >
> >Kornel
>
> Actually it should be:
> set_target_properties(pano13 PROPERTIES VERSION "2.0.0" SOVERSION "2"
> LINK_FLAGS ${_common_libs})
> ...

Unfortunatelly this does not work here. Only the first library is added.

>
> target_link_libraries(pano13 ${_common_libs})

That is better :)

As this (target_link_libraries ...) is here doing it correct, you may as well 
commit it Harry.

>
> See attached diff.

Yes, but not the LINK_FLAGS part

>
> Harry
>
Kornel
-- 
Kornel Benko
kornel.be...@berlin.de


signature.asc
Description: This is a digitally signed message part.


[hugin-ptx] Re: issue with libpano13 CMake build (SVN1082)

2009-09-27 Thread Harry van der Wolf
2009/9/27 Kornel Benko 

>
> Looks more like the _found_ JPEG-lib is not linked to your
> libpano13.2.0.0.dylib
>
> I would try the following
> CMakeLists.txt:207
> set_target_properties(pano13 PROPERTIES LINK_FLAGS ${JPEG_LIBRARIES})
> ...
> Looks like you need it.
>
>Kornel
>

Actually it should be:
set_target_properties(pano13 PROPERTIES VERSION "2.0.0" SOVERSION "2"
LINK_FLAGS ${_common_libs})
...
...

target_link_libraries(pano13 ${_common_libs})


See attached diff.


Harry

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~--~~~~--~~--~--~---



libpano.diff
Description: Binary data


[hugin-ptx] Re: issue with libpano13 CMake build (SVN1082)

2009-09-27 Thread Kornel Benko
Am Sonntag 27 September 2009 schrieb Harry van der Wolf:
...
>-- Found TIFF: /opt/local/lib/libtiff.dylib
>-- Found JPEG: /opt/local/lib/libjpeg.dylib
>-- Found ZLIB: /usr/lib/libz.dylib
>-- Found PNG: /opt/local/lib/libpng.dylib
...
>   "_jpeg_read_header", referenced from:
>   _readJPEG in jpeg.c.o
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
> make[2]: *** [libpano13.2.0.0.dylib] Error 1
> make[1]: *** [CMakeFiles/pano13.dir/all] Error 2
> make: *** [all] Error 2
>
>
>
> Any idea? My guess is that the target libraries "thingy"  is not correct.
>
> Harry

Looks more like the _found_ JPEG-lib is not linked to your libpano13.2.0.0.dylib

I would try the following 
CMakeLists.txt:207
set_target_properties(pano13 PROPERTIES LINK_FLAGS ${JPEG_LIBRARIES})
...
Looks like you need it.

Kornel
-- 
Kornel Benko
kornel.be...@berlin.de


signature.asc
Description: This is a digitally signed message part.


[hugin-ptx] Re: issue with libpano13 CMake build (SVN1082)

2009-09-27 Thread Kornel Benko
Am Sonntag 27 September 2009 schrieb Kornel Benko:
> I tried today. And yes, I got the same error. Will look into it.
>
>  
Done.

Kornel
-- 
Kornel Benko
kornel.be...@berlin.de


signature.asc
Description: This is a digitally signed message part.


[hugin-ptx] Re: issue with libpano13 CMake build (SVN1082)

2009-09-26 Thread Kornel Benko
Am Samstag 26 September 2009 schrieb Yuval Levy:
> today seems to be my lucky day:
>
> $ cmake ../libpano13 -DCMAKE_INSTALL_PREFIX=/usr/local
> -DCPACK_BINARY_DEB:BOOL=ON -DCPACK_BINARY_NSIS:BOOL=OFF \
>
>  > -DCPACK_BINARY_RPM:BOOL=OFF -DCPACK_BINARY_STGZ:BOOL=OFF
>
> -DCPACK_BINARY_TBZ2:BOOL=OFF \
>
>  > -DCPACK_BINARY_TGZ:BOOL=OFF -DCPACK_BINARY_TZ:BOOL=OFF
>
> -- found version = 2.9.15
> -- svnversion = /usr/bin/svnversion
> -- Configuring done
> -- Generating done
> -- Build files have been written to: /home/yuv/src/libpano/bdir
> y...@yuv-desktop:~/src/libpano/bdir$ make package
> [  0%] Built target man
> [  1%] Building C object CMakeFiles/pano13.dir/adjust.c.o
> /home/yuv/src/libpano/libpano13/adjust.c:44:22: error: PTcommon.h: No
> such file or directory
> make[2]: *** [CMakeFiles/pano13.dir/adjust.c.o] Error 1
> make[1]: *** [CMakeFiles/pano13.dir/all] Error 2
> make: *** [all] Error 2
>
> the autotools build works fine.
>
> IIRC I did already build the CMake version on this same box. It would be
> nice if the CMake build would be maintained equally well as the
> autotools (or actually: drop the autotools, it's redundant).
>
> Yuv

I tried today. And yes, I got the same error. Will look into it.

Kornel
-- 
Kornel Benko
kornel.be...@berlin.de


signature.asc
Description: This is a digitally signed message part.


[hugin-ptx] Re: issue with libpano13 CMake build (SVN1082)

2009-09-26 Thread Tduell


Hullo Yuv,

On Sep 27, 5:57 am, Yuval Levy  wrote:
> today seems to be my lucky day:
[snip]
> y...@yuv-desktop:~/src/libpano/bdir$ make package
> [  0%] Built target man
> [  1%] Building C object CMakeFiles/pano13.dir/adjust.c.o
> /home/yuv/src/libpano/libpano13/adjust.c:44:22: error: PTcommon.h: No
> such file or directory
[snip]
>
> IIRC I did already build the CMake version on this same box. It would be
> nice if the CMake build would be maintained equally well as the
> autotools (or actually: drop the autotools, it's redundant).
I had a very similar problem trying to 'make package_source' on a
Fedora system.
It seems that the cmake stuff in libpano13 isn't finished, and the
solution is to use `./configure && make && make dist`.
Hope this helps.

Cheers,
Terry

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~--~~~~--~~--~--~---