Menu

MySQLCC & QT4 failed

Help
obook
2010-01-12
2013-04-26
  • obook

    obook - 2010-01-12

    I try to compile MySQLCC on Linux Mandriva 2010.0 :  on ./compile I have errors :

    checking "if Qt Version in /usr/lib/qt4 is >= 3.0.5"… no
    Please upgrade your Qt library to version 3.0.5 or higher
    If you do have the correct version of QT installed somewhere
    other than /usr/lib/qt4, please specify it as -with-qt= argument

    I have libqt4 ( libmysql-devel  5.1.40 ) so I suppose that MySQLCC do not yet support QT4.
    Do you have any futur project about porting MySQLCC for QT 4?
    I can make rpm package for this distribution if correct source code is available.

    Regards,
    Olivier.

     
  • obook

    obook - 2010-02-26

    In fact :

    in main.cpp line 47 change for  :

    static my_option my_long_options =
    {
      {"compress", 'C', "Use compression in server/client protocol.", 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},

      {"blocking_queries", 'b', "Use blocking queries.", 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},

      {"syntax", 'y', "Enable syntax highlighting and completion.", 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},

      {"database", 'd', "Database to use.", 0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},

      {"host", 'h', "Connect to host", 0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},

      {"user", 'u', "User for login if not current user.", 0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},

      {"password", 'p',
       "Password to use when connecting to server. If password is not given, MySQL Control Center will prompt for the password.",
       0, 0, 0, GET_STR, OPT_ARG, 0, 0, 0, 0, 0, 0},

      {"port", 'P', "Port number to use for connection.", 0, 0, 0, GET_UINT, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},

    #ifndef WIN32
      {"socket", 'S', "Socket file to use for connection.", 0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
    #endif
     
      {"connection_name", 'c', "This is a synonym for -server.", 0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},

      {"server", 's', "MySQL Control Center connection name.", 0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},

      {"query", 'q', "Open a query window on startup.", 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},

      {"register", 'r', "Open the 'Register Server' dialog on startup.", 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
     
      {"help", '?', "Display this help and exit.", 0, 0, 0, GET_NO_ARG, NO_ARG, 0,  0, 0, 0, 0, 0},
     
      {"syntax_file", 'Y', "Syntax file for completion.", 0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},

      {"history_size", 'H', "History size for the query window.", 0, 0, 0, GET_UINT, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},

      {"translations_path", 'T', "Path to the directory where MySQL Control Center translations are located.",
       0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0}, 

      {"plugins_path", 'g', "Path to the directory where MySQL Control Center plugins are located.",
       0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0}, 

      {"version", 'V', "Print version information and exit.", 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
      /*
      {"connect_timeout", OPT_CONNECT_TIMEOUT, "", (uchar**) &opt_connect_timeout,
       (uchar**) &opt_connect_timeout, 0, GET_ULONG, REQUIRED_ARG, 0, 0, 3600*12, 0,
       0, 1},
      
      {"select_limit", OPT_SELECT_LIMIT, "", (uchar**) &select_limit,
       (uchar**) &select_limit, 0, GET_ULONG, REQUIRED_ARG, 1000L, 1, ~0L, 0, 1, 0},
     
      {"net_buffer_length", OPT_NET_BUFFER_LENGTH, "",
       (uchar**) &my_net_buffer_length, (uchar**) &my_net_buffer_length, 0, GET_ULONG,
       REQUIRED_ARG, 16384, 1024, 512*1024*1024L, 0, 1024, 0},

      {"max_allowed_packet", OPT_MAX_ALLOWED_PACKET, "",
       (uchar**) &my_max_allowed_packet, (uchar**) &my_max_allowed_packet, 0, GET_ULONG,
       REQUIRED_ARG, 16 *1024L*1024L, 4096, 512*1024L*1024L, 0,
       1024, 0},

      {"local-infile", OPT_LOCAL_INFILE, "Enable/disable LOAD DATA LOCAL INFILE.",
       (uchar**) &opt_local_infile,
       (uchar**) &opt_local_infile, 0, GET_BOOL, OPT_ARG, 0, 0, 0, 0, 0, 0},

      {"max_join_size", OPT_MAX_JOIN_SIZE, "", (uchar**) &max_join_size,
       (uchar**) &max_join_size, 0, GET_ULONG, REQUIRED_ARG, 1000000L, 1, ~0L, 0, 1,
       0},
      */
      { 0, 0, 0, 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0}
    };


    MySQL Control Center is a great tool for MySQL !
    Thank's.
    Olivier.

     
  • Anonymous

    Anonymous - 2010-06-18

    Commenting out the options is not the best solution.
    The problem lies in the new mysql headers and newer versions of gcc.
    See here for a patch to build mysqlcc with modern gcc and mysql versions.

    Niels

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.