[vtk-developers] vtk build error for mysql on OSX

Jeff Baumes jeff.baumes at kitware.com
Wed Aug 20 10:05:59 EDT 2008


Forgot to post to list ...

On Wed, Aug 20, 2008 at 10:04 AM, Jeff Baumes <jeff.baumes at kitware.com> wrote:
> I assume you turned VTK_USE_MYSQL on, otherwise you would not have
> seen this error. Yes, you need the MySQL development headers and
> libraries. On my Linux machine, I have the following CMake entries:
>
> MYSQL_LIBRARY = /usr/lib/libmysqlclient.so
> MYSQL_INCLUDE_DIRECTORIES = /usr/include/mysql
> MYSQL_EXTRA_LIBRARIES = /usr/lib/libz.so
>
> These were detected automatically on Linux.
>
> Hope that helps,
> Jeff
>
> 2008/8/19 Darren Weber <darren.weber.lists at gmail.com>:
>>
>> Linking CXX shared library ../bin/libvtkIO.dylib
>> Undefined symbols:
>>   "vtkMySQLDatabase::New()", referenced from:
>>       vtkSQLDatabase::CreateFromURL(char const*)in vtkSQLDatabase.o
>> ld: symbol(s) not found
>> collect2: ld returned 1 exit status
>> make[2]: *** [bin/libvtkIO.5.2.0.dylib] Error 1
>> make[1]: *** [IO/CMakeFiles/vtkIO.dir/all] Error 2
>> make: *** [all] Error 2
>>
>> I'm not sure of what the dependency might be, if any.  All of the following
>> command line utilities are installed:
>> mysql                       mysql_fix_extensions        mysql_tzinfo_to_sql
>>         mysqladmin                  mysqldump
>> mysqltestmanager
>> mysql_client_test           mysql_fix_privilege_tables  mysql_upgrade
>>         mysqlbinlog                 mysqldumpslow
>> mysqltestmanager-pwgen
>> mysql_config                mysql_install_db            mysql_upgrade_shell
>>         mysqlbug                    mysqlhotcopy
>>  mysqltestmanagerc
>> mysql_convert_table_format  mysql_secure_installation   mysql_waitpid
>>         mysqlcheck                  mysqlimport
>> mysql_explain_log           mysql_setpermission         mysql_zap
>>         mysqld_multi                mysqlshow
>> mysql_find_rows             mysql_tableinfo             mysqlaccess
>>         mysqld_safe                 mysqltest
>>
>> The mysql installation is a part of the Leopard Server platform.  Should I
>> install some development libraries for this?
>> Thanks, Darren
>>
>> _______________________________________________
>> vtk-developers mailing list
>> vtk-developers at vtk.org
>> http://www.vtk.org/mailman/listinfo/vtk-developers
>>
>>
>
>
>
> --
> Jeff Baumes, Ph.D.
> R&D Engineer, Kitware Inc.
> (518) 371-3971 x132
> jeff.baumes at kitware.com
>



-- 
Jeff Baumes, Ph.D.
R&D Engineer, Kitware Inc.
(518) 371-3971 x132
jeff.baumes at kitware.com



More information about the vtk-developers mailing list