Closed Dong-Lin closed 5 years ago
Something wrong with my configuration of framework path. The Latest build script as
// Final Build & configuration (64 bit) cd .. mkdir x86_64 cd x86_64 ../configure --disable-debug --disable-dependency-tracking \ CFLAGS="-mmacosx-version-min=10.11 -isysroot /Developer/SDKs/MacOSX10.11.sdk" \ LDFLAGS="-Wl,-syslibroot,/Developer/SDKs/MacOSX10.11.sdk \ -Wl,-macosx_version_min -Wl,10.11" \ CXXFLAGS="-mmacosx-version-min=10.11 -isysroot /Developer/SDKs/MacOSX10.11.sdk" \ --with-boost=/usr/local/Cellar/boost@1.55/1.55.0_1 --with-wx-config=/usr/local/bin/wx-config \ LIBS="-F /Library/Frameworks"
// After configuration make
I am trying to Compile FlameRobin and get 64bit version before macOS Catalina kill all 32-bit apps.
--- FlameRobin x64 journey ---
1.install FireBird from https://github.com/FirebirdSQL/firebird/releases/download/R2_5_9/FirebirdCS-2.5.9-27139-x86_64.pkg
Download and place SDK to
/Developer/SDKs/MacOSX10.11.sdk
source: git@github.com:phracker/MacOSX-SDKs.gitbrew install boost@1.55 // [encounter some issue with Boost 1.71.0]
brew install autoconf
install wxWidgets 3.1.2
source:https://www.wxwidgets.org/downloads/ unzip first cd debug ../configure --disable-shared --enable-stl --with-cxx=11 --with-macosx-sdk=/Developer/SDKs/MacOSX10.11.sdk --enable-debug --enable-debug_gdb --disable-optimise --prefix=$HOME && make -j4 install sudo ./configure --with-cocoa --with-macosx-version-min=10.11 --with-macosx-sdk=/Developer/SDKs/MacOSX10.11.sdk CXXFLAGS="-stdlib=libc++ -std=c++11" OBJCXXFLAGS="-stdlib=libc++ -std=c++11" CPPFLAGS="-stdlib=libc++" LDFLAGS="-stdlib=libc++" CXX=clang++ CXXCPP="clang++ -E" CC=clang CPP="clang -E" --enable-debug --enable-debug_gdb --disable-optimise && make -j6 sudo make install
// Final configuration (64 bit) ./configure --disable-debug --disable-dependency-tracking CFLAGS="-m64 -stdlib=libc++ -mmacosx-version-min=10.11 -isysroot /Developer/SDKs/MacOSX10.11.sdk" LDFLAGS="-stdlib=libc++ -Wl,-syslibroot,/Developer/SDKs/MacOSX10.11.sdk -Wl,-macosx_version_min -Wl,10.11" CXXFLAGS="-m64 -stdlib=libstdc++ -mmacosx-version-min=10.11 -isysroot /Developer/SDKs/MacOSX10.11.sdk" --with-boost=/usr/local/Cellar/boost@1.55/1.55.0_1 --with-wx-config=/usr/local/bin/wx-config
Generate makefile successfully.
// After configuration make
I have encounter following error with the make command.
""" make cd . && ./update-revision-info.sh clang++ -arch x86_64 -o flamerobin flamerobin_addconstrainthandler.o flamerobin_Config.o flamerobin_DatabaseConfig.o flamerobin_ArtProvider.o flamerobin_CodeTemplateProcessor.o flamerobin_FRError.o flamerobin_Observer.o flamerobin_ProgressIndicator.o flamerobin_StringUtils.o flamerobin_Subject.o flamerobin_TemplateProcessor.o flamerobin_URIProcessor.o flamerobin_Visitor.o flamerobin_databasehandler.o flamerobin_MetadataLoader.o flamerobin_frprec.o flamerobin_frutils.o flamerobin_AboutBox.o flamerobin_AdvancedMessageDialog.o flamerobin_AdvancedSearchFrame.o flamerobin_BackupFrame.o flamerobin_BackupRestoreBaseFrame.o flamerobin_BaseDialog.o flamerobin_BaseFrame.o flamerobin_CommandManager.o flamerobin_ConfdefTemplateProcessor.o flamerobin_ContextMenuMetadataItemVisitor.o flamerobin_ControlUtils.o flamerobin_DataGrid.o flamerobin_DataGridRowBuffer.o flamerobin_DataGridRows.o flamerobin_DataGridTable.o flamerobin_DBHTreeControl.o flamerobin_DndTextControls.o flamerobin_LogTextControl.o flamerobin_PrintableHtmlWindow.o flamerobin_TextControl.o flamerobin_CreateIndexDialog.o flamerobin_DataGeneratorFrame.o flamerobin_DatabaseRegistrationDialog.o flamerobin_EditBlobDialog.o flamerobin_EventWatcherFrame.o flamerobin_ExecuteSqlFrame.o flamerobin_ExecuteSql.o flamerobin_FieldPropertiesDialog.o flamerobin_FindDialog.o flamerobin_FRLayoutConfig.o flamerobin_GUIURIHandlerHelper.o flamerobin_HtmlHeaderMetadataItemVisitor.o flamerobin_HtmlTemplateProcessor.o flamerobin_InsertDialog.o flamerobin_MainFrame.o flamerobin_MetadataItemPropertiesFrame.o flamerobin_MultilineEnterDialog.o flamerobin_PreferencesDialog.o flamerobin_PreferencesDialogSettings.o flamerobin_PrivilegesDialog.o flamerobin_ProgressDialog.o flamerobin_ReorderFieldsDialog.o flamerobin_RestoreFrame.o flamerobin_ServerRegistrationDialog.o flamerobin_SimpleHtmlFrame.o flamerobin_StatementHistoryDialog.o flamerobin_StyleGuide.o flamerobin_UserDialog.o flamerobin_UsernamePasswordDialog.o flamerobin_logger.o flamerobin_main.o flamerobin_MasterPassword.o flamerobin_column.o flamerobin_constraints.o flamerobin_CreateDDLVisitor.o flamerobin_database.o flamerobin_domain.o flamerobin_exception.o flamerobin_function.o flamerobin_generator.o flamerobin_Index.o flamerobin_metadataitem.o flamerobin_MetadataItemCreateStatementVisitor.o flamerobin_MetadataItemDescriptionVisitor.o flamerobin_MetadataItemURIHandlerHelper.o flamerobin_MetadataItemVisitor.o flamerobin_MetadataTemplateCmdHandler.o flamerobin_MetadataTemplateManager.o flamerobin_parameter.o flamerobin_privilege.o flamerobin_procedure.o flamerobin_relation.o flamerobin_role.o flamerobin_root.o flamerobin_server.o flamerobin_table.o flamerobin_trigger.o flamerobin_User.o flamerobin_view.o flamerobin_objectdescriptionhandler.o flamerobin_Identifier.o flamerobin_IncompleteStatement.o flamerobin_MultiStatement.o flamerobin_SelectStatement.o flamerobin_SqlStatement.o flamerobin_SqlTokenizer.o flamerobin_StatementBuilder.o flamerobin_statementHistory.o flamerobin_StyleGuideMAC.o -L. -stdlib=libc++ -Wl,-syslibroot,/Developer/SDKs/MacOSX10.11.sdk -Wl,-macosx_version_min -Wl,10.11 -L/usr/local/lib -framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System -framework OpenGL -lwx_osx_cocoau_aui-3.1 -lwx_osx_cocoau_stc-3.1 -lwx_osx_cocoau_xrc-3.1 -lwx_osx_cocoau_html-3.1 -lwx_osx_cocoau_qa-3.1 -lwx_osx_cocoau_core-3.1 -lwx_baseu_xml-3.1 -lwx_baseu_net-3.1 -lwx_baseu-3.1 -L/usr/local/Cellar/boost@1.55/1.55.0_1/lib -Wl,-rpath,/usr/local/Cellar/boost@1.55/1.55.0_1/lib -lboost_thread-mt -lboost_system-mt -pthread -L/usr/local/Cellar/boost@1.55/1.55.0_1/lib -Wl,-rpath,/usr/local/Cellar/boost@1.55/1.55.0_1/lib -lboost_chrono-mt -libpp -F /Library/Frameworks/Firebird.framework ld: warning: passed two min versions (10.14.0, 10.11) for platform macOS. Using 10.11. Undefined symbols for architecture x86_64: "_fb_interpret", referenced from: ibpp_internals::FBCLIENT::Call() in libibpp.a(ibppibpp.o) "_isc_array_get_slice", referenced from: ibpp_internals::FBCLIENT::Call() in libibpp.a(ibpp__ibpp.o) "_isc_array_lookup_bounds", referenced from: ibpp_internals::FBCLIENT::Call() in libibpp.a(ibppibpp.o) "_isc_array_put_slice", referenced from: ibpp_internals::FBCLIENT::Call() in libibpp.a(ibppibpp.o) "_isc_attach_database", referenced from: ibpp_internals::FBCLIENT::Call() in libibpp.a(ibppibpp.o) "_isc_blob_info", referenced from: ibpp_internals::FBCLIENT::Call() in libibpp.a(ibppibpp.o) "_isc_cancel_blob", referenced from: ibpp_internals::FBCLIENT::Call() in libibpp.a(ibppibpp.o) "_isc_cancel_events", referenced from: ibpp_internals::FBCLIENT::Call() in libibpp.a(ibppibpp.o) "_isc_close_blob", referenced from: ibpp_internals::FBCLIENT::Call() in libibpp.a(ibppibpp.o) "_isc_commit_retaining", referenced from: ibpp_internals::FBCLIENT::Call() in libibpp.a(ibppibpp.o) "_isc_commit_transaction", referenced from: ibpp_internals::FBCLIENT::Call() in libibpp.a(ibppibpp.o) "_isc_create_blob2", referenced from: ibpp_internals::FBCLIENT::Call() in libibpp.a(ibppibpp.o) "_isc_create_database", referenced from: ibpp_internals::FBCLIENT::Call() in libibpp.a(ibppibpp.o) "_isc_database_info", referenced from: ibpp_internals::FBCLIENT::Call() in libibpp.a(ibppibpp.o) "_isc_detach_database", referenced from: ibpp_internals::FBCLIENT::Call() in libibpp.a(ibppibpp.o) "_isc_drop_database", referenced from: ibpp_internals::FBCLIENT::Call() in libibpp.a(ibppibpp.o) "_isc_dsql_allocate_statement", referenced from: ibpp_internals::FBCLIENT::Call() in libibpp.a(ibppibpp.o) "_isc_dsql_describe", referenced from: ibpp_internals::FBCLIENT::Call() in libibpp.a(ibppibpp.o) "_isc_dsql_describe_bind", referenced from: ibpp_internals::FBCLIENT::Call() in libibpp.a(ibppibpp.o) "_isc_dsql_execute", referenced from: ibpp_internals::FBCLIENT::Call() in libibpp.a(ibppibpp.o) "_isc_dsql_execute2", referenced from: ibpp_internals::FBCLIENT::Call() in libibpp.a(ibppibpp.o) "_isc_dsql_execute_immediate", referenced from: ibpp_internals::FBCLIENT::Call() in libibpp.a(ibppibpp.o) "_isc_dsql_fetch", referenced from: ibpp_internals::FBCLIENT::Call() in libibpp.a(ibppibpp.o) "_isc_dsql_free_statement", referenced from: ibpp_internals::FBCLIENT::Call() in libibpp.a(ibppibpp.o) "_isc_dsql_prepare", referenced from: ibpp_internals::FBCLIENT::Call() in libibpp.a(ibppibpp.o) "_isc_dsql_set_cursor_name", referenced from: ibpp_internals::FBCLIENT::Call() in libibpp.a(ibppibpp.o) "_isc_dsql_sql_info", referenced from: ibpp_internals::FBCLIENT::Call() in libibpp.a(ibppibpp.o) "_isc_get_segment", referenced from: ibpp_internals::FBCLIENT::Call() in libibpp.a(ibppibpp.o) "_isc_open_blob2", referenced from: ibpp_internals::FBCLIENT::Call() in libibpp.a(ibppibpp.o) "_isc_put_segment", referenced from: ibpp_internals::FBCLIENT::Call() in libibpp.a(ibppibpp.o) "_isc_que_events", referenced from: ibpp_internals::FBCLIENT::Call() in libibpp.a(ibppibpp.o) "_isc_rollback_retaining", referenced from: ibpp_internals::FBCLIENT::Call() in libibpp.a(ibppibpp.o) "_isc_rollback_transaction", referenced from: ibpp_internals::FBCLIENT::Call() in libibpp.a(ibppibpp.o) "_isc_service_attach", referenced from: ibpp_internals::FBCLIENT::Call() in libibpp.a(ibppibpp.o) "_isc_service_detach", referenced from: ibpp_internals::FBCLIENT::Call() in libibpp.a(ibppibpp.o) "_isc_service_query", referenced from: ibpp_internals::FBCLIENT::Call() in libibpp.a(ibppibpp.o) "_isc_service_start", referenced from: ibpp_internals::FBCLIENT::Call() in libibpp.a(ibppibpp.o) "_isc_sql_interprete", referenced from: ibpp_internals::FBCLIENT::Call() in libibpp.a(ibppibpp.o) "_isc_sqlcode", referenced from: ibpp_internals::FBCLIENT::Call() in libibpp.a(ibppibpp.o) "_isc_start_multiple", referenced from: ibpp_internals::FBCLIENT::Call() in libibpp.a(ibppibpp.o) "_isc_vax_integer", referenced from: ibpp_internals::FBCLIENT::Call() in libibpp.a(ibppibpp.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [flamerobin] Error 1 """
Here is FlameRobin makefile. Let's build a FlameRobin 64bit for Mac Together, Any help will be appreciated !!! Makefile.txt