3xxx / engineercms

工程师知识管理系统:基于golang语言(beego框架),支持分布式文件存储minio集群部署。engineercms为土木工程师基于web的知识管理系统。管理个人、工程项目资料,业主—设计—监理—施工方均从平台获得资料。支持提取码分享文件、onlyoffice实时文档协作,在线利用mindoc创作你的书籍,阅览PDF文件。手机端配套小程序,微信搜索“设计与管理”即可呼出小程序。
https://zsj.itdos.net/
Apache License 2.0
1.37k stars 415 forks source link

编译运行错误 #66

Open qinjinze opened 2 years ago

qinjinze commented 2 years ago

D:\project\src\engineercms>set GO111MODULE=on

D:\project\src\engineercms>go run main.go go: downloading github.com/beego/beego/v2 v2.0.1 go: downloading github.com/beego/i18n v0.0.0-20161101132742-e9308947f407 go: downloading github.com/kardianos/service v1.2.0 go: downloading github.com/PuerkitoBio/goquery v1.8.0 go: downloading github.com/lib/pq v1.10.4 go: downloading github.com/nu7hatch/gouuid v0.0.0-20131221200532-179d4d0c4d8d go: downloading github.com/russross/blackfriday/v2 v2.1.0 go: downloading gopkg.in/ldap.v2 v2.5.1 go: downloading gorm.io/driver/sqlite v1.2.6 go: downloading gorm.io/gorm v1.22.4 go: downloading xorm.io/xorm v1.2.5 go: downloading github.com/3xxx/flow v0.9.0 go: downloading github.com/boombuler/barcode v1.0.1 go: downloading github.com/casbin/casbin/v2 v2.40.6 go: downloading github.com/casbin/xorm-adapter/v2 v2.4.0 go: downloading github.com/casbin/beego-orm-adapter/v3 v3.0.0 go: downloading github.com/elastic/go-elasticsearch/v8 v8.0.0-alpha go: downloading github.com/golang-jwt/jwt v3.2.2+incompatible go: downloading github.com/google/go-tika v0.2.0 go: downloading github.com/holys/initials-avatar v0.0.0-20180809162153-a82edcad3408 go: downloading github.com/lifei6671/gocaptcha v0.2.0 go: downloading github.com/pdfcpu/pdfcpu v0.3.13 go: downloading github.com/casbin/casbin v1.7.0 go: downloading github.com/unidoc/unioffice v1.16.0 go: downloading github.com/howeyc/fsnotify v0.9.0 go: downloading github.com/Unknwon/goconfig v1.0.0 go: downloading golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1 go: downloading github.com/jinzhu/inflection v1.0.0 go: downloading github.com/jinzhu/now v1.1.3 go: downloading golang.org/x/tools v0.0.0-20201211185031-d93e913c1a58 go: downloading github.com/andybalholm/cascadia v1.3.1 go: downloading golang.org/x/net v0.0.0-20211216030914-fe4d6282115f go: downloading gopkg.in/asn1-ber.v1 v1.0.0-20181015200546-f715ec2f112d go: downloading xorm.io/builder v0.3.9 go: downloading github.com/bradfitz/gomemcache v0.0.0-20180710155616-bc664df96737 go: downloading github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 go: downloading golang.org/x/image v0.0.0-20210220032944-ac19c3e999fb go: downloading github.com/mitchellh/mapstructure v1.3.3 go: downloading github.com/elastic/elastic-transport-go/v8 v8.0.0-alpha go: downloading github.com/syndtr/goleveldb v1.0.0 go: downloading github.com/dchest/lru v0.0.0-20151022103600-d8fd1e40a385 go: downloading stathat.com/c/consistent v1.0.0 go: downloading github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db go: downloading golang.org/x/mod v0.3.0 go: downloading github.com/hhrutter/tiff v0.0.0-20190829141212-736cae8d0bc7 go: downloading github.com/hhrutter/lzw v0.0.0-20190829144645-6f07a24e8650

github.com/mattn/go-sqlite3

sqlite3-binding.c: In function 'sqlite3SelectNew': sqlite3-binding.c:128049:10: warning: function may return address of local variable [-Wreturn-local-addr] 128049 | return pNew; | ^~~~ sqlite3-binding.c:128009:10: note: declared here 128009 | Select standin; | ^~~

github.com/3xxx/engineercms/models

models\PayModel.go:40:15: undefined: UserTemple models\PayModel.go:74:16: undefined: ExcelTemple models\AdminModel.go:208:19: undefined: AnsysApdl models\AdminModel.go:208:33: undefined: AnsysInputs models\AdminModel.go:208:49: undefined: AnsysOutputs models\AdminModel.go:208:66: undefined: AnsysHistory models\AdminModel.go:208:83: undefined: AnsysHistoryInputValue models\AdminModel.go:208:110: undefined: AnsysHistoryOutputValue models\AdminModel.go:208:138: undefined: AnsysArticle models\AdminModel.go:209:19: undefined: ExcelTemple models\AdminModel.go:209:19: too many errors

D:\project\src\engineercms>go install github.com/mattn/go-sqlite3

github.com/mattn/go-sqlite3

sqlite3-binding.c: In function 'sqlite3SelectNew': sqlite3-binding.c:128049:10: warning: function may return address of local variable [-Wreturn-local-addr] 128049 | return pNew; | ^~~~ sqlite3-binding.c:128009:10: note: declared here 128009 | Select standin; | ^~~

qinjinze commented 2 years ago

D:\project\src\engineercms>go run main.go

engineercms/vendor/github.com/3xxx/engineercms/models

vendor\github.com\3xxx\engineercms\models\PayModel.go:40:15: undefined: UserTemple vendor\github.com\3xxx\engineercms\models\PayModel.go:74:16: undefined: ExcelTemple vendor\github.com\3xxx\engineercms\models\AdminModel.go:208:19: undefined: AnsysApdl vendor\github.com\3xxx\engineercms\models\AdminModel.go:208:33: undefined: AnsysInputs vendor\github.com\3xxx\engineercms\models\AdminModel.go:208:49: undefined: AnsysOutputs vendor\github.com\3xxx\engineercms\models\AdminModel.go:208:66: undefined: AnsysHistory vendor\github.com\3xxx\engineercms\models\AdminModel.go:208:83: undefined: AnsysHistoryInputValue vendor\github.com\3xxx\engineercms\models\AdminModel.go:208:110: undefined: AnsysHistoryOutputValue vendor\github.com\3xxx\engineercms\models\AdminModel.go:208:138: undefined: AnsysArticle vendor\github.com\3xxx\engineercms\models\AdminModel.go:209:19: undefined: ExcelTemple vendor\github.com\3xxx\engineercms\models\AdminModel.go:209:19: too many errors

qinjinze commented 2 years ago

很多字段都找不到

3xxx commented 2 years ago
    _db.AutoMigrate(&AnsysApdl{}, &AnsysInputs{}, &AnsysOutputs{}, &AnsysHistory{}, &AnsysHistoryInputValue{}, &AnsysHistoryOutputValue{}, &AnsysArticle{})
    _db.AutoMigrate(&ExcelTemple{}, &ExcelInputs{}, &ExcelOutputs{}, &ExcelHistory{}, &ExcelHistoryInputValue{}, &ExcelHistoryOutputValue{}, &ExcelArticle{})
    _db.AutoMigrate(&UserTemple{}, &TempleInputs{}, &TempleOutputs{}, &UserHistory{}, &HistoryInputValue{}, &HistoryOutputValue{}, &MathArticle{})
    _db.AutoMigrate(&Pay{}, &Money{}, &Recharge{}, &PayMath{}, &PayMathPdf{}, &PayExcel{}, &PayExcelPdf{})
    _db.AutoMigrate(&PassProject{})

注释掉这几行试试。

qinjinze commented 2 years ago

Comment out the code and a bunch of errors

qinjinze commented 2 years ago

D:\project\src\engineercms>go run main.go

engineercms/vendor/github.com/3xxx/engineercms/models

vendor\github.com\3xxx\engineercms\models\AdminModel.go:208:19: undefined: AnsysApdl vendor\github.com\3xxx\engineercms\models\AdminModel.go:208:33: undefined: AnsysInputs vendor\github.com\3xxx\engineercms\models\AdminModel.go:208:49: undefined: AnsysOutputs vendor\github.com\3xxx\engineercms\models\AdminModel.go:208:66: undefined: AnsysHistory vendor\github.com\3xxx\engineercms\models\AdminModel.go:208:83: undefined: AnsysHistoryInputValue vendor\github.com\3xxx\engineercms\models\AdminModel.go:208:110: undefined: AnsysHistoryOutputValue vendor\github.com\3xxx\engineercms\models\AdminModel.go:208:138: undefined: AnsysArticle vendor\github.com\3xxx\engineercms\models\AdminModel.go:209:19: undefined: ExcelTemple vendor\github.com\3xxx\engineercms\models\PayModel.go:40:15: undefined: UserTemple vendor\github.com\3xxx\engineercms\models\PayModel.go:74:16: undefined: ExcelTemple vendor\github.com\3xxx\engineercms\models\AdminModel.go:209:19: too many errors

D:\project\src\engineercms>go run main.go

engineercms/vendor/github.com/3xxx/engineercms/models

vendor\github.com\3xxx\engineercms\models\PayModel.go:40:15: undefined: UserTemple vendor\github.com\3xxx\engineercms\models\PayModel.go:74:16: undefined: ExcelTemple vendor\github.com\3xxx\engineercms\models\PayModel.go:370:17: undefined: UserTemple vendor\github.com\3xxx\engineercms\models\PayModel.go:537:18: undefined: ExcelTemple

D:\project\src\engineercms>go run main.go

engineercms/vendor/github.com/3xxx/engineercms/controllers

vendor\github.com\3xxx\engineercms\controllers\attachment.go:2173:18: undefined: models.GetHistory vendor\github.com\3xxx\engineercms\controllers\attachment.go:2264:18: undefined: models.GetHistory vendor\github.com\3xxx\engineercms\controllers\attachment.go:2370:21: undefined: models.GetMathTemple vendor\github.com\3xxx\engineercms\controllers\attachment.go:2428:18: undefined: models.GetHistoryExcel vendor\github.com\3xxx\engineercms\controllers\attachment.go:2520:18: undefined: models.GetHistory vendor\github.com\3xxx\engineercms\controllers\attachment.go:2624:21: undefined: models.GetExcelTemple vendor\github.com\3xxx\engineercms\controllers\attachment.go:2683:18: undefined: models.GetHistoryAnsys vendor\github.com\3xxx\engineercms\controllers\chat.go:129:17: too many arguments in call to avatar.New have (string, number) want (string) vendor\github.com\3xxx\engineercms\controllers\project.go:2797:17: too many arguments in call to avatar.New have (string, number) want (string)

D:\project\src\engineercms>go run main.go

engineercms/vendor/github.com/3xxx/engineercms/controllers

vendor\github.com\3xxx\engineercms\controllers\attachment.go:2173:18: undefined: models.GetHistory vendor\github.com\3xxx\engineercms\controllers\attachment.go:2264:18: undefined: models.GetHistory vendor\github.com\3xxx\engineercms\controllers\attachment.go:2370:21: undefined: models.GetMathTemple vendor\github.com\3xxx\engineercms\controllers\attachment.go:2428:18: undefined: models.GetHistoryExcel vendor\github.com\3xxx\engineercms\controllers\attachment.go:2520:18: undefined: models.GetHistory vendor\github.com\3xxx\engineercms\controllers\attachment.go:2624:21: undefined: models.GetExcelTemple vendor\github.com\3xxx\engineercms\controllers\attachment.go:2683:18: undefined: models.GetHistoryAnsys vendor\github.com\3xxx\engineercms\controllers\chat.go:129:17: too many arguments in call to avatar.New have (string, number) want (string) vendor\github.com\3xxx\engineercms\controllers\project.go:2797:17: too many arguments in call to avatar.New have (string, number) want (string)

D:\project\src\engineercms>

wuxingshenghua commented 1 year ago

解决了吗 C:\Users\renhang\go\src\engineercms>go run main.go

github.com/3xxx/engineercms/models

models\PassExcelModel.go:42:27: undefined: Select2 models\PassExcelModel.go:43:25: undefined: TextAreal models\PayModel.go:40:15: undefined: UserTemple models\AdminModel.go:215:19: undefined: AnsysApdl models\AdminModel.go:215:33: undefined: AnsysInputs models\AdminModel.go:215:49: undefined: AnsysOutputs models\AdminModel.go:215:66: undefined: AnsysHistory models\AdminModel.go:215:83: undefined: AnsysHistoryInputValue models\AdminModel.go:215:110: undefined: AnsysHistoryOutputValue models\AdminModel.go:215:138: undefined: AnsysArticle models\AdminModel.go:215:138: too many errors

qinjinze commented 1 year ago

没有,以致于萌生自己写一个简单的文件阅读服务器

 

------------------ 原始邮件 ------------------ 发件人: "3xxx/engineercms" @.>; 发送时间: 2023年7月6日(星期四) 中午11:02 @.>; @.**@.>; 主题: Re: [3xxx/engineercms] 编译运行错误 (Issue #66)

解决了吗 C:\Users\renhang\go\src\engineercms>go run main.go

github.com/3xxx/engineercms/models

models\PassExcelModel.go:42:27: undefined: Select2 models\PassExcelModel.go:43:25: undefined: TextAreal models\PayModel.go:40:15: undefined: UserTemple models\AdminModel.go:215:19: undefined: AnsysApdl models\AdminModel.go:215:33: undefined: AnsysInputs models\AdminModel.go:215:49: undefined: AnsysOutputs models\AdminModel.go:215:66: undefined: AnsysHistory models\AdminModel.go:215:83: undefined: AnsysHistoryInputValue models\AdminModel.go:215:110: undefined: AnsysHistoryOutputValue models\AdminModel.go:215:138: undefined: AnsysArticle models\AdminModel.go:215:138: too many errors

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>