Giter VIP home page Giter VIP logo

Comments (5)

olonho avatar olonho commented on May 16, 2024

What kind of OS/CPU combo is used on your target Tizen? According to https://en.wikipedia.org/wiki/Tizen
it is Linux for x86 and ARM, and as such, you may try to compile for 'linux' (x86-64) and 'raspberrypi' (arm-32) targets.

from kotlin-native.

Shusek avatar Shusek commented on May 16, 2024

Hi, i have problem when compile ARM (raspberrypi) shared library (.os) to tizen application.
warning: ld-linux-armhf.so.3, needed by ../lib/libmykotlinlibrary.so, not found (try using -rpath or -rpath-link)

Can i change combile flags inside gradle? Maybe when i just change some flags it should be fine.
Here is ninja file from native project written in C, maybe some properies can be helpful

targettool = clang++
targetflags =  -L"../lib" -shared -target arm-tizen-linux-gnueabi -gcc-toolchain "/home/shusek/tizen-studio/tools/smart-build-interface/../arm-linux-gnueabi-gcc-4.9/" -ccc-gcc-name arm-linux-gnueabi-g++ -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mtune=cortex-a8 -Xlinker --as-needed  -lpthread --sysroot="/home/shusek/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/wearable/rootstraps/wearable-3.0-device.core" -L"/home/shusek/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/wearable/rootstraps/wearable-3.0-device.core/usr/lib" -laccounts-svc -lanl -lappcore-agent -lappcore-watch -lbadge -lbase-utils-i18n -lBrokenLocale -lbundle -lcairo -lcalendar-service2 -lcapi-appfw-alarm -lcapi-appfw-app-common -lcapi-appfw-app-control -lcapi-appfw-application -lcapi-appfw-app-manager -lcapi-appfw-event -lcapi-appfw-package-manager -lcapi-appfw-preference -lcapi-appfw-widget-application -lcapi-base-common -lcapi-content-media-content -lcapi-content-mime-type -lcapi-location-manager -lcapi-maps-service -lcapi-media-audio-io -lcapi-media-camera -lcapi-media-codec -lcapi-media-controller -lcapi-mediademuxer -lcapi-media-image-util -lcapi-media-metadata-editor -lcapi-media-metadata-extractor -lcapi-mediamuxer -lcapi-media-player -lcapi-media-radio -lcapi-media-recorder -lcapi-media-sound-manager -lcapi-media-streamer -lcapi-media-streamrecorder -lcapi-media-thumbnail-util -lcapi-media-tone-player -lcapi-media-tool -lcapi-media-vision -lcapi-media-wav-player -lcapi-messaging-email -lcapi-messaging-messages -lcapi-network-bluetooth -lcapi-network-connection -lcapi-network-http -lcapi-network-nfc -lcapi-network-smartcard -lcapi-network-wifi-manager -lcapi-network-wifi -lcapi-system-device -lcapi-system-info -lcapi-system-media-key -lcapi-system-runtime-info -lcapi-system-sensor -lcapi-system-system-settings -lcapi-telephony -lcapi-ui-efl-util -lcapi-ui-inputmethod-manager -lcapi-ui-inputmethod -lchromium-ewk -lcidn -lcontacts-service2 -lcore-context-manager -lcore-sync-client -lcrypto -lcrypt -lc -lcsr-client -lcurl -ldali-adaptor -ldali-core -ldali-toolkit -ldata-control -ldlog -ldl -ldpm -lebluez -leconnman0_7x -lecore_buffer -lecore_con -lecore_evas -lecore_file -lecore_imf_evas -lecore_imf -lecore_input_evas -lecore_input -lecore_ipc -lecore -ledbus -ledje -leet -lefl-extension -lefreet_mime -lefreet -lefreet_trash -lehal -leina -leio -leldbus -lelementary -lembryo -lenotify -leofono -leom -leo -lethumb_client -lethumb -leukit -levas -lexif -lfeedback -lfido-client -lfontconfig -lfreetype -lgio-2.0 -lglib-2.0 -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0 -lharfbuzz-icu -lharfbuzz -liotcon -ljson-glib-1.0 -lkey-manager-client -lmessage-port -lminizip -lm -lnotification -lnsd-dns-sd -lnsd-ssdp -lnsl -lnss_compat -lnss_dns -lnss_files -lnss_hesiod -lnss_nisplus -lnss_nis -loauth2 -loauth -lopenal -lphonenumber-utils -lprivilege-info -lpthread -lpush -lresolv -lrt -lsqlite3 -lssl -lstorage -lstt_engine -lstt -ltbm -lthread_db -lttrace -ltts_engine -ltts -ltzsh_common -ltzsh_quickpanel -lutil -lvc-elm -lvc -lwidget_service -lwidget_viewer_dali -lwidget_viewer_evas -lxml2 -lyaca -lz -Wl,--no-undefined

build libsamplelibrary.so: build_target src/samplelibrary.o 
build ast: phony src/samplelibrary.o.ast
build externalFnMap.txt: fast_ext_fn src/samplelibrary.o.ast
build sa: phony $sareportdir/src/samplelibrary.o.xml
build apichecker: unusedapi_rule src/samplelibrary.o.txt
build cov: cov_report $coveragedir/src/samplelibrary.o.cov

from kotlin-native.

ilmat192 avatar ilmat192 commented on May 16, 2024

Gradle plugin allows passing additional linker options to the K/N compiler. Also, if you need to pass some custom flags to the K/N compiler itself or to the cinterop tool, you can use the extraOpts parameter:

konanArtifacts {
    library('foo') {
        // Arguments to be passed to a linker.
        linkerOpts '-Lpath/to/libs', '-lmylibrary'

        // Pass additional command line options to the K/N compiler.
        extraOpts '--time', '--verbose', 'linker'
    }
}

from kotlin-native.

Thomas-Vos avatar Thomas-Vos commented on May 16, 2024

I am interested in Tizen OS support. I created an issue on YouTrack here: https://youtrack.jetbrains.com/issue/KT-43808

I have Kotlin/Native working on physical Tizen OS watches (see linked issue for details), but cannot get it working on emulator because of missing targets. Did anyone here get Kotlin working on the Tizen OS emulator?

from kotlin-native.

Shusek avatar Shusek commented on May 16, 2024

I managed to do it but but unfortunately only as "fun project" and it is not usable for production application. If I remember correctly I forked whole kotlin-native and change math precision and hardcode buildChain to use tizen buildChain instead linux-arm default. Most libraries on tizen is written in C language instead C++ so the porting worked well.

from kotlin-native.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.