Italian Problemi con l'avvio del server per b4i

ken87

Active Member
Licensed User
Longtime User
Giorno,
questo errore da cosa è causato?

B4X:
java.io.IOException: Cannot run program "openssl" (in directory "D:\key"): CreateProcess error=2, Impossibile trovare il file specificato

Non sono ancora riuscito a capire cosa devo fare per risolverlo.
L'ho avviato con prompt dos in modalità amministratore il seguente comando

B4X:
D:\>java -jar B4iBuildServer.jar

Il file è in d:

riporto intero log:
B4X:
D:\>java -jar B4iBuildServer.jar
Build server version: 2.5
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2019-10-19 10:07:04.156:INFO::main: Logging initialized @122ms
Loading default configuration file.
AppPath=D:\
Creating key for: 192.168.56.1
shellutils._vvvvvvv6 (java line: 112)
java.io.IOException: Cannot run program "openssl" (in directory "D:\key"): CreateProcess error=2, Impossibile trovare il file specificato
        at java.lang.ProcessBuilder.start(Unknown Source)
        at java.lang.Runtime.exec(Unknown Source)
        at org.apache.commons.exec.launcher.Java13CommandLauncher.exec(Java13CommandLauncher.java:58)
        at org.apache.commons.exec.DefaultExecutor.launch(DefaultExecutor.java:254)
        at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:319)
        at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160)
        at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:147)
        at anywheresoftware.b4j.objects.Shell.RunSynchronous(Shell.java:126)
        at b4j.example.shellutils._vvvvvvv6(shellutils.java:112)
        at b4j.example.shellutils._vvvvvvv5(shellutils.java:98)
        at b4j.example.shellutils._vvvvvvv4(shellutils.java:91)
        at b4j.example.main._vvvvv0(main.java:230)
        at b4j.example.main._appstart(main.java:103)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at anywheresoftware.b4a.BA.raiseEvent2(BA.java:93)
        at anywheresoftware.b4a.BA.raiseEvent(BA.java:84)
        at b4j.example.main.main(main.java:29)
Caused by: java.io.IOException: CreateProcess error=2, Impossibile trovare il file specificato
        at java.lang.ProcessImpl.create(Native Method)
        at java.lang.ProcessImpl.<init>(Unknown Source)
        at java.lang.ProcessImpl.start(Unknown Source)
        ... 20 more


D:\>

Allego la foto dove ci sono elencati i file presenti nella cartella key, e anche il tentativo di esecuzione del server



Grazie mille
 

Attachments

  • key.jpg
    key.jpg
    49.6 KB · Views: 212
  • errore 1.jpg
    errore 1.jpg
    171.7 KB · Views: 222

ken87

Active Member
Licensed User
Longtime User
Ciao,
ho provato ad avviare il server nella macchina emulata mac:

ed ottenuto questa risposta:

B4X:
marys-Mac:Desktop mary$ java -jar B4iBuildServer.jar

Build server version: 2.5

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

2019-10-19 12:03:58.451:INFO::main: Logging initialized @837ms

Loading default configuration file.

AppPath=/Users/mary/Desktop

Creating key for: 192.168.92.128

2019-10-19 12:04:04.508:INFO:oejs.Server:main: jetty-9.3.z-SNAPSHOT

2019-10-19 12:04:04.598:INFO:oejsh.ContextHandler:main: Started o.e.j.s.ServletContextHandler@7a187f14{/,file:///Users/mary/Desktop/www,AVAILABLE}

2019-10-19 12:04:04.605:INFO:oejs.AbstractNCSARequestLog:main: Opened /Users/mary/Desktop/logs/b4j-2019_10_19.request.log

2019-10-19 12:04:04.726:INFO:oejs.ServerConnector:main: Started ServerConnector@78ac1102{HTTP/1.1,[http/1.1]}{0.0.0.0:51041}

2019-10-19 12:04:05.080:INFO:oejus.SslContextFactory:main: x509=X509@564718df(jetty,h=[192.168.92.128],w=[]) for SslContextFactory@51b7e5df(file:///Users/mary/Desktop/key/key.jks,null)

2019-10-19 12:04:05.081:INFO:oejus.SslContextFactory:main: x509=X509@18a70f16(rootca,h=[],w=[]) for SslContextFactory@51b7e5df(file:///Users/mary/Desktop/key/key.jks,null)

2019-10-19 12:04:05.398:INFO:oejs.ServerConnector:main: Started ServerConnector@3c6ea301{SSL,[ssl, http/1.1]}{0.0.0.0:51042}

2019-10-19 12:04:05.403:INFO:oejs.Server:main: Started @7794ms

Build server is ready

https://192.168.92.128:51042

http://192.168.92.128:51041

Build server version: 2.5

Ho configurato il server in b4i in questo modo

B4X:
b4i_default
192.168.92.128
51042

Se compilo mi da il seguente errore:

B4X:
B4i version: 2.50
Parsing code.    (0.00s)
Compiling code.    (0.04s)
Compiling layouts code.    (0.00s)
Compiling debugger engine code.    (0.60s)
Building Xcode project    (0.03s)
Sending data to remote compiler.    Error
Error: xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools.

Se clicco su indirizzo da firefox ho questo messaggio
B4X:
No build is currently available. Refresh the page if you have already compiled the project.


Click here to refresh the page


Penso che resti da installare il brige nel emulatore giusto?
In che modo devo procedere?
Grazie mille
 

ken87

Active Member
Licensed User
Longtime User
Nel emulatore vwmare ho installato Xcode ho avviato emulatore
Iphone i 7
se provo indirizzo del emu telefono ottengo
B4X:
No build is currently available. Refresh the page if you have already compiled the project.


Click here to refresh the page
Indirizzo inserito è

B4X:
192.168.92.128:51041
Però se compilo mi va in errore
B4X:
B4i version: 2.50
Parsing code.    (0.00s)
Compiling code.    (0.03s)
Compiling layouts code.    (0.01s)
Compiling debugger engine code.    (0.61s)
Building Xcode project    (0.03s)
Sending data to remote compiler.    Error
Error: xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

unica cosa che emulatore tenta con la porta

B4X:
51041
sto pensando che sia un problema della versione xcode ultima non è compatibile con con mac os 10.12
ho dovuto installare una vecchia versione di Xcode
Potete aiutarmi?
 

Sagenut

Expert
Licensed User
Longtime User
Hai configurato il server con la porta 51042...... Perché dopo usi la 51041?
Sinceramente è passato molto tempo e non ricordo come avevo fatto, però funzionava la compilazione e l'invio all'emulatore.
La delusione, almeno mia e del mio tentativo, erano le prestazioni dopo.
 

ken87

Active Member
Licensed User
Longtime User
Ciao,
Infatti non ho capito la differenza delle porte.
Io penso che un problema sia la versione di Xcode.
Grazie per ora
 

ken87

Active Member
Licensed User
Longtime User
Ciao
Tra altro non riesco a usare una risoluzione decente nell'emulatore
anche con tools Vmware da problemi si vede bene e poi ingrandisce tutti gli elementi

Se tento di compilare il server dove c'e macos risponde così
B4X:
20:06:22| Compilation time: 214, b4i_default, queue: 0, success: false
success: true, 1
20:22:54| Compilation time: 2655, b4i_default, queue: 0, success: false
success: true, 1
20:25:19| Compilation time: 3129, b4i_default, queue: 0, success: false
success: true, 1
20:26:11| Compilation time: 1372, b4i_default, queue: 0, success: false

Una cosa che stavo vedendo che bisogna registrare un certificato ma non ho capito in che modo
Grazie
 
Last edited:

ken87

Active Member
Licensed User
Longtime User
Ciao ,
Ho provato a fare il test del server e ricevo queste info che allego
Penso che semplicemente non vede xcode anche se l'ho installato
 

Attachments

  • test.jpg
    test.jpg
    52.7 KB · Views: 215

Sagenut

Expert
Licensed User
Longtime User
Per la risoluzione ricordo che c'era una patch o un file di testo da modificare.
È stata la parte che mi aveva fatto dannare di più.
 

ken87

Active Member
Licensed User
Longtime User
Ciao,
ho risolto con la grafica grazie a un comando mandato col terminale:
B4X:
sudo defaults write /Library/Preferences/com.apple.windowserver DisplayResolutionEnabled -bool NO

Ho copiato xcode 9.0 sulla cartella delepoper

Ho usato un altro comando..
B4X:
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

Ora il server tenta di compilare ma ho il seguente errore:

B4X:
B4i version: 2.50
Parsing code.    (0.00s)
Compiling code.    (0.04s)
Compiling layouts code.    (0.00s)
Compiling debugger engine code.    (0.57s)
Building Xcode project    (0.04s)
Sending data to remote compiler.    Error
Out: Build settings from command line:
    ARCHS = i386
    CODE_SIGNING_REQUIRED = NO
    CONFIGURATION_BUILD_DIR = /Users/mary/Desktop/UploadedProjects/<user id>/Payload
    PRODUCT_NAME = B4i Example
    SDKROOT = iphonesimulator10.3

=== BUILD TARGET B4iProject OF PROJECT B4iProject WITH CONFIGURATION Release ===

Check dependencies

Create product structure
/bin/mkdir -p /Users/mary/Desktop/UploadedProjects/<user id>/Payload/B4i\ Example.app

ProcessInfoPlistFile Payload/B4i\ Example.app/Info.plist B4iProject/B4iProject-Info.plist
    cd /Users/mary/Desktop/UploadedProjects/<user id>
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    builtin-infoPlistUtility /Users/mary/Desktop/UploadedProjects/<user id>/B4iProject/B4iProject-Info.plist -genpkginfo /Users/mary/Desktop/UploadedProjects/<user id>/Payload/B4i\ Example.app/PkgInfo -expandbuildsettings -format binary -platform iphonesimulator -o /Users/mary/Desktop/UploadedProjects/<user id>/Payload/B4i\ Example.app/Info.plist

CompileC build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/b4i_main.o B4iProject/b4i_main.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/mary/Desktop/UploadedProjects/<user id>
    export LANG=en_US.US-ASCII
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch i386 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -gmodules -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/var/folders/j8/3zvg7qw56sj36c3yqs11kjfc0000gn/C/org.llvm.clang/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DNS_BLOCK_ASSERTIONS=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.3.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=7.0 -fvisibility=hidden -Wno-sign-conversion -Wno-infinite-recursion -fobjc-abi-version=2 -fobjc-legacy-dispatch -iquote /Users/mary/Desktop/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/B4i\ Example-generated-files.hmap -I/Users/mary/Desktop/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/B4i\ Example-own-target-headers.hmap -I/Users/mary/Desktop/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/B4i\ Example-all-target-headers.hmap -iquote /Users/mary/Desktop/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/B4i\ Example-project-headers.hmap -I/Users/mary/Desktop/UploadedProjects/<user id>/Payload/include -I/Users/mary/Desktop/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/DerivedSources/i386 -I/Users/mary/Desktop/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/DerivedSources -F/Users/mary/Desktop/UploadedProjects/<user id>/Payload -F../../Libs -MMD -MT dependencies -MF /Users/mary/Desktop/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/b4i_main.d --serialize-diagnostics /Users/mary/Desktop/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/b4i_main.dia -c /Users/mary/Desktop/UploadedProjects/<user id>/B4iProject/b4i_main.m -o /Users/mary/Desktop/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/b4i_main.o
In file included from /Users/mary/Desktop/UploadedProjects/<user id>/B4iProject/b4i_main.m:2:
/Users/mary/Desktop/UploadedProjects/<user id>/B4iProject/b4i_main.h:1:9: fatal error: 'iCore.h' file not found
#import "iCore.h"
        ^
1 error generated.

CompileC build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/main.o B4iProject/main.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/mary/Desktop/UploadedProjects/<user id>
    export LANG=en_US.US-ASCII
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch i386 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -gmodules -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/var/folders/j8/3zvg7qw56sj36c3yqs11kjfc0000gn/C/org.llvm.clang/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DNS_BLOCK_ASSERTIONS=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.3.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=7.0 -fvisibility=hidden -Wno-sign-conversion -Wno-infinite-recursion -fobjc-abi-version=2 -fobjc-legacy-dispatch -iquote /Users/mary/Desktop/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/B4i\ Example-generated-files.hmap -I/Users/mary/Desktop/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/B4i\ Example-own-target-headers.hmap -I/Users/mary/Desktop/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/B4i\ Example-all-target-headers.hmap -iquote /Users/mary/Desktop/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/B4i\ Example-project-headers.hmap -I/Users/mary/Desktop/UploadedProjects/<user id>/Payload/include -I/Users/mary/Desktop/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/DerivedSources/i386 -I/Users/mary/Desktop/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/DerivedSources -F/Users/mary/Desktop/UploadedProjects/<user id>/Payload -F../../Libs -MMD -MT dependencies -MF /Users/mary/Desktop/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/main.d --serialize-diagnostics /Users/mary/Desktop/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/main.dia -c /Users/mary/Desktop/UploadedProjects/<user id>/B4iProject/main.m -o /Users/mary/Desktop/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/main.o


Error: ** BUILD FAILED **


The following build commands failed:
    CompileC build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/b4i_main.o B4iProject/b4i_main.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

Sai da cosa dipende?
 

Sagenut

Expert
Licensed User
Longtime User
Purtroppo non sò aiutarti
 

ken87

Active Member
Licensed User
Longtime User
Il server l'ho messo nella cartella principale e anche nel desktop
Il messaggio è chiaro
B4X:
/Users/mary/UploadedProjects/<user id>/B4iProject/b4i_main.h:1:9: fatal error: 'iCore.h' file not found
#import "iCore.h"


Dove l'ho trovo il file iCore.h
 
Last edited:

Sagenut

Expert
Licensed User
Longtime User
Ottimo.
Fai sapere come và a livello di prestazioni l'emulatore.
 

ken87

Active Member
Licensed User
Longtime User
Per il momento va bene
Ho un Lenovo Y520..
Mac 0s 10.12
Xcode 9.0
Dopo la prima compilazione è veloce.
Una curiosità si può provarlo anche su un telefono fisico in un server locale ho bisogna pagare Account sviluppatori?
 

Sagenut

Expert
Licensed User
Longtime User
Per installare su un device fisico serve l'account da 99 euro all'anno.
Posso chiederti con cosa hai creato la macchina virtuale?
VMWare?
Anche se non credo che tornerò mai su B4i.
 

ken87

Active Member
Licensed User
Longtime User
Si
Ho installato VMware
poi Mac 0S.12
Supporto java
Server più librerie
Xcode 9.0
Vbi 2.50

Una cosa come si collega Viw creata con la grafica?
In b4a
Activity.LoadLayout("Layout1")

In b4i?

Sono riuscito ad installare tutto su VMware 15 con Windows 10 ultima versione.
Se si tenta di sviluppare con Virtual box funziona tutto troppo lento con VMware si sviluppa abbastanza bene.
Ecco la configurazione che ho installato
Pc: Lenovo Y520
Windows 10 : ultima versione
VMware 15
Mac Os 10.12
Ram dedicata :4gb
Processori : 2
Xcode :9.0
B4i : Ultima versione

Grazie mille
 

Attachments

  • salve.jpg
    salve.jpg
    235.6 KB · Views: 203
Last edited:
Top