× CodeTyphon Cross-Build Development, discussions and problems

Idea Raspberry Pi 2 Program "Segmentation fault"

More
6 years 1 month ago #8355 by Edox
Hi,

Im trying to build a program for my Raspberry Pi 2, all is OK except when a try to run the program in the Raspberry, i get "segment faul" message.
- Linux Mint 17.2 installed in VirtualBox version 4.3.18r96516
- Codetyphon 5.50 installed in Linux MInt 17.2 cinnamon 32 bits.

Can you help me please?

Thanks in advance!

Please Log in or Create an account to join the conversation.

  • usbdoo
  • Visitor
  • Visitor
6 years 1 month ago #8356 by usbdoo
Replied by usbdoo on topic Raspberry Pi 2 Program "Segmentation fault"
www.raspberrypi.org/downloads/
Raspbian is the Foundation’s official supported Operating System.
What OS is on the Raspberry Pi 2?

Codetyphon 5.50
I'm doing this on Debian 8 and works very well.

Please Log in or Create an account to join the conversation.

More
6 years 1 month ago #8357 by Edox
Hi usbdoo
Thank for you reply

My Raspberry has installed 2015-09-24-raspbian-jessie.

Please Log in or Create an account to join the conversation.

  • usbdoo
  • Visitor
  • Visitor
6 years 1 month ago #8358 by usbdoo
Replied by usbdoo on topic Raspberry Pi 2 Program "Segmentation fault"
it should be okay.
Try to start this program on the Rapberry Pi 2
Attachments:

Please Log in or Create an account to join the conversation.

More
6 years 1 month ago #8359 by Edox
Thank for your Help, but I get the same message.

Please Log in or Create an account to join the conversation.

  • usbdoo
  • Visitor
  • Visitor
6 years 1 month ago #8360 by usbdoo
Replied by usbdoo on topic Raspberry Pi 2 Program "Segmentation fault"
This program has been tested on RASPBIAN WHEEZY.

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
6 years 1 month ago #8361 by Sternas Stefanos
Replied by Sternas Stefanos on topic Raspberry Pi 2 Program "Segmentation fault"
Sir
did you give executable permissions to your project ?
did you install GTK2 libraries to your Pi Box ?

PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

  • usbdoo
  • Visitor
  • Visitor
6 years 1 month ago #8362 by usbdoo
Replied by usbdoo on topic Raspberry Pi 2 Program "Segmentation fault"
Only now I see Jessi.
RASPBIAN JESSIE
Based on Debian Jessie
Version:September 2015
Release date:2015-09-24
Kernel version:4.1

I started to test.
when I get the results I say.

Please Log in or Create an account to join the conversation.

More
6 years 1 month ago #8363 by Edox
Thank you Mr. Stefanos for your reply
The first answer is yes, about the second, i install gtk2 in my Pi box with :

sudo apt-get update
sudo apt-get install libgtk2.0-dev.

But i get the same message "segmentation fault"

Please Log in or Create an account to join the conversation.

  • usbdoo
  • Visitor
  • Visitor
6 years 1 month ago #8364 by usbdoo
Replied by usbdoo on topic Raspberry Pi 2 Program "Segmentation fault"
My program works without problems on RASPBIAN JESSIE.
Repeat the installation Raspberry PI"

Please Log in or Create an account to join the conversation.

  • usbdoo
  • Visitor
  • Visitor
6 years 1 month ago #8365 by usbdoo
Replied by usbdoo on topic Raspberry Pi 2 Program "Segmentation fault"
dd bs=4M if=/home/usb/Downloads/2015-09-24-raspbian-jessie.img of=/dev/sdc
Do not forget.
sync
to safely give out sd

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
6 years 1 month ago - 6 years 1 month ago #8366 by Sternas Stefanos
Replied by Sternas Stefanos on topic Raspberry Pi 2 Program "Segmentation fault"
try and
    sudo apt-get install -y libgtk2.0
    sudo apt-get install -y libgtkglext1 
    sudo apt-get install -y gtk2-engines-pixbuf 
    sudo apt-get install -y libcairo2

What Typhon packages do you in your Project ?

PilotLogic Architect and Core Programmer
Last edit: 6 years 1 month ago by Sternas Stefanos.

Please Log in or Create an account to join the conversation.

More
6 years 1 month ago #8367 by Edox
OK usbdoo
Thank for your time, I will try to install again RASPBIAN JESSIE and tell you what i get

Please Log in or Create an account to join the conversation.

More
6 years 1 month ago #8368 by Edox
Mr. Stefanos

I installed according to the instructions gtk2.0, the installation was OK.
sudo apt-get install -y libgtk2.0
sudo apt-get install -y libgtkglext1
sudo apt-get install -y gtk2-engines-pixbuf
sudo apt-get install -y libcairo2

But get the same message when i run project1in my Pi Box.

About the second advice, I dont fully understand your question.
The program is only the form with a button

Please Log in or Create an account to join the conversation.

More
6 years 1 month ago #8377 by Edox
Many thanks for your help. The problem is solved but I dont know why this happen.
When I put the program in the Pi box using vsftpd and run it I get message "segmentation fault", but
when I put the program in the Pi box using Pendrive this run OK.
by last, when I compress the program and put in Pi box using vsftp, and then I decompress it in the Pi box it run OK. :huh:

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
6 years 1 month ago #8378 by Sternas Stefanos
Replied by Sternas Stefanos on topic Raspberry Pi 2 Program "Segmentation fault" SOLVED
Thanks Sir,
have fun

PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.