sitemule / noxDB

Not only XML. SQL,JSON and XML made easy for IBM i
MIT License
41 stars 20 forks source link

Not Able to compile Samples for NoxDB with gmake #24

Closed ITMentalist closed 3 years ago

ITMentalist commented 4 years ago

Hi Niels,

I am getting the following error when trying to compile with gmake:

CPD0011: Qualifier missing from qualified name 'NOXDB '. CPF0001: Error found on *N command. gmake: *** [makefile:12: compile] Error 1

fill screenshot as below: image

Any noxdb compiles as per normal,

Any help will greatly be appreciated to troubleshoot further.

Regards Marius

BrianGarland commented 4 years ago

Not Niels, but I have some good experience with the project.

I am pretty sure you have to pass in the source file name you want to compile.
i.e. gmake jsonsql20.rpgle

Although when I try that I get "Nothing to be done for ..."

ITMentalist commented 4 years ago

Hi Brian,

Thank you for the feedback. I have also tried the same as you suggested, no luck.

I can manually compile it on the outside by native commands though.

ITMentalist commented 4 years ago

I think I am going to close this as an issue.

NielsLiisberg commented 4 years ago

We are actually moving the examples into a more up-to-date state and right now we are using the vsCode compile feature thats sendt the OBJ / LIB and streamfile to the make procedure. So there is an issue - and we are working on it !!

ITMentalist commented 4 years ago

Thanks Niels.

Looking forward to it.

NielsLiisberg commented 3 years ago

Gents;

Now the compile of examples works smoothly: Notice the name of the source where the first part up-until the first dot will be the object name. Next part is just text and is omitted. Finally, the extension that controls which compiler kicks in.

Compile current file ssh -t myIBMi 'PATH=/QOpenSys/pkgs/bin:$PATH;cd /prj/noxDB/;gmake current SRC=${fileBasenameNoExtension}'

Compile Service program noxDB ssh myIBMi 'PATH=/QOpenSys/pkgs/bin:$PATH;cd /prj/noxDB/;gmake all

Compile Test modules for noxDB ssh myIBMi 'PATH=/QOpenSys/pkgs/bin:$PATH;cd /prj/noxDB/test/;gmake

Compile current example file ssh -t myIBMi 'PATH=/QOpenSys/pkgs/bin:$PATH;cd /prj/noxDB/examples/;gmake compile SRC=${fileBasename} OBJ=${fileBasenameNoExtension