LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackware- Help with FTDI driver libftdi1-1.0 (http://www.linuxquestions.org/questions/slackware-14/slackware-help-with-ftdi-driver-libftdi1-1-0-a-4175459757/)

PeterUK 04-27-2013 03:40 AM

Slackware- Help with FTDI driver libftdi1-1.0
 
I know this is a middle process for something but I decided to post it there, otherwise is to messy posting all in one Thread.

I had to installed the version libftdi-0.19 simple because there is not ./config file in the 1-1.0 version. I compare several slackware installation script but interpolating from the one 0.19 I notice there is not config file.

so what I did was to get the script from here.

http://slackware.opennix.com/?slackv...7&name=libftdi
and the source from here:
http://www.intra2net.com/en/develope...di-0.19.tar.gz
and did some modifications on my Slackware script and all went in OK

But when I try to update to 1.1.0 there is not config file.

To compare here is the two packages:
Code:

http://www.intra2net.com/en/developer/libftdi/download/libftdi1-1.0.tar.bz2
http://www.intra2net.com/en/developer/libftdi/download/libftdi-0.19.tar.gz

Now also let talk here about libusb here when I search on Slackbuilds I found libhid there is not libusb I also went and installed the ​libusb-1.0.9 from http://www.libusb.org/ but I notice that something try to get going is calling a interface in not in there by the name: "hla" is that has to be with libhid? Thanks

PeterUK 04-27-2013 03:58 AM

Also after doing this post I also notice there is a README.build file I ready it and explain a way to install it but it say you need:

1) Install the build tools
sudo apt-get install build-essential
sudo apt-get install git-core


I look and all this are only in Ubuntu, right?

PeterUK 04-27-2013 04:47 AM

I will use this threat to also post about stlink compilation dough.

looking back at the installation of stlink I noticed there was a usb dev rule which it was not in the systems so I assume what I did just compile but didnt install so I decided to follow another post and after compile run :

makepkg -l y -c n /tmp/stlinkv2-SVN1183-i686-1.tgz

in the other one use -SVN1183 does it mean something?

and the reply is:

Quote:

bash-4.2# makepkg -l y -c n /tmp/stlinkv2-SVN1183-i686-1.tgz

Slackware package maker, version 3.14159.

Searching for symbolic links:

No symbolic links were found, so we won't make an installation script.
You can make your own later in ./install/doinst.sh and rebuild the
package if you like.

This next step is optional - you can set the directories in your package
to some sane permissions. If any of the directories in your package have
special permissions, then DO NOT reset them here!

Would you like to reset all directory permissions to 755 (drwxr-xr-x) and
directory ownerships to root.root ([y]es, [n]o)? n

Creating Slackware package: /tmp/stlinkv2-SVN1183-i686-1.tgz

./
gdbserver/
gdbserver/st_util-gdb-server.o
gdbserver/gdb-remote.c
gdbserver/st_util-gdb-remote.o
gdbserver/gdb-server.c
gdbserver/.dirstamp
gdbserver/.deps/
gdbserver/.deps/st_util-gdb-remote.Po
gdbserver/.deps/st_util-gdb-server.Po
gdbserver/.deps/.dirstamp
gdbserver/Makefile
gdbserver/gdb-remote.h
.gitignore
depcomp
configure
autom4te.cache/
autom4te.cache/traces.1
autom4te.cache/traces.0
autom4te.cache/requests
autom4te.cache/output.0
autom4te.cache/output.1
stlink_v1.modprobe.conf
mingw/
mingw/mingw.c
mingw/.dirstamp
mingw/.deps/
mingw/.deps/.dirstamp
mingw/.deps/st_util-mingw.Po
mingw/mingw.h
mingw/st_util-mingw.o
src/
src/stlink-sg.c
src/stlink-common.h
src/test_usb.c
src/stlink-usb.c
src/uglylogging.h
src/stlink-usb.h
src/uglylogging.c
src/test_sg.c
src/.dirstamp
src/mmap.c
src/.deps/
src/.deps/libstlink_a-stlink-usb.Po
src/.deps/libstlink_a-uglylogging.Po
src/.deps/libstlink_a-stlink-sg.Po
src/.deps/.dirstamp
src/.deps/mmap.Po
src/.deps/libstlink_a-stlink-common.Po
src/stlink-common.c
src/stlink-sg.h
src/libstlink_a-stlink-common.o
src/libstlink_a-stlink-sg.o
src/libstlink_a-stlink-usb.o
src/libstlink_a-uglylogging.o
src/mmap.h
.cproject
.git/
.git/logs/
.git/logs/refs/
.git/logs/refs/remotes/
.git/logs/refs/remotes/origin/
.git/logs/refs/remotes/origin/HEAD
.git/logs/refs/heads/
.git/logs/refs/heads/master
.git/logs/HEAD
.git/index
.git/packed-refs
.git/objects/
.git/objects/info/
.git/objects/pack/
.git/objects/pack/pack-b48e819dc7cfed2e14a949228296788ff1fbbda9.idx
.git/objects/pack/pack-b48e819dc7cfed2e14a949228296788ff1fbbda9.pack
.git/refs/
.git/refs/tags/
.git/refs/remotes/
.git/refs/remotes/origin/
.git/refs/remotes/origin/HEAD
.git/refs/heads/
.git/refs/heads/master
.git/branches/
.git/hooks/
.git/hooks/pre-commit.sample
.git/hooks/update.sample
.git/hooks/pre-applypatch.sample
.git/hooks/prepare-commit-msg.sample
.git/hooks/applypatch-msg.sample
.git/hooks/pre-rebase.sample
.git/hooks/commit-msg.sample
.git/hooks/post-update.sample
.git/description
.git/info/
.git/info/exclude
.git/HEAD
.git/config
configure.ac
autogen.sh
doc/
doc/tutorial/
doc/tutorial/tutorial.pdf
doc/tutorial/tutorial.tex
TODO
st-flash
flashloaders/
flashloaders/stm32f4.s
flashloaders/stm32f0.s
libstlink.a
INSTALL
49-stlinkv1.rules
config.guess
missing
compile
LICENSE
COPYING
49-stlinkv2.rules
st-util
config.sub
ACKNOWLEDGMENTS
Makefile.am
NEWS
stlinkv1_macosx_driver/
stlinkv1_macosx_driver/osx.tar.gz
stlinkv1_macosx_driver/Makefile
stlinkv1_macosx_driver/README
flash/
flash/st_flash-main.o
flash/.dirstamp
flash/main.c
flash/.deps/
flash/.deps/st_flash-main.Po
flash/.deps/.dirstamp
flash/Makefile
Makefile
config.log
config.status
AUTHORS
aclocal.m4
ChangeLog
README
toremove/
toremove/stm32l_notes/
toremove/stm32l_notes/device_connection.csv
toremove/stm32l_notes/notes
toremove/stm32l_notes/break.csv
toremove/stm32l_notes/step_into.csv
toremove/stm32l_notes/go.csv
toremove/stm32l_notes/USB_traces.ods
toremove/stm32l_notes/read_memory.csv
toremove/stm32l/
toremove/stm32l/src/
toremove/stm32l/src/stlink-hw.h
Makefile.in
install-sh
WARNING: zero length file gdbserver/.dirstamp
WARNING: zero length file gdbserver/.deps/.dirstamp
WARNING: zero length file mingw/.dirstamp
WARNING: zero length file mingw/.deps/.dirstamp
WARNING: zero length file src/.dirstamp
WARNING: zero length file src/.deps/.dirstamp
WARNING: zero length file NEWS
WARNING: zero length file flash/.dirstamp
WARNING: zero length file flash/.deps/.dirstamp
WARNING: zero length file ChangeLog

Slackware package /tmp/stlinkv2-SVN1183-i686-1.tgz created
A part from those last files of warning they rest is all good, right?

Alien Bob 04-27-2013 05:29 AM

You are using one thread for posting several unrelated questions. The probability is high that you will not get the answers you seek.

As for the stlinkv2 package you created. The content is totally fscked up. If you install that package on your Slackware computer there is a chance that you will render it useless by dumping all the content in the root of your filesystem. Files inside a package are meant to have a path prefixed like /usr or /etc or /lib , while your package has all its stuff directly in the root. Why do you want a directory like "toremove" as part of a package???

About your first post, I have no idea why you would need a "./config" file. Can you post at least some errors so that people can give meaningful answers.
Apt-get is not a Slackware tool, forget about that.

Eric

willysr 04-27-2013 05:31 AM

use the provided autogen.sh

PeterUK 04-27-2013 08:14 AM

Quote:

Originally Posted by Alien Bob (Post 4939829)
You are using one thread for posting several unrelated questions. The probability is high that you will not get the answers you seek.

As for the stlinkv2 package you created. The content is totally fscked up. If you install that package on your Slackware computer there is a chance that you will render it useless by dumping all the content in the root of your filesystem. Files inside a package are meant to have a path prefixed like /usr or /etc or /lib , while your package has all its stuff directly in the root. Why do you want a directory like "toremove" as part of a package???

About your first post, I have no idea why you would need a "./config" file. Can you post at least some errors so that people can give meaningful answers.
Apt-get is not a Slackware tool, forget about that.

Eric

Sorry I checked and I already droop the package... :-(

You are kind of right I looked other package from the slack-build and none file are outside folders.
But remember I didnt create this package manually. As its on the post I run a command like:

Code:

makepkg -l y -c n /tmp/stlinkv2-SVN1183-i686-1.tgz
And to get it in I used
Code:

installpkg /tmp/stlinkv2-SVN1183-i686-1.tgz
And it display like 3 likes (checking bla bla) and than is it.

If I search for the package is say its installed.

I wanted to attached the package here but I cannot attach it and the Print Screen is not working.

I noticed that the installed package has installed the files in the file sys/ folder ufff :-(

PeterUK 04-27-2013 08:25 AM

Now I have remove the package by removepkg

Quote:

bash-4.2# removepkg stlinkv2-SVN1183-i686-1

Removing package /var/log/packages/stlinkv2-SVN1183-i686-1...
Removing files:
--> /.git/HEAD was found in another package. Skipping.
--> /.git/config was found in another package. Skipping.
--> /.git/description was found in another package. Skipping.
--> /.git/hooks/applypatch-msg.sample was found in another package. Skipping.
--> /.git/hooks/commit-msg.sample was found in another package. Skipping.
--> /.git/hooks/post-update.sample was found in another package. Skipping.
--> /.git/hooks/pre-applypatch.sample was found in another package. Skipping.
--> /.git/hooks/pre-commit.sample was found in another package. Skipping.
--> /.git/hooks/pre-rebase.sample was found in another package. Skipping.
--> /.git/hooks/prepare-commit-msg.sample was found in another package. Skipping.
--> /.git/hooks/update.sample was found in another package. Skipping.
--> /.git/index was found in another package. Skipping.
--> /.git/info/exclude was found in another package. Skipping.
--> /.git/logs/HEAD was found in another package. Skipping.
--> /.git/logs/refs/heads/master was found in another package. Skipping.
--> /.git/logs/refs/remotes/origin/HEAD was found in another package. Skipping.
--> /.git/packed-refs was found in another package. Skipping.
--> /.git/refs/heads/master was found in another package. Skipping.
--> /.git/refs/remotes/origin/HEAD was found in another package. Skipping.
--> /.gitignore was found in another package. Skipping.
--> /AUTHORS was found in another package. Skipping.
--> /COPYING was found in another package. Skipping.
--> /ChangeLog was found in another package. Skipping.
--> /INSTALL was found in another package. Skipping.
--> /Makefile was found in another package. Skipping.
--> /Makefile.am was found in another package. Skipping.
--> /Makefile.in was found in another package. Skipping.
--> /NEWS was found in another package. Skipping.
--> /README was found in another package. Skipping.
--> /TODO was found in another package. Skipping.
--> /aclocal.m4 was found in another package. Skipping.
--> /autom4te.cache/output.0 was found in another package. Skipping.
--> /autom4te.cache/output.1 was found in another package. Skipping.
--> /autom4te.cache/requests was found in another package. Skipping.
--> /autom4te.cache/traces.0 was found in another package. Skipping.
--> /autom4te.cache/traces.1 was found in another package. Skipping.
--> /compile was found in another package. Skipping.
--> /config.guess was found in another package. Skipping.
--> /config.log was found in another package. Skipping.
--> /config.status was found in another package. Skipping.
--> /config.sub was found in another package. Skipping.
--> /configure was found in another package. Skipping.
--> /configure.ac was found in another package. Skipping.
--> /depcomp was found in another package. Skipping.
--> /install-sh was found in another package. Skipping.
--> /missing was found in another package. Skipping.
--> Deleting /.cproject
--> Deleting /.git/objects/pack/pack-b48e819dc7cfed2e14a949228296788ff1fbbda9.idx
--> Deleting /.git/objects/pack/pack-b48e819dc7cfed2e14a949228296788ff1fbbda9.pack
--> Deleting /49-stlinkv1.rules
--> Deleting /49-stlinkv2.rules
--> Deleting /ACKNOWLEDGMENTS
--> Deleting /LICENSE
--> Deleting /autogen.sh
--> Deleting /doc/tutorial/tutorial.pdf
--> Deleting /doc/tutorial/tutorial.tex
--> Deleting /flash/.deps/.dirstamp
--> Deleting /flash/.deps/st_flash-main.Po
--> Deleting /flash/.dirstamp
--> Deleting /flash/Makefile
--> Deleting /flash/main.c
--> Deleting /flash/st_flash-main.o
--> Deleting /flashloaders/stm32f0.s
--> Deleting /flashloaders/stm32f4.s
--> Deleting /gdbserver/.deps/.dirstamp
--> Deleting /gdbserver/.deps/st_util-gdb-remote.Po
--> Deleting /gdbserver/.deps/st_util-gdb-server.Po
--> Deleting /gdbserver/.dirstamp
--> Deleting /gdbserver/Makefile
--> Deleting /gdbserver/gdb-remote.c
--> Deleting /gdbserver/gdb-remote.h
--> Deleting /gdbserver/gdb-server.c
--> Deleting /gdbserver/st_util-gdb-remote.o
--> Deleting /gdbserver/st_util-gdb-server.o
--> Deleting /libstlink.a
--> Deleting /mingw/.deps/.dirstamp
--> Deleting /mingw/.deps/st_util-mingw.Po
--> Deleting /mingw/.dirstamp
--> Deleting /mingw/mingw.c
--> Deleting /mingw/mingw.h
--> Deleting /mingw/st_util-mingw.o
--> Deleting /src/.deps/.dirstamp
--> Deleting /src/.deps/libstlink_a-stlink-common.Po
--> Deleting /src/.deps/libstlink_a-stlink-sg.Po
--> Deleting /src/.deps/libstlink_a-stlink-usb.Po
--> Deleting /src/.deps/libstlink_a-uglylogging.Po
--> Deleting /src/.deps/mmap.Po
--> Deleting /src/.dirstamp
--> Deleting /src/libstlink_a-stlink-common.o
--> Deleting /src/libstlink_a-stlink-sg.o
--> Deleting /src/libstlink_a-stlink-usb.o
--> Deleting /src/libstlink_a-uglylogging.o
--> Deleting /src/mmap.c
--> Deleting /src/mmap.h
--> Deleting /src/stlink-common.c
--> Deleting /src/stlink-common.h
--> Deleting /src/stlink-sg.c
--> Deleting /src/stlink-sg.h
--> Deleting /src/stlink-usb.c
--> Deleting /src/stlink-usb.h
--> Deleting /src/test_sg.c
--> Deleting /src/test_usb.c
--> Deleting /src/uglylogging.c
--> Deleting /src/uglylogging.h
--> Deleting /st-flash
--> Deleting /st-util
--> Deleting /stlink_v1.modprobe.conf
--> Deleting /stlinkv1_macosx_driver/Makefile
--> Deleting /stlinkv1_macosx_driver/README
--> Deleting /stlinkv1_macosx_driver/osx.tar.gz
--> Deleting /toremove/stm32l/src/stlink-hw.h
--> Deleting /toremove/stm32l_notes/USB_traces.ods
--> Deleting /toremove/stm32l_notes/break.csv
--> Deleting /toremove/stm32l_notes/device_connection.csv
--> Deleting /toremove/stm32l_notes/go.csv
--> Deleting /toremove/stm32l_notes/notes
--> Deleting /toremove/stm32l_notes/read_memory.csv
--> Deleting /toremove/stm32l_notes/step_into.csv
--> Deleting empty directory /toremove/stm32l_notes/
--> Deleting empty directory /toremove/stm32l/src/
--> Deleting empty directory /toremove/stm32l/
--> Deleting empty directory /toremove/
--> Deleting empty directory /stlinkv1_macosx_driver/
--> Deleting empty directory /mingw/.deps/
--> Deleting empty directory /mingw/
--> Deleting empty directory /gdbserver/.deps/
--> Deleting empty directory /gdbserver/
--> Deleting empty directory /flashloaders/
--> Deleting empty directory /flash/.deps/
--> Deleting empty directory /flash/
--> Deleting empty directory /doc/tutorial/

Should I be worrying about those skipping on deleting?

PeterUK 04-27-2013 08:30 AM

Those file where in the package and now it said has been found in another package, have I've just messed it up?

Quote:

--> /.git/HEAD was found in another package. Skipping.
--> /.git/config was found in another package. Skipping.
--> /.git/description was found in another package. Skipping.
--> /.git/hooks/applypatch-msg.sample was found in another package. Skipping.
--> /.git/hooks/commit-msg.sample was found in another package. Skipping.
--> /.git/hooks/post-update.sample was found in another package. Skipping.
--> /.git/hooks/pre-applypatch.sample was found in another package. Skipping.
--> /.git/hooks/pre-commit.sample was found in another package. Skipping.
--> /.git/hooks/pre-rebase.sample was found in another package. Skipping.
--> /.git/hooks/prepare-commit-msg.sample was found in another package. Skipping.
--> /.git/hooks/update.sample was found in another package. Skipping.
--> /.git/index was found in another package. Skipping.
--> /.git/info/exclude was found in another package. Skipping.
--> /.git/logs/HEAD was found in another package. Skipping.
--> /.git/logs/refs/heads/master was found in another package. Skipping.
--> /.git/logs/refs/remotes/origin/HEAD was found in another package. Skipping.
--> /.git/packed-refs was found in another package. Skipping.
--> /.git/refs/heads/master was found in another package. Skipping.
--> /.git/refs/remotes/origin/HEAD was found in another package. Skipping.
--> /.gitignore was found in another package. Skipping.
--> /AUTHORS was found in another package. Skipping.
--> /COPYING was found in another package. Skipping.
--> /ChangeLog was found in another package. Skipping.
--> /INSTALL was found in another package. Skipping.
--> /Makefile was found in another package. Skipping.
--> /Makefile.am was found in another package. Skipping.
--> /Makefile.in was found in another package. Skipping.
--> /NEWS was found in another package. Skipping.
--> /README was found in another package. Skipping.
--> /TODO was found in another package. Skipping.
--> /aclocal.m4 was found in another package. Skipping.
--> /autom4te.cache/output.0 was found in another package. Skipping.
--> /autom4te.cache/output.1 was found in another package. Skipping.
--> /autom4te.cache/requests was found in another package. Skipping.
--> /autom4te.cache/traces.0 was found in another package. Skipping.
--> /autom4te.cache/traces.1 was found in another package. Skipping.
--> /compile was found in another package. Skipping.
--> /config.guess was found in another package. Skipping.
--> /config.log was found in another package. Skipping.
--> /config.status was found in another package. Skipping.
--> /config.sub was found in another package. Skipping.
--> /configure was found in another package. Skipping.
--> /configure.ac was found in another package. Skipping.
--> /depcomp was found in another package. Skipping.
--> /install-sh was found in another package. Skipping.
--> /missing was found in another package. Skipping.

PeterUK 04-27-2013 09:06 AM

Steps to produce this package with error:

On a folder
git clone https://github.com/texane/stlink.git
./autogen.sh
./configure
make
mkdir /tmp/test
make install DESTDIR=/tmp/test
makepkg -l y -c n /tmp/stlinkv2-SVN1183-i686-1.tgz
installpkg /tmp/stlinkv2-SVN1183-i686-1.tgz

BroX 04-27-2013 09:27 AM

Quote:

Originally Posted by PeterUK (Post 4939973)
Steps to produce this package with error:

I think you missed one crucial step:

Code:

git clone https://github.com/texane/stlink.git
./autogen.sh
./configure
make
mkdir /tmp/test
make install DESTDIR=/tmp/test
cd /tmp/test
makepkg -l y -c n /tmp/stlinkv2-SVN1183-i686-1.tgz
installpkg /tmp/stlinkv2-SVN1183-i686-1.tgz


BroX 04-27-2013 09:47 AM

Quote:

Originally Posted by PeterUK (Post 4939936)
Those file where in the package and now it said has been found in another package, have I've just messed it up?

Just remove them manually.

PeterUK 04-27-2013 10:07 AM

Quote:

Originally Posted by Alien Bob (Post 4939829)
You are using one thread for posting several unrelated questions. The probability is high that you will not get the answers you seek.

Apt-get is not a Slackware tool, forget about that.

Eric

I was thinking more about git-code, package like building-essentials, I know apt-get is not for slackeware :-/

PeterUK 04-27-2013 11:27 AM

Quote:

Originally Posted by BroX (Post 4939996)
Just remove them manually.

I've noticed that I did the same mistake with openocd :-(, that is why those files could not be deleted. Now all those files on the "/" folder has disappear after removing openocd.

Now I think I have a lack on my understanding about slackware package. Should the package contain all the files to be use?

this dough comes because if I I do the suggestion in post #10

I get only a package which is like:

Code:

bash-4.2# makepkg -l y -c n /tmp/stlinkv2-SVN1183-i686-1.tgz

Slackware package maker, version 3.14159.

Searching for symbolic links:

No symbolic links were found, so we won't make an installation script.
You can make your own later in ./install/doinst.sh and rebuild the
package if you like.

This next step is optional - you can set the directories in your package
to some sane permissions. If any of the directories in your package have
special permissions, then DO NOT reset them here!

Would you like to reset all directory permissions to 755 (drwxr-xr-x) and
directory ownerships to root.root ([y]es, [n]o)? n

Creating Slackware package:  /tmp/stlinkv2-SVN1183-i686-1.tgz

./
usr/
usr/local/
usr/local/bin/
usr/local/bin/st-util
usr/local/bin/st-flash

Slackware package /tmp/stlinkv2-SVN1183-i686-1.tgz created.

That is only two files, what should I do with the folder with actually all the files called stlink?

PeterUK 04-27-2013 11:53 AM

Also I get:

/usr/share/aclocal/imlib.m4:9: warning: underquoted definition of AM_PATH_IMLIB

When I do ./autogen.sh

What is that?

BroX 04-27-2013 05:43 PM

Quote:

Originally Posted by PeterUK (Post 4940063)
I get only a package which is like:
Code:

Creating Slackware package:  /tmp/stlinkv2-SVN1183-i686-1.tgz

./
usr/
usr/local/
usr/local/bin/
usr/local/bin/st-util
usr/local/bin/st-flash

Slackware package /tmp/stlinkv2-SVN1183-i686-1.tgz created.


Apparently only those two files were built and installed in your DESTDIR. So something must have gone wrong during the earlier .configure/make steps. Did you get any error messages?

Quote:

Originally Posted by PeterUK (Post 4940063)
That is only two files, what should I do with the folder with actually all the files called stlink?

After successfully building a package from the content in your DESTDIR you can discard all other files.


All times are GMT -5. The time now is 06:07 AM.