免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2919 | 回复: 3
打印 上一主题 下一主题

安装完了eclipse3.0.1+cdt2.1 不能建新工程编译,请教 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-02-26 17:54 |只看该作者 |倒序浏览
我的系统是:freebsd5.3+jdk1.4.2
$/usr/local/bin/eclipse &
然后
  1.file->;new->;C Managed Makefile Project...
   2.file->;new->;file->;helloworld.c...
   执行完后,生成了makefile文件,在console出现下错误
  
**** Incremental build of configuration Debug for project helloworld ****

make -k all
"makefile", line 7: Need an operator
"makefile", line 12: Need an operator
"makefile", line 13: Missing dependency operator
"makefile", line 14: Need an operator
"makefile", line 15: Missing dependency operator
"makefile", line 16: Need an operator
"makefile", line 30: Need an operator
make: fatal errors encountered -- cannot continue
Build complete for project helloworld

   

   终端提示一下错误:
$ /usr/local/bin/eclipse &
$ java.lang.UnsatisfiedLinkError: no spawner in java.library.path
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1491)
        at java.lang.Runtime.loadLibrary0(Runtime.java:78
        at java.lang.System.loadLibrary(System.java:834)
        at org.eclipse.cdt.utils.spawner.ProcessFactory.<init>;(ProcessFactory.java:35)
        at org.eclipse.cdt.utils.spawner.ProcessFactory.getFactory(ProcessFactory.java:47)
        at org.eclipse.cdt.utils.spawner.EnvironmentReader.getEnvVars(EnvironmentReader.java:49)
        at org.eclipse.cdt.core.CommandLauncher.getEnvironment(CommandLauncher.java:67)
        at org.eclipse.cdt.make.internal.core.scannerconfig.DefaultExternalScannerInfoProvider.setEnvironment(DefaultExternalScannerInfoProvider.java:22
        at org.eclipse.cdt.make.internal.core.scannerconfig.DefaultExternalScannerInfoProvider.invokeProvider(DefaultExternalScannerInfoProvider.java:111)
        at org.eclipse.cdt.managedbuilder.internal.scannerconfig.ManagedBuildCPathEntryContainer$1.run(ManagedBuildCPathEntryContainer.java:184)
        at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:616)
        at org.eclipse.core.runtime.Platform.run(Platform.java:747)
        at org.eclipse.cdt.managedbuilder.internal.scannerconfig.ManagedBuildCPathEntryContainer.calculateEntriesDynamically(ManagedBuildCPathEntryContainer.java:193)
        at org.eclipse.cdt.managedbuilder.internal.scannerconfig.ManagedBuildCPathEntryContainer.getPathEntries(ManagedBuildCPathEntryContainer.java:217)
        at org.eclipse.cdt.internal.core.model.PathEntryManager.getResolvedPathEntries(PathEntryManager.java:173)
        at org.eclipse.cdt.internal.core.model.PathEntryManager.getResolvedPathEntries(PathEntryManager.java:157)
        at org.eclipse.cdt.internal.core.model.PathEntryManager.pathEntryStoreChanged(PathEntryManager.java:1151)
        at org.eclipse.cdt.internal.core.model.DefaultPathEntryStore.fireContentChangedEvent(DefaultPathEntryStore.java:381)
        at org.eclipse.cdt.internal.core.model.DefaultPathEntryStore.descriptorChanged(DefaultPathEntryStore.java:357)
        at org.eclipse.cdt.internal.core.CDescriptorManager$3.run(CDescriptorManager.java:354)
        at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:616)
        at org.eclipse.core.runtime.Platform.run(Platform.java:747)
        at org.eclipse.cdt.internal.core.CDescriptorManager.fireEvent(CDescriptorManager.java:345)
        at org.eclipse.cdt.internal.core.CDescriptor.saveProjectData(CDescriptor.java:576)
        at org.eclipse.cdt.internal.core.model.DefaultPathEntryStore.setRawPathEntries(DefaultPathEntryStore.java:123)
        at org.eclipse.cdt.internal.core.model.PathEntryManager.saveRawPathEntries(PathEntryManager.java:822)
        at org.eclipse.cdt.internal.core.model.SetPathEntriesOperation.executeOperation(SetPathEntriesOperation.java:54)
        at org.eclipse.cdt.internal.core.model.CModelOperation.execute(CModelOperation.java:312)
        at org.eclipse.cdt.internal.core.model.CModelOperation.run(CModelOperation.java:529)
        at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1673)
        at org.eclipse.cdt.internal.core.model.CModelManager.runOperation(CModelManager.java:943)
        at org.eclipse.cdt.internal.core.model.PathEntryManager.setRawPathEntries(PathEntryManager.java:405)
        at org.eclipse.cdt.core.model.CoreModel.setRawPathEntries(CoreModel.java:690)
        at org.eclipse.cdt.internal.core.model.CProject.setRawPathEntries(CProject.java:414)
        at org.eclipse.cdt.managedbuilder.core.ManagedBuildManager.initBuildInfoContainer(ManagedBuildManager.java:1172)
        at org.eclipse.cdt.managedbuilder.core.ManagedBuildManager.initBuildInfoContainer(ManagedBuildManager.java:1133)
        at org.eclipse.cdt.managedbuilder.ui.wizards.NewManagedProjectWizard.doRunEpilogue(NewManagedProjectWizard.java:193)
        at org.eclipse.cdt.ui.wizards.NewCProjectWizard$1.run(NewCProjectWizard.java:225)
        at org.eclipse.ui.actions.WorkspaceModifyDelegatingOperation.execute(WorkspaceModifyDelegatingOperation.java:67)
        at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:91)
        at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1673)
        at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:105)
        at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:303)
        at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:253)
        at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:752)
        at org.eclipse.cdt.ui.wizards.NewCProjectWizard.invokeRunnable(NewCProjectWizard.java:23
        at org.eclipse.cdt.ui.wizards.NewCProjectWizard.performFinish(NewCProjectWizard.java:161)
        at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:609)
        at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:305)
        at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:506)
        at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:954)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2595)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:229
        at org.eclipse.jface.window.Window.runEventLoop(Window.java:66
        at org.eclipse.jface.window.Window.open(Window.java:64
        at org.eclipse.ui.internal.ide.NewWizardShortcutAction.run(NewWizardShortcutAction.java:96)
        at org.eclipse.jface.action.Action.runWithEvent(Action.java:881)
        at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:915)
        at org.eclipse.jface.action.ActionContributionItem.access$500(ActionContributionItem.java:47)
        at org.eclipse.jface.action.ActionContributionItem$7.handleEvent(ActionContributionItem.java:785)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:954)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2595)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:229
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1377)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:134
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
        at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
        at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
        at org.eclipse.core.launcher.Main.run(Main.java:704)
        at org.eclipse.core.launcher.Main.main(Main.java:68


   而且不能编译,请高手指点??

论坛徽章:
0
2 [报告]
发表于 2005-02-28 08:53 |只看该作者

安装完了eclipse3.0.1+cdt2.1 不能建新工程编译,请教

兄弟们可怜可怜,看看吧!

论坛徽章:
0
3 [报告]
发表于 2006-10-05 16:59 |只看该作者
你更新一下ports试一下,我在FB的主页上有一段英文描述,讲的就是这个问题,好像说是有bug需要更新Makefile文件重新make才可以。在linux下面应该没有这个问题。FB编译后不会生成那两so的文件。linux下载后文件解压直接就有那两个。

论坛徽章:
0
4 [报告]
发表于 2006-10-05 17:04 |只看该作者
使用 gmake,即 GNU make。BSD make 有些问题……
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP