Not generate build magento 2.3.3 - magento2

ERROR in (webpack)-inject-plugin/dist/webpack-inject-plugin.loader.js?id=webpack-inject-module-1
Module not found: Error: Can't resolve './..
enia-uilibRootComponentsCMSindex.js' in 'E:\PWA Magento\pwa-studio\packages\venia-concept'
# (webpack)-inject-plugin/dist/webpack-inject-plugin.loader.js?id=webpack-inject-module-1 5:71-177
# multi (webpack)-inject-plugin/dist/webpack-inject-plugin.loader?id=webpack-inject-module-1 ./src/index.js
ERROR in (webpack)-inject-plugin/dist/webpack-inject-plugin.loader.js?id=webpack-inject-module-1
Module not found: Error: Can't resolve './..
enia-uilibRootComponentsCategoryindex.js' in 'E:\PWA Magento\pwa-studio\packages\venia-concept'
# (webpack)-inject-plugin/dist/webpack-inject-plugin.loader.js?id=webpack-inject-module-1 6:32-143
# multi (webpack)-inject-plugin/dist/webpack-inject-plugin.loader?id=webpack-inject-module-1 ./src/index.js
ERROR in (webpack)-inject-plugin/dist/webpack-inject-plugin.loader.js?id=webpack-inject-module-1
Module not found: Error: Can't resolve './..
enia-uilibRootComponentsNotFoundindex.js' in 'E:\PWA Magento\pwa-studio\packages\venia-concept'
# (webpack)-inject-plugin/dist/webpack-inject-plugin.loader.js?id=webpack-inject-module-1 7:32-143
# multi (webpack)-inject-plugin/dist/webpack-inject-plugin.loader?id=webpack-inject-module-1 ./src/index.js
ERROR in (webpack)-inject-plugin/dist/webpack-inject-plugin.loader.js?id=webpack-inject-module-1
Module not found: Error: Can't resolve './..
enia-uilibRootComponentsProductindex.js' in 'E:\PWA Magento\pwa-studio\packages\venia-concept'
# (webpack)-inject-plugin/dist/webpack-inject-plugin.loader.js?id=webpack-inject-module-1 8:31-140
# multi (webpack)-inject-plugin/dist/webpack-inject-plugin.loader?id=webpack-inject-module-1 ./src/index.js
ERROR in (webpack)-inject-plugin/dist/webpack-inject-plugin.loader.js?id=webpack-inject-module-1
Module not found: Error: Can't resolve './..
enia-uilibRootComponentsSearchindex.js' in 'E:\PWA Magento\pwa-studio\packages\venia-concept'
# (webpack)-inject-plugin/dist/webpack-inject-plugin.loader.js?id=webpack-inject-module-1 9:30-137
# multi (webpack)-inject-plugin/dist/webpack-inject-plugin.loader?id=webpack-inject-module-1 ./src/index.js

Related

How to extract a standalone FPU module from Rocket-Chip Chisel code?

I am working on Rocket Chip Generator, which is a SoC written in Chisel.
My objective is to extract the Floating-Point Unit, in order to synthesize it and study its power consumption/area ...etc. separately from the rest of the SoC.
So I cloned the project and tried to create a dedicated TestHarness where I only instanciate an FPU. This is an example code of what I did (very similar to TestHarness
package freechips.rocketchip.system
import Chisel._
import freechips.rocketchip.config.Parameters
import freechips.rocketchip.devices.debug.Debug
import freechips.rocketchip.diplomacy.LazyModule
import freechips.rocketchip.rocket._
// importing FPU class
import freechips.rocketchip.tile._
class FPUTestHarness() (implicit p: Parameters) extends Module {
val io = new Bundle {
val dummyIn = Bool(INPUT)
val dummyOut = Bool(OUTPUT)
}
// The parameters of the FPU
val fpu_params = FPUParams(
fLen = 32 // default is 64
divSqrt = false // default is true
// sfmaLatency = 3, // default
// dfmaLatency = 4 // default
)
val fpu = Module(new FPU(fpu_params)(p))
}
The problem is that the implicit parameter p (of type Parameters) doesn't contain something called TileKey, which is needed I don't know where. Apparently the implicit parameter p, passed to FPUTestHarness doesn't contain that information. How can I resolve that? Is it possible to hardcode that somewhere for example?
rocket-chip-new/vsim$ make verilog
mkdir -p /home/mylab/rocket-chip/vsim/generated-src/
cd /home/mylab/rocket-chip && java -Xmx2G -Xss8M -XX:MaxPermSize=256M -jar /home/mylab/rocket-chip/sbt-launch.jar "runMain freechips.rocketchip.system.Generator /home/mylab/rocket-chip/vsim/generated-src freechips.rocketchip.system FPUTestHarness freechips.rocketchip.system DefaultConfig"
OpenJDK 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0
[info] Loading settings for project rocket-chip-new-build from plugins.sbt ...
[info] Loading project definition from /home/mylab/rocket-chip/project
[info] Loading settings for project rocketchip from build.sbt ...
[info] Loading settings for project hardfloat from build.sbt ...
[info] Loading settings for project chisel from build.sbt ...
Using addons:
[info] Set current project to rocketchip (in build file:/home/mylab/rocket-chip/)
[info] Compiling 1 Scala source to /home/mylab/rocket-chip/target/scala-2.12/classes ...
[warn] there were two feature warnings; re-run with -feature for details
[warn] one warning found
[info] Done compiling.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.protobuf.UnsafeUtil (file:/home/aitsaidn/.sbt/boot/scala-2.12.7/org.scala-sbt/sbt/1.2.7/protobuf-java-3.3.1.jar) to field java.nio.Buffer.address
WARNING: Please consider reporting this to the maintainers of com.google.protobuf.UnsafeUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[warn] Multiple main classes detected. Run 'show discoveredMainClasses' to see the list
[info] Packaging /home/mylab/rocket-chip/target/scala-2.12/rocketchip_2.12-1.2-SNAPSHOT.jar ...
[info] Done packaging.
[info] Running freechips.rocketchip.system.Generator /home/mylab/rocket-chip/vsim/generated-src freechips.rocketchip.system FPUTestHarness freechips.rocketchip.system DefaultConfig
[info] [0.003] Elaborating design...
List(RocketTileParams(RocketCoreParams(0,true,false,true,true,false,true,false,0,1,false,8,0,true,false,true,0,Some(0),true,true,false,false,false,0,538447876,Some(MulDivParams(8,1,true,true,1)),Some(FPUParams(64,true,3,4))),Some(ICacheParams(64,4,64,32,0,None,None,None,false,64,2,4)),Some(DCacheParams(64,4,64,32,None,None,1,0,17,16,1,64,false,false,false,false,None)),Some(BTBParams(28,14,6,6,Some(BHTParams(512,1,8,3)),false)),0,Some(tile),0,None,None,false))
[error] (run-main-0) java.lang.reflect.InvocationTargetException
[error] java.lang.reflect.InvocationTargetException
[error] at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[error] at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
[error] at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
[error] at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
[error] at freechips.rocketchip.util.HasGeneratorUtilities.$anonfun$elaborate$1(GeneratorUtils.scala:54)
[error] at chisel3.core.Module$.do_apply(Module.scala:52)
[error] at chisel3.Driver$.$anonfun$elaborate$1(Driver.scala:95)
[error] at chisel3.internal.Builder$.$anonfun$build$2(Builder.scala:343)
[error] at scala.util.DynamicVariable.withValue(DynamicVariable.scala:58)
[error] at chisel3.internal.Builder$.$anonfun$build$1(Builder.scala:341)
[error] at scala.util.DynamicVariable.withValue(DynamicVariable.scala:58)
[error] at chisel3.internal.Builder$.build(Builder.scala:341)
[error] at chisel3.Driver$.elaborate(Driver.scala:95)
[error] at freechips.rocketchip.util.HasGeneratorUtilities.elaborate(GeneratorUtils.scala:59)
[error] Caused by: java.lang.IllegalArgumentException: requirement failed: Key TileKey is not defined in Parameters
[error] at scala.Predef$.require(Predef.scala:277)
[error] at freechips.rocketchip.config.View.apply(Config.scala:15)
[error] at freechips.rocketchip.config.View.apply(Config.scala:12)
[error] at freechips.rocketchip.tile.HasNonDiplomaticTileParameters.tileParams(BaseTile.scala:37)
[error] at freechips.rocketchip.tile.HasNonDiplomaticTileParameters.tileParams$(BaseTile.scala:37)
[error] at freechips.rocketchip.tile.CoreModule.tileParams(Core.scala:90)
[error] at freechips.rocketchip.tile.HasCoreParameters.$init$(Core.scala:51)
[error] at freechips.rocketchip.tile.CoreModule.<init>(Core.scala:90)
[error] at freechips.rocketchip.tile.FPUModule.<init>(FPU.scala:378)
[error] at freechips.rocketchip.tile.FPU.<init>(FPU.scala:661)
[error] at freechips.rocketchip.system.FPUTestHarness.$anonfun$fpu$1(FPUTestHarness.scala:71)
[error] at chisel3.core.Module$.do_apply(Module.scala:52)
[error] at freechips.rocketchip.system.FPUTestHarness.<init>(FPUTestHarness.scala:71)
[error] at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[error] Nonzero exit code: 1
[error] (Compile / runMain) Nonzero exit code: 1
[error] Total time: 6 s, completed Jul 25, 2019, 7:59:01 PM
/home/mylab/rocket-chip/vsim/Makefrag-verilog:12: recipe for target '/home/mylab/rocket-chip/vsim/generated-src/freechips.rocketchip.system.DefaultConfig.fir' failed
make: *** [/home/mylab/rocket-chip/vsim/generated-src/freechips.rocketchip.system.DefaultConfig.fir] Error 1
It seems that you use the config as "DefaultConfig". Error log states that you did not specify TileKey parameter in this config. Adding TileKey parameter will resolve the issue. DefaultConfig is defined in rocket-chip/src/main/scala/system/Configs.scala

Failed build on Ionic 3 application in Ionic Pro with the use of woocommerce-api: Error: ./node_modules/sshpk/lib/formats/ssh-private.js

I get the following error in the Ionic Pro (below); I could identify what it is with the use of woocommerce-api, for example, this:
this.WooCommerce = WooCommerceAPI({
url: 'https://mysite...',
consumerKey: 'ck_...',
consumerSecret: 'cs_...',
wpAPI: true,
version: 'wc/v2'
});
this.WooCommerce.getAsync("products").then( (data) => {
console.dir(JSON.parse(data.body));
this.products = JSON.parse(data.body);
}, (err) => {
console.log(err);
});
When I delete this section of code, everything works fine, but when I add it, it comes out in the Build Log:
Build failed
Running with gitlab-ci-multi-runner 9.1.0 (0118d89)
on ip-10-2-0-213 (c9648220)
Using Shell executor...
Running on ip-10-2-0-213...
Cloning repository...
Cloning into '/home/gitlab-runner/builds/c9648220/0/project-1'...
Checking out 26327967 as master...
Skipping Git submodules setup
$ run "fetch-updates"
Running Stage fetch-updates for Job: 5180108
Checking for build process updates...
$ run "build-app"
Running Stage build-app for Job: 5180108
Parsing ionic.config.json for project settings
Project Settings:
Name: wootest
App ID: 0875c283
Type: ionic-angular
$ npm install --quiet --no-optional
> node-sass#4.5.3 install /usr/src/app/node_modules/node-sass
> node scripts/install.js
Downloading binary from https://github.com/sass/node-sass/releases/download/v4.5.3/linux-x64-57_binding.node
Download complete
Binary saved to /usr/src/app/node_modules/node-sass/vendor/linux-x64-57/binding.node
Caching binary to /home/gitlab-runner/.npm/node-sass/4.5.3/linux-x64-57_binding.node
> uglifyjs-webpack-plugin#0.4.6 postinstall /usr/src/app/node_modules/uglifyjs-webpack-plugin
> node lib/post_install.js
> node-sass#4.5.3 postinstall /usr/src/app/node_modules/node-sass
> node scripts/build.js
Binary found at /usr/src/app/node_modules/node-sass/vendor/linux-x64-57/binding.node
Testing binary
Binary is fine
added 545 packages in 22.754s
$ npm install --quiet --no-optional success
$ npm run build
npm info it worked if it ends with ok
npm info using npm#5.3.0
npm info using node#v8.2.1
npm info lifecycle wootest#0.0.1~prebuild: wootest#0.0.1
npm info lifecycle wootest#0.0.1~build: wootest#0.0.1
> wootest#0.0.1 build /usr/src/app
> ionic-app-scripts build
[16:29:23] ionic-app-scripts 3.1.6
[16:29:23] build dev started ...
[16:29:23] clean started ...
[16:29:23] clean finished in 1 ms
[16:29:23] copy started ...
[16:29:23] deeplinks started ...
[16:29:23] deeplinks finished in 37 ms
[16:29:23] transpile started ...
[16:29:27] transpile finished in 3.39 s
[16:29:27] preprocess started ...
[16:29:27] preprocess finished in 1 ms
[16:29:27] webpack started ...
[16:29:27] copy finished in 3.61 s
[16:29:36] ionic-app-script task: "build"
[16:29:36] Error: ./node_modules/sshpk/lib/formats/ssh-private.js Module not found: Error: Can't resolve 'bcrypt-pbkdf'
in '/usr/src/app/node_modules/sshpk/lib/formats' resolve 'bcrypt-pbkdf' in
'/usr/src/app/node_modules/sshpk/lib/formats' Parsed request is a module using description file:
/usr/src/app/node_modules/sshpk/package.json (relative path: ./lib/formats) Field 'browser' doesn't contain
a valid alias configuration after using description file: /usr/src/app/node_modules/sshpk/package.json
(relative path: ./lib/formats) resolve as module looking for modules in /usr/src/app/node_modules using
description file: /usr/src/app/package.json (relative path: ./node_modules) Field 'browser' doesn't contain
a valid alias configuration after using description file: /usr/src/app/package.json (relative path:
./node_modules) using description file: /usr/src/app/package.json (relative path:
./node_modules/bcrypt-pbkdf) no extension Field 'browser' doesn't contain a valid alias configuration
/usr/src/app/node_modules/bcrypt-pbkdf doesn't exist .ts Field 'browser' doesn't contain a valid alias
configuration /usr/src/app/node_modules/bcrypt-pbkdf.ts doesn't exist .js Field 'browser' doesn't contain a
valid alias configuration /usr/src/app/node_modules/bcrypt-pbkdf.js doesn't exist .json Field 'browser'
doesn't contain a valid alias configuration /usr/src/app/node_modules/bcrypt-pbkdf.json doesn't exist as
directory /usr/src/app/node_modules/bcrypt-pbkdf doesn't exist [/usr/src/app/node_modules/bcrypt-pbkdf]
[/usr/src/app/node_modules/bcrypt-pbkdf.ts] [/usr/src/app/node_modules/bcrypt-pbkdf.js]
[/usr/src/app/node_modules/bcrypt-pbkdf.json] [/usr/src/app/node_modules/bcrypt-pbkdf] #
./node_modules/sshpk/lib/formats/ssh-private.js 69:12-35 190:12-35 # ./node_modules/sshpk/lib/key.js #
./node_modules/sshpk/lib/index.js # ./node_modules/http-signature/lib/signer.js #
./node_modules/http-signature/lib/index.js # ./node_modules/request/request.js #
./node_modules/request/index.js # ./node_modules/woocommerce-api/index.js # ./src/pages/home/home.ts #
./src/app/app.module.ts # ./src/app/main.ts,./node_modules/sshpk/lib/dhe.js Module not found: Error: Can't
resolve 'ecc-jsbn' in '/usr/src/app/node_modules/sshpk/lib' resolve 'ecc-jsbn' in
'/usr/src/app/node_modules/sshpk/lib' Parsed request is a module using description file:
/usr/src/app/node_modules/sshpk/package.json (relative path: ./lib) Field 'browser' doesn't contain a valid
alias configuration after using description file: /usr/src/app/node_modules/sshpk/package.json (relative
path: ./lib) resolve as module looking for modules in /usr/src/app/node_modules using description file:
/usr/src/app/package.json (relative path: ./node_modules) Field 'browser' doesn't contain a valid alias
configuration after using description file: /usr/src/app/package.json (relative path: ./node_modules) using
description file: /usr/src/app/package.json (relative path: ./node_modules/ecc-jsbn) no extension Field
'browser' doesn't contain a valid alias configuration /usr/src/app/node_modules/ecc-jsbn doesn't exist .ts
Field 'browser' doesn't contain a valid alias configuration /usr/src/app/node_modules/ecc-jsbn.ts doesn't
exist .js Field 'browser' doesn't contain a valid alias configuration /usr/src/app/node_modules/ecc-jsbn.js
doesn't exist .json Field 'browser' doesn't contain a valid alias configuration
/usr/src/app/node_modules/ecc-jsbn.json doesn't exist as directory /usr/src/app/node_modules/ecc-jsbn
doesn't exist [/usr/src/app/node_modules/ecc-jsbn] [/usr/src/app/node_modules/ecc-jsbn.ts]
[/usr/src/app/node_modules/ecc-jsbn.js] [/usr/src/app/node_modules/ecc-jsbn.json]
[/usr/src/app/node_modules/ecc-jsbn] # ./node_modules/sshpk/lib/dhe.js 46:11-30 375:10-29 #
./node_modules/sshpk/lib/key.js # ./node_modules/sshpk/lib/index.js #
./node_modules/http-signature/lib/signer.js # ./node_modules/http-signature/lib/index.js #
./node_modules/request/request.js # ./node_modules/request/index.js #
./node_modules/woocommerce-api/index.js # ./src/pages/home/home.ts # ./src/app/app.module.ts #
./src/app/main.ts,./node_modules/sshpk/lib/dhe.js Module not found: Error: Can't resolve 'ecc-jsbn/lib/ec'
in '/usr/src/app/node_modules/sshpk/lib' resolve 'ecc-jsbn/lib/ec' in '/usr/src/app/node_modules/sshpk/lib'
Parsed request is a module using description file: /usr/src/app/node_modules/sshpk/package.json (relative
path: ./lib) Field 'browser' doesn't contain a valid alias configuration after using description file:
/usr/src/app/node_modules/sshpk/package.json (relative path: ./lib) resolve as module looking for modules in
/usr/src/app/node_modules using description file: /usr/src/app/package.json (relative path: ./node_modules)
Field 'browser' doesn't contain a valid alias configuration after using description file:
/usr/src/app/package.json (relative path: ./node_modules) using description file: /usr/src/app/package.json
(relative path: ./node_modules/ecc-jsbn/lib/ec) no extension Field 'browser' doesn't contain a valid alias
configuration /usr/src/app/node_modules/ecc-jsbn/lib/ec doesn't exist .ts Field 'browser' doesn't contain a
valid alias configuration /usr/src/app/node_modules/ecc-jsbn/lib/ec.ts doesn't exist .js Field 'browser'
doesn't contain a valid alias configuration /usr/src/app/node_modules/ecc-jsbn/lib/ec.js doesn't exist .json
Field 'browser' doesn't contain a valid alias configuration /usr/src/app/node_modules/ecc-jsbn/lib/ec.json
doesn't exist as directory /usr/src/app/node_modules/ecc-jsbn/lib/ec doesn't exist
[/usr/src/app/node_modules/ecc-jsbn/lib/ec] [/usr/src/app/node_modules/ecc-jsbn/lib/ec.ts]
[/usr/src/app/node_modules/ecc-jsbn/lib/ec.js] [/usr/src/app/node_modules/ecc-jsbn/lib/ec.json]
[/usr/src/app/node_modules/ecc-jsbn/lib/ec] # ./node_modules/sshpk/lib/dhe.js 48:9-35 377:8-34 #
./node_modules/sshpk/lib/key.js # ./node_modules/sshpk/lib/index.js #
./node_modules/http-signature/lib/signer.js # ./node_modules/http-signature/lib/index.js #
./node_modules/request/request.js # ./node_modules/request/index.js #
./node_modules/woocommerce-api/index.js # ./src/pages/home/home.ts # ./src/app/app.module.ts #
./src/app/main.ts,./node_modules/sshpk/lib/dhe.js Module not found: Error: Can't resolve 'jsbn' in
'/usr/src/app/node_modules/sshpk/lib' resolve 'jsbn' in '/usr/src/app/node_modules/sshpk/lib' Parsed request
is a module using description file: /usr/src/app/node_modules/sshpk/package.json (relative path: ./lib)
Field 'browser' doesn't contain a valid alias configuration after using description file:
/usr/src/app/node_modules/sshpk/package.json (relative path: ./lib) resolve as module looking for modules in
/usr/src/app/node_modules using description file: /usr/src/app/package.json (relative path: ./node_modules)
Field 'browser' doesn't contain a valid alias configuration after using description file:
/usr/src/app/package.json (relative path: ./node_modules) using description file: /usr/src/app/package.json
(relative path: ./node_modules/jsbn) no extension Field 'browser' doesn't contain a valid alias
configuration /usr/src/app/node_modules/jsbn doesn't exist .ts Field 'browser' doesn't contain a valid alias
configuration /usr/src/app/node_modules/jsbn.ts doesn't exist .js Field 'browser' doesn't contain a valid
alias configuration /usr/src/app/node_modules/jsbn.js doesn't exist .json Field 'browser' doesn't contain a
valid alias configuration /usr/src/app/node_modules/jsbn.json doesn't exist as directory
/usr/src/app/node_modules/jsbn doesn't exist [/usr/src/app/node_modules/jsbn]
[/usr/src/app/node_modules/jsbn.ts] [/usr/src/app/node_modules/jsbn.js]
[/usr/src/app/node_modules/jsbn.json] [/usr/src/app/node_modules/jsbn] # ./node_modules/sshpk/lib/dhe.js
50:11-26 379:10-25 # ./node_modules/sshpk/lib/key.js # ./node_modules/sshpk/lib/index.js #
./node_modules/http-signature/lib/signer.js # ./node_modules/http-signature/lib/index.js #
./node_modules/request/request.js # ./node_modules/request/index.js #
./node_modules/woocommerce-api/index.js # ./src/pages/home/home.ts # ./src/app/app.module.ts #
./src/app/main.ts,./node_modules/sshpk/lib/private-key.js Module not found: Error: Can't resolve 'tweetnacl'
in '/usr/src/app/node_modules/sshpk/lib' resolve 'tweetnacl' in '/usr/src/app/node_modules/sshpk/lib' Parsed
request is a module using description file: /usr/src/app/node_modules/sshpk/package.json (relative path:
./lib) Field 'browser' doesn't contain a valid alias configuration after using description file:
/usr/src/app/node_modules/sshpk/package.json (relative path: ./lib) resolve as module looking for modules in
/usr/src/app/node_modules using description file: /usr/src/app/package.json (relative path: ./node_modules)
Field 'browser' doesn't contain a valid alias configuration after using description file:
/usr/src/app/package.json (relative path: ./node_modules) using description file: /usr/src/app/package.json
(relative path: ./node_modules/tweetnacl) no extension Field 'browser' doesn't contain a valid alias
configuration /usr/src/app/node_modules/tweetnacl doesn't exist .ts Field 'browser' doesn't contain a valid
alias configuration /usr/src/app/node_modules/tweetnacl.ts doesn't exist .js Field 'browser' doesn't contain
a valid alias configuration /usr/src/app/node_modules/tweetnacl.js doesn't exist .json Field 'browser'
doesn't contain a valid alias configuration /usr/src/app/node_modules/tweetnacl.json doesn't exist as
directory /usr/src/app/node_modules/tweetnacl doesn't exist [/usr/src/app/node_modules/tweetnacl]
[/usr/src/app/node_modules/tweetnacl.ts] [/usr/src/app/node_modules/tweetnacl.js]
[/usr/src/app/node_modules/tweetnacl.json] [/usr/src/app/node_modules/tweetnacl] #
./node_modules/sshpk/lib/private-key.js 92:10-30 112:10-30 # ./node_modules/sshpk/lib/index.js #
./node_modules/http-signature/lib/signer.js # ./node_modules/http-signature/lib/index.js #
./node_modules/request/request.js # ./node_modules/request/index.js #
./node_modules/woocommerce-api/index.js # ./src/pages/home/home.ts # ./src/app/app.module.ts #
./src/app/main.ts,./node_modules/sshpk/lib/dhe.js Module not found: Error: Can't resolve 'tweetnacl' in
'/usr/src/app/node_modules/sshpk/lib' resolve 'tweetnacl' in '/usr/src/app/node_modules/sshpk/lib' Parsed
request is a module using description file: /usr/src/app/node_modules/sshpk/package.json (relative path:
./lib) Field 'browser' doesn't contain a valid alias configuration after using description file:
/usr/src/app/node_modules/sshpk/package.json (relative path: ./lib) resolve as module looking for modules in
/usr/src/app/node_modules using description file: /usr/src/app/package.json (relative path: ./node_modules)
Field 'browser' doesn't contain a valid alias configuration after using description file:
/usr/src/app/package.json (relative path: ./node_modules) using description file: /usr/src/app/package.json
(relative path: ./node_modules/tweetnacl) no extension Field 'browser' doesn't contain a valid alias
configuration /usr/src/app/node_modules/tweetnacl doesn't exist .ts Field 'browser' doesn't contain a valid
alias configuration /usr/src/app/node_modules/tweetnacl.ts doesn't exist .js Field 'browser' doesn't contain
a valid alias configuration /usr/src/app/node_modules/tweetnacl.js doesn't exist .json Field 'browser'
doesn't contain a valid alias configuration /usr/src/app/node_modules/tweetnacl.json doesn't exist as
directory /usr/src/app/node_modules/tweetnacl doesn't exist [/usr/src/app/node_modules/tweetnacl]
[/usr/src/app/node_modules/tweetnacl.ts] [/usr/src/app/node_modules/tweetnacl.js]
[/usr/src/app/node_modules/tweetnacl.json] [/usr/src/app/node_modules/tweetnacl] #
./node_modules/sshpk/lib/dhe.js 79:10-30 321:9-29 # ./node_modules/sshpk/lib/key.js #
./node_modules/sshpk/lib/index.js # ./node_modules/http-signature/lib/signer.js #
./node_modules/http-signature/lib/index.js # ./node_modules/request/request.js #
./node_modules/request/index.js # ./node_modules/woocommerce-api/index.js # ./src/pages/home/home.ts #
./src/app/app.module.ts # ./src/app/main.ts,./node_modules/sshpk/lib/ed-compat.js Module not found: Error:
Can't resolve 'tweetnacl' in '/usr/src/app/node_modules/sshpk/lib' resolve 'tweetnacl' in
'/usr/src/app/node_modules/sshpk/lib' Parsed request is a module using description file:
/usr/src/app/node_modules/sshpk/package.json (relative path: ./lib) Field 'browser' doesn't contain a valid
alias configuration after using description file: /usr/src/app/node_modules/sshpk/package.json (relative
path: ./lib) resolve as module looking for modules in /usr/src/app/node_modules using description file:
/usr/src/app/package.json (relative path: ./node_modules) Field 'browser' doesn't contain a valid alias
configuration after using description file: /usr/src/app/package.json (relative path: ./node_modules) using
description file: /usr/src/app/package.json (relative path: ./node_modules/tweetnacl) no extension Field
'browser' doesn't contain a valid alias configuration /usr/src/app/node_modules/tweetnacl doesn't exist .ts
Field 'browser' doesn't contain a valid alias configuration /usr/src/app/node_modules/tweetnacl.ts doesn't
exist .js Field 'browser' doesn't contain a valid alias configuration /usr/src/app/node_modules/tweetnacl.js
doesn't exist .json Field 'browser' doesn't contain a valid alias configuration
/usr/src/app/node_modules/tweetnacl.json doesn't exist as directory /usr/src/app/node_modules/tweetnacl
doesn't exist [/usr/src/app/node_modules/tweetnacl] [/usr/src/app/node_modules/tweetnacl.ts]
[/usr/src/app/node_modules/tweetnacl.js] [/usr/src/app/node_modules/tweetnacl.json]
[/usr/src/app/node_modules/tweetnacl] # ./node_modules/sshpk/lib/ed-compat.js 16:9-29 64:9-29 #
./node_modules/sshpk/lib/key.js # ./node_modules/sshpk/lib/index.js #
./node_modules/http-signature/lib/signer.js # ./node_modules/http-signature/lib/index.js #
./node_modules/request/request.js # ./node_modules/request/index.js #
./node_modules/woocommerce-api/index.js # ./src/pages/home/home.ts # ./src/app/app.module.ts #
./src/app/main.ts
Error: ./node_modules/sshpk/lib/formats/ssh-private.js
Module not found: Error: Can't resolve 'bcrypt-pbkdf' in '/usr/src/app/node_modules/sshpk/lib/formats'
resolve 'bcrypt-pbkdf' in '/usr/src/app/node_modules/sshpk/lib/formats'
Parsed request is a module
using description file: /usr/src/app/node_modules/sshpk/package.json (relative path: ./lib/formats)
Field 'browser' doesn't contain a valid alias configuration
after using description file: /usr/src/app/node_modules/sshpk/package.json (relative path: ./lib/formats)
resolve as module
looking for modules in /usr/src/app/node_modules
using description file: /usr/src/app/package.json (relative path: ./node_modules)
Field 'browser' doesn't contain a valid alias configuration
after using description file: /usr/src/app/package.json (relative path: ./node_modules)
using description file: /usr/src/app/package.json (relative path: ./node_modules/bcrypt-pbkdf)
no extension
Field 'browser' doesn't contain a valid alias configuration
/usr/src/app/node_modules/bcrypt-pbkdf doesn't exist
.ts
Field 'browser' doesn't contain a valid alias configuration
/usr/src/app/node_modules/bcrypt-pbkdf.ts doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
/usr/src/app/node_modules/bcrypt-pbkdf.js doesn't exist
.json
Field 'browser' doesn't contain a valid alias configuration
/usr/src/app/node_modules/bcrypt-pbkdf.json doesn't exist
as directory
/usr/src/app/node_modules/bcrypt-pbkdf doesn't exist
[/usr/src/app/node_modules/bcrypt-pbkdf]
[/usr/src/app/node_modules/bcrypt-pbkdf.ts]
[/usr/src/app/node_modules/bcrypt-pbkdf.js]
[/usr/src/app/node_modules/bcrypt-pbkdf.json]
[/usr/src/app/node_modules/bcrypt-pbkdf]
# ./node_modules/sshpk/lib/formats/ssh-private.js 69:12-35 190:12-35
# ./node_modules/sshpk/lib/key.js
# ./node_modules/sshpk/lib/index.js
# ./node_modules/http-signature/lib/signer.js
# ./node_modules/http-signature/lib/index.js
# ./node_modules/request/request.js
# ./node_modules/request/index.js
# ./node_modules/woocommerce-api/index.js
# ./src/pages/home/home.ts
# ./src/app/app.module.ts
# ./src/app/main.ts,./node_modules/sshpk/lib/dhe.js
Module not found: Error: Can't resolve 'ecc-jsbn' in '/usr/src/app/node_modules/sshpk/lib'
resolve 'ecc-jsbn' in '/usr/src/app/node_modules/sshpk/lib'
Parsed request is a module
using description file: /usr/src/app/node_modules/sshpk/package.json (relative path: ./lib)
Field 'browser' doesn't contain a valid alias configuration
after using description file: /usr/src/app/node_modules/sshpk/package.json (relative path: ./lib)
resolve as module
looking for modules in /usr/src/app/node_modules
using description file: /usr/src/app/package.json (relative path: ./node_modules)
Field 'browser' doesn't contain a valid alias configuration
after using description file: /usr/src/app/package.json (relative path: ./node_modules)
using description file: /usr/src/app/package.json (relative path: ./node_modules/ecc-jsbn)
no extension
Field 'browser' doesn't contain a valid alias configuration
/usr/src/app/node_modules/ecc-jsbn doesn't exist
.ts
Field 'browser' doesn't contain a valid alias configuration
/usr/src/app/node_modules/ecc-jsbn.ts doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
/usr/src/app/node_modules/ecc-jsbn.js doesn't exist
.json
Field 'browser' doesn't contain a valid alias configuration
/usr/src/app/node_modules/ecc-jsbn.json doesn't exist
as directory
/usr/src/app/node_modules/ecc-jsbn doesn't exist
...
Module not found: Error: Can't resolve 'tweetnacl' in '/usr/src/app/node_modules/sshpk/lib'
resolve 'tweetnacl' in '/usr/src/app/node_modules/sshpk/lib'
Parsed request is a module
using description file: /usr/src/app/node_modules/sshpk/package.json (relative path: ./lib)
Field 'browser' doesn't contain a valid alias configuration
after using description file: /usr/src/app/node_modules/sshpk/package.json (relative path: ./lib)
resolve as module
looking for modules in /usr/src/app/node_modules
using description file: /usr/src/app/package.json (relative path: ./node_modules)
Field 'browser' doesn't contain a valid alias configuration
after using description file: /usr/src/app/package.json (relative path: ./node_modules)
using description file: /usr/src/app/package.json (relative path: ./node_modules/tweetnacl)
no extension
Field 'browser' doesn't contain a valid alias configuration
/usr/src/app/node_modules/tweetnacl doesn't exist
.ts
Field 'browser' doesn't contain a valid alias configuration
/usr/src/app/node_modules/tweetnacl.ts doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
/usr/src/app/node_modules/tweetnacl.js doesn't exist
.json
Field 'browser' doesn't contain a valid alias configuration
/usr/src/app/node_modules/tweetnacl.json doesn't exist
as directory
/usr/src/app/node_modules/tweetnacl doesn't exist
[/usr/src/app/node_modules/tweetnacl]
[/usr/src/app/node_modules/tweetnacl.ts]
[/usr/src/app/node_modules/tweetnacl.js]
[/usr/src/app/node_modules/tweetnacl.json]
[/usr/src/app/node_modules/tweetnacl]
# ./node_modules/sshpk/lib/ed-compat.js 16:9-29 64:9-29
# ./node_modules/sshpk/lib/key.js
# ./node_modules/sshpk/lib/index.js
# ./node_modules/http-signature/lib/signer.js
# ./node_modules/http-signature/lib/index.js
# ./node_modules/request/request.js
# ./node_modules/request/index.js
# ./node_modules/woocommerce-api/index.js
# ./src/pages/home/home.ts
# ./src/app/app.module.ts
# ./src/app/main.ts
at new BuildError (/usr/src/app/node_modules/#ionic/app-scripts/dist/util/errors.js:16:28)
at callback (/usr/src/app/node_modules/#ionic/app-scripts/dist/webpack.js:121:28)
at emitRecords.err (/usr/src/app/node_modules/webpack/lib/Compiler.js:269:13)
at Compiler.emitRecords (/usr/src/app/node_modules/webpack/lib/Compiler.js:375:38)
at emitAssets.err (/usr/src/app/node_modules/webpack/lib/Compiler.js:262:10)
at applyPluginsAsyncSeries1.err (/usr/src/app/node_modules/webpack/lib/Compiler.js:368:12)
at next (/usr/src/app/node_modules/tapable/lib/Tapable.js:218:11)
at Compiler.compiler.plugin (/usr/src/app/node_modules/webpack/lib/performance/SizeLimitsPlugin.js:99:4)
at Compiler.applyPluginsAsyncSeries1 (/usr/src/app/node_modules/tapable/lib/Tapable.js:222:13)
at Compiler.afterEmit (/usr/src/app/node_modules/webpack/lib/Compiler.js:365:9)
npm info lifecycle wootest#0.0.1~build: Failed to exec build script
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! wootest#0.0.1 build: `ionic-app-scripts build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the wootest#0.0.1 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/gitlab-runner/.npm/_logs/2017-12-19T16_29_36_644Z-debug.log
npm run build failed
Running after script...
$ run "clean-up"
Running Stage clean-up for Job: 5180108
ERROR: Job failed: exit status 1
TermsPrivacy Policy© 2017 Drifty Co. v0.0.434
IonicDocsBlogHelp & SupportStatus
I do not understand what may be happening, I've been testing for days until I found out that it was for woocommerce-api, but I do not know what else to do, I hope you help me with a solution, thanks
Is the build successfully running on your local machine.
try adding packages to package.json

Error:Expected letter.. while running play multi project

I was trying to run a play sbt multi-project using command 'sbt "project subproject" ~run'
But received following error:
`Expected letter
[error] Expected symbol
[error] Expected '!'
[error] Expected '+'
[error] Expected '++'
[error] Expected 'debug'
[error] Expected 'info'
[error] Expected 'warn'
[error] Expected 'error'
[error] Expected ';'
[error] Expected end of input.
[error] Expected '--'
[error] Expected 'show'
[error] Expected 'all'
[error] Expected '*'
[error] Expected '{'
[error] Expected project ID
[error] Expected configuration
[error] Expected key
[error] Expected '-'
[error] “
[error] ^
`
I think what you want is sbt "~subproject/run"
I had this same problem and, it was because I was running sbt . (with a trailing period).
Just using sbt or sbt [command] solved the problem for me

CMake for PostgreSQL in CLion 1.2 Windows 10

Unable to build C++ file with PostgreSQL in CLion 1.2 EAP.
CMake file:
cmake_minimum_required(VERSION 3.3)
project(PostgreSQLTest)
find_package(PostgreSQL REQUIRED)
set(PostgreSQL_INCLUDE_DIRS, "C:\\Program Files\\PostgreSQL\\9.4\\include")
include_directories (${PostgreSQL_INCLUDE_DIRS})
set(SOURCES main.cpp)
add_executable(PostgreSQLTest ${SOURCES})
set(PostgreSQL_LIBRARIES, "C:\\Program Files\\PostgreSQL\\9.4\\lib")
target_link_libraries(PostgreSQLTest ${PostgreSQL_LIBRARIES})
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(SOURCE_FILES
CMakeLists.txt
main.cpp)
Build messages:
"C:\Program Files (x86)\JetBrains\CLion 142.4859.12\bin\cmake\bin\cmake.exe" --build C:\Users\darin\.CLion12\system\cmake\generated\f846c544\f846c544\Debug --target PostgreSQLTest -- -j 8
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/darin/.CLion12/system/cmake/generated/f846c544/f846c544/Debug
[ 50%] Linking CXX executable PostgreSQLTest.exe
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: cannot find -llibpq
collect2.exe: error: ld returned 1 exit status
mingw32-make.exe[3]: *** [PostgreSQLTest.exe] Error 1
CMakeFiles\PostgreSQLTest.dir\build.make:96: recipe for target 'PostgreSQLTest.exe' failed
mingw32-make.exe[2]: *** [CMakeFiles/PostgreSQLTest.dir/all] Error 2
CMakeFiles\Makefile2:66: recipe for target 'CMakeFiles/PostgreSQLTest.dir/all' failed
CMakeFiles\Makefile2:78: recipe for target 'CMakeFiles/PostgreSQLTest.dir/rule' failed
Makefile:117: recipe for target 'PostgreSQLTest' failed
mingw32-make.exe[1]: *** [CMakeFiles/PostgreSQLTest.dir/rule] Error 2
mingw32-make.exe: *** [PostgreSQLTest] Error 2
Does anyone have experience with this build?
EDIT AFTER APPLYING CHANGES FROM COMMENT 2015-09-21
cmake_minimum_required(VERSION 3.3)
project(PostgreSQLTest)
set(PostgreSQL_ROOT, "C:\\Program Files\\PostgreSQL\\9.4")
find_package(PostgreSQL REQUIRED)
set(SOURCES main.cpp)
add_executable(PostgreSQLTest ${SOURCES})
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(SOURCE_FILES
CMakeLists.txt
main.cpp)
Errors:
"C:\Program Files (x86)\JetBrains\CLion 142.4859.12\bin\cmake\bin\cmake.exe" --build C:\Users\darin\.CLion12\system\cmake\generated\f846c544\f846c544\Debug --target PostgreSQLTest -- -j 8
[ 50%] Building CXX object CMakeFiles/PostgreSQLTest.dir/main.cpp.obj
C:\Users\darin\ClionProjects\PostgreSQLTest\main.cpp:2:22: fatal error: libpq-fe.h: No such file or directory
#include "libpq-fe.h"
^
compilation terminated.
mingw32-make.exe[3]: *** [CMakeFiles/PostgreSQLTest.dir/main.cpp.obj] Error 1
CMakeFiles\PostgreSQLTest.dir\build.make:61: recipe for target 'CMakeFiles/PostgreSQLTest.dir/main.cpp.obj' failed
CMakeFiles\Makefile2:66: recipe for target 'CMakeFiles/PostgreSQLTest.dir/all' failed
mingw32-make.exe[2]: *** [CMakeFiles/PostgreSQLTest.dir/all] Error 2
CMakeFiles\Makefile2:78: recipe for target 'CMakeFiles/PostgreSQLTest.dir/rule' failed
mingw32-make.exe[1]: *** [CMakeFiles/PostgreSQLTest.dir/rule] Error 2
Makefile:117: recipe for target 'PostgreSQLTest' failed
mingw32-make.exe: *** [PostgreSQLTest] Error 2
I have confirmed that libpq-fh.h does exist in C:\Program Files\PostgreSQL\9.4\include, so there must still be something incorrect in my Cmake file that's preventing the building.
Am I missing a target_link_libraries() that's required to build?
EDIT 2 AFTER APPLYING RECOMMENDED CHANGES
cmake_minimum_required(VERSION 3.3)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
project(PostgreSQLTest)
set(PostgreSQL_ROOT "C:\\Program Files\\PostgreSQL\\9.4")
find_package(PostgreSQL REQUIRED)
set(SOURCES main.cpp)
add_executable(PostgreSQLTest ${SOURCES})
set(PostgreSQL_LIBRARIES "C:\\Program Files\\PostgreSQL\\9.4\\lib")
target_link_libraries(PostgreSQLTest ${PostgreSQL_LIBRARIES})
set(SOURCE_FILES
CMakeLists.txt
main.cpp)
ERRORS:
"C:\Program Files (x86)\JetBrains\CLion 142.4859.12\bin\cmake\bin\cmake.exe" --build C:\Users\darin\.CLion12\system\cmake\generated\f846c544\f846c544\Debug --target all -- -j 8
[ 50%] Building CXX object CMakeFiles/PostgreSQLTest.dir/main.cpp.obj
C:\Users\darin\ClionProjects\PostgreSQLTest\main.cpp:2:22: fatal error: libpq-fe.h: No such file or directory
#include "libpq-fe.h"
^
compilation terminated.
mingw32-make.exe[2]: *** [CMakeFiles/PostgreSQLTest.dir/main.cpp.obj] Error 1
mingw32-make.exe[1]: *** [CMakeFiles/PostgreSQLTest.dir/all] Error 2
mingw32-make.exe: *** [all] Error 2
CMakeFiles\PostgreSQLTest.dir\build.make:61: recipe for target 'CMakeFiles/PostgreSQLTest.dir/main.cpp.obj' failed
CMakeFiles\Makefile2:66: recipe for target 'CMakeFiles/PostgreSQLTest.dir/all' failed
Makefile:82: recipe for target 'all' failed
I made the recommended changes, tried several different orders for the compilation, and it's still failing.
Any ideas?
EDITS TO MAKE AFTER COMMENT ON 2015-10-05
cmake_minimum_required(VERSION 3.3)
project(PostgreSQLTest)
# For *modify* CMAKE_CXX_FLAGS, this should come after project() call.
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
# Next line is not required, without it given path will be checked too.
#set(PostgreSQL_ROOT "C:\\Program Files (x86)\\PostgreSQL\\9.4")
#set(PostgreSQL ROOT "C:\\MinGW\\compiledLibs\\psql\\postgresql-9.6devel\\tmp_install\\usr\\local\\pgsql")
set(PostgreSQL ROOT "C:\\MinGW\\msys\\1.0\\local\\pgsql")
find_package(PostgreSQL REQUIRED)
message("PostgreSQL_LIBRARY_DIRS: ${PostgreSQL_LIBRARY_DIRS}")
# Now variables PostgreSQL_INCLUDE_DIRS, PostgreSQL_LIBRARIES are set. Just use them.
include_directories (${PostgreSQL_INCLUDE_DIRS})
link_directories(${PostgreSQL_LIBRARY_DIRS})
set(SOURCES main.cpp)
add_executable(PostgreSQLTest ${SOURCES})
target_link_libraries(PostgreSQLTest ${PostgreSQL_LIBRARIES})
set(SOURCE_FILES
CMakeLists.txt
main.cpp)
I don't find anything that indicates the posgres library used.
"C:\Program Files (x86)\JetBrains\CLion 142.4859.12\bin\cmake\bin\cmake.exe" --build C:\Users\darin\.CLion12\system\cmake\generated\f846c544\f846c544\Debug --target all -- -j 8
[ 50%] Building CXX object CMakeFiles/PostgreSQLTest.dir/main.cpp.obj
[100%] Linking CXX executable PostgreSQLTest.exe
CMakeFiles\PostgreSQLTest.dir/objects.a(main.cpp.obj): In function `Z9CloseConnP7pg_conn':
C:/Users/darin/ClionProjects/PostgreSQLTest/main.cpp:9: undefined reference to `PQfinish'
CMakeFiles\PostgreSQLTest.dir/objects.a(main.cpp.obj): In function `Z9ConnectDBv':
C:/Users/darin/ClionProjects/PostgreSQLTest/main.cpp:19: undefined reference to `PQconnectdb'
C:/Users/darin/ClionProjects/PostgreSQLTest/main.cpp:22: undefined reference to `PQstatus'
CMakeFiles\PostgreSQLTest.dir/objects.a(main.cpp.obj): In function `Z19CreateEmployeeTableP7pg_conn':
C:/Users/darin/ClionProjects/PostgreSQLTest/main.cpp:39: undefined reference to `PQexec'
C:/Users/darin/ClionProjects/PostgreSQLTest/main.cpp:41: undefined reference to `PQresultStatus'
C:/Users/darin/ClionProjects/PostgreSQLTest/main.cpp:44: undefined reference to `PQclear'
C:/Users/darin/ClionProjects/PostgreSQLTest/main.cpp:51: undefined reference to `PQclear'
CMakeFiles\PostgreSQLTest.dir/objects.a(main.cpp.obj): In function `Z17InsertEmployeeRecP7pg_connPKcS2_':
C:/Users/darin/ClionProjects/PostgreSQLTest/main.cpp:66: undefined reference to `PQexec'
C:/Users/darin/ClionProjects/PostgreSQLTest/main.cpp:68: undefined reference to `PQresultStatus'
C:/Users/darin/ClionProjects/PostgreSQLTest/main.cpp:71: undefined reference to `PQclear'
C:/Users/darin/ClionProjects/PostgreSQLTest/main.cpp:78: undefined reference to `PQclear'
CMakeFiles\PostgreSQLTest.dir/objects.a(main.cpp.obj): In function `Z16FetchEmployeeRecP7pg_conn':
C:/Users/darin/ClionProjects/PostgreSQLTest/main.cpp:88: undefined reference to `PQexec'
C:/Users/darin/ClionProjects/PostgreSQLTest/main.cpp:90: undefined reference to `PQresultStatus'
C:/Users/darin/ClionProjects/PostgreSQLTest/main.cpp:93: undefined reference to `PQclear'
C:/Users/darin/ClionProjects/PostgreSQLTest/main.cpp:98: undefined reference to `PQclear'
C:/Users/darin/ClionProjects/PostgreSQLTest/main.cpp:101: undefined reference to `PQexec'
C:/Users/darin/ClionProjects/PostgreSQLTest/main.cpp:102: undefined reference to `PQresultStatus'
C:/Users/darin/ClionProjects/PostgreSQLTest/main.cpp:105: undefined reference to `PQclear'
C:/Users/darin/ClionProjects/PostgreSQLTest/main.cpp:110: undefined reference to `PQclear'
C:/Users/darin/ClionProjects/PostgreSQLTest/main.cpp:112: undefined reference to `PQexec'
C:/Users/darin/ClionProjects/PostgreSQLTest/main.cpp:114: undefined reference to `PQresultStatus'
C:/Users/darin/ClionProjects/PostgreSQLTest/main.cpp:117: undefined reference to `PQclear'
C:/Users/darin/ClionProjects/PostgreSQLTest/main.cpp:122: undefined reference to `PQnfields'
C:/Users/darin/ClionProjects/PostgreSQLTest/main.cpp:128: undefined reference to `PQfname'
C:/Users/darin/ClionProjects/PostgreSQLTest/main.cpp:135: undefined reference to `PQgetvalue'
C:/Users/darin/ClionProjects/PostgreSQLTest/main.cpp:132: undefined reference to `PQntuples'
C:/Users/darin/ClionProjects/PostgreSQLTest/main.cpp:139: undefined reference to `PQclear'
C:/Users/darin/ClionProjects/PostgreSQLTest/main.cpp:142: undefined reference to `PQexec'
C:/Users/darin/ClionProjects/PostgreSQLTest/main.cpp:143: undefined reference to `PQclear'
C:/Users/darin/ClionProjects/PostgreSQLTest/main.cpp:146: undefined reference to `PQexec'
C:/Users/darin/ClionProjects/PostgreSQLTest/main.cpp:149: undefined reference to `PQclear'
CMakeFiles\PostgreSQLTest.dir/objects.a(main.cpp.obj): In function `Z20RemoveAllEmployeeRecP7pg_conn':
C:/Users/darin/ClionProjects/PostgreSQLTest/main.cpp:156: undefined reference to `PQexec'
C:/Users/darin/ClionProjects/PostgreSQLTest/main.cpp:158: undefined reference to `PQresultStatus'
C:/Users/darin/ClionProjects/PostgreSQLTest/main.cpp:161: undefined reference to `PQclear'
C:/Users/darin/ClionProjects/PostgreSQLTest/main.cpp:168: undefined reference to `PQclear'
CMakeFiles\PostgreSQLTest.dir/objects.a(main.cpp.obj): In function `Z17DropEmployeeTableP7pg_conn':
C:/Users/darin/ClionProjects/PostgreSQLTest/main.cpp:175: undefined reference to `PQexec'
C:/Users/darin/ClionProjects/PostgreSQLTest/main.cpp:177: undefined reference to `PQresultStatus'
C:/Users/darin/ClionProjects/PostgreSQLTest/main.cpp:180: undefined reference to `PQclear'
C:/Users/darin/ClionProjects/PostgreSQLTest/main.cpp:187: undefined reference to `PQclear'
collect2.exe: error: ld returned 1 exit status
CMakeFiles\PostgreSQLTest.dir\build.make:96: recipe for target 'PostgreSQLTest.exe' failed
CMakeFiles\Makefile2:66: recipe for target 'CMakeFiles/PostgreSQLTest.dir/all' failed
Makefile:82: recipe for target 'all' failed
mingw32-make.exe[2]: *** [PostgreSQLTest.exe] Error 1
mingw32-make.exe[1]: *** [CMakeFiles/PostgreSQLTest.dir/all] Error 2
mingw32-make.exe: *** [all] Error 2
Correct CMakeLists.txt:
cmake_minimum_required(VERSION 3.3)
project(PostgreSQLTest)
# For *modify* CMAKE_CXX_FLAGS, this should come after project() call.
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
# Next line is not required, without it given path will be checked too.
set(PostgreSQL_ROOT "C:\\Program Files\\PostgreSQL\\9.4")
find_package(PostgreSQL REQUIRED)
# Now variables PostgreSQL_INCLUDE_DIRS, PostgreSQL_LIBRARIES, PostgreSQL_LIBRARY_DIRS are set. Just use them.
include_directories (${PostgreSQL_INCLUDE_DIRS})
link_directories(${PostgreSQL_LIBRARY_DIRS})
set(SOURCES main.cpp)
add_executable(PostgreSQLTest ${SOURCES})
target_link_libraries(PostgreSQLTest ${PostgreSQL_LIBRARIES})
set(SOURCE_FILES
CMakeLists.txt
main.cpp)
Main(but not solely) purpose of find_package(PostgreSQL) call is to set variables PostgreSQL_INCLUDE_DIRS, PostgreSQL_LIBRARIES, PostgreSQL_LIBRARY_DIRS (and some others). No needs to set these variables manually afterwards, just use them.
just use this, tested on mac.
cmake_minimum_required(VERSION 3.6)
project(postgres)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
add_custom_target(postgres COMMAND make -C ${postgres_SOURCE_DIR})
cmake done

Vaadin Compile widgets (addons) in NetBeans

I'm following the provided instructions but is not working. I'm getting this error:
INFO: Widgetsets found from classpath:
com.vaadin.terminal.gwt.DefaultWidgetSet in jar:file:Z:/vaadin/vaadin-6.7.1.jar!/
org.vaadin.peter.contextmenu.ContextmenuWidgetset in jar:file:Z:/NetBeans/Xinco/2.01.xx/XincoLibs/ContextMenu3.1.0.jar!/
getAvailableWidgetSets
INFO: Search took 12ms
Exception in thread "main" java.io.IOException: The filename, directory name, or volume label syntax is incorrect
at java.io.WinNTFileSystem.canonicalize0(Native Method)
at java.io.Win32FileSystem.canonicalize(Win32FileSystem.java:414)
at java.io.File.getCanonicalPath(File.java:589)
at com.vaadin.terminal.gwt.widgetsetutils.WidgetSetBuilder.updateWidgetSet(WidgetSetBuilder.java:79)
at com.vaadin.terminal.gwt.widgetsetutils.WidgetSetBuilder.main(WidgetSetBuilder.java:52)
I found a related bug but it's been reported for a long time without fix yet. Any ideas besides checking/modifying the code myself?
Edit: Looking closer at the output I noticed this errors:
Compiling module org.vaadin.peter.contextmenu.ContextmenuWidgetset
Validating newly compiled units
[ERROR] Errors in 'file:/Z:/NetBeans/Xinco/3.00.xx/XincoLibs/Vaadin%20Addons/ContextMenu3-1-0/org/vaadin/peter/contextmenu/client/ui/VContextMenu.java'
[ERROR] Line 1: The declared package "org.vaadin.peter.contextmenu.client.ui" does not match the expected package "ContextMenu3-1-0.org.vaadin.peter.contextmenu.client.ui"
[ERROR] Line 5: The import org.vaadin.peter.contextmenu.client cannot be resolved
[ERROR] Line 125: VMenuItem cannot be resolved to a type
[ERROR] Line 174: VMenuItem cannot be resolved to a type
[ERROR] Errors in 'file:/Z:/NetBeans/Xinco/3.00.xx/XincoLibs/Vaadin%20Addons/ContextMenu3-1-0/org/vaadin/peter/contextmenu/client/ui/VMenu.java'
[ERROR] Line 1: The declared package "org.vaadin.peter.contextmenu.client.ui" does not match the expected package "ContextMenu3-1-0.org.vaadin.peter.contextmenu.client.ui"
[ERROR] Line 219: The method itemClicked(VMenuItem) from the type VContextMenu refers to the missing type VMenuItem
[ERROR] Line 229: The method itemClicked(VMenuItem) from the type VContextMenu refers to the missing type VMenuItem
[ERROR] Line 239: The method itemClicked(VMenuItem) from the type VContextMenu refers to the missing type VMenuItem
[ERROR] Errors in 'jar:file:/Z:/NetBeans/Xinco/3.00.xx/XincoLibs/gwt-user.jar!/com/google/gwt/editor/client/EditorDriver.java'
[ERROR] Line 20: The import javax.validation.ConstraintViolation cannot be resolved
[ERROR] Line 97: ConstraintViolation cannot be resolved to a type
[ERROR] Errors in 'jar:file:/Z:/NetBeans/Xinco/3.00.xx/XincoLibs/gwt-user.jar!/com/google/gwt/editor/client/impl/AbstractSimpleBeanEditorDriver.java'
[ERROR] Line 28: Name clash: The method setConstraintViolations(Iterable<ConstraintViolation<?>>) of type BaseEditorDriver<T,E> has the same erasure as setConstraintViolations(Iterable<ConstraintViolation<?>>) of type EditorDriver<T> but does not override it
[ERROR] Errors in 'jar:file:/Z:/NetBeans/Xinco/3.00.xx/XincoLibs/gwt-user.jar!/com/google/gwt/editor/client/impl/BaseEditorDriver.java'
[ERROR] Line 31: The import javax.validation.ConstraintViolation cannot be resolved
[ERROR] Line 67: ConstraintViolation cannot be resolved to a type
[ERROR] Errors in 'jar:file:/Z:/NetBeans/Xinco/3.00.xx/XincoLibs/gwt-user.jar!/com/google/gwt/editor/client/impl/SimpleViolation.java'
[ERROR] Line 25: The import javax.validation.ConstraintViolation cannot be resolved
[ERROR] Line 40: ConstraintViolation cannot be resolved to a type
[ERROR] Line 43: ConstraintViolation cannot be resolved to a type
[ERROR] Line 44: Missing code implementation in the compiler
[ERROR] Line 49: ConstraintViolation cannot be resolved to a type
[ERROR] Line 49: Missing code implementation in the compiler
[ERROR] Line 70: ConstraintViolation cannot be resolved to a type
[ERROR] Line 72: ConstraintViolation cannot be resolved to a type
[ERROR] Line 73: ConstraintViolation<?> cannot be resolved to a type
[ERROR] Line 77: ConstraintViolation<capture#2-of ?> cannot be resolved to a type
[ERROR] Line 81: ConstraintViolation<capture#3-of ?> cannot be resolved to a type
[ERROR] Line 89: ConstraintViolation<capture#4-of ?> cannot be resolved to a type
[ERROR] Line 93: ConstraintViolation<capture#5-of ?> cannot be resolved to a type
[ERROR] Line 98: ConstraintViolation cannot be resolved to a type
[ERROR] Errors in 'jar:file:/Z:/NetBeans/Xinco/3.00.xx/XincoLibs/gwt-user.jar!/com/google/gwt/editor/client/testing/MockSimpleBeanEditorDriver.java'
[ERROR] Line 26: The import javax.validation.ConstraintViolation cannot be resolved
[ERROR] Line 35: The type MockSimpleBeanEditorDriver<T,E> must implement the inherited abstract method EditorDriver<T>.setConstraintViolations(Iterable<ConstraintViolation<?>>)
[ERROR] Line 107: Name clash: The method setConstraintViolations(Iterable<ConstraintViolation<?>>) of type MockSimpleBeanEditorDriver<T,E> has the same erasure as setConstraintViolations(Iterable<ConstraintViolation<?>>) of type EditorDriver<T> but does not override it
[ERROR] Line 108: ConstraintViolation cannot be resolved to a type
[ERROR] Errors in 'jar:file:/Z:/NetBeans/Xinco/3.00.xx/XincoLibs/gwt-user.jar!/javax/validation/super/javax/validation/Configuration.java'
[ERROR] Line 93: TraversableResolver cannot be resolved to a type
[ERROR] Line 105: ConstraintValidatorFactory cannot be resolved to a type
[ERROR] Line 182: TraversableResolver cannot be resolved to a type
[ERROR] Line 182: No source code is available for type TraversableResolver; did you forget to inherit a required module?
[ERROR] Line 194: ConstraintValidatorFactory cannot be resolved to a type
[ERROR] Line 194: No source code is available for type ConstraintValidatorFactory; did you forget to inherit a required module?
[ERROR] Line 202: ValidatorFactory cannot be resolved to a type
[ERROR] Line 202: No source code is available for type ValidatorFactory; did you forget to inherit a required module?
[ERROR] Errors in 'jar:file:/Z:/NetBeans/Xinco/3.00.xx/XincoLibs/gwt-user.jar!/javax/validation/ConstraintViolationException_CustomFieldSerializer.java'
[ERROR] Line 30: ConstraintViolationException cannot be resolved to a type
[ERROR] Line 34: ConstraintViolationException cannot be resolved to a type
[ERROR] Line 34: No source code is available for type ConstraintViolationException; did you forget to inherit a required module?
[ERROR] Line 39: ConstraintViolation cannot be resolved to a type
[ERROR] Line 39: ConstraintViolation cannot be resolved to a type
[ERROR] Line 40: ConstraintViolationException cannot be resolved to a type
[ERROR] Line 44: ConstraintViolationException cannot be resolved to a type
[ERROR] Errors in 'jar:file:/Z:/NetBeans/Xinco/3.00.xx/XincoLibs/gwt-user.jar!/javax/validation/super/javax/validation/MessageInterpolator.java'
[ERROR] Line 21: The import javax.validation.metadata cannot be resolved
[ERROR] Line 66: ConstraintDescriptor cannot be resolved to a type
[ERROR] Errors in 'jar:file:/Z:/NetBeans/Xinco/3.00.xx/XincoLibs/gwt-user.jar!/javax/validation/super/javax/validation/constraints/Pattern.java'
[ERROR] Line 30: The import javax.validation.Constraint cannot be resolved
[ERROR] Line 31: The import javax.validation.Payload cannot be resolved
[ERROR] Line 49: Constraint cannot be resolved to a type
[ERROR] Line 49: The attribute validatedBy is undefined for the annotation type Constraint
[ERROR] Line 75: Payload cannot be resolved to a type
[ERROR] Errors in 'jar:file:/Z:/NetBeans/Xinco/3.00.xx/XincoLibs/gwt-user.jar!/javax/validation/super/javax/validation/spi/ConfigurationState.java'
[ERROR] Line 22: The import javax.validation.ConstraintValidatorFactory cannot be resolved
[ERROR] Line 24: The import javax.validation.TraversableResolver cannot be resolved
[ERROR] Line 93: ConstraintValidatorFactory cannot be resolved to a type
[ERROR] Line 107: TraversableResolver cannot be resolved to a type
I found this post about this issue pointing out to be a library mismatch but I'm using jars from the Vaadin SCM for the correct release: https://vaadin.com/forum/-/message_boards/view_message/384826
Issue finally fixed, hopefully that does the trick. After that had to add the following jars to the project so it could be compiled:
validation-api-1.0.0.GA.jar
validation-api-1.0.0.GA-sources.jar