Hi Taylor,

I ran into another very similar issue yesterday, also on a RHEL 6.3 system.

It has a 32bit and 64bit MySQL drivers installed. The 32 drivers are under
/usr/lib, the 64bit ones are under /usr/lib64/mysql. However, this latter
directory is not named in Poco-src/cmake/FindMySQL.cmake (line 31-41).

What happens is that CMake finds the MySQL headers under /usr/include, and
decides that it will enable the MySQL support, then finds the 32bit library
dir, adds it to the library path, and it's happy. Then, of course, the
build fails because the 32bit libs cannot be linked to the 64bit binaries.

I reconfigured Poco and specified the absolute path to the 64bit MySQL lib,
and then could continue the build. But I don't think I can push down this
setting through the build system, and do not want machine specific
customisations, anyway.

A general solution would be either to add /usr/lib64/mysql to the
FindMySQL.cmake, or -- since it turned out that MITK does not need it --
introduce a CMake option to explicitly disable MySQL (and ODBC).

What do you think?

Cheers,
Miklos


On 11 September 2013 23:00, Taylor Braun-Jones <[email protected]>wrote:

> Glad to help!
>
> --
> Taylor
> On Sep 11, 2013 3:31 PM, "Sascha Zelzer" <[email protected]>
> wrote:
>
>>  Hi Taylor,
>>
>> something like this was on my todo list but you beat me to it :-) Thanks!
>>
>> I will add your patch to the MITK Poco superbuild.
>>
>> Best,
>> Sascha
>>
>> On 09/11/2013 05:51 PM, Taylor Braun-Jones wrote:
>>
>> I ran into the same issue on my RHEL 6.3 system and submitted a Poco bug
>> report and patch to fix it:
>>
>>  https://github.com/pocoproject/poco/issues/284
>>
>>  Assuming this gets merged, the MITK build will be fixed by just
>> migrating to the latest Poco release (e.g. 1.5.2 or 1.5.2-rc4)
>>
>>  --
>> Taylor
>>
>>
>> On Mon, Sep 2, 2013 at 6:56 AM, Sascha Zelzer <
>> [email protected]> wrote:
>>
>>>  Hi,
>>>
>>> the Poco CMake scripts actually try to detect if the system supports
>>> ODBC. It seems that the detection code is incomplete in your case.
>>>
>>> MITK does not need the ODBC stuff. Looks like we have to patch the Poco
>>> build system...
>>>
>>> - Sascha
>>>
>>>
>>> On 09/02/2013 09:59 AM, Clarkson, Matt wrote:
>>>
>>>  Hi there,
>>>
>>>  I just downloaded the latest MITK and tried a default build, with
>>> OpenCV. I get the errors below.
>>> Im on Scientific Linux, g++ 4.4.7.
>>> I tried changing to the Poco build folder, and seeing if I could turn
>>> off various ODBC type options, but didnt find anything much.
>>> Do I need to get development headers installed?
>>> Does MITK actually need the database stuff other than SQLite.
>>>
>>>  Thanks.
>>>
>>>  M
>>>
>>>
>>>  % make
>>> [  6%] Built target ANN
>>> [ 13%] Built target DCMTK
>>> [ 19%] Built target CTK
>>> [ 25%] Built target CppUnit
>>> [ 31%] Built target GDCM
>>> [ 37%] Built target GLEW
>>> [ 43%] Built target OpenCV
>>> [ 49%] Built target ITK
>>> [ 55%] Built target MITK-Data
>>> [ 61%] Built target Qwt
>>> [ 67%] Built target Qxt
>>> [ 68%] Performing build step for 'Poco'
>>> [ 28%] Built target PocoFoundation
>>> [ 40%] Built target PocoXML
>>> [ 42%] Built target PocoJSON
>>> [ 57%] Built target PocoNet
>>> [ 60%] Built target PocoMongoDB
>>> [ 75%] Built target PocoPDF
>>> [ 79%] Built target PocoUtil
>>> [ 81%] Built target PocoCrypto
>>> [ 85%] Built target PocoNetSSL
>>> [ 90%] Built target PocoData
>>> [ 92%] Built target PocoDataSQLite
>>> [ 94%] Built target PocoDataMySQL
>>> [ 94%] Building CXX object
>>> Data/ODBC/CMakeFiles/PocoDataODBC.dir/src/Binder.cpp.o
>>> In file included from
>>> /scratch0/NOT_BACKED_UP/clarkson/build/MITK-REAL-SuperBuild/Poco-src/Data/ODBC/include/Poco/Data/ODBC/ODBC.h:78,
>>>                  from
>>> /scratch0/NOT_BACKED_UP/clarkson/build/MITK-REAL-SuperBuild/Poco-src/Data/ODBC/include/Poco/Data/ODBC/Binder.h:43,
>>>                  from
>>> /scratch0/NOT_BACKED_UP/clarkson/build/MITK-REAL-SuperBuild/Poco-src/Data/ODBC/src/Binder.cpp:37:
>>> /scratch0/NOT_BACKED_UP/clarkson/build/MITK-REAL-SuperBuild/Poco-src/Data/ODBC/include/Poco/Data/ODBC/Unicode.h:53:20:
>>> error: sqlext.h: No such file or directory
>>> /scratch0/NOT_BACKED_UP/clarkson/build/MITK-REAL-SuperBuild/Poco-src/Data/ODBC/include/Poco/Data/ODBC/Unicode.h:54:22:
>>> error: sqltypes.h: No such file or directory
>>> /scratch0/NOT_BACKED_UP/clarkson/build/MITK-REAL-SuperBuild/Poco-src/Data/ODBC/include/Poco/Data/ODBC/Unicode.h:55:22:
>>> error: sqlucode.h: No such file or directory
>>> /scratch0/NOT_BACKED_UP/clarkson/build/MITK-REAL-SuperBuild/Poco-src/Data/ODBC/src/Binder.cpp:43:17:
>>> error: sql.h: No such file or directory
>>> In file included from
>>> /scratch0/NOT_BACKED_UP/clarkson/build/MITK-REAL-SuperBuild/Poco-src/Data/ODBC/include/Poco/Data/ODBC/ODBC.h:78,
>>>                  from
>>> /scratch0/NOT_BACKED_UP/clarkson/build/MITK-REAL-SuperBuild/Poco-src/Data/ODBC/include/Poco/Data/ODBC/Binder.h:43,
>>>                  from
>>> /scratch0/NOT_BACKED_UP/clarkson/build/MITK-REAL-SuperBuild/Poco-src/Data/ODBC/src/Binder.cpp:37:
>>> /scratch0/NOT_BACKED_UP/clarkson/build/MITK-REAL-SuperBuild/Poco-src/Data/ODBC/include/Poco/Data/ODBC/Unicode.h:77:
>>> error: expected initializer before '*' token
>>> /scratch0/NOT_BACKED_UP/clarkson/build/MITK-REAL-SuperBuild/Poco-src/Data/ODBC/include/Poco/Data/ODBC/Unicode.h:83:
>>> error: expected constructor, destructor, or type conversion before
>>> 'SQLColAttribute'
>>> /scratch0/NOT_BACKED_UP/clarkson/build/MITK-REAL-SuperBuild/Poco-src/Data/ODBC/include/Poco/Data/ODBC/Unicode.h:92:
>>> error: expected constructor, destructor, or type conversion before
>>> 'SQLColAttributes'
>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>>> Discover the easy way to master current and previous Microsoft
>>> technologies
>>> and advance your career. Get an incredible 1,500+ hours of step-by-step
>>> tutorial videos with LearnDevNow. Subscribe today and save!
>>>
>>> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> mitk-users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/mitk-users
>>>
>>>
>>
>>
>
> ------------------------------------------------------------------------------
> How ServiceNow helps IT people transform IT departments:
> 1. Consolidate legacy IT systems to a single system of record for IT
> 2. Standardize and globalize service processes across IT
> 3. Implement zero-touch automation to replace manual, redundant tasks
> http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
> _______________________________________________
> mitk-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mitk-users
>
>
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to